diff --git a/.gitignore b/.gitignore index d0bcc440..a59c7f5c 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,6 @@ media logs/ Thumbs.db /proj/local.py -static/client .DS_Store diff --git a/static/client/css/idangerous.swiper.css b/static/client/css/idangerous.swiper.css new file mode 100644 index 00000000..4f916c44 --- /dev/null +++ b/static/client/css/idangerous.swiper.css @@ -0,0 +1,118 @@ +/* + * Swiper - Mobile Touch Slider CSS + * http://www.idangero.us/sliders/swiper + * + * Vladimir Kharlampidi, The iDangero.us + * http://www.idangero.us/ + * + * Copyright 2012-2013, Vladimir Kharlampidi + * The iDangero.us + * http://www.idangero.us + * + * Licensed under GPL & MIT + * +*/ + +/* =============================================================== +Basic Swiper Styles +================================================================*/ +.swiper-container { + margin:0 auto; + position:relative; + overflow:hidden; + -webkit-backface-visibility:hidden; + -moz-backface-visibility:hidden; + -ms-backface-visibility:hidden; + -o-backface-visibility:hidden; + backface-visibility:hidden; + /* Fix of Webkit flickering */ + z-index:1; +} +.swiper-wrapper { + position:relative; + width:100%; + -webkit-transition-property:-webkit-transform, left, top; + -webkit-transition-duration:0s; + -webkit-transform:translate3d(0px,0,0); + -webkit-transition-timing-function:ease; + + -moz-transition-property:-moz-transform, left, top; + -moz-transition-duration:0s; + -moz-transform:translate3d(0px,0,0); + -moz-transition-timing-function:ease; + + -o-transition-property:-o-transform, left, top; + -o-transition-duration:0s; + -o-transform:translate3d(0px,0,0); + -o-transition-timing-function:ease; + -o-transform:translate(0px,0px); + + -ms-transition-property:-ms-transform, left, top; + -ms-transition-duration:0s; + -ms-transform:translate3d(0px,0,0); + -ms-transition-timing-function:ease; + + transition-property:transform, left, top; + transition-duration:0s; + transform:translate3d(0px,0,0); + transition-timing-function:ease; +} +.swiper-free-mode > .swiper-wrapper { + -webkit-transition-timing-function: ease-out; + -moz-transition-timing-function: ease-out; + -ms-transition-timing-function: ease-out; + -o-transition-timing-function: ease-out; + transition-timing-function: ease-out; + margin: 0 auto; +} +.swiper-slide { + float: left; +} + +/* IE10 Windows Phone 8 Fixes */ +.swiper-wp8-horizontal { + -ms-touch-action: pan-y; +} +.swiper-wp8-vertical { + -ms-touch-action: pan-x; +} + +/* =============================================================== +Your custom styles, here you need to specify container's and slide's +sizes, pagination, etc. +================================================================*/ +.swiper-container { + /* Specify Swiper's Size: */ + + /*width:200px; + height: 100px;*/ +} +.swiper-slide { + /* Specify Slides's Size: */ + + /*width: 100%; + height: 100%;*/ +} +.swiper-slide-active { + /* Specific active slide styling: */ + +} +.swiper-slide-visible { + /* Specific visible slide styling: */ + +} +/* =============================================================== +Pagination Styles +================================================================*/ +.swiper-pagination-switch { + /* Stylize pagination button: */ + +} +.swiper-active-switch { + /* Specific active button style: */ + +} +.swiper-visible-switch { + /* Specific visible button style: */ + +} diff --git a/static/client/css/idangerous.swiper.scrollbar.css b/static/client/css/idangerous.swiper.scrollbar.css new file mode 100644 index 00000000..25c12a3a --- /dev/null +++ b/static/client/css/idangerous.swiper.scrollbar.css @@ -0,0 +1,16 @@ +.swiper-scrollbar { + border-radius: 10px; + position: relative; + -ms-touch-action: none; + background: rgba(0,0,0,0.1) +} +.swiper-scrollbar-drag { + height: 100%; + width: 100%; + position: relative; + background: rgba(0,0,0,0.5); + border-radius: 10px; +} +.swiper-scrollbar-cursor-drag { + cursor: move; +} \ No newline at end of file diff --git a/static/client/css/jquery-ui-1.10.3.custom.css b/static/client/css/jquery-ui-1.10.3.custom.css new file mode 100644 index 00000000..35ce1b6c --- /dev/null +++ b/static/client/css/jquery-ui-1.10.3.custom.css @@ -0,0 +1,163 @@ +/*! jQuery UI - v1.10.3 - 2013-11-24 +* http://jqueryui.com +* Includes: jquery.ui.core.css, jquery.ui.autocomplete.css, jquery.ui.menu.css +* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { + display: none; +} +.ui-helper-hidden-accessible { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} +.ui-helper-reset { + margin: 0; + padding: 0; + border: 0; + outline: 0; + line-height: 1.3; + text-decoration: none; + font-size: 100%; + list-style: none; +} +.ui-helper-clearfix:before, +.ui-helper-clearfix:after { + content: ""; + display: table; + border-collapse: collapse; +} +.ui-helper-clearfix:after { + clear: both; +} +.ui-helper-clearfix { + min-height: 0; /* support: IE7 */ +} +.ui-helper-zfix { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute; + opacity: 0; + filter:Alpha(Opacity=0); +} + +.ui-front { + z-index: 100; +} + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { + cursor: default !important; +} + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { + display: block; + text-indent: -99999px; + overflow: hidden; + background-repeat: no-repeat; +} + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.ui-autocomplete { + position: absolute; + top: 0; + left: 0; + cursor: default; +} + +.ui-menu { + list-style: none; + padding: 2px; + margin: 0; + display: block; + outline: none; +} +.ui-menu .ui-menu { + margin-top: -3px; + position: absolute; +} +.ui-menu .ui-menu-item { + margin: 0; + padding: 0; + width: 100%; + /* support: IE10, see #8844 */ + list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); +} +.ui-menu .ui-menu-divider { + margin: 5px -2px 5px -2px; + height: 0; + font-size: 0; + line-height: 0; + border-width: 1px 0 0 0; +} +.ui-menu .ui-menu-item a { + text-decoration: none; + display: block; + padding: 2px .4em; + line-height: 1.5; + min-height: 0; /* support: IE7 */ + font-weight: normal; +} +.ui-menu .ui-menu-item a.ui-state-focus, +.ui-menu .ui-menu-item a.ui-state-active { + font-weight: normal; + margin: -1px; +} + +.ui-menu .ui-state-disabled { + font-weight: normal; + /*margin: .4em 0 .2em; + line-height: 1.5;*/ +} +.ui-menu .ui-state-disabled a { + cursor: default; +} + +/* icon support */ +/*.ui-menu-icons { + position: relative; +} +.ui-menu-icons .ui-menu-item a { + position: relative; + padding-left: 2em; +}*/ + +/* left-aligned */ +/*.ui-menu .ui-icon { + position: absolute; + top: .2em; + left: .2em; +}*/ + +/* right-aligned */ +/*.ui-menu .ui-menu-icon { + position: static; + float: right; +}*/ diff --git a/static/client/css/jquery.fancybox.css b/static/client/css/jquery.fancybox.css new file mode 100644 index 00000000..49d64b6d --- /dev/null +++ b/static/client/css/jquery.fancybox.css @@ -0,0 +1,274 @@ +/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ +.fancybox-wrap, +.fancybox-skin, +.fancybox-outer, +.fancybox-inner, +.fancybox-image, +.fancybox-wrap iframe, +.fancybox-wrap object, +.fancybox-nav, +.fancybox-nav span, +.fancybox-tmp +{ + padding: 0; + margin: 0; + border: 0; + outline: none; + vertical-align: top; +} + +.fancybox-wrap { + position: absolute; + top: 0; + left: 0; + z-index: 8020; +} + +.fancybox-skin { + position: relative; + background: #f9f9f9; + color: #444; + text-shadow: none; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} + +.fancybox-opened { + z-index: 8030; +} + +.fancybox-opened .fancybox-skin { + -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); + -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); +} + +.fancybox-outer, .fancybox-inner { + position: relative; +} + +.fancybox-inner { + overflow: hidden; +} + +.fancybox-type-iframe .fancybox-inner { + -webkit-overflow-scrolling: touch; +} + +.fancybox-error { + color: #444; + font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; + margin: 0; + padding: 15px; + white-space: nowrap; +} + +.fancybox-image, .fancybox-iframe { + display: block; + width: 100%; + height: 100%; +} + +.fancybox-image { + max-width: 100%; + max-height: 100%; +} + +#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { + background-image: url('../img/fancybox/fancybox_sprite.png'); +} + +#fancybox-loading { + position: fixed; + top: 50%; + left: 50%; + margin-top: -22px; + margin-left: -22px; + background-position: 0 -108px; + opacity: 0.8; + cursor: pointer; + z-index: 8060; +} + +#fancybox-loading div { + width: 44px; + height: 44px; + background: url('../img/fancybox/fancybox_loading.gif') center center no-repeat; +} + +.fancybox-close { + position: absolute; + top: -18px; + right: -18px; + width: 36px; + height: 36px; + cursor: pointer; + z-index: 8040; +} + +.fancybox-nav { + position: absolute; + top: 0; + width: 40%; + height: 100%; + cursor: pointer; + text-decoration: none; + background: transparent url('../img/fancybox/blank.gif'); /* helps IE */ + -webkit-tap-highlight-color: rgba(0,0,0,0); + z-index: 8040; +} + +.fancybox-prev { + left: 0; +} + +.fancybox-next { + right: 0; +} + +.fancybox-nav span { + position: absolute; + top: 50%; + width: 36px; + height: 34px; + margin-top: -18px; + cursor: pointer; + z-index: 8040; + visibility: hidden; +} + +.fancybox-prev span { + left: 10px; + background-position: 0 -36px; +} + +.fancybox-next span { + right: 10px; + background-position: 0 -72px; +} + +.fancybox-nav:hover span { + visibility: visible; +} + +.fancybox-tmp { + position: absolute; + top: -99999px; + left: -99999px; + visibility: hidden; + max-width: 99999px; + max-height: 99999px; + overflow: visible !important; +} + +/* Overlay helper */ + +.fancybox-lock { + overflow: hidden !important; + width: auto; +} + +.fancybox-lock body { + overflow: hidden !important; +} + +.fancybox-lock-test { + overflow-y: hidden !important; +} + +.fancybox-overlay { + position: absolute; + top: 0; + left: 0; + overflow: hidden; + display: none; + z-index: 8010; + background: url('../img/fancybox/fancybox_overlay.png'); +} + +.fancybox-overlay-fixed { + position: fixed; + bottom: 0; + right: 0; +} + +.fancybox-lock .fancybox-overlay { + overflow: auto; + overflow-y: scroll; +} + +/* Title helper */ + +.fancybox-title { + visibility: hidden; + font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; + position: relative; + text-shadow: none; + z-index: 8050; +} + +.fancybox-opened .fancybox-title { + visibility: visible; +} + +.fancybox-title-float-wrap { + position: absolute; + bottom: 0; + right: 50%; + margin-bottom: -35px; + z-index: 8050; + text-align: center; +} + +.fancybox-title-float-wrap .child { + display: inline-block; + margin-right: -100%; + padding: 2px 20px; + background: transparent; /* Fallback for web browsers that doesn't support RGBa */ + background: rgba(0, 0, 0, 0.8); + -webkit-border-radius: 15px; + -moz-border-radius: 15px; + border-radius: 15px; + text-shadow: 0 1px 2px #222; + color: #FFF; + font-weight: bold; + line-height: 24px; + white-space: nowrap; +} + +.fancybox-title-outside-wrap { + position: relative; + margin-top: 10px; + color: #fff; +} + +.fancybox-title-inside-wrap { + padding-top: 10px; +} + +.fancybox-title-over-wrap { + position: absolute; + bottom: 0; + left: 0; + color: #fff; + padding: 10px; + background: #000; + background: rgba(0, 0, 0, .8); +} + +/*Retina graphics!*/ +@media only screen and (-webkit-min-device-pixel-ratio: 1.5), + only screen and (min--moz-device-pixel-ratio: 1.5), + only screen and (min-device-pixel-ratio: 1.5){ + + #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { + background-image: url('../img/fancybox/fancybox_sprite@2x.png'); + background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/ + } + + #fancybox-loading div { + background-image: url('../img/fancybox/fancybox_loading@2x.gif'); + background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/ + } +} \ No newline at end of file diff --git a/static/client/css/jquery.mCustomScrollbar.css b/static/client/css/jquery.mCustomScrollbar.css new file mode 100644 index 00000000..4abb0366 --- /dev/null +++ b/static/client/css/jquery.mCustomScrollbar.css @@ -0,0 +1,1273 @@ +/* +== malihu jquery custom scrollbar plugin == +Plugin URI: http://manos.malihu.gr/jquery-custom-content-scroller +*/ + + + +/* +CONTENTS: + 1. BASIC STYLE - Plugin's basic/essential CSS properties (normally, should not be edited). + 2. VERTICAL SCROLLBAR - Positioning and dimensions of vertical scrollbar. + 3. HORIZONTAL SCROLLBAR - Positioning and dimensions of horizontal scrollbar. + 4. VERTICAL AND HORIZONTAL SCROLLBARS - Positioning and dimensions of 2-axis scrollbars. + 5. TRANSITIONS - CSS3 transitions for hover events, auto-expanded and auto-hidden scrollbars. + 6. SCROLLBAR COLORS, OPACITY AND BACKGROUNDS + 6.1 THEMES - Scrollbar colors, opacity, dimensions, backgrounds etc. via ready-to-use themes. +*/ + + + + +/* +------------------------------------------------------------------------------------------------------------------------ +1. BASIC STYLE +------------------------------------------------------------------------------------------------------------------------ +*/ + + .mCustomScrollbar{ -ms-touch-action: none; touch-action: none; /* MSPointer events - direct all pointer events to js */ } + .mCustomScrollbar.mCS_no_scrollbar{ -ms-touch-action: auto; touch-action: auto; } + + .mCustomScrollBox{ /* contains plugin's markup */ + position: relative; + overflow: hidden; + height: 100%; + max-width: 100%; + outline: none; + direction: ltr; + } + + .mCSB_container{ /* contains the original content */ + overflow: hidden; + width: auto; + height: auto; + } + + + +/* +------------------------------------------------------------------------------------------------------------------------ +2. VERTICAL SCROLLBAR +y-axis +------------------------------------------------------------------------------------------------------------------------ +*/ + + .mCSB_inside > .mCSB_container{ margin-right: 30px; } + + .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{ margin-right: 0; } /* non-visible scrollbar */ + + .mCS-dir-rtl > .mCSB_inside > .mCSB_container{ /* RTL direction/left-side scrollbar */ + margin-right: 0; + margin-left: 30px; + } + + .mCS-dir-rtl > .mCSB_inside > .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{ margin-left: 0; } /* RTL direction/left-side scrollbar */ + + .mCSB_scrollTools{ /* contains scrollbar markup (draggable element, dragger rail, buttons etc.) */ + position: absolute; + width: 16px; + height: auto; + left: auto; + top: 0; + right: 0; + bottom: 0; + } + + .mCSB_outside + .mCSB_scrollTools{ right: -26px; } /* scrollbar position: outside */ + + .mCS-dir-rtl > .mCSB_inside > .mCSB_scrollTools, + .mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools{ /* RTL direction/left-side scrollbar */ + right: auto; + left: 0; + } + + .mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools{ left: -26px; } /* RTL direction/left-side scrollbar (scrollbar position: outside) */ + + .mCSB_scrollTools .mCSB_draggerContainer{ /* contains the draggable element and dragger rail markup */ + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + height: auto; + } + + .mCSB_scrollTools a + .mCSB_draggerContainer{ margin: 20px 0; } + + .mCSB_scrollTools .mCSB_draggerRail{ + width: 2px; + height: 100%; + margin: 0 auto; + -webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px; + } + + .mCSB_scrollTools .mCSB_dragger{ /* the draggable element */ + cursor: pointer; + width: 100%; + height: 30px; /* minimum dragger height */ + z-index: 1; + } + + .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ /* the dragger element */ + position: relative; + width: 4px; + height: 100%; + margin: 0 auto; + -webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px; + text-align: center; + } + + .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, + .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{ width: 12px; /* auto-expanded scrollbar */ } + + .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, + .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ width: 8px; /* auto-expanded scrollbar */ } + + .mCSB_scrollTools .mCSB_buttonUp, + .mCSB_scrollTools .mCSB_buttonDown{ + display: block; + position: absolute; + height: 20px; + width: 100%; + overflow: hidden; + margin: 0 auto; + cursor: pointer; + } + + .mCSB_scrollTools .mCSB_buttonDown{ bottom: 0; } + + + +/* +------------------------------------------------------------------------------------------------------------------------ +3. HORIZONTAL SCROLLBAR +x-axis +------------------------------------------------------------------------------------------------------------------------ +*/ + + .mCSB_horizontal.mCSB_inside > .mCSB_container{ + margin-right: 0; + margin-bottom: 30px; + } + + .mCSB_horizontal.mCSB_outside > .mCSB_container{ min-height: 100%; } + + .mCSB_horizontal > .mCSB_container.mCS_no_scrollbar_x.mCS_x_hidden{ margin-bottom: 0; } /* non-visible scrollbar */ + + .mCSB_scrollTools.mCSB_scrollTools_horizontal{ + width: auto; + height: 16px; + top: auto; + right: 0; + bottom: 0; + left: 0; + } + + .mCustomScrollBox + .mCSB_scrollTools.mCSB_scrollTools_horizontal, + .mCustomScrollBox + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal{ bottom: -26px; } /* scrollbar position: outside */ + + .mCSB_scrollTools.mCSB_scrollTools_horizontal a + .mCSB_draggerContainer{ margin: 0 20px; } + + .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_draggerRail{ + width: 100%; + height: 2px; + margin: 7px 0; + } + + .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger{ + width: 30px; /* minimum dragger width */ + height: 100%; + left: 0; + } + + .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ + width: 100%; + height: 4px; + margin: 6px auto; + } + + .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, + .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{ + height: 12px; /* auto-expanded scrollbar */ + margin: 2px auto; + } + + .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, + .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ + height: 8px; /* auto-expanded scrollbar */ + margin: 4px 0; + } + + .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft, + .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight{ + display: block; + position: absolute; + width: 20px; + height: 100%; + overflow: hidden; + margin: 0 auto; + cursor: pointer; + } + + .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft{ left: 0; } + + .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight{ right: 0; } + + + +/* +------------------------------------------------------------------------------------------------------------------------ +4. VERTICAL AND HORIZONTAL SCROLLBARS +yx-axis +------------------------------------------------------------------------------------------------------------------------ +*/ + + .mCSB_container_wrapper{ + position: absolute; + height: auto; + width: auto; + overflow: hidden; + top: 0; + left: 0; + right: 0; + bottom: 0; + margin-right: 30px; + margin-bottom: 30px; + } + + .mCSB_container_wrapper > .mCSB_container{ + padding-right: 30px; + padding-bottom: 30px; + } + + .mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_vertical{ bottom: 20px; } + + .mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_horizontal{ right: 20px; } + + /* non-visible horizontal scrollbar */ + .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden + .mCSB_scrollTools.mCSB_scrollTools_vertical{ bottom: 0; } + + /* non-visible vertical scrollbar/RTL direction/left-side scrollbar */ + .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal, + .mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal{ right: 0; } + + /* RTL direction/left-side scrollbar */ + .mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal{ left: 20px; } + + /* non-visible scrollbar/RTL direction/left-side scrollbar */ + .mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal{ left: 0; } + + .mCS-dir-rtl > .mCSB_inside > .mCSB_container_wrapper{ /* RTL direction/left-side scrollbar */ + margin-right: 0; + margin-left: 30px; + } + + .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden > .mCSB_container{ + padding-right: 0; + -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; + } + + .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden > .mCSB_container{ + padding-bottom: 0; + -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; + } + + .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden{ + margin-right: 0; /* non-visible scrollbar */ + margin-left: 0; + } + + /* non-visible horizontal scrollbar */ + .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden{ margin-bottom: 0; } + + + +/* +------------------------------------------------------------------------------------------------------------------------ +5. TRANSITIONS +------------------------------------------------------------------------------------------------------------------------ +*/ + + .mCSB_scrollTools, + .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCSB_scrollTools .mCSB_buttonUp, + .mCSB_scrollTools .mCSB_buttonDown, + .mCSB_scrollTools .mCSB_buttonLeft, + .mCSB_scrollTools .mCSB_buttonRight{ + -webkit-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; + -moz-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; + -o-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; + transition: opacity .2s ease-in-out, background-color .2s ease-in-out; + } + + .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar, /* auto-expanded scrollbar */ + .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail, + .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar, + .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail{ + -webkit-transition: width .2s ease-out .2s, height .2s ease-out .2s, + margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, + margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, + opacity .2s ease-in-out, background-color .2s ease-in-out; + -moz-transition: width .2s ease-out .2s, height .2s ease-out .2s, + margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, + margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, + opacity .2s ease-in-out, background-color .2s ease-in-out; + -o-transition: width .2s ease-out .2s, height .2s ease-out .2s, + margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, + margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, + opacity .2s ease-in-out, background-color .2s ease-in-out; + transition: width .2s ease-out .2s, height .2s ease-out .2s, + margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, + margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, + opacity .2s ease-in-out, background-color .2s ease-in-out; + } + + + +/* +------------------------------------------------------------------------------------------------------------------------ +6. SCROLLBAR COLORS, OPACITY AND BACKGROUNDS +------------------------------------------------------------------------------------------------------------------------ +*/ + + /* + ---------------------------------------- + 6.1 THEMES + ---------------------------------------- + */ + + /* default theme ("light") */ + + .mCSB_scrollTools{ opacity: 0.75; filter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; } + + .mCS-autoHide > .mCustomScrollBox > .mCSB_scrollTools, + .mCS-autoHide > .mCustomScrollBox ~ .mCSB_scrollTools{ opacity: 0; filter: "alpha(opacity=0)"; -ms-filter: "alpha(opacity=0)"; } + + .mCustomScrollbar > .mCustomScrollBox > .mCSB_scrollTools.mCSB_scrollTools_onDrag, + .mCustomScrollbar > .mCustomScrollBox ~ .mCSB_scrollTools.mCSB_scrollTools_onDrag, + .mCustomScrollBox:hover > .mCSB_scrollTools, + .mCustomScrollBox:hover ~ .mCSB_scrollTools, + .mCS-autoHide:hover > .mCustomScrollBox > .mCSB_scrollTools, + .mCS-autoHide:hover > .mCustomScrollBox ~ .mCSB_scrollTools{ opacity: 1; filter: "alpha(opacity=100)"; -ms-filter: "alpha(opacity=100)"; } + + .mCSB_scrollTools .mCSB_draggerRail{ + background-color: #000; background-color: rgba(0,0,0,0.4); + filter: "alpha(opacity=40)"; -ms-filter: "alpha(opacity=40)"; + } + + .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ + background-color: #fff; background-color: rgba(255,255,255,0.75); + filter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; + } + + .mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ + background-color: #fff; background-color: rgba(255,255,255,0.85); + filter: "alpha(opacity=85)"; -ms-filter: "alpha(opacity=85)"; + } + .mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ + background-color: #fff; background-color: rgba(255,255,255,0.9); + filter: "alpha(opacity=90)"; -ms-filter: "alpha(opacity=90)"; + } + + .mCSB_scrollTools .mCSB_buttonUp, + .mCSB_scrollTools .mCSB_buttonDown, + .mCSB_scrollTools .mCSB_buttonLeft, + .mCSB_scrollTools .mCSB_buttonRight{ + background-image: url(mCSB_buttons.png); /* css sprites */ + background-repeat: no-repeat; + opacity: 0.4; filter: "alpha(opacity=40)"; -ms-filter: "alpha(opacity=40)"; + } + + .mCSB_scrollTools .mCSB_buttonUp{ + background-position: 0 0; + /* + sprites locations + light: 0 0, -16px 0, -32px 0, -48px 0, 0 -72px, -16px -72px, -32px -72px + dark: -80px 0, -96px 0, -112px 0, -128px 0, -80px -72px, -96px -72px, -112px -72px + */ + } + + .mCSB_scrollTools .mCSB_buttonDown{ + background-position: 0 -20px; + /* + sprites locations + light: 0 -20px, -16px -20px, -32px -20px, -48px -20px, 0 -92px, -16px -92px, -32px -92px + dark: -80px -20px, -96px -20px, -112px -20px, -128px -20px, -80px -92px, -96px -92px, -112 -92px + */ + } + + .mCSB_scrollTools .mCSB_buttonLeft{ + background-position: 0 -40px; + /* + sprites locations + light: 0 -40px, -20px -40px, -40px -40px, -60px -40px, 0 -112px, -20px -112px, -40px -112px + dark: -80px -40px, -100px -40px, -120px -40px, -140px -40px, -80px -112px, -100px -112px, -120px -112px + */ + } + + .mCSB_scrollTools .mCSB_buttonRight{ + background-position: 0 -56px; + /* + sprites locations + light: 0 -56px, -20px -56px, -40px -56px, -60px -56px, 0 -128px, -20px -128px, -40px -128px + dark: -80px -56px, -100px -56px, -120px -56px, -140px -56px, -80px -128px, -100px -128px, -120px -128px + */ + } + + .mCSB_scrollTools .mCSB_buttonUp:hover, + .mCSB_scrollTools .mCSB_buttonDown:hover, + .mCSB_scrollTools .mCSB_buttonLeft:hover, + .mCSB_scrollTools .mCSB_buttonRight:hover{ opacity: 0.75; filter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; } + + .mCSB_scrollTools .mCSB_buttonUp:active, + .mCSB_scrollTools .mCSB_buttonDown:active, + .mCSB_scrollTools .mCSB_buttonLeft:active, + .mCSB_scrollTools .mCSB_buttonRight:active{ opacity: 0.9; filter: "alpha(opacity=90)"; -ms-filter: "alpha(opacity=90)"; } + + + /* theme: "dark" */ + + .mCS-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.15); } + + .mCS-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } + + .mCS-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: rgba(0,0,0,0.85); } + + .mCS-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: rgba(0,0,0,0.9); } + + .mCS-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -80px 0; } + + .mCS-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -80px -20px; } + + .mCS-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -80px -40px; } + + .mCS-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -80px -56px; } + + /* ---------------------------------------- */ + + + + /* theme: "light-2", "dark-2" */ + + .mCS-light-2.mCSB_scrollTools .mCSB_draggerRail, + .mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail{ + width: 4px; + background-color: #fff; background-color: rgba(255,255,255,0.1); + -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; + } + + .mCS-light-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ + width: 4px; + background-color: #fff; background-color: rgba(255,255,255,0.75); + -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; + } + + .mCS-light-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-light-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ + width: 100%; + height: 4px; + margin: 6px auto; + } + + .mCS-light-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); } + + .mCS-light-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-light-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); } + + .mCS-light-2.mCSB_scrollTools .mCSB_buttonUp{ background-position: -32px 0; } + + .mCS-light-2.mCSB_scrollTools .mCSB_buttonDown{ background-position: -32px -20px; } + + .mCS-light-2.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -40px -40px; } + + .mCS-light-2.mCSB_scrollTools .mCSB_buttonRight{ background-position: -40px -56px; } + + + /* theme: "dark-2" */ + + .mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail{ + background-color: #000; background-color: rgba(0,0,0,0.1); + -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; + } + + .mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ + background-color: #000; background-color: rgba(0,0,0,0.75); + -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; + } + + .mCS-dark-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } + + .mCS-dark-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-dark-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } + + .mCS-dark-2.mCSB_scrollTools .mCSB_buttonUp{ background-position: -112px 0; } + + .mCS-dark-2.mCSB_scrollTools .mCSB_buttonDown{ background-position: -112px -20px; } + + .mCS-dark-2.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -120px -40px; } + + .mCS-dark-2.mCSB_scrollTools .mCSB_buttonRight{ background-position: -120px -56px; } + + /* ---------------------------------------- */ + + + + /* theme: "light-thick", "dark-thick" */ + + .mCS-light-thick.mCSB_scrollTools .mCSB_draggerRail, + .mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail{ + width: 4px; + background-color: #fff; background-color: rgba(255,255,255,0.1); + -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; + } + + .mCS-light-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ + width: 6px; + background-color: #fff; background-color: rgba(255,255,255,0.75); + -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; + } + + .mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail{ + width: 100%; + height: 4px; + margin: 6px 0; + } + + .mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ + width: 100%; + height: 6px; + margin: 5px auto; + } + + .mCS-light-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); } + + .mCS-light-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-light-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); } + + .mCS-light-thick.mCSB_scrollTools .mCSB_buttonUp{ background-position: -16px 0; } + + .mCS-light-thick.mCSB_scrollTools .mCSB_buttonDown{ background-position: -16px -20px; } + + .mCS-light-thick.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -20px -40px; } + + .mCS-light-thick.mCSB_scrollTools .mCSB_buttonRight{ background-position: -20px -56px; } + + + /* theme: "dark-thick" */ + + .mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail{ + background-color: #000; background-color: rgba(0,0,0,0.1); + -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; + } + + .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ + background-color: #000; background-color: rgba(0,0,0,0.75); + -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; + } + + .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } + + .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } + + .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonUp{ background-position: -96px 0; } + + .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonDown{ background-position: -96px -20px; } + + .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -100px -40px; } + + .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonRight{ background-position: -100px -56px; } + + /* ---------------------------------------- */ + + + + /* theme: "light-thin", "dark-thin" */ + + .mCS-light-thin.mCSB_scrollTools .mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.1); } + + .mCS-light-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ width: 2px; } + + .mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail{ width: 100%; } + + .mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ + width: 100%; + height: 2px; + margin: 7px auto; + } + + + /* theme "dark-thin" */ + + .mCS-dark-thin.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.15); } + + .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } + + .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } + + .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } + + .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonUp{ background-position: -80px 0; } + + .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonDown{ background-position: -80px -20px; } + + .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -80px -40px; } + + .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonRight{ background-position: -80px -56px; } + + /* ---------------------------------------- */ + + + + /* theme "rounded", "rounded-dark", "rounded-dots", "rounded-dots-dark" */ + + .mCS-rounded.mCSB_scrollTools .mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.15); } + + .mCS-rounded.mCSB_scrollTools .mCSB_dragger, + .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger, + .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger, + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger{ height: 14px; } + + .mCS-rounded.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ + width: 14px; + margin: 0 1px; + } + + .mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger, + .mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger, + .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger, + .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger{ width: 14px; } + + .mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ + height: 14px; + margin: 1px 0; + } + + .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, + .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, + .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, + .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{ + width: 16px; /* auto-expanded scrollbar */ + height: 16px; + margin: -1px 0; + } + + .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, + .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, + .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, + .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ width: 4px; /* auto-expanded scrollbar */ } + + .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, + .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, + .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, + .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{ + height: 16px; /* auto-expanded scrollbar */ + width: 16px; + margin: 0 -1px; + } + + .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, + .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, + .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, + .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ + height: 4px; /* auto-expanded scrollbar */ + margin: 6px 0; + } + + .mCS-rounded.mCSB_scrollTools .mCSB_buttonUp{ background-position: 0 -72px; } + + .mCS-rounded.mCSB_scrollTools .mCSB_buttonDown{ background-position: 0 -92px; } + + .mCS-rounded.mCSB_scrollTools .mCSB_buttonLeft{ background-position: 0 -112px; } + + .mCS-rounded.mCSB_scrollTools .mCSB_buttonRight{ background-position: 0 -128px; } + + + /* theme "rounded-dark", "rounded-dots-dark" */ + + .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } + + .mCS-rounded-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.15); } + + .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } + + .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } + + .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -80px -72px; } + + .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -80px -92px; } + + .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -80px -112px; } + + .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -80px -128px; } + + + /* theme "rounded-dots", "rounded-dots-dark" */ + + .mCS-rounded-dots.mCSB_scrollTools_vertical .mCSB_draggerRail, + .mCS-rounded-dots-dark.mCSB_scrollTools_vertical .mCSB_draggerRail{ width: 4px; } + + .mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail, + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail, + .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail{ + background-color: transparent; + background-position: center; + } + + .mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail, + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail{ + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAANElEQVQYV2NkIAAYiVbw//9/Y6DiM1ANJoyMjGdBbLgJQAX/kU0DKgDLkaQAvxW4HEvQFwCRcxIJK1XznAAAAABJRU5ErkJggg=="); + background-repeat: repeat-y; + opacity: 0.3; + filter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; + } + + .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail{ + height: 4px; + margin: 6px 0; + background-repeat: repeat-x; + } + + .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonUp{ background-position: -16px -72px; } + + .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonDown{ background-position: -16px -92px; } + + .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -20px -112px; } + + .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonRight{ background-position: -20px -128px; } + + + /* theme "rounded-dots-dark" */ + + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail{ + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYV2NkIAAYSVFgDFR8BqrBBEifBbGRTfiPZhpYjiQFBK3A6l6CvgAAE9kGCd1mvgEAAAAASUVORK5CYII="); + } + + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -96px -72px; } + + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -96px -92px; } + + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -100px -112px; } + + .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -100px -128px; } + + /* ---------------------------------------- */ + + + + /* theme "3d", "3d-dark", "3d-thick", "3d-thick-dark" */ + + .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ + background-repeat: repeat-y; + background-image: -moz-linear-gradient(left, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%); + background-image: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0.5)), color-stop(100%,rgba(255,255,255,0))); + background-image: -webkit-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); + background-image: -o-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); + background-image: -ms-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); + background-image: linear-gradient(to right, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); + } + + .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ + background-repeat: repeat-x; + background-image: -moz-linear-gradient(top, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%); + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.5)), color-stop(100%,rgba(255,255,255,0))); + background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); + background-image: -o-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); + background-image: -ms-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); + background-image: linear-gradient(to bottom, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); + } + + + /* theme "3d", "3d-dark" */ + + .mCS-3d.mCSB_scrollTools_vertical .mCSB_dragger, + .mCS-3d-dark.mCSB_scrollTools_vertical .mCSB_dragger{ height: 70px; } + + .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger, + .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger{ width: 70px; } + + .mCS-3d.mCSB_scrollTools, + .mCS-3d-dark.mCSB_scrollTools{ + opacity: 1; + filter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; + } + + .mCS-3d.mCSB_scrollTools .mCSB_draggerRail, + .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail, + .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ -webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px; } + + .mCS-3d.mCSB_scrollTools .mCSB_draggerRail, + .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail{ + width: 8px; + background-color: #000; background-color: rgba(0,0,0,0.2); + box-shadow: inset 1px 0 1px rgba(0,0,0,0.5), inset -1px 0 1px rgba(255,255,255,0.2); + } + + .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, + .mCS-3d.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-3d.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, + .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, + .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #555; } + + .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ width: 8px; } + + .mCS-3d.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail{ + width: 100%; + height: 8px; + margin: 4px 0; + box-shadow: inset 0 1px 1px rgba(0,0,0,0.5), inset 0 -1px 1px rgba(255,255,255,0.2); + } + + .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ + width: 100%; + height: 8px; + margin: 4px auto; + } + + .mCS-3d.mCSB_scrollTools .mCSB_buttonUp{ background-position: -32px -72px; } + + .mCS-3d.mCSB_scrollTools .mCSB_buttonDown{ background-position: -32px -92px; } + + .mCS-3d.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -40px -112px; } + + .mCS-3d.mCSB_scrollTools .mCSB_buttonRight{ background-position: -40px -128px; } + + + /* theme "3d-dark" */ + + .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail{ + background-color: #000; background-color: rgba(0,0,0,0.1); + box-shadow: inset 1px 0 1px rgba(0,0,0,0.1); + } + + .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail{ box-shadow: inset 0 1px 1px rgba(0,0,0,0.1); } + + .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -112px -72px; } + + .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -112px -92px; } + + .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -120px -112px; } + + .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -120px -128px; } + + /* ---------------------------------------- */ + + + + /* theme: "3d-thick", "3d-thick-dark" */ + + .mCS-3d-thick.mCSB_scrollTools, + .mCS-3d-thick-dark.mCSB_scrollTools{ + opacity: 1; + filter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; + } + + .mCS-3d-thick.mCSB_scrollTools, + .mCS-3d-thick-dark.mCSB_scrollTools, + .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer, + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer{ -webkit-border-radius: 7px; -moz-border-radius: 7px; border-radius: 7px; } + + .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } + + .mCSB_inside + .mCS-3d-thick.mCSB_scrollTools_vertical, + .mCSB_inside + .mCS-3d-thick-dark.mCSB_scrollTools_vertical{ right: 1px; } + + .mCS-3d-thick.mCSB_scrollTools_vertical, + .mCS-3d-thick-dark.mCSB_scrollTools_vertical{ box-shadow: inset 1px 0 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.5); } + + .mCS-3d-thick.mCSB_scrollTools_horizontal, + .mCS-3d-thick-dark.mCSB_scrollTools_horizontal{ + bottom: 1px; + box-shadow: inset 0 1px 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.5); + } + + .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ + box-shadow: inset 1px 0 0 rgba(255,255,255,0.4); + width: 12px; + margin: 2px; + position: absolute; + height: auto; + top: 0; + bottom: 0; + left: 0; + right: 0; + } + + .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); } + + .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, + .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #555; } + + .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ + height: 12px; + width: auto; + } + + .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer{ + background-color: #000; background-color: rgba(0,0,0,0.05); + box-shadow: inset 1px 1px 16px rgba(0,0,0,0.1); + } + + .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerRail{ background-color: transparent; } + + .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonUp{ background-position: -32px -72px; } + + .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonDown{ background-position: -32px -92px; } + + .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -40px -112px; } + + .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonRight{ background-position: -40px -128px; } + + + /* theme: "3d-thick-dark" */ + + .mCS-3d-thick-dark.mCSB_scrollTools{ box-shadow: inset 0 0 14px rgba(0,0,0,0.2); } + + .mCS-3d-thick-dark.mCSB_scrollTools_horizontal{ box-shadow: inset 0 1px 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.2); } + + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ box-shadow: inset 1px 0 0 rgba(255,255,255,0.4), inset -1px 0 0 rgba(0,0,0,0.2); } + + .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.2); } + + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #777; } + + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer{ + background-color: #fff; background-color: rgba(0,0,0,0.05); + box-shadow: inset 1px 1px 16px rgba(0,0,0,0.1); + } + + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: transparent; } + + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -112px -72px; } + + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -112px -92px; } + + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -120px -112px; } + + .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -120px -128px; } + + /* ---------------------------------------- */ + + + + /* theme: "minimal", "minimal-dark" */ + + .mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical, + .mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical{ + right: 0; + margin: 12px 0; + } + + .mCustomScrollBox.mCS-minimal + .mCSB_scrollTools.mCSB_scrollTools_horizontal, + .mCustomScrollBox.mCS-minimal + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal, + .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools.mCSB_scrollTools_horizontal, + .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal{ + bottom: 0; + margin: 0 12px; + } + + /* RTL direction/left-side scrollbar */ + .mCS-dir-rtl > .mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical, + .mCS-dir-rtl > .mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical{ + left: 0; + right: auto; + } + + .mCS-minimal.mCSB_scrollTools .mCSB_draggerRail, + .mCS-minimal-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: transparent; } + + .mCS-minimal.mCSB_scrollTools_vertical .mCSB_dragger, + .mCS-minimal-dark.mCSB_scrollTools_vertical .mCSB_dragger{ height: 50px; } + + .mCS-minimal.mCSB_scrollTools_horizontal .mCSB_dragger, + .mCS-minimal-dark.mCSB_scrollTools_horizontal .mCSB_dragger{ width: 50px; } + + .mCS-minimal.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ + background-color: #fff; background-color: rgba(255,255,255,0.2); + filter: "alpha(opacity=20)"; -ms-filter: "alpha(opacity=20)"; + } + + .mCS-minimal.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-minimal.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ + background-color: #fff; background-color: rgba(255,255,255,0.5); + filter: "alpha(opacity=50)"; -ms-filter: "alpha(opacity=50)"; + } + + + /* theme: "minimal-dark" */ + + .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ + background-color: #000; background-color: rgba(0,0,0,0.2); + filter: "alpha(opacity=20)"; -ms-filter: "alpha(opacity=20)"; + } + + .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ + background-color: #000; background-color: rgba(0,0,0,0.5); + filter: "alpha(opacity=50)"; -ms-filter: "alpha(opacity=50)"; + } + + /* ---------------------------------------- */ + + + + /* theme "light-3", "dark-3" */ + + .mCS-light-3.mCSB_scrollTools .mCSB_draggerRail, + .mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail{ + width: 6px; + background-color: #000; background-color: rgba(0,0,0,0.2); + } + + .mCS-light-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ width: 6px; } + + .mCS-light-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-light-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_draggerRail{ + width: 100%; + height: 6px; + margin: 5px 0; + } + + .mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, + .mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, + .mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, + .mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ + width: 12px; + } + + .mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, + .mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, + .mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, + .mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ + height: 12px; + margin: 2px 0; + } + + .mCS-light-3.mCSB_scrollTools .mCSB_buttonUp{ background-position: -32px -72px; } + + .mCS-light-3.mCSB_scrollTools .mCSB_buttonDown{ background-position: -32px -92px; } + + .mCS-light-3.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -40px -112px; } + + .mCS-light-3.mCSB_scrollTools .mCSB_buttonRight{ background-position: -40px -128px; } + + + /* theme "dark-3" */ + + .mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } + + .mCS-dark-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } + + .mCS-dark-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-dark-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } + + .mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.1); } + + .mCS-dark-3.mCSB_scrollTools .mCSB_buttonUp{ background-position: -112px -72px; } + + .mCS-dark-3.mCSB_scrollTools .mCSB_buttonDown{ background-position: -112px -92px; } + + .mCS-dark-3.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -120px -112px; } + + .mCS-dark-3.mCSB_scrollTools .mCSB_buttonRight{ background-position: -120px -128px; } + + /* ---------------------------------------- */ + + + + /* theme "inset", "inset-dark", "inset-2", "inset-2-dark", "inset-3", "inset-3-dark" */ + + .mCS-inset.mCSB_scrollTools .mCSB_draggerRail, + .mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail, + .mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, + .mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail{ + width: 12px; + background-color: #000; background-color: rgba(0,0,0,0.2); + } + + .mCS-inset.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ + width: 6px; + margin: 3px 5px; + position: absolute; + height: auto; + top: 0; + bottom: 0; + left: 0; + right: 0; + } + + .mCS-inset.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ + height: 6px; + margin: 5px 3px; + position: absolute; + width: auto; + top: 0; + bottom: 0; + left: 0; + right: 0; + } + + .mCS-inset.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, + .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail{ + width: 100%; + height: 12px; + margin: 2px 0; + } + + .mCS-inset.mCSB_scrollTools .mCSB_buttonUp, + .mCS-inset-2.mCSB_scrollTools .mCSB_buttonUp, + .mCS-inset-3.mCSB_scrollTools .mCSB_buttonUp{ background-position: -32px -72px; } + + .mCS-inset.mCSB_scrollTools .mCSB_buttonDown, + .mCS-inset-2.mCSB_scrollTools .mCSB_buttonDown, + .mCS-inset-3.mCSB_scrollTools .mCSB_buttonDown{ background-position: -32px -92px; } + + .mCS-inset.mCSB_scrollTools .mCSB_buttonLeft, + .mCS-inset-2.mCSB_scrollTools .mCSB_buttonLeft, + .mCS-inset-3.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -40px -112px; } + + .mCS-inset.mCSB_scrollTools .mCSB_buttonRight, + .mCS-inset-2.mCSB_scrollTools .mCSB_buttonRight, + .mCS-inset-3.mCSB_scrollTools .mCSB_buttonRight{ background-position: -40px -128px; } + + + /* theme "inset-dark", "inset-2-dark", "inset-3-dark" */ + + .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } + + .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } + + .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } + + .mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.1); } + + .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonUp, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonUp, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -112px -72px; } + + .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonDown, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonDown, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -112px -92px; } + + .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonLeft, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonLeft, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -120px -112px; } + + .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonRight, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonRight, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -120px -128px; } + + + /* theme "inset-2", "inset-2-dark" */ + + .mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail, + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail{ + background-color: transparent; + border-width: 1px; + border-style: solid; + border-color: #fff; + border-color: rgba(255,255,255,0.2); + -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; + } + + .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail{ border-color: #000; border-color: rgba(0,0,0,0.2); } + + + /* theme "inset-3", "inset-3-dark" */ + + .mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.6); } + + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.6); } + + .mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } + + .mCS-inset-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } + + .mCS-inset-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-inset-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } + + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.75); } + + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); } + + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, + .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); } + + /* ---------------------------------------- */ diff --git a/static/client/css/jquery.mCustomScrollbar.min.css b/static/client/css/jquery.mCustomScrollbar.min.css new file mode 100644 index 00000000..34fbece6 --- /dev/null +++ b/static/client/css/jquery.mCustomScrollbar.min.css @@ -0,0 +1,1313 @@ +.mCustomScrollbar { + -ms-touch-action: none; + touch-action: none +} + +.mCustomScrollbar.mCS_no_scrollbar { + -ms-touch-action: auto; + touch-action: auto +} + +.mCustomScrollBox { + position: relative; + + height: 100%; + max-width: 100%; + outline: 0; + direction: ltr +} + +.mCSB_container { + width: auto; + height: auto +} + +.mCSB_inside > .mCSB_container { + margin-right: 30px +} + +.mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden { + margin-right: 0 +} + +.mCS-dir-rtl > .mCSB_inside > .mCSB_container { + margin-right: 0; + margin-left: 30px +} + +.mCS-dir-rtl > .mCSB_inside > .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden { + margin-left: 0 +} + +.mCSB_scrollTools { + position: absolute; + width: 16px; + height: auto; + left: auto; + top: 0; + right: 0; + bottom: 0 +} + +.mCSB_outside + .mCSB_scrollTools { + right: -26px +} + +.mCS-dir-rtl > .mCSB_inside > .mCSB_scrollTools, .mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools { + right: auto; + left: 0 +} + +.mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools { + left: -26px +} + +.mCSB_scrollTools .mCSB_draggerContainer { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + height: auto +} + +.mCSB_scrollTools a + .mCSB_draggerContainer { + margin: 20px 0 +} + +.mCSB_scrollTools .mCSB_draggerRail { + width: 2px; + height: 100%; + margin: 0 auto; + -webkit-border-radius: 16px; + -moz-border-radius: 16px; + border-radius: 16px +} + +.mCSB_scrollTools .mCSB_dragger { + cursor: pointer; + width: 100%; + height: 30px; + z-index: 1 +} + +.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + position: relative; + width: 4px; + height: 100%; + margin: 0 auto; + -webkit-border-radius: 16px; + -moz-border-radius: 16px; + border-radius: 16px; + text-align: center +} + +.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar { + width: 12px +} + +.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + width: 8px +} + +.mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_buttonDown { + display: block; + position: absolute; + height: 20px; + width: 100%; + overflow: hidden; + margin: 0 auto; + cursor: pointer +} + +.mCSB_scrollTools .mCSB_buttonDown { + bottom: 0 +} + +.mCSB_horizontal.mCSB_inside > .mCSB_container { + margin-right: 0; + margin-bottom: 30px +} + +.mCSB_horizontal.mCSB_outside > .mCSB_container { + min-height: 100% +} + +.mCSB_horizontal > .mCSB_container.mCS_no_scrollbar_x.mCS_x_hidden { + margin-bottom: 0 +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal { + width: auto; + height: 16px; + top: auto; + right: 0; + bottom: 0; + left: 0 +} + +.mCustomScrollBox + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal { + bottom: -26px +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal a + .mCSB_draggerContainer { + margin: 0 20px +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100%; + height: 2px; + margin: 7px 0 +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger { + width: 30px; + height: 100%; + left: 0 +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + width: 100%; + height: 4px; + margin: 6px auto +} + +.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar { + height: 12px; + margin: 2px auto +} + +.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + height: 8px; + margin: 4px 0 +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft, .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight { + display: block; + position: absolute; + width: 20px; + height: 100%; + overflow: hidden; + margin: 0 auto; + cursor: pointer +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft { + left: 0 +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight { + right: 0 +} + +.mCSB_container_wrapper { + position: absolute; + height: auto; + width: auto; + overflow: hidden; + top: 0; + left: 0; + right: 0; + bottom: 0; + margin-right: 30px; + margin-bottom: 30px +} + +.mCSB_container_wrapper > .mCSB_container { + padding-right: 30px; + padding-bottom: 30px +} + +.mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_vertical { + bottom: 20px +} + +.mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_horizontal { + right: 20px +} + +.mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden + .mCSB_scrollTools.mCSB_scrollTools_vertical { + bottom: 0 +} + +.mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal { + right: 0 +} + +.mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal { + left: 20px +} + +.mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal { + left: 0 +} + +.mCS-dir-rtl > .mCSB_inside > .mCSB_container_wrapper { + margin-right: 0; + margin-left: 30px +} + +.mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden > .mCSB_container { + padding-right: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box +} + +.mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden > .mCSB_container { + padding-bottom: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box +} + +.mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden { + margin-right: 0; + margin-left: 0 +} + +.mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden { + margin-bottom: 0 +} + +.mCSB_scrollTools, .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight { + -webkit-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; + -moz-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; + -o-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; + transition: opacity .2s ease-in-out, background-color .2s ease-in-out +} + +.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail { + -webkit-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out; + -moz-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out; + -o-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out; + transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out +} + +.mCSB_scrollTools { + opacity: .75; + filter: "alpha(opacity=75)"; + -ms-filter: "alpha(opacity=75)" +} + +.mCS-autoHide > .mCustomScrollBox > .mCSB_scrollTools, .mCS-autoHide > .mCustomScrollBox ~ .mCSB_scrollTools { + opacity: 0; + filter: "alpha(opacity=0)"; + -ms-filter: "alpha(opacity=0)" +} + +.mCustomScrollbar > .mCustomScrollBox > .mCSB_scrollTools.mCSB_scrollTools_onDrag, .mCustomScrollbar > .mCustomScrollBox ~ .mCSB_scrollTools.mCSB_scrollTools_onDrag, .mCustomScrollBox:hover > .mCSB_scrollTools, .mCustomScrollBox:hover ~ .mCSB_scrollTools, .mCS-autoHide:hover > .mCustomScrollBox > .mCSB_scrollTools, .mCS-autoHide:hover > .mCustomScrollBox ~ .mCSB_scrollTools { + opacity: 1; + filter: "alpha(opacity=100)"; + -ms-filter: "alpha(opacity=100)" +} + +.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.4); + filter: "alpha(opacity=40)"; + -ms-filter: "alpha(opacity=40)" +} + +.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.75); + filter: "alpha(opacity=75)"; + -ms-filter: "alpha(opacity=75)" +} + +.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.85); + filter: "alpha(opacity=85)"; + -ms-filter: "alpha(opacity=85)" +} + +.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.9); + filter: "alpha(opacity=90)"; + -ms-filter: "alpha(opacity=90)" +} + +.mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight { + background-image: url(mCSB_buttons.png); + background-repeat: no-repeat; + opacity: .4; + filter: "alpha(opacity=40)"; + -ms-filter: "alpha(opacity=40)" +} + +.mCSB_scrollTools .mCSB_buttonUp { + background-position: 0 0 +} + +.mCSB_scrollTools .mCSB_buttonDown { + background-position: 0 -20px +} + +.mCSB_scrollTools .mCSB_buttonLeft { + background-position: 0 -40px +} + +.mCSB_scrollTools .mCSB_buttonRight { + background-position: 0 -56px +} + +.mCSB_scrollTools .mCSB_buttonUp:hover, .mCSB_scrollTools .mCSB_buttonDown:hover, .mCSB_scrollTools .mCSB_buttonLeft:hover, .mCSB_scrollTools .mCSB_buttonRight:hover { + opacity: .75; + filter: "alpha(opacity=75)"; + -ms-filter: "alpha(opacity=75)" +} + +.mCSB_scrollTools .mCSB_buttonUp:active, .mCSB_scrollTools .mCSB_buttonDown:active, .mCSB_scrollTools .mCSB_buttonLeft:active, .mCSB_scrollTools .mCSB_buttonRight:active { + opacity: .9; + filter: "alpha(opacity=90)"; + -ms-filter: "alpha(opacity=90)" +} + +.mCS-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.15) +} + +.mCS-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -80px 0 +} + +.mCS-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -80px -20px +} + +.mCS-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -80px -40px +} + +.mCS-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -80px -56px +} + +.mCS-light-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail { + width: 4px; + background-color: #fff; + background-color: rgba(255, 255, 255, 0.1); + -webkit-border-radius: 1px; + -moz-border-radius: 1px; + border-radius: 1px +} + +.mCS-light-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 4px; + background-color: #fff; + background-color: rgba(255, 255, 255, 0.75); + -webkit-border-radius: 1px; + -moz-border-radius: 1px; + border-radius: 1px +} + +.mCS-light-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-light-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + width: 100%; + height: 4px; + margin: 6px auto +} + +.mCS-light-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.85) +} + +.mCS-light-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-light-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.9) +} + +.mCS-light-2.mCSB_scrollTools .mCSB_buttonUp { + background-position: -32px 0 +} + +.mCS-light-2.mCSB_scrollTools .mCSB_buttonDown { + background-position: -32px -20px +} + +.mCS-light-2.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -40px -40px +} + +.mCS-light-2.mCSB_scrollTools .mCSB_buttonRight { + background-position: -40px -56px +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.1); + -webkit-border-radius: 1px; + -moz-border-radius: 1px; + border-radius: 1px +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75); + -webkit-border-radius: 1px; + -moz-border-radius: 1px; + border-radius: 1px +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_buttonUp { + background-position: -112px 0 +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_buttonDown { + background-position: -112px -20px +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -120px -40px +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_buttonRight { + background-position: -120px -56px +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_draggerRail, .mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail { + width: 4px; + background-color: #fff; + background-color: rgba(255, 255, 255, 0.1); + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 6px; + background-color: #fff; + background-color: rgba(255, 255, 255, 0.75); + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px +} + +.mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100%; + height: 4px; + margin: 6px 0 +} + +.mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + width: 100%; + height: 6px; + margin: 5px auto +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.85) +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-light-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.9) +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_buttonUp { + background-position: -16px 0 +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_buttonDown { + background-position: -16px -20px +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -20px -40px +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_buttonRight { + background-position: -20px -56px +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.1); + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75); + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonUp { + background-position: -96px 0 +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonDown { + background-position: -96px -20px +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -100px -40px +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonRight { + background-position: -100px -56px +} + +.mCS-light-thin.mCSB_scrollTools .mCSB_draggerRail { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.1) +} + +.mCS-light-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 2px +} + +.mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100% +} + +.mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + width: 100%; + height: 2px; + margin: 7px auto +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.15) +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonUp { + background-position: -80px 0 +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonDown { + background-position: -80px -20px +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -80px -40px +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonRight { + background-position: -80px -56px +} + +.mCS-rounded.mCSB_scrollTools .mCSB_draggerRail { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.15) +} + +.mCS-rounded.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger { + height: 14px +} + +.mCS-rounded.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 14px; + margin: 0 1px +} + +.mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger { + width: 14px +} + +.mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + height: 14px; + margin: 1px 0 +} + +.mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar { + width: 16px; + height: 16px; + margin: -1px 0 +} + +.mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + width: 4px +} + +.mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar { + height: 16px; + width: 16px; + margin: 0 -1px +} + +.mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + height: 4px; + margin: 6px 0 +} + +.mCS-rounded.mCSB_scrollTools .mCSB_buttonUp { + background-position: 0 -72px +} + +.mCS-rounded.mCSB_scrollTools .mCSB_buttonDown { + background-position: 0 -92px +} + +.mCS-rounded.mCSB_scrollTools .mCSB_buttonLeft { + background-position: 0 -112px +} + +.mCS-rounded.mCSB_scrollTools .mCSB_buttonRight { + background-position: 0 -128px +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.15) +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -80px -72px +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -80px -92px +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -80px -112px +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -80px -128px +} + +.mCS-rounded-dots.mCSB_scrollTools_vertical .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools_vertical .mCSB_draggerRail { + width: 4px +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail { + background-color: transparent; + background-position: center +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAANElEQVQYV2NkIAAYiVbw//9/Y6DiM1ANJoyMjGdBbLgJQAX/kU0DKgDLkaQAvxW4HEvQFwCRcxIJK1XznAAAAABJRU5ErkJggg=="); + background-repeat: repeat-y; + opacity: .3; + filter: "alpha(opacity=30)"; + -ms-filter: "alpha(opacity=30)" +} + +.mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail { + height: 4px; + margin: 6px 0; + background-repeat: repeat-x +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonUp { + background-position: -16px -72px +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonDown { + background-position: -16px -92px +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -20px -112px +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonRight { + background-position: -20px -128px +} + +.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYV2NkIAAYSVFgDFR8BqrBBEifBbGRTfiPZhpYjiQFBK3A6l6CvgAAE9kGCd1mvgEAAAAASUVORK5CYII=") +} + +.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -96px -72px +} + +.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -96px -92px +} + +.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -100px -112px +} + +.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -100px -128px +} + +.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-repeat: repeat-y; + background-image: -moz-linear-gradient(left, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -webkit-gradient(linear, left top, right top, color-stop(0, rgba(255, 255, 255, 0.5)), color-stop(100%, rgba(255, 255, 255, 0))); + background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -o-linear-gradient(left, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -ms-linear-gradient(left, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: linear-gradient(to right, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%) +} + +.mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + background-repeat: repeat-x; + background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255, 255, 255, 0.5)), color-stop(100%, rgba(255, 255, 255, 0))); + background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%) +} + +.mCS-3d.mCSB_scrollTools_vertical .mCSB_dragger, .mCS-3d-dark.mCSB_scrollTools_vertical .mCSB_dragger { + height: 70px +} + +.mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger { + width: 70px +} + +.mCS-3d.mCSB_scrollTools, .mCS-3d-dark.mCSB_scrollTools { + opacity: 1; + filter: "alpha(opacity=30)"; + -ms-filter: "alpha(opacity=30)" +} + +.mCS-3d.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + -webkit-border-radius: 16px; + -moz-border-radius: 16px; + border-radius: 16px +} + +.mCS-3d.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail { + width: 8px; + background-color: #000; + background-color: rgba(0, 0, 0, 0.2); + box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.5), inset -1px 0 1px rgba(255, 255, 255, 0.2) +} + +.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #555 +} + +.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 8px +} + +.mCS-3d.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100%; + height: 8px; + margin: 4px 0; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5), inset 0 -1px 1px rgba(255, 255, 255, 0.2) +} + +.mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + width: 100%; + height: 8px; + margin: 4px auto +} + +.mCS-3d.mCSB_scrollTools .mCSB_buttonUp { + background-position: -32px -72px +} + +.mCS-3d.mCSB_scrollTools .mCSB_buttonDown { + background-position: -32px -92px +} + +.mCS-3d.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -40px -112px +} + +.mCS-3d.mCSB_scrollTools .mCSB_buttonRight { + background-position: -40px -128px +} + +.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.1); + box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.1) +} + +.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail { + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1) +} + +.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -112px -72px +} + +.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -112px -92px +} + +.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -120px -112px +} + +.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -120px -128px +} + +.mCS-3d-thick.mCSB_scrollTools, .mCS-3d-thick-dark.mCSB_scrollTools { + opacity: 1; + filter: "alpha(opacity=30)"; + -ms-filter: "alpha(opacity=30)" +} + +.mCS-3d-thick.mCSB_scrollTools, .mCS-3d-thick-dark.mCSB_scrollTools, .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer { + -webkit-border-radius: 7px; + -moz-border-radius: 7px; + border-radius: 7px +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px +} + +.mCSB_inside + .mCS-3d-thick.mCSB_scrollTools_vertical, .mCSB_inside + .mCS-3d-thick-dark.mCSB_scrollTools_vertical { + right: 1px +} + +.mCS-3d-thick.mCSB_scrollTools_vertical, .mCS-3d-thick-dark.mCSB_scrollTools_vertical { + box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.1), inset 0 0 14px rgba(0, 0, 0, 0.5) +} + +.mCS-3d-thick.mCSB_scrollTools_horizontal, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal { + bottom: 1px; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 0 14px rgba(0, 0, 0, 0.5) +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.4); + width: 12px; + margin: 2px; + position: absolute; + height: auto; + top: 0; + bottom: 0; + left: 0; + right: 0 +} + +.mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4) +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #555 +} + +.mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + height: 12px; + width: auto +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer { + background-color: #000; + background-color: rgba(0, 0, 0, 0.05); + box-shadow: inset 1px 1px 16px rgba(0, 0, 0, 0.1) +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_draggerRail { + background-color: transparent +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonUp { + background-position: -32px -72px +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonDown { + background-position: -32px -92px +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -40px -112px +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonRight { + background-position: -40px -128px +} + +.mCS-3d-thick-dark.mCSB_scrollTools { + box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.2) +} + +.mCS-3d-thick-dark.mCSB_scrollTools_horizontal { + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 0 14px rgba(0, 0, 0, 0.2) +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.4), inset -1px 0 0 rgba(0, 0, 0, 0.2) +} + +.mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2) +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #777 +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer { + background-color: #fff; + background-color: rgba(0, 0, 0, 0.05); + box-shadow: inset 1px 1px 16px rgba(0, 0, 0, 0.1) +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: transparent +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -112px -72px +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -112px -92px +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -120px -112px +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -120px -128px +} + +.mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical, .mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical { + right: 0; + margin: 12px 0 +} + +.mCustomScrollBox.mCS-minimal + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal { + bottom: 0; + margin: 0 12px +} + +.mCS-dir-rtl > .mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical, .mCS-dir-rtl > .mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical { + left: 0; + right: auto +} + +.mCS-minimal.mCSB_scrollTools .mCSB_draggerRail, .mCS-minimal-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: transparent +} + +.mCS-minimal.mCSB_scrollTools_vertical .mCSB_dragger, .mCS-minimal-dark.mCSB_scrollTools_vertical .mCSB_dragger { + height: 50px +} + +.mCS-minimal.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-minimal-dark.mCSB_scrollTools_horizontal .mCSB_dragger { + width: 50px +} + +.mCS-minimal.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.2); + filter: "alpha(opacity=20)"; + -ms-filter: "alpha(opacity=20)" +} + +.mCS-minimal.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-minimal.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.5); + filter: "alpha(opacity=50)"; + -ms-filter: "alpha(opacity=50)" +} + +.mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.2); + filter: "alpha(opacity=20)"; + -ms-filter: "alpha(opacity=20)" +} + +.mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.5); + filter: "alpha(opacity=50)"; + -ms-filter: "alpha(opacity=50)" +} + +.mCS-light-3.mCSB_scrollTools .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail { + width: 6px; + background-color: #000; + background-color: rgba(0, 0, 0, 0.2) +} + +.mCS-light-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 6px +} + +.mCS-light-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-light-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100%; + height: 6px; + margin: 5px 0 +} + +.mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + width: 12px +} + +.mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + height: 12px; + margin: 2px 0 +} + +.mCS-light-3.mCSB_scrollTools .mCSB_buttonUp { + background-position: -32px -72px +} + +.mCS-light-3.mCSB_scrollTools .mCSB_buttonDown { + background-position: -32px -92px +} + +.mCS-light-3.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -40px -112px +} + +.mCS-light-3.mCSB_scrollTools .mCSB_buttonRight { + background-position: -40px -128px +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.1) +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_buttonUp { + background-position: -112px -72px +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_buttonDown { + background-position: -112px -92px +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -120px -112px +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_buttonRight { + background-position: -120px -128px +} + +.mCS-inset.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail { + width: 12px; + background-color: #000; + background-color: rgba(0, 0, 0, 0.2) +} + +.mCS-inset.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 6px; + margin: 3px 5px; + position: absolute; + height: auto; + top: 0; + bottom: 0; + left: 0; + right: 0 +} + +.mCS-inset.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + height: 6px; + margin: 5px 3px; + position: absolute; + width: auto; + top: 0; + bottom: 0; + left: 0; + right: 0 +} + +.mCS-inset.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100%; + height: 12px; + margin: 2px 0 +} + +.mCS-inset.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonUp { + background-position: -32px -72px +} + +.mCS-inset.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonDown { + background-position: -32px -92px +} + +.mCS-inset.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -40px -112px +} + +.mCS-inset.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonRight { + background-position: -40px -128px +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.1) +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -112px -72px +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -112px -92px +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -120px -112px +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -120px -128px +} + +.mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: transparent; + border-width: 1px; + border-style: solid; + border-color: #fff; + border-color: rgba(255, 255, 255, 0.2); + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box +} + +.mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail { + border-color: #000; + border-color: rgba(0, 0, 0, 0.2) +} + +.mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.6) +} + +.mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.6) +} + +.mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-inset-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-inset-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.75) +} + +.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.85) +} + +.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.9) +} \ No newline at end of file diff --git a/static/client/css/main.css b/static/client/css/main.css new file mode 100644 index 00000000..0c56aca3 --- /dev/null +++ b/static/client/css/main.css @@ -0,0 +1,14071 @@ +html, +button, +input, +select, +textarea { + color: #222; +} +body { + font-size: 1em; + line-height: 1.4; +} + +::-moz-selection { + background: #b3d4fc; + text-shadow: none; +} + +::selection { + background: #b3d4fc; + text-shadow: none; +} + +hr { + display: block; + height: 1px; + border: 0; + border-top: 1px solid #ccc; + margin: 1em 0; + padding: 0; +} + +img { + vertical-align: middle; +} + +fieldset { + border: 0; + margin: 0; + padding: 0; +} + +textarea { + resize: vertical; +} + + +.chromeframe { + background: #cc0000; + color: #ffeeee; + padding: 1em; + margin: 0; + font-size: 16px; +} + +.chromeframe a { + color: #ffeeee; +} + +.chromeframe a:hover { + color: #ffffff; +} + +/* ========================================================================== + Fonts + ========================================================================== */ + +@font-face { + font-family: 'dindisplay_pro'; + src: url('../fonts/pfdindisplaypro-med-webfont.eot'); + src: url('../fonts/pfdindisplaypro-med-webfont.eot?#iefix') format('embedded-opentype'), + url('../fonts/pfdindisplaypro-med-webfont.woff') format('woff'), + url('../fonts/pfdindisplaypro-med-webfont.ttf') format('truetype'), + url('../fonts/pfdindisplaypro-med-webfont.svg#pf_dindisplay_promedium') format('svg'); + font-weight: 500; + font-style: normal; + +} + + +@font-face { + font-family: 'dindisplay_pro'; + src: url('../fonts/pfdindisplaypro-thin-webfont.eot'); + src: url('../fonts/pfdindisplaypro-thin-webfont.eot?#iefix') format('embedded-opentype'), + url('../fonts/pfdindisplaypro-thin-webfont.ttf') format('truetype'), + url('../fonts/pfdindisplaypro-thin-webfont.woff') format('woff'); + font-weight: 100; + font-style: normal; + +} + + +@font-face { + font-family: 'dindisplay_pro'; + src: url('../fonts/pfdindisplaypro-light-webfont.eot'); + src: url('../fonts/pfdindisplaypro-light-webfont.eot?#iefix') format('embedded-opentype'), + url('../fonts/pfdindisplaypro-light-webfont.woff') format('woff'), + url('../fonts/pfdindisplaypro-light-webfont.ttf') format('truetype'); + font-weight: 300; + font-style: normal; + +} + + +@font-face { + font-family: 'dindisplay_pro'; + src: url('../fonts/pfdindisplaypro-italic-webfont.eot'); + src: url('../fonts/pfdindisplaypro-italic-webfont.eot?#iefix') format('embedded-opentype'), + url('../fonts/pfdindisplaypro-italic-webfont.woff') format('woff'), + url('../fonts/pfdindisplaypro-italic-webfont.ttf') format('truetype'); + font-weight: normal; + font-style: italic; + +} + + +@font-face { + font-family: 'dindisplay_pro'; + src: url('../fonts/pfdindisplaypro-bold-webfont.eot'); + src: url('../fonts/pfdindisplaypro-bold-webfont.eot?#iefix') format('embedded-opentype'), + url('../fonts/pfdindisplaypro-bold-webfont.ttf') format('truetype'), + url('../fonts/pfdindisplaypro-bold-webfont.woff') format('woff'); + font-weight: bold; + font-style: normal; + +} + + +@font-face { + font-family: 'dindisplay_pro'; + src: url('../fonts/pfdindisplaypro-reg-webfont.eot'); + src: url('../fonts/pfdindisplaypro-reg-webfont.eot?#iefix') format('embedded-opentype'), + url('../fonts/pfdindisplaypro-reg-webfont.woff') format('woff'), + url('../fonts/pfdindisplaypro-reg-webfont.ttf') format('truetype'); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: 'pt_sans'; + src: url('../fonts/pts75f-webfont.eot'); + src: url('../fonts/pts75f-webfont.eot?#iefix') format('embedded-opentype'), + url('../fonts/pts75f-webfont.woff') format('woff'), + url('../fonts/pts75f-webfont.ttf') format('truetype'); + font-weight: bold; + font-style: normal; + +} + +@font-face { + font-family: 'pt_sans'; + src: url('../fonts/pts55f-webfont.eot'); + src: url('../fonts/pts55f-webfont.eot?#iefix') format('embedded-opentype'), + url('../fonts/pts55f-webfont.woff') format('woff'), + url('../fonts/pts55f-webfont.ttf') format('truetype'); + font-weight: normal; + font-style: normal; + +} + + + +/* ========================================================================== + Site's main styles + ========================================================================== */ + +html, +body { + margin: 0; + padding: 0; + height: 100%; + background: #f8f8f6; + color: #464646; + font-family: Arial,'Helvetica Neue', sans-serif; + font-weight: normal; + font-style: normal; + font-size: 13px; + line-height: 18px; + -webkit-font-smoothing: antialiased; +} + +body { + position: relative; + height: auto; + min-width: 1024px; +} + +body.no-scroll { + overflow: hidden; +} + +a { + color: #ff6600; + background: none; + outline: none !important; + -webkit-transition: all .3s; + -o-transition: all .3s; + transition: all .3s; +} + +a:hover { + text-decoration: none; +} + +a[class*="icon-"]:before { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 16px; + height: 16px; + background: url(../img/sprites.png) 0 0 no-repeat; + margin-right: 4px; +} + +a.icon-mail:before { + width: 15px; + height: 12px; + background-position: -223px 0; +} + +a.icon-ext-link:before { + width: 15px; + height: 13px; + background-position: -261px 0; +} + + +hr { + display: block; + border: dotted #cccccc; + border-width: 1px 0 0; + margin: 17px 0; + background: none; + clear: both; +} + +.e-details .item-wrap.event + hr { + margin-top: 5px; +} + + +.rub { + font-style: normal; + text-decoration: none; +} + +.rub:before { + content: '\20CF'; + font-family: "pt_sans", sans-serif; +} + +.rub i { + display: none; +} + + + +.page-wrap { + -moz-box-sizing: border-box; + box-sizing: border-box; + /*width: 100%;*/ + width: 1024px; + max-width: 1310px; + /*padding: 0 80px 0 10px;*/ + padding: 0 7px; + /*overflow: hidden;*/ + margin: 0 auto; +} + +.page-wrap .layout { + padding-left: 13px; +} + +.page-wrap .layout .layout-wrap { + padding-left: 220px; +} + +.page-wrap .layout .layout-wrap:before, +.page-wrap .layout .layout-wrap:after { + content: " "; + display: table; +} + +.page-wrap .layout .layout-wrap:after { + clear: both; +} + +.page-wrap .layout .layout-wrap > * { + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.page-wrap .layout .layout-wrap > aside { + position: relative; + float: left; + /*width: 21%;*/ + width: 220px; + padding-right: 40px; + margin: 0 -100% 0 -220px; +} + +.page-wrap .layout.main-part .layout-wrap > aside { + padding-top: 30px; +} + + +.page-wrap .layout .layout-wrap > aside > .sbg { + width: 200em; + height: 150px; + background: #ff6600 url(../img/search-bg.jpg) 0 0 no-repeat; + position: absolute; + /*left: -230px;*/ + margin-right: 40px; + right: 100%; + top: 0; + border-radius: 4px; +} + + +.page-wrap .layout .layout-wrap .mcl { + /*width: 79%;*/ + width: 100%; + float: right; +} + +.page-wrap .layout.mp-announces .layout-wrap { + padding: 0 257px 0 220px; +} + +.page-wrap .layout.mp-announces .layout-wrap aside { + float: right; + margin-right: -257px; + padding-right: 0; + /*width: 26.9%;*/ + width: 257px; +} + +.page-wrap .layout.mp-announces .layout-wrap .mcl { + float: left; + /*margin: 0 -100% 0 0; + width: 73.1%;*/ + padding-right: 40px; + /*min-width: 0;*/ +} + +.page-wrap > header { + font-family: 'dindisplay_pro', Arial, sans-serif; +} + +.page-wrap .header-wrap { + padding: 5px 0; +} + +.main-page .page-wrap .header-wrap { + padding: 5px 10px 5px 230px; + margin: 0 -10px; + box-shadow: 0 3px 6px -5px rgba(0, 0, 0, .4); +} + +@-moz-document url-prefix() { + .main-page .page-wrap .header-wrap { + box-shadow: 0 3px 5px -5px rgba(0, 0, 0, .3); + } +} + + +.lt-ie9 .main-page .page-wrap .header-wrap { + border-bottom: 1px solid #ddd; +} + + +.page-wrap > header .logo { + /*width: 21%;*/ + width: 220px; + padding: 38px 0 0 0; + float: left; + margin: 0 -100% -0px -220px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.page-wrap > header .logo h1, +.page-wrap > header .logo h2, +.page-wrap > header .logo h3 { + -moz-box-sizing: border-box; + box-sizing: border-box; + /*margin: 0 0 0 -67px;*/ + margin: 0 0 0 -13px; + width: 196px; + padding-left: 67px; + font-family: 'dindisplay_pro', sans-serif; + font-weight: 500; + font-style: normal; + font-size: 13px; + line-height: 13px; +} + +.page-wrap > header .logo a { + text-decoration: none; + color: #a2a2a2; +} + +.page-wrap > header .logo strong { + display: block; + width: 196px; + height: 0; + padding-top: 59px; + overflow: hidden; + background: url(../img/logo.png) 0 0 no-repeat; + margin-left: -67px; +} +.page-wrap > header .logo.beta strong { + background: url(../img/logo_beta.png) 0 0 no-repeat; + width: 225px; + + +} + +.page-wrap > header .logo b { + margin-top: -8px; + display: block; + font-weight: normal; +} + +.page-wrap > header .header-body { + width: 79%; + min-width: 770px; + float: right; +} + + +.header-body .header-top { + -moz-box-sizing: border-box; + box-sizing: border-box; + padding: 5px 10px 1px 25px; + margin: 0 -10px 0 -25px; + font-size: 12px; + line-height: 25px; + text-transform: uppercase; + box-shadow: 0 3px 6px -5px rgba(0, 0, 0, .4); +} + +@-moz-document url-prefix() { + .header-body .header-top { + box-shadow: 0 3px 5px -5px rgba(0, 0, 0, .3); + } +} + +.lt-ie9 .header-body .header-top { + border-bottom: 1px solid #ddd; +} + +.header-body .header-top { + padding-right: 510px; +} + +.header-body .header-top.coordinators { + padding-right: 10px; +} + +.header-body ul { + margin: 0; + padding: 0; + list-style: none; +} + +.header-body .header-top ul li { + display: inline; +} + +/*.header-body .header-top .ht-main { + width: 46%; + float: left; +}*/ + +.header-body .header-top .ht-main { + width: 100%; + float: left; +} + +.header-body .header-top.coordinators .ht-main { + width: auto; +} + + +.header-body .header-top .add-link { + width: 50%; + float: left; +} + +a.l-button { + color: #ff6600; + font-family: 'dindisplay_pro', sans-serif; + font-weight: 500; + font-size: 12px; + line-height: 15px; + text-decoration: none; + display: inline-block; + margin-left: -21px; + padding: 5px; + border: 1px solid transparent; + border-radius: 4px; +} + +a.l-button:hover { + /*border-color: #ff6600;*/ + color: #000; +} + +a.l-button.ico:before { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 11px; + height: 12px; + background: url(../img/sprites.png) 0 0 no-repeat; + margin: -1px 4px 0 0; +} + +.add-link a.l-button.ico:hover:before { + background-position: -63px -145px; +} + +.header-body .header-top ul { + float: left; +} + +.header-body .header-top .lang-switch { + width: 50%; + color: #a2a2a2; +} + +.header-body .header-top.coordinators .lang-switch { + width: auto; +} + +.header-body .header-top .lang-switch li:before { + content: '|'; + margin: -1px 7px 0 3px; +} + +.header-body .header-top .lang-switch li:first-child:before { + content: ''; + margin: 0; + display: none; +} + +.header-body .header-top .lang-switch a { + color: #464646; +} + +.header-body .header-top .lang-switch a:hover { + color: #ff6600; +} + +/*.header-body .header-top .ht-side { + width: 54%; + float: right; +}*/ + +.header-body .header-top .ht-side { + width: 510px; + margin-right: -510px; + float: right; +} + +.header-body .header-top.coordinators .ht-side { + width: auto; + margin-right: 0; +} + +.header-body .header-top .authorisation-links { + float: right; + font-weight: 500; + text-decoration: none; +} + +.header-body .header-top .authorisation-links a { + margin: 0 -6px 0 16px; +} + +.header-body .header-top .authorisation-links a:first-child { + margin-left: 0; +} + +.header-body .header-top .authorisation-links a.register { + color: #000; +} + +.header-body .header-top .authorisation-links a.register:hover { + color: #ff6600; +} + +.header-body .header-top .authorisation-links a.register:before { + background-position: -12px 0; + height: 13px; + margin-top: -2px; +} + +.header-body .header-top .authorisation-links a.register:hover:before { + background-position: -24px 0; +} + +.header-body .header-top .authorisation-links a.login:before { + background-position: -36px 0; + width: 9px; + height: 12px; + margin-top: -2px; +} + +.header-body .header-top .authorisation-links a.login:hover:before { + background-position: -75px -145px; +} + +.cabinet-links { + float: right; + padding-right: 35px; + width: 360px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.coordinators .cabinet-links { + width: auto; +} + +.cabinet-links .cl-body { + width: 100%; + float: left; + background: #ff6600; + color: #fff; + font-family: 'dindisplay_pro', sans-serif; + font-size: 11px; + line-height: 20px; + font-weight: bold; + text-transform: uppercase; + /*height: 20px;*/ + /*padding: 54px 0 0;*/ + /*margin: -50px 0 -10px;*/ + padding-left: 22px; + -webkit-border-bottom-right-radius: 4px; + -webkit-border-bottom-left-radius: 4px; + -moz-border-radius-bottomright: 4px; + -moz-border-radius-bottomleft: 4px; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; + -moz-box-sizing: border-box; + box-sizing: border-box; + height: 44px; + margin-top: -10px; + margin-bottom: -4px; +} + +.cabinet-links .cl-body > div, +.cabinet-links .cl-body > ul { + display: block; + border-left: 1px solid #fff; + float: left; + height: 30px; + margin-top: 14px; + padding-left: 2px; + padding-right: 2px; +} +.cabinet-links .cl-body .clb-messages{ + min-width: 40px; + padding-left: 3px; +} + +.cabinet-links .cl-body > ul { + padding: 0 0 12px; +} + +.cabinet-links .cl-body > ul > li { + display: block; + padding: 0 2px 12px; + margin-bottom: -10px; + border-left: 1px solid #fff; + float: left; +} + +.cabinet-links .cl-body > *:first-child { + border-left: none; +} + +.cabinet-links .cl-body > ul > li:first-child { + border-left: none; +} + +.cabinet-links .cl-body > div.clb-settings { + width: 32px; + float: right; + +} + +.cabinet-links .cl-body > div.clb-docs { + width: 57px; + padding-left: 6px; + float: left; +} + +.cabinet-links .cl-body > div.clb-docs a.cl-btn { + margin-left: -4px; + margin-right: -2px; +} + +.cabinet-links .cl-body a { + color: #fff; + text-decoration: none; + position: relative; + display: inline-block; + height: 30px; + line-height: 30px; + padding: 0 7px; + margin: -6px 0; + border: 1px solid transparent; + border-radius: 4px; +} + +.cabinet-links .cl-body a:hover { + border-color: #fff; +} + +.cabinet-links .cl-body .clb-messages a { + /*width: 38px;*/ + text-align: center; + display: table; + margin-left: auto; + margin-right: auto; +} + +.cabinet-links .cl-body a.cl-btn { + width: 30px; + height: 0; + padding: 30px 0 0; + overflow: hidden; +} + +a.icon-user:before { + content: ''; + display: inline-block; + vertical-align: middle; + width: 11px; + height: 13px; + background: url(../img/sprites.png) -283px -101px no-repeat; + margin: -2px 3px 0 -1px; +} + +a.icon-msg:before { + content: ''; + display: inline-block; + vertical-align: middle; + width: 13px; + height: 12px; + background: url(../img/sprites.png) -268px -88px no-repeat; + margin: -2px 3px 0 -1px; +} + +a.cl-btn:before { + content: ''; + display: block; + width: 13px; + height: 13px; + background: url(../img/sprites.png) -283px -88px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -6px 0 0 -6px; +} + +a.icon-gear:before { + background-position: -268px -101px; +} + +a.icon-cal:before { + height: 15px; + background-position: -60px -17px; + margin-top: -7px; +} + +a.icon-doc:before { + width: 10px; + height: 14px; + background-position: -74px -16px; + margin: -7px 0 0 -5px; +} + +.cabinet-links .logout { + width: 32px; + float: right; + margin: 0 -35px 0 -32px; +} + +.cabinet-links .logout a { + position: relative; + display: block; + width: 30px; + height: 0; + padding-top: 30px; + overflow: hidden; + border: 1px solid transparent; + border-radius: 4px; + margin: -1px 0 -6px; +} + +.cabinet-links .logout a:hover { + border-color: #ff6600; + background: #fff; +} + +.cabinet-links .logout a:before { + content: ''; + display: block; + width: 13px; + height: 12px; + background: url(../img/sprites.png) -283px -88px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -5px 0 0 -5px; +} + + +.soc-media-buttons { + margin: 0; + padding: 0; + list-style: none; +} + +.soc-media-buttons li { + display: inline-block; + line-height: 18px; + margin-left: 2px; +} + +.soc-media-buttons li:first-child { + margin-left: 0; +} + +.header-body .header-top .soc-media-buttons { + width: auto; +} + +.header-body .header-top.coordinators .soc-media-buttons { + margin-right: 10px; +} + +.header-body .header-top .soc-media-buttons li { + line-height: 14px; + margin: 0 5px 0 0; +} + +.header-body .header-top .soc-media-buttons img { + height: 14px; + vertical-align: middle; +} + + +.header-body .hb-wrap { + padding: 22px 470px 22px 0; +} + +.serv-links { + float: left; + width: 100%; +} + +.header-body .hb-wrap ul { + + -moz-box-sizing: border-box; + + box-sizing: border-box; + width: 49.9%; + min-width: 140px; + float: left; + padding-right: 10px; +} + +.header-body .hb-wrap ul li { + margin-top: 3px; +} + +.header-body .hb-wrap ul li:first-child { + margin-top: 0; +} + +.header-body .hb-wrap ul a { + color: #a2a2a2; + text-decoration: none; +} + +.header-body .hb-wrap ul a:hover { + color: #ff6600; + text-decoration: underline; +} + +.header-body .hb-wrap .abn { + float: right; + width: 468px; + height: 60px; + border: 1px solid #eee; + margin-right: -470px; +} + + +.page-wrap > footer { + font-family: 'dindisplay_pro', Arial, sans-serif; + margin-top: 20px; +} + +.page-wrap > footer .layout-wrap.footer-wrap { + padding: 25px 10px 25px 230px; + margin: 0 -10px; + box-shadow: inset 0 3px 6px -5px rgba(0, 0, 0, .4); +} + +@-moz-document url-prefix() { + .page-wrap > footer .footer-wrap { + box-shadow: inset 0 3px 5px -5px rgba(0, 0, 0, .3); + } +} + +.lt-ie9 .page-wrap > footer .layout-wrap.footer-wrap { + border-top: 1px solid #ddd; +} + +.page-wrap > footer .copy { + font-size: 12px; + color: #ff6600; + margin-bottom: 10px; +} + + + +.page-wrap > footer nav { + width: 65%; + float: left; +} + +nav ul { + margin: 0; + padding: 0; + list-style: none; + text-transform: uppercase; + font-family: 'dindisplay_pro', Arial, sans-serif; + font-size: 13px; + line-height: 16px; + display: inline-block; +} + +@-moz-document url-prefix() { + nav ul { + line-height: 17px; + } +} + +.page-wrap .layout .layout-wrap > aside nav { + margin-bottom: 20px; +} + +.main-page .page-wrap .layout .layout-wrap > aside nav { + margin-bottom: 0; +} + +aside nav > ul.main-menu > li { + margin-top: -4px; +} + +aside nav > ul.main-menu > li:first-child { + margin-top: 0; +} + +.page-wrap > footer nav > ul > li { + display: inline-block; +} + +nav > ul > li > a, nav > ul > li.sub > span { + display: block; + text-decoration: none; + padding: 4px 6px 2px; + border: 1px solid transparent; + border-radius: 4px; +} + +@-moz-document url-prefix() { + nav > ul > li > a { + padding: 3px 6px 2px; + } +} + +aside nav > ul.main-menu > li > a, aside nav > ul.main-menu > li.sub > span { + padding: 5px 10px 3px; +} + +nav > ul > li > a:hover { + border-color: #ff6600; +} + +nav .main-menu { + font-size: 25px; + line-height: 25px; + margin: -5px 0 10px -11px; +} + +.page-wrap > footer nav .main-menu { + font-size: 20px; + line-height: 20px; + margin: -3px 0 1px -10px; +} + +.page-wrap > footer nav .main-menu > li { + margin-left: 10px; + letter-spacing: 1px; +} + +.page-wrap > footer nav .main-menu > li:first-child { + margin-left: 0; +} + +.main-menu > li > a, .main-menu > li > span { + color: #464646; + padding: 5px 9px 2px; +} + +@-moz-document url-prefix() { + .main-menu > li > a { + padding: 4px 9px 3px; + } +} + +.page-wrap > footer nav .main-menu > li.sub > a { + padding-right: 10px; +} + +.main-menu li:hover > a { + color: #ff6600; + border-color: #ff6600; +} + +.main-menu > li.sub > a, .main-menu > li.sub > span { + -webkit-transition: color .3s; + -o-transition: color .3s; + transition: color .3s; +} + +.main-menu > li.sub:hover > a, .main-menu > li.sub:hover > span { + color: #ff9e74; +} + +.main-menu .sub { + position: relative; +} + +.main-menu > li.sub:hover > a, .main-menu > li.sub:hover > span { + background: #ff6600; +} + +.main-menu li.sub > a:after, .main-menu li.sub > span:after { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 13px; + height: 12px; + background: url(../img/sprites.png) -46px 0 no-repeat; + margin: -3px 0 0 8px; +} + +.main-menu .sub:hover > a:after, .main-menu .sub:hover > span:after { + background-position: -46px -16px; +} + +.page-wrap > footer nav .main-menu li.sub > a:after { + width: 12px; + height: 10px; + background-position: 0 -16px; + margin-left: 5px; +} + +.page-wrap > footer nav .main-menu .sub:hover > a:after { + background-position: -13px -16px; +} + +.main-menu .sub ul { + position: absolute; + width: 100%; + left: 0; + top: 100%; + padding: 5px 10px; + font-size: 18px; + line-height: 22px; + letter-spacing: normal; + background: #ff6600; + margin-top: -5px; + border-radius: 4px; + -moz-box-sizing: border-box; + box-sizing: border-box; + display: none; +} + +.page-wrap > footer nav .main-menu .sub ul { + top: auto; + bottom: 100%; + font-size: 16px; + line-height: 18px; + margin: 0 0 -5px; +} + +.main-menu .sub:hover ul { + display: block; +} + +.main-menu .sub ul a { + text-decoration: none; + color: #fff; +} + +.main-menu > li.sub ul a:hover { + color: #ffc4aa; +} + +aside nav ul.s-menu { + display: inline-block; + font-size: 14px; + line-height: 17px; + margin-top: -2px; +} + +nav ul.s-menu { + margin: 0 0 0 -7px; +} + +aside nav ul.s-menu > li { + margin-top: -2px; +} + +.page-wrap > footer nav ul.s-menu > li { + margin-left: 3px; +} + +aside nav ul.s-menu > li:first-child, +.page-wrap > footer ul.s-menu > li:first-child { + margin: 0; +} + +aside nav + hr { + margin-top: -5px; +} + +.page-wrap > footer .counters { + width: 33.33%; + float: right; + /*text-align: right;*/ +} + +.page-wrap > footer .counters > ul { + display: inline-block; + vertical-align: top; + margin: 0; + padding: 0; + list-style: none; + text-align: left; +} + +.page-wrap > footer .counters > ul > li { + display: inline-block; + vertical-align: top; + margin: 0 0 5px 3px; +} + + +.swiper-wrapper { + margin: 0; + padding: 0; + list-style: none; +} + + +.main-page section.layout { + margin: 30px 0; +} + +.mp-top .recent-expo { + position: relative; + overflow: hidden; + padding-top: 5px; +} + +.mp-top .recent-expo ul { + margin: 0; + padding: 0; + list-style: none; +} + +.mp-top .recent-expo ul li { + float: left; + width: 100%; + display: none; +} + +.mp-top .recent-expo ul li:first-child { + display: block; +} + +.mp-top .recent-expo .re-pict { + width: 220px; + height: 220px; + margin-right: 40px; + overflow: hidden; + float: left; + border-radius: 4px; +} + +.mp-top .recent-expo .re-pict { + max-width: 100%; + max-height: 100%; +} + +.mp-top .recent-expo .re-body { + position: relative; + overflow: hidden; + min-height: 220px; +} + +.mp-top .recent-expo .re-body .re-info { + margin-bottom: 70px; +} + +.mp-top .recent-expo .re-body .re-info a { + text-decoration: none; +} + +.mp-top .recent-expo .re-title { + font-family: 'dindisplay_pro', Arial, sans-serif; + font-weight: 100; + font-size: 50px; + line-height: 48px; + margin: 0 80px 5px 0; +} + +.mp-top .recent-expo .re-title a { + text-decoration: none; +} + +.mp-top .recent-expo .re-date { + font-family: 'dindisplay_pro', Arial, sans-serif; + font-weight: 100; + font-size: 24px; + line-height: 27px; + color: #464646; + margin-bottom: 3px; +} + +.mp-top .recent-expo .re-date span { + color: #afafaf; +} + +.mp-top .recent-expo .re-descr { + color: #a2a2a2; + font-size: 14px; + overflow: hidden; + -ms-text-overflow: ellipsis; + text-overflow: ellipsis; +} + +.mp-top .recent-expo footer { + position: absolute; + width: 100%; + bottom: 0; + left: 0; +} + +.mp-top .recent-expo .re-buttons { + margin-bottom: 12px; +} + +.mp-top .recent-expo .re-tags { + color: #a2a2a2; + font-size: 11px; + line-height: 15px; +} + +.mp-top .recent-expo .re-tags a { + color: #a2a2a2; + text-decoration: none; +} + +.mp-top .recent-expo .re-tags .re-t-total { + color: #d4d4d4; + -webkit-transition: color .3s; + -o-transition: color .3s; + transition: color .3s; +} + +.mp-top .recent-expo .re-tags a:hover, +.mp-top .recent-expo .re-tags a:hover .re-t-total { + color: #ff6600; +} + +.mp-top .recent-expo .re-controls { + position: absolute; + right: 0; + top: 0; + z-index: 100; + display: none; +} + +.mp-top .recent-expo .re-controls.enabled { + display: block; +} + +.mp-top .recent-expo .re-controls a { + position: relative; + display: inline-block; + width: 29px; + height: 0; + padding-top: 29px; + overflow: hidden; + background: #e3e3e3; + box-shadow: inset 0 1px 0 rgba(0, 0, 0, .1), 0 1px 0 #fff; +} + +.mp-top .recent-expo .re-controls a:before { + content: ' '; + display: block; + width: 10px; + height: 12px; + background: url(../img/sprites.png) -113px 0 no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -6px 0 0 -5px; +} + +.mp-top .recent-expo .re-controls a:hover { + background: #ff6600; +} + +.mp-top .recent-expo .re-controls a.prev { + border-radius: 4px 0 0 4px; + margin-right: -1px; +} + +.mp-top .recent-expo .re-controls a.prev:before { + background-position: -113px 0; +} + +.mp-top .recent-expo .re-controls a.next { + border-radius: 0 4px 4px 0; + margin-left: -1px; +} + +.mp-top .recent-expo .re-controls a.next:before { + background-position: -123px 0; +} + +.mp-top .recent-expo .re-controls a.prev.disabled, +.mp-top .recent-expo .re-controls a.next.disabled { + background: #e3e3e3; + opacity: .5; + cursor: default; +} + + +.button, +.pgc-buttons button, +.e-form button { + display: inline-block; + vertical-align: middle; + height: 26px; + padding: 3px 14px 2px; + background: transparent; + text-decoration: none; + color: #ff6600; + border: 1px solid #feb17d; + text-transform: uppercase; + font-family: 'dindisplay_pro', Arial, sans-serif; + font-weight: bold; + font-size: 13px; + line-height: 20px; + text-shadow: 0 1px 0 #fff; + border-radius: 4px; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-transition: background .3s, color .3s; + -o-transition: background .3s, color .3s; + transition: background .3s, color .3s; + word-spacing: normal; + white-space: nowrap; +} + +.lc { + text-transform: none; +} + +.button.lc { + font-weight: normal; + line-height: 18px; +} + +.button.big { + height: 36px; + font-size: 15px; + line-height: 31px; + padding: 3px 19px 2px; +} + +.e-form button, +.e-form .button { + color: #ffffff; + text-shadow: 0 1px 0 rgba(0, 0, 0, .3); +} + + +@-moz-document url-prefix() { + .button.lc { + line-height: 17px; + } +} + + +.button:hover, +.pgc-buttons button:hover, +.e-form button:hover { + border-color: #ff6600; + background: #ff6600; + color: #fff; + text-shadow: 0 1px 0 rgba(0, 0, 0, .3); + box-shadow: inset 0 1px 0 rgba(0, 0, 0, .1); +} + +.e-form button:hover, +.e-form .button:hover, +.e-form .input-file:hover .button { + background: #ff8000; + border-color: #ffffff; +} + +.button.blue { + border-color: #90c7e0; + color: #2592c5; +} + +.button.blue:hover, .button.blue.active { + border-color: #2592c5; + background: #2592c5; + color: #fff; +} + +.button.blue2 { + border-color: #7ed4f5; + color: #00adef; +} + +.button.blue2 i { + font-style: normal; + color: #1d447d; +} + +.button.blue2:hover { + border-color: #1d447d; + background: #1d447d; + color: #00adef; +} + +.button.blue2:hover i { + color: #fff; +} + +.button.green { + border-color: #c1e090; + color: #87c525; +} + +.button.green:hover, .button.green.active{ + border-color: #87c525; + background: #87c525; + color: #fff; + text-shadow: none; +} + +.button.red { + border-color: #e87e7d; + color: #d90000; +} + +.button.red:hover { + border-color: #d90000; + background: #d90000; + color: #fff; +} + +.button.grey { + border-color: #c6c6c6; + color: #b4b4b4; +} + +.button.grey:hover { + border-color: #b4b4b4; + background: #b4b4b4; + color: #fff; +} + +.button.orange { + border-color: #ff6600; + text-shadow: 0 1px 0 rgba(0, 0, 0, .3); + color: #fff; + background: #ff6600; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff8000), color-stop(100%,#ff6600)); + background: -webkit-linear-gradient(top, #ff8000 0%,#ff6600 100%); + background: -o-linear-gradient(top, #ff8000 0%,#ff6600 100%); + background: -webkit-linear-gradient(top, #ff8000 0%, #ff6600 100%); + background: -o-linear-gradient(top, #ff8000 0%, #ff6600 100%); + background: linear-gradient(to bottom, #ff8000 0%,#ff6600 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8000', endColorstr='#ff6600',GradientType=0 ); +} + +.button.orange:hover { + text-shadow: 0 1px 0 rgba(0, 0, 0, .3); + background: #ff8000; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fe9150), color-stop(100%,#ff8000)); + background: -webkit-linear-gradient(top, #fe9150 0%,#ff8000 100%); + background: -o-linear-gradient(top, #fe9150 0%,#ff8000 100%); + background: -webkit-linear-gradient(top, #fe9150 0%, #ff8000 100%); + background: -o-linear-gradient(top, #fe9150 0%, #ff8000 100%); + background: linear-gradient(to bottom, #fe9150 0%,#ff8000 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fe9150', endColorstr='#ff8000',GradientType=0 ); +} + +.cli-photo-list .cli-phg-bot .cli-pb-button .button { + height: 29px; + line-height: 22px; + padding-top: 4px; +} + +.button.more, +.cli-photo-list .cli-phg-bot .cli-pb-button .button.more{ + height: 29px; + font-size: 17px; + line-height: 19px; + text-transform: none; + padding-top: 4px; +} + +.button.more:after { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 5px; + height: 9px; + background: url(../img/sprites.png) -148px -16px no-repeat; + margin: 1px 0 0 10px; +} + +.button.b-more:after { + content: ''; + display: inline-block; + vertical-align: middle; + width: 8px; + height: 12px; + background: url(../img/sprites.png) -175px 0 no-repeat; + margin: -1px -5px 0 8px; +} + +.button.blue.more:after { + background-position: -165px -14px; +} + +.button.more:hover:after { + background-position: -165px -23px; +} + +.button[class*="icon-"]:before { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 16px; + height: 16px; + background: url(../img/sprites.png) no-repeat; + margin: -3px 5px 0 0; +} + +.button.big[class*="icon-"]:before { + margin-right: 7px; +} + +.button.icon-calendar:before { + width: 14px; + background-position: -60px 0; +} +.button.icon-calendar:hover:before, .button.icon-calendar.active:before { + background-position: -60px -16px; +} + +.button.icon-calendar-o:before { + width: 13px; + background-position: -183px -145px; +} +.button.icon-calendar-o:hover:before { + background-position: -197px -145px; +} + +.button.icon-save:before { + width: 12px; + height: 13px; + background-position: -155px -145px; + margin-top: -1px; +} +.button.icon-save:hover:before { + background-position: -155px -159px; +} + +.button.icon-print:before { + width: 13px; + height: 13px; + background-position: -169px -145px; + margin-top: -2px; +} +.button.icon-print:hover:before { + background-position: -169px -159px; +} + +.button.icon-note:before { + width: 11px; + height: 14px; + background-position: -74px 0; +} +.button.icon-note:hover:before, .button.icon-note.active:before { + background-position: -74px -16px; +} + +.button.icon-sm:before { + width: 8px; + height: 9px; + background-position: -287px -32px; + margin-left: -2px; +} +.button.icon-sm:hover:before { + background-position: -287px -41px; +} + +.button.icon-edit:before { + width: 14px; + height: 13px; + background-position: -277px 0; +} +.button.icon-edit:hover:before, +.button.orange.icon-edit:before { + background-position: -277px -15px; +} + +.button.icon-del:before { + width: 12px; + height: 14px; + background-position: -259px -30px; +} +.button.icon-del:hover:before { + background-position: -259px -45px; +} + +.button.icon-copy:before { + width: 15px; + height: 14px; + background-position: -261px 0; +} +.button.icon-copy:hover:before { + background-position: -261px -15px; +} + +.button.icon-info:before { + width: 10px; + height: 11px; + background-position: -280px -64px; +} +.button.icon-info:hover:before { + background-position: -280px -76px; +} + +.button.icon-list:before { + width: 10px; + height: 9px; +} +.button.blue.icon-list:before { + background-position: -175px -52px; +} +.button.green.icon-list:before { + background-position: -186px -52px; +} +.button.icon-list:hover:before { + background-position: -197px -52px; +} + +.button.icon-msg:before { + width: 11px; + height: 11px; + background-position: -268px -64px; +} +.button.icon-msg:hover:before { + background-position: -268px -76px; +} + +.button.icon-photo:before { + width: 11px; + height: 11px; + background-position: -226px -96px; +} +.button.icon-photo:hover:before { + background-position: -226px -108px; +} + +.button.icon-reply:before { + width: 11px; + height: 12px; + background-position: -238px -95px; +} +.button.icon-reply:hover:before { + background-position: -238px -108px; +} + +.button.icon-go:before { + width: 8px; + height: 10px; + background-position: -291px -64px; +} +.button.icon-go:hover:before { + background-position: -291px -75px; +} + +.button.icon-check:before, +.pgc-buttons button.icon-check:before { + width: 13px; + height: 11px; + background-position: -106px -16px; +} +.button.icon-check:hover:before, +.button.orange.icon-check:before, +.pgc-buttons button.icon-check:hover:before { + background-position: -120px -16px; +} + +.button.icon-find:before { + width: 12px; + height: 13px; + background-position: -184px 0; +} +.button.icon-find:hover:before { + background-position: -250px -95px; +} + +.button.icon-bell:before { + width: 12px; + height: 13px; + background-position: -211px -49px; + margin-top: 0; +} +.button.icon-bell:hover:before { + background-position: -225px -120px; +} + +.button.icon-tag:before { + width: 10px; + height: 10px; + background-position: -239px 0; +} +.button.icon-tag:hover:before { + background-position: -250px 0; +} + +.button.icon-clip:before { + width: 14px; + height: 16px; + background-position: -225px -147px; + margin-bottom: -1px; +} +.button.icon-clip:hover:before, +.e-form .button.icon-clip:before { + background-position: -240px -147px; +} + + +.button.icon-camera:before { + width: 16px; + height: 15px; + background-position: -300px -85px; +} +.button.icon-camera:hover:before, +.button.orange.icon-camera:before{ + background-position: -300px -101px; +} + +.button.icon-view:before { + width: 15px; + height: 11px; + background-position: -225px -164px; +} +.button.icon-view:hover:before { + background-position: -241px -164px; +} + +.button.icon-add:before { + width: 13px; + height: 14px; + background-position: -268px -116px; +} +.button.icon-add:hover:before { + background-position: -282px -116px; +} + + +button, +.e-price-wrap .button.big.orange { + border: none; + outline: none; + height: 36px; + padding: 1px 25px 0; + font-family: 'dindisplay_pro', sans-serif; + font-weight: bold; + font-size: 15px; + line-height: 35px; + text-transform: uppercase; + text-align: center; + color: #fff; + text-shadow: 0 1px 0 rgba(0, 0, 0, .3); + letter-spacing: normal; + word-spacing: normal; + background: #ff6600; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff8000), color-stop(100%,#ff6600)); + background: -webkit-linear-gradient(top, #ff8000 0%,#ff6600 100%); + background: -o-linear-gradient(top, #ff8000 0%,#ff6600 100%); + background: -webkit-linear-gradient(top, #ff8000 0%, #ff6600 100%); + background: -o-linear-gradient(top, #ff8000 0%, #ff6600 100%); + background: linear-gradient(to bottom, #ff8000 0%,#ff6600 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8000', endColorstr='#ff6600',GradientType=0 ); + border-radius: 3px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.e-price-wrap .button.big.orange { + height: 41px; + font-size: 17px; + line-height: 40px; +} + +.button.orange:hover, +button:hover, +.e-price-wrap .button.big.orange:hover{ + background: #ff8000; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fe9150), color-stop(100%,#ff8000)); + background: -webkit-linear-gradient(top, #fe9150 0%,#ff8000 100%); + background: -o-linear-gradient(top, #fe9150 0%,#ff8000 100%); + background: -webkit-linear-gradient(top, #fe9150 0%, #ff8000 100%); + background: -o-linear-gradient(top, #fe9150 0%, #ff8000 100%); + background: linear-gradient(to bottom, #fe9150 0%,#ff8000 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fe9150', endColorstr='#ff8000',GradientType=0 ); +} + +.pw-form button { + padding: 2px 25px 0; + height: 46px; + line-height: 44px; +} + +.pw-form button[class *= "icon-"]{ + padding: 2px 40px 0 30px; +} + +.pw-reg .pw-form button{ + width: 265px; + cursor: pointer; +} + +button[class *= "icon-"]:before { + content: ' '; + display: inline-block; + vertical-align: middle; + background: url(../img/sprites.png) 0 0 no-repeat; + margin: -2px 7px 0 0; +} + + +button.icon-check:before { + width: 13px; + height: 11px; + background-position: -120px -16px; +} + +button.icon-save:before { + width: 13px; + height: 14px; + background-position: -203px -16px; +} +button.icon-arrow:before { + width: 8px; + height: 12px; + background-position: -176px 0; +} + + + +.page-wrap section.layout.search-form .layout-wrap { + font-family: 'dindisplay_pro', Arial, sans-serif; + font-weight: normal; + font-size: 14px; + line-height: 18px; + color: #fff; + background: #ff6600 url(../img/search-bg.jpg) 100% 100% no-repeat; + height: 125px; + padding: 25px 0 25px 420px; + margin-left: -200px; + border-radius: 0 4px 4px 0; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +/***************************\ + # форма поиска +\**************************/ + + .in-search-form { + position: relative; + /*display: none;*/ + font-family: 'dindisplay_pro', Arial, sans-serif; + font-weight: normal; + font-size: 14px; + line-height: 18px; + color: #fff; + background: #ff6600 url(../img/search-bg.jpg) 100% 100% no-repeat; + height: 150px; + margin: 0 0 15px -40px; + padding: 30px 0 5px 40px; + z-index: 3; + border-radius: 4px; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + + .modals .popup-window{ + display: none; + } + + .search-form aside .s-title { + font-size: 25px; + line-height: 25px; + text-transform: uppercase; + white-space: nowrap; + margin-right: -20px; + } + + .in-search-form .s-title { + font-size: 25px; + line-height: 25px; + text-transform: uppercase; + margin-bottom: 15px; + } + + .search-form .mcl { + padding-right: 50px; + } + + .search-form-wrap { + display: table; + width: 100%; + border-collapse: collapse; + } + + .search-form-wrap .search-line { + display: table-row; + } + + .search-form-wrap .search-line .sf-field-wrap { + display: table-cell; + vertical-align: middle; + padding: 0 10px 8px 0; + color: #ffd9bf; + line-height: 15px; + } + + .search-form-wrap .search-line .sf-field-wrap:first-child { + width: 48%; + } + + .search-form-wrap .search-line .sf-field-wrap + .sf-field-wrap { + width: 32%; + } + + .search-form-wrap .search-line .sf-field-wrap + .sf-field-wrap + .sf-field-wrap { + width: 20%; + } + + .search-line.sl-options a { + display: inline-block; + color: #fff; + text-decoration: none; + border-bottom: 1px dashed; + line-height: 13px; + } + + .search-line.sl-options a:hover { + border-bottom: none; + } + + .search-line.sl-options a.sf-clear { + position: relative; + display: inline-block; + vertical-align: middle; + border-bottom: none; + width: 16px; + height: 0; + padding-top: 24px; + margin: -5px 0 -5px 2px; + overflow: hidden; + } + + .search-line.sl-options a.sf-clear:before { + content: ''; + display: block; + width: 6px; + height: 7px; + background: url(../img/sprites.png) -135px -25px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -3px 0 0 -3px; + } + + .sf-field { + position: relative; + display: table; + width: 100%; + height: 40px; + border-collapse: collapse; + background: #fff; + color: #aaa; + box-shadow: inset 0 1px 0 #d9d9d9, 0 -1px 0 rgba(0, 0, 0, .2); + z-index: 1; + } + + .sf-field-wrap:first-child .sf-field { + border-radius: 4px 0 0 4px; + } + + .sf-field > * { + display: table-cell; + vertical-align: middle; + } + + .sf-field label { + font-size: 16px; + line-height: 20px; + font-weight: normal; + padding: 10px 5px 10px 20px; + white-space: nowrap; + } + + .sf-field .input-text { + width: 100%; + height: 100%; + } + + .sf-field .input-text input[type="text"] { + display: block; + width: 100%; + height: 100%; + background: none; + border: none; + outline: none; + padding: 10px 10px 10px 0; + font-family: 'dindisplay_pro', Arial, sans-serif; + font-weight: normal; + font-size: 16px; + line-height: 20px; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + + .search-form button.search_submit, + .search-form button.modal-approve, + .in-search-form button.search_submit, + .in-search-form button.modal-approve{ + display: inline-block; + vertical-align: top; + height: 40px; + border: 1px solid #fff; + /*background: none;*/ + outline: none; + color: #fff; + font-family: 'dindisplay_pro', Arial, sans-serif; + font-weight: bold; + font-size: 15px; + line-height: 41px; + text-transform: uppercase; + padding: 0 25px; + border-radius: 0 4px 4px 0; + -moz-box-sizing: border-box; + box-sizing: border-box; + box-shadow: 0 1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(0, 0, 0, .2); + -webkit-filter: none; + filter: none; + } + button.modal-approve{ + border-radius: 4px !important; + } + + .search-form button.search_submit:before, + .search-form button.modal-approve:before, + .in-search-form button.search_submit:before , + .in-search-form button.modal-approve:before { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 15px; + height: 14px; + background: url(../img/sprites.png) -98px 0 no-repeat; + margin: -2px 5px 0 -1px; + } + + .search-form button:hover, + .in-search-form button:hover { + position: relative; + top: -1px; + /*background: none;*/ + } + + .sf-autocomplete { + position: relative; + z-index: 3048; + height: 40px; + display: none; + } + .sf-autocomplete.show { + display: block; + } + + .sf-autocomplete .sfa-wrap { + position: absolute; + left: 0; + width: 100%; + top: 0; + background: #fff; + padding: 20px 20px 20px 20px; + overflow: hidden; + -moz-box-sizing: border-box; + box-sizing: border-box; + border-radius: 4px; + box-shadow: 0 0 0 3px rgba(0, 0, 0, .2); + visibility: hidden; + background: -webkit-gradient(linear, left top, left bottom, color-stop(10%,#ffffff), color-stop(100%,#efefef)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #ffffff 10%,#efefef 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #ffffff 10%,#efefef 100%); /* Opera 11.10+ */ /* IE10+ */ + background: -webkit-linear-gradient(top, #ffffff 10%, #efefef 100%); + background: -o-linear-gradient(top, #ffffff 10%, #efefef 100%); + background: linear-gradient(to bottom, #ffffff 10%,#efefef 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#efefef',GradientType=0 ); /* IE6-9 */ + + } + + .sf-autocomplete .sfa-wrap { + border-radius: 4px 0 4px 4px; + } + + .sf-autocomplete .sfa-wrap.show { + visibility: visible; + } + + .ui-autocomplete { + position: relative; + width: 100%; + max-height: 265px; + overflow-y: auto; + overflow-x: hidden; + left: 0 !important; + top: 0 !important; + padding: 5px 10px 0 0; + border-top: 1px dotted #ccc; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + .ui-autocomplete-category { + font-size: 15px; + line-height: 17px; + color: #ff6600; + padding: 8px 10px 0 0; + } + + .ui-menu .ui-menu-item { + padding: 0 10px 0 5px; + margin-top: 2px; + } + + .ui-menu .ui-menu-item a { + color: #464646; + font-size: 15px; + line-height: 15px; + border: none; + padding: 2px 5px; + cursor: pointer; + } + + .ui-menu .ui-menu-item a.ui-state-focus, + .ui-menu .ui-menu-item a.ui-state-active { + color: #ff6600; + margin: 0; + } + + .ui-menu .ui-menu-item a i { + font-style: normal; + color: #a2a2a2; + } + /* # clear all button*/ + .in-search-form .modal-clear, + .search-form .modal-clear{ + height: 40px; + border: 1px solid #fff; + padding: 0 25px; + box-shadow: 0 1px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(0, 0, 0, .2); + } + +/* end of search block*/ + +.main-page .page-wrap .mp-catalog .layout-wrap { + padding: 0 10px 30px 230px; + margin: 0 -10px; + box-shadow: 0 3px 6px -5px rgba(0, 0, 0, .4); +} + +@-moz-document url-prefix() { + .main-page .page-wrap .mp-catalog .layout-wrap { + box-shadow: 0 3px 5px -5px rgba(0, 0, 0, .3); + } +} + + +.mp-catalog-lists { + display: table; + table-layout: fixed; + width: 100%; + border-collapse: collapse; +} + +.mp-catalog-lists .mpc-list { + display: table-cell; + vertical-align: top; + padding-right: 40px; + width: 33.33%; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.mp-catalog-lists .mpc-list:first-child { + min-width: 260px; +} + +.mp-catalog-lists .mpc-list header { + font-family: 'dindisplay_pro', Arial, sans-serif; + font-weight: 100; + font-size: 28px; + line-height: 28px; + text-transform: uppercase; + color: #ff6600; + margin-bottom: 10px; +} + +.mp-catalog-lists .mpc-list ul { + margin: 0 0 7px; + padding: 0; + list-style: none; + font-size: 12px; + line-height: 15px; +} + +.mp-catalog-lists .mpc-list ul li { + margin-bottom: 4px; +} + +.mp-catalog-lists .mpc-list ul a, .leter-list a { + color: #464646; + text-decoration: none; +} + +.mp-catalog-lists .mpc-list ul a span { + text-decoration: underline; +} + +.mp-catalog-lists .mpc-list ul a i { + font-style: normal; + color: #aaa; +} + +.mp-catalog-lists .mpc-list ul a, +.leter-list a, +.mp-catalog-lists .mpc-list ul a * { + -webkit-transition: color .3s; + -o-transition: color .3s; + transition: color .3s; +} + +.mp-catalog-lists .mpc-list ul a:hover, +.leter-list a:hover, +.mp-catalog-lists .mpc-list ul a:hover * { + color: #ff6600; + text-decoration: none; +} + + +.mp-catalog-lists .mpc-list footer { + font-size: 11px; +} + +a.more:after { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 6px; + height: 7px; + background: url(../img/sprites.png) -39px -16px no-repeat; + margin-left: 5px; +} + +a.more.blue2 { + color: #40bbea; +} + +a.more.blue2:after { + background-position: -249px -52px; +} + +.mp-catalog-lists + .abn { + display: inline-block; + margin-top: 25px; + overflow: hidden; + border-radius: 4px; +} + +.s-phone { + margin: 0 0 15px 0; + padding-left: 25px; +} + +/*.main-page .s-phone {*/ + /*margin-bottom: 40px;*/ +/*}*/ + +.main-page .s-phone .sp-wrap { + border: none; + padding-top: 0; +} + +.s-phone .s-tel { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 500; + font-style: normal; + font-size: 25px; + line-height: 25px; +} + +.s-phone .s-tel em { + display: block; + font-style: normal; + font-weight: normal; + font-size: 17px; + line-height: 19px; + float: left; + margin: 0 5px 0 -25px; + color: #a2a2a2; +} + + +@-moz-document url-prefix() { + .s-phone .s-tel em { + margin-top: 1px; + } +} + + +.main-page .s-phone .s-tel em { + color: #ff6600; +} + +.s-phone .s-callback { + font-family: 'dindisplay_pro', sans-serif; + font-weight: normal; + font-size: 10px; + text-transform: uppercase; + margin-top: -2px; +} + +.s-phone .s-callback a { + color: #a2a2a2; +} + +.s-phone .s-callback a:hover { + color: #ff6600; + text-decoration: none; +} + + +.online-adviser { + margin: 0 0 15px 0; + padding-left: 40px; +} + +.main-page .online-adviser { + margin-bottom: 40px; +} + +.main-page .online-adviser .oa-wrap { + border: none; + padding-top: 0; +} + + +.online-adviser header { + overflow: hidden; + font-family: 'dindisplay_pro', sans-serif; + font-weight: 500; + font-size: 16px; + text-transform: uppercase; + padding-left: 40px; + margin: 0 0 8px -40px; +} + +.online-adviser header a { + color: #464646; + text-decoration: none; +} + +.online-adviser header b { + display: block; + font-weight: normal; + font-size: 20px; + line-height: 20px; + text-decoration: underline; + color: #87c525; +} + +.online-adviser header b:before { + content: ' '; + display: block; + width: 31px; + height: 26px; + background: url(../img/sprites.png) 0 -33px no-repeat; + float: left; + margin: 0 -100% -0px -40px; +} + +.online-adviser header a, +.online-adviser header a * { + -webkit-transition: color .3s; + -o-transition: color .3s; + transition: color .3s; +} + +.online-adviser header a:hover, +.online-adviser header a:hover * { + color: #ff6600; + text-decoration: none; +} + +.online-adviser header a:hover b:before { + background-position: -84px -145px; +} + +.online-adviser .oa-descr { + font-size: 11px; + line-height: 14px; + color: #a2a2a2; +} + + +.subscribe-sm { + font-family: 'dindisplay_pro', sans-serif; +} + +.subscribe-sm header { + font-weight: 100; + font-size: 18px; + line-height: 18px; + text-transform: uppercase; + margin-bottom: 10px; +} + +.subscribe-sm ul { + margin: 0 -100% 0 0; + padding: 0; + list-style: none; + font-size: 10px; + line-height: 13px; +} + +.subscribe-sm ul li { + display: inline-block; + vertical-align: bottom; + margin-left: 5px; +} + +.subscribe-sm ul li:first-child { + margin-left: 0; +} + +.subscribe-sm ul li a { + text-decoration: none; +} + +.subscribe-sm ul li a:before { + content: ' '; + display: block; + background: url(../img/sprites.png) 0 0 no-repeat; + margin: 0 auto 5px; +} + +a.icon-big-email { + color: #5e5e5e; +} + +.subscribe-sm ul li a.icon-big-email:before { + width: 30px; + height: 26px; + background-position: -32px -33px; +} + +a.icon-big-rss { + color: #ff6600; +} + +.subscribe-sm ul li a.icon-big-rss:before { + width: 25px; + height: 26px; + background-position: -91px -33px; +} + +a.icon-big-twitter { + color: #00bff3; +} + +.subscribe-sm ul li a.icon-big-twitter:before { + width: 29px; + height: 25px; + background-position: -117px -33px; +} + +a.icon-big-ical { + color: #ed1c24; +} + +.subscribe-sm ul li a.icon-big-ical:before { + width: 26px; + height: 29px; + background-position: -64px -33px; +} + +.mp-news-list {} + +.mp-news-list header { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 100; + font-size: 27px; + line-height: 28px; + color: #a2a2a2; + margin-bottom: 15px; +} + +.mp-news-list header a { + color: #a2a2a2; + text-decoration: none; +} + +.mp-news-list header a:hover { + color: #ff6600; +} + +.mp-news-list ul { + margin: 0; + padding: 0; + list-style: none; +} + +.mp-news-list ul li { + margin-bottom: 20px; + overflow: hidden; + font-size: 12px; + line-height: 15px; +} + +.mp-news-list ul li a { + display: block; + text-decoration: none; + color: #767675; +} + +.mp-news-list ul li a:hover { + color: #ff6600; +} + +.mp-news-list li a span { + display: block; +} + +.mp-news-list .nl-pict img{ + margin-top: 11px; +} +.mp-news-list .nl-pict { + width: 80px; + height: 80px; + overflow: hidden; + margin-right: 20px; + float: left; + border-radius: 4px; + text-align: center; + background: #ffffff; + box-shadow: inset 0 1px 0 #e8e8e7; +} + +.mp-news-list .nl-body { + overflow: hidden; +} + +.mp-news-list .nl-text { + margin-bottom: 5px; +} + +.mp-news-list .nl-date { + font-size: 11px; + line-height: 13px; + color: #ff6600; +} + +.mp-news-list footer { + font-family: 'dindisplay_pro', sans-serif; +} + +.mp-news-list footer a.more { + color: #bbb; +} + +.mp-news-list footer a.more:after { + background-position: -39px -24px; +} + +.mp-news-list footer a.more:hover { + color: #ff6600; +} + +.mp-news-list footer a.more:hover:after { + background-position: -39px -16px; +} + +.s-news-list { + margin: 20px 0; +} + +.s-news-list header { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 100; + font-size: 23px; + line-height: 25px; + color: #a2a2a2; + margin-bottom: 15px; +} + +.s-news-list header a { + text-decoration: none; + color: #a2a2a2; +} + +.s-news-list header a:hover { + color: #ff6600; +} + +.s-news-list ul { + margin: 0; + padding: 0; + list-style: none; +} + +.s-news-list ul li { + margin-bottom: 15px; + overflow: hidden; + font-size: 12px; + line-height: 15px; +} + +.s-news-list ul li a { + display: block; + text-decoration: none; + color: #767675; +} + +.s-news-list ul li a:hover { + color: #ff6600; +} + +.s-news-list li a span { + display: block; +} + +.s-news-list .nl-pict { + width: 40px; + height: 40px; + overflow: hidden; + margin-right: 20px; + float: left; + border-radius: 4px; +} + +.s-news-list .nl-pict img { + width: 100%; +} + +.s-news-list .nl-body { + overflow: hidden; +} + +.s-news-list .nl-text { + margin-bottom: 5px; +} + +.s-news-list .nl-date { + font-size: 11px; + line-height: 13px; + color: #ff6600; +} + +.s-news-list footer { + font-family: 'dindisplay_pro', sans-serif; +} + +.s-news-list footer a.more { + color: #bbb; +} + +.s-news-list footer a.more:after { + background-position: -39px -24px; +} + +.s-news-list footer a.more:hover { + color: #ff6600; +} + +.s-news-list footer a.more:hover:after { + background-position: -39px -16px; +} + + + +.mp-photo-gallery { + font-family: 'dindisplay_pro', sans-serif; + margin-left: -220px; +} + +.mp-photo-gallery header { + font-weight: 100; + font-size: 27px; + line-height: 28px; + color: #a2a2a2; + margin-bottom: 15px; + padding-left: 220px; +} + +.mp-photo-gallery header .pg-title { + width: 225px; + margin: 0 -220px 0 -220px; + float: left; +} + +.mp-photo-gallery header .pg-title > a { + color: #a2a2a2; +} + +.mp-photo-gallery header .pg-title > a:hover { + color: #ff6600; +} + +.mp-photo-gallery header h2 { + display: inline-block; + font-weight: normal; + font-size: 28px; + line-height: 28px; + margin: 0; + color: #ff6600; +} + +.mp-photo-gallery header h2 a:hover { + color: #464646; +} + +.mp-photo-gallery .photo-gallery { + position: relative; + width: 720px; + max-width: 100%; + height: 320px; + margin: 0; +} + +.mp-photo-gallery a { + display: inline-block; + width: 100%; + text-decoration: none; +} + +.mp-photo-gallery .photo-gallery ul { + width: 100%; + height: 100%; +} + +.mp-photo-gallery li { + width: 100%; + height: 100%; + float: left; +} + +.mp-photo-gallery .pg-item { + display: inline-block; + position: relative; + max-width: 100%; + overflow: hidden; + border-radius: 4px; +} + +.mp-photo-gallery .pg-item .pgi-pict { + max-width: 100%; + text-align: center; +} + +.mp-photo-gallery .pg-item .pgi-pict img { + margin: 0 -50%; +} + +.mp-photo-gallery .pg-item .pgi-descr { + position: absolute; + width: 100%; + left: 0; + bottom: 0; + -moz-box-sizing: border-box; + box-sizing: border-box; + color: #fff; + background: rgba(0, 0, 0, .6); + padding: 12px 25px 15px 220px; + font-size: 14px; + line-height: 16px; + display: none; +} + +.lt-ie9 .mp-photo-gallery .pg-item .pgi-descr { + background: url(../img/semitransparent-ie8.png); +} + +.mp-photo-gallery li:first-child .pg-item .pgi-descr { + display: block; +} + +.mp-photo-gallery .pg-item .pgi-descr .pgi-date { + width: 145px; + float: left; + margin: 0 -145px 0 -180px; + font-weight: 100; + font-size: 13px; + line-height: 16px; +} + +.mp-photo-gallery .pg-item .pgi-descr .pgi-date b { + display: block; + font-weight: 500; + font-size: 15px; +} + +.mp-photo-gallery .pg-item .pgi-descr .pgi-date b:before { + content: ' '; + display: block; + width: 12px; + height: 14px; + background: url(../img/sprites.png) -85px 0 no-repeat; + float: left; + margin: 2px -12px -14px -16px; +} + +.mp-photo-gallery .re-controls { + display: none; +} + +.mp-photo-gallery .re-controls.enabled { + display: block; +} + +.mp-photo-gallery .re-controls a { + display: block; + width: 71px; + height: 0; + padding-top: 71px; + overflow: hidden; + position: absolute; + top: 50%; + margin-top: -55px; +} + +.mp-photo-gallery .re-controls a:before { + content: ' '; + display: block; + width: 31px; + height: 62px; + background: url(../img/sprites.png) 0 -63px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -31px 0 0 -15px; +} + +.mp-photo-gallery .re-controls a.prev { + left: 0; +} + +.mp-photo-gallery .re-controls a.prev:before { + background-position: 0 -63px; +} + +.mp-photo-gallery .re-controls a.next { + right: 0; +} + +.mp-photo-gallery .re-controls a.next:before { + background-position: -32px -63px; +} + + +.mp-photo-gallery .re-controls a.prev.disabled, +.mp-photo-gallery .re-controls a.next.disabled { + display: none; +} + + +.mp-partners .layout-wrap { + padding-left: 200px; + margin-left: -200px; + +} + +.mp-partners .mpp-wrap { + margin-left: -200px; + padding: 10px 0 12px 420px; + line-height: 71px; + background: #ffffff; + border-radius: 0 4px 4px 0; + box-shadow: 0 -1px 0 #f0f0f0; +} + +.mp-partners .mpp-wrap header { + display: block; + float: left; + width: 220px; + margin: 0 -220px; + font-family: 'dindisplay_pro', sans-serif; + font-weight: 100; + font-size: 27px; + color: #a2a2a2; +} + +.mp-partners .mpp-wrap ul { + margin: 0 0 0 -30px; + padding: 0; + list-style: none; +} + +.mp-partners .mpp-wrap li { + display: inline-block; + vertical-align: middle; + margin-left: 30px; +} + +.mp-partners .mpp-wrap ul { + margin-left: -20px; +} + +.mp-partners .mpp-wrap li { + margin-left: 20px; +} + +.mps-sect {} + +.mps-sect header { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 100; + font-size: 27px; + line-height: 28px; + color: #ff6600; + margin-bottom: 10px; +} + +.mps-sect nav ul { + margin: 0 -20px 0 -10px; + text-transform: none; +} + +.mps-sect nav ul li { + margin-bottom: 2px; +} + +.mps-sect nav a { + display: inline-block; + font-size: 14px; + line-height: 17px; + text-decoration: underline; + color: #464646; + padding: 2px 15px 2px 9px; + border-color: transparent; +} + +.mps-sect nav a:hover { + text-decoration: none; + color: #ff6600; + border-color: transparent; +} + +.mps-sect nav a:after { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 5px; + height: 8px; + background: url(../img/sprites.png) -86px -16px no-repeat; + margin: -1px -12px 0 7px; + visibility: hidden; +} + +.mps-sect nav a:hover:after { + visibility: visible; +} + + +.mp-reviews-wrap {} + +.mp-reviews-wrap .mp-reviews { + width: 65.9%; + float: left; + /*padding-right: 5px;*/ + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.mp-reviews-wrap .mp-reviews header { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 100; + font-size: 27px; + line-height: 28px; + color: #a2a2a2; + display: table; + width: 100%; + margin-bottom: 10px; +} + +.mp-reviews-wrap .mp-reviews header > * { + display: table-cell; + width: 50%; +} + +.mp-reviews-wrap .mp-reviews header .mpr-title a { + color: #a2a2a2; + text-decoration: none; +} + +.mp-reviews-wrap .mp-reviews header .mpr-title a:hover { + color: #ff6600; +} + +.mp-reviews-wrap .mp-reviews header .more-link { + font-size: 13px; +} + +.mp-reviews-wrap .mp-reviews ul { + margin: 0; + padding: 0; + list-style: none; + display: table; + width: 100%; + font-family: 'dindisplay_pro', sans-serif; + font-size: 14px; + line-height: 17px; +} + +.mp-reviews-wrap .mp-reviews ul > li { + display: table-cell; + width: 50%; + padding-right: 35px; +} + +.mp-reviews-wrap .mp-reviews li a { + display: block; + width: 220px; + color: #464646; + text-decoration: none; +} + +.mp-reviews-wrap .mp-reviews li a:hover { + color: #ff6600; +} + +.mp-reviews-wrap .mp-reviews li .mpr-pict { + display: block; + overflow: hidden; + margin-bottom: 7px; + border-radius: 4px; +} + + +.mp-reviews-wrap .sbnr { + width: 33.33%; + float: right; + padding-top: 43px; +} + +.mp-reviews-wrap .sbnr .sbnr-wrap { + display: inline-block; + border: 1px solid #e3e3e3; +} + + +.popups-wrap { + position: absolute; + left: -20000em; + top: -20000em; + width: 100%; + height: 1px; + overflow: hidden; +} + +.fancybox-skin { + background: #f8f8f6; +} + +.fancybox-close { + top: 5px; + right: 5px; + width: 36px; + height: 36px; + cursor: pointer; + z-index: 8040; + background: none; +} + +.fancybox-close:before { + content: ' '; + display: block; + width: 10px; + height: 10px; + background: url(../img/sprites.png) -133px 0 no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -5px 0 0 -5px; +} + +.fancybox-close:hover:before { + background-position: -144px 0; +} + +.popup-window { + width: 640px; + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + line-height: 17px; + padding: 35px 50px 30px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.popup-window.pw-period { + width: 530px; +} + +.popup-window header { + padding-bottom: 20px; +} + +.popup-window.pw-period header { + padding-bottom: 30px; +} + +.popup-window .pw-title { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 100; + font-size: 35px; + line-height: 35px; + color: #ff6600; +} + +.popup-window footer { + border-top: 1px dotted #ccc; + margin-top: 25px; + padding-top: 25px; +} + +.popup-window footer .soc-med-login { + display: table; +} + +.popup-window footer .soc-med-login > div { + display: table-cell; + vertical-align: top; + line-height: 30px; +} + +.popup-window footer .soc-med-login .sm-label { + font-style: italic; + padding-right: 15px; +} + +.popup-window footer .soc-med-login .sm-body ul { + margin: 0; + padding: 0; + list-style: none; +} + +.popup-window footer .soc-med-login .sm-body ul li { + display: inline-block; + margin-left: 5px; +} + + +.pw-form .pwf-line { + margin-bottom: 15px; + display: table; +} + +.pw-form .pwf-line.subj-checks { + margin-bottom: 25px; +} + +.pw-form .pwf-line.period { + margin-top: 25px; +} + +.pw-form .pwf-buttons-line { + margin-top: 30px; + display: block; +} + +.pw-form .pwf-line > div, +.pw-form .pwf-buttons-line > div { + /*display: table-cell;*/ + display: inline-block; + vertical-align: middle; + width: auto; +} + + +.pwf-line > label + div.pwf-field { + display: block; +} + +.pw-form .pwf-field { + padding-right: 20px; + vertical-align: top; + width: 310px; +} + +.pw-reg .pw-form .pwf-field { + width: 265px; +} + +.pw-form .pwf-field + .pwf-field { + padding-right: 0; +} +.epf-field{ + position: relative; +} +input[type="text"], +input[type="password"], +textarea, +.custom-select .custom-select-wrap, +.editor-wrap { + border: 1px solid #bdbdbd; + outline: none; + background: #fff; + width: 100%; + height: 40px; + padding: 0 6px; + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + /*line-height: 40px;*/ + border-radius: 3px; + box-shadow: inset 0 2px 2px -2px #aaa; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +html[data-useragent*='Trident/7.0'] input[type="text"], +html[data-useragent*='Trident/7.0'] input[type="password"], +html[data-useragent*='Trident/7.0'] textarea { + padding: 0 5px 0 20px; +} + +input[type="text"]:focus, +input[type="password"]:focus, +textarea:focus { + border: 2px solid #ff6600; + padding:0 5px; +} + +textarea { + height: 146px; + padding: 5px; + line-height: 20px; + resize: none; +} + +.editor-wrap { + height: auto; + padding: 0; + line-height: normal; + overflow: hidden; +} + +.editor-wrap textarea { + border: none; + padding: 5px; + box-shadow: none; +} + +textarea:focus { + padding: 4px; +} + +.p-form textarea { + height: 176px; + resize: vertical; +} + +.p-form .mf-photos-list textarea { + height: 146px; + resize: none; +} + +.pw-form input[type="text"], +.pw-form input[type="password"] { + height: 40px; + /*line-height: 40px;*/ +} + +.pw-period .pw-form .pwf-field + .pwf-field { + padding-left: 10px; +} + +.mf-field .period .pwf-field { + display: inline-block; + padding-left: 30px; +} +.mf-field .period .pwf-field { + font-size: 17px; + line-height: 40px; +} + +.period .pwf-field label { + font-size: 20px; + margin: 0 5px 0 -15px; +} + +.mf-field .period .pwf-field label { + font-size: 17px; +} + +.period input[type="text"].date { + width: 175px; + padding-right: 35px; + background: #fff url(../img/select.png) 100% 50% no-repeat; +} + +.period input[type="text"].date + button { + position: absolute; + width: 36px; + padding: 0; + overflow: hidden; + margin-left: -37px; + -moz-box-sizing: border-box; + box-sizing: border-box; + opacity: 0; +} +.period input[type="text"].date + button:hover{ + top: auto; +} + +.lt-ie9 .period input[type="text"].date + button { + -ms-filter: alpha(opacity=0); + filter: alpha(opacity=0); +} + +::-webkit-input-placeholder { color: #a2a2a2; } +:-moz-placeholder { color: #a2a2a2; } +::-moz-placeholder { color: #676767; } +:-ms-input-placeholder { color: #a2a2a2; } +.placeholder { color: #a2a2a2; } + +label.check { + display: inline-block; + font-size: 13px; + line-height: 15px; + padding-left: 27px; + word-spacing: normal; + cursor: pointer; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +label.check input { + opacity: 0; + outline: none; +} + +.lt-ie9 label.check input { + -ms-filter: alpha(opacity=0); + filter: alpha(opacity=0); +} + +.check .custom-checkbox, +.check .custom-radio { + position: relative; + display: block; + width: 20px; + height: 20px; + margin: -3px -100% -0px -27px; + float: left; + background: #fff; + border: 1px solid #bdbdbd; + border-radius: 3px; + box-shadow: inset 0 2px 2px -2px #aaa; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.check .custom-radio { + width: 22px; + height: 22px; + border-radius: 20px; +} + +.check .custom-checkbox:before { + content: ' '; + display: none; + width: 11px; + height: 9px; + background: url(../img/sprites.png) -93px -16px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -5px 0 0 -5px; +} + +.check .custom-radio:before { + content: ' '; + display: none; + width: 10px; + height: 10px; + background: url(../img/sprites.png) -93px -16px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -5px 0 0 -5px; + background: #ff6600; + border-radius: 10px; +} + +.check .custom-checkbox.checked:before, +.check .custom-radio.checked:before { + display: block; +} + + +.custom-select { + position: relative; + display: block; + text-align: left; + line-height: 18px; + height: 40px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.pw-form .custom-select { + width: 100%; + height: 40px; +} + +.e-form .custom-select { + width: 200px; + height: 26px; +} + +.custom-select select { + position: relative; + width: 100%; + padding-right: 30px; + height: 40px; + opacity: 0; + z-index: 0; + cursor: pointer; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.lt-ie9 .custom-select select { + filter: alpha(opacity=0); +} + +.custom-select select[disabled] { + cursor: default; +} + +.pw-form .custom-select select { + height: 40px; +} + +.custom-select option { + padding: 2px 10px; +} + +.custom-select .custom-select-wrap { + display: block; + position: absolute; + overflow: hidden; + left: 0; + right: 0; + top: 0; + z-index: 1; + padding-top: 1px; + padding-right: 30px; + cursor: pointer; +} + +.custom-select select[disabled] + .custom-select-wrap { + cursor: default; +} + +.pw-form .custom-select .custom-select-wrap { + line-height: 47px; + height: 40px; +} + +.e-form .custom-select .custom-select-wrap { + line-height: 26px; + height: 26px; + padding-left: 7px; +} + + +.custom-select .custom-select-wrap:after { + content: " "; + display: block; + width: 8px; + height: 5px; + overflow: hidden; + background: url(../img/sprites.png) -86px -27px no-repeat; + position: absolute; + right: 12px; + top: 50%; + margin-top: -3px; +} + +.e-form .custom-select .custom-select-wrap:after { + margin-top: -2px; +} + +.custom-select .custom-select-text { + display: block; + width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + line-height: 39px; +} + +.pw-form .custom-select .custom-select-text { + line-height: 39px; +} + +.e-form .custom-select .custom-select-text { + line-height: 25px; +} + +.custom-select select:focus + .custom-select-wrap { + border: 2px solid #ff6600; + padding: 0 29px 0 19px; +} + +.custom-select select:focus + .custom-select-wrap:after { + right: 11px; +} + +.custom-select .cs-menu-wrap { + position: absolute; + min-width: 100%; + left: 0; + top: 100%; + margin-top: -1px; + background: #fff; + white-space: nowrap; + z-index: 50; + padding: 5px; + border: 1px solid #ccc; + -moz-box-sizing: border-box; + box-sizing: border-box; + display: none; +} + +.custom-select .cs-scroll-container { + max-height: 230px; +} + +.custom-select .scroll-content { + padding: 5px 18px; +} + +.custom-select .scroll-content ul { + margin: 0; + padding: 0; + list-style: none; + font-size: 15px; + line-height: 19px; +} + +.custom-select .scroll-content ul li { + margin-top: 2px; + cursor: pointer; +} + +.custom-select .scroll-content ul li:first-child { + margin-top: 0; +} + +.custom-select .scroll-content ul li:hover { + color: #ff6600; +} + + +.input-file { + display: block; + position: relative; +} + +.e-form .input-file { + color: #ffffff; + cursor: pointer +} + +.mf-line .input-file { + vertical-align: middle; +} + +.e-form .input-file .button { + float: left; + margin-right: 10px; +} + +.mf-line .input-file .button { + float: left; + margin-right: 20px; +} + +.input-file .file-text { + display: block; + overflow: hidden; + height: 26px; + line-height: 26px; + text-overflow: ellipsis; + font-size: 15px; + white-space: nowrap; +} + +.mf-line .input-file .file-text { + font-size: 17px; + line-height: 35px; +} + +.mf-line .input-file .file-text.placehlder { + color: #aeaeae; +} + +.input-file .if-field-wrap { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; +} + +.input-file .if-field-wrap input[type=file] { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + letter-spacing: 10em; /* IE 9 fix */ + -ms-transform: scale(20); /* IE 9 fix */ + -webkit-transform: scale(20); + -o-transform: scale(20); + transform: scale(20); + font-size: 200em; + opacity: 0; + cursor: pointer +} + +.lt-ie9 .input-file .if-field-wrap input[type=file] { + filter: alpha(opacity=0); +} + +form { + font-family: 'dindisplay_pro', sans-serif; +} + +form.s-message { + padding-left: 20px; +} + +.s-message .mf-line { + padding-left: 120px; + margin: 20px 0 10px; +} + +.s-message .mf-line label { + margin: 5px -120px; + float: left; + font-size: 20px; + color: #ff6600; +} + +.s-message .mf-buttons-line { + padding-left: 120px; + margin-top: 10px; +} + +.s-message .mf-buttons-line a { + margin-left: 25px; + font-size: 15px; +} + + +.pwf-msg .msg-help { + color: #ff6600; + padding-left: 20px; + display: none; + max-width: 234px; +} + +.pwf-msg .msg-help:before { + content: '—'; + float: left; + margin: 0 -15px 0 -20px; +} + + +.pw-login a.forgot { + font-size: 14px; + color: #464646; +} +.pw-login .pw-form .pwf-field{ + width: 310px; +} + +.pw-login a.forgot:hover { + color: #ff6600; +} + +.pw-login button { + margin-right: 20px; +} + +.pw-login a.reg { + font-weight: 500; + font-size: 16px; +} + +.pwf-line.subj-checks > .pwf-field label.check, +.mf-line.afs-type > .mf-field label.check { + padding-right: 0; + width: 20%; +} + +.pwf-line.subj-checks > .pwf-field label.check { + font-size: 17px; +} + +.c-select-box { + position: relative; + border: 1px solid #bdbdbd; + outline: none; + background: #fff; + width: 100%; + padding: 3px; + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + line-height: 19px; + border-radius: 3px; + box-shadow: inset 0 2px 2px -2px #aaa; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.c-select-box.select { + padding-bottom: 0; + min-height: 40px; +} + +.e-form .c-select-box.select { + min-height: 26px; + padding: 0 1px; +} + +.c-select-box .csb-title { + padding: 0 35px 0 0; + height: 40px; + font-size: 16px; + line-height: 40px; + border-bottom: 1px dotted #cdcdcd; + color: #a2a2a2; + background: #fff ; + margin-bottom: 3px; +} + +.c-select-box .csb-title input { + border: none; + padding: 0; + height: 35px; + box-shadow: none; + padding-left: 18px; +} + +.c-select-box .csb-selected-items { + display: none; + border-bottom: 1px dotted #cdcdcd; + padding: 2px 0; + margin-bottom: 3px; + min-height: 30px; + line-height: 24px; +} + +.e-form .c-select-box .csb-selected-items { + min-height: 18px; + line-height: 18px; + padding: 1px 0; + margin-bottom: 2px; +} + +.c-select-box .csb-selected-items.show { + display: block; +} + +.c-select-box.select .csb-selected-items { + display: block; + border: none; + padding-right: 30px; + margin-bottom: 0; + cursor: pointer; +} + +.c-select-box.select.disabled .csb-selected-items { + cursor: default; +} + +.c-select-box.select .csb-selected-items:after { + content: " "; + display: block; + width: 8px; + height: 5px; + overflow: hidden; + background: url(../img/sprites.png) -86px -27px no-repeat; + position: absolute; + right: 12px; + top: 20px; + margin-top: -3px; +} + +.e-form .c-select-box.select .csb-selected-items:after { + top: 15px; +} + +.c-select-box .csb-selected-items .csb-placeholder { + display: none; + min-height: 28px; + line-height: 28px; + padding-left: 18px; + color: #aeaeae; +} + +.c-select-box .csb-selected-items .csb-placeholder.show { + display: block; +} + +.c-select-box .csb-selected { + position: relative; + display: none; + vertical-align: top; + min-height: 26px; + line-height: 25px; + color: #ff6600; + white-space: nowrap; + margin: 0 3px 3px 0; + border: 1px solid #ff6600; + padding-right: 25px; + border-radius: 3px; +} + +.e-form .c-select-box .csb-selected { + min-height: 16px; + margin: 0 2px 1px 0; +} + +.c-select-box .csb-selected.show { + display: inline-block; +} + +.c-select-box .csb-selected > * { + display: inline-block; + vertical-align: middle; +} + +.c-select-box .csb-selected .csbs-text { + padding-left: 15px; + line-height: 18px; + font-size: 16px; + white-space: normal; +} + +.c-select-box .csb-selected a.csbs-del:hover{ + text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); +} +.c-select-box .csb-selected a.csbs-del { + display: block; + position: absolute; + right: 0; + top: 0; + width: 25px; + overflow: hidden; + height: 18px; + line-height: 25px; + text-align: right; + padding-right: 10px; + text-decoration: none; + font-family: Verdana, san-serif; +} + +.e-form .c-select-box .csb-selected a.csbs-del { + padding-top: 20px; +} + + +.c-select-box .csb-menu { + max-height: 230px; + /*overflow: hidden;*/ +} + +.popup-window .c-select-box.select .csb-menu { + max-height: 145px; +} + +.c-select-box.select .csb-menu-wrap { + position: absolute; + left: -1px; + right: -1px; + top: 100%; + margin-top: -3px; + background: #fff; + z-index: 50; + padding: 5px; + border: 1px solid #ccc; + /*border-width: 0 1px 1px;*/ + -moz-box-sizing: border-box; + box-sizing: border-box; + display: none; +} + +.e-form .c-select-box.select .csb-menu-wrap { + margin-top: 0; +} + +/*.c-select-box.select .csb-menu { + border-top: 1px dotted #cdcdcd; +}*/ + +.c-select-box.places .csb-menu { + height: 245px; +} + +.c-select-box .csb-menu .scroll-content { + padding: 5px 10px; +} + +.c-select-box .csb-menu ul { + margin: 0; + padding: 0; + list-style: none; +} + +.c-select-box .csb-menu ul li { + margin-bottom: 4px; +} + +.c-select-box .csb-menu a, +.c-select-box .csb-menu label { + cursor: pointer; + color: #464646; + position: relative; + margin-left: 12px; +} + +.c-select-box .csb-menu label.active { + color: #a2a2a2; +} + +.c-select-box .csb-menu a:hover, +.c-select-box .csb-menu label:hover { + color: #ff6600; +} + +.c-select-box .csb-menu label input[type="checkbox"] { + opacity: 0; + outline: none; + position: absolute; + z-index: -1; +} + +.lt-ie9 .c-select-box .csb-menu label input[type="checkbox"] { + -ms-filter: alpha(opacity=0); + filter: alpha(opacity=0); +} + + +.c-select-box .csb-menu .places-list { + width: 260px; + float: left; +} + +.c-select-box .csb-menu .places-list > ul > li > a { + display: inline-block; + border-bottom: 1px dashed; + text-decoration: none; + font-size: 17px; + line-height: 15px; +} + +.c-select-box .csb-menu .places-list > ul > li.active > a, +.c-select-box .csb-menu .places-list > ul > li.active > label { + color: #ff6600; +} + +.c-select-box .csb-menu .places-list > ul ul { + margin: 5px 0 0 16px; + font-size: 16px; + /*display: none;*/ +} +.places-list .final-tire{ + margin-left: 16px; +} +.places-list .final-tire .custom-radio-check{ + padding-left: 12px; +} +.c-select-box .csb-menu .places-list > ul >li{ + margin-bottom: 15px; +} + +.c-select-box .csb-menu .places-list .active > .sublist { + display: block; +} +.c-select-box .csb-menu .places-list .sublist { + display: none; +} +.c-select-box .csb-menu .places-list .sublist.parent { + display: block; +} + +.c-select-box .csb-menu .q-sel { + width: 190px; + float: right; + +} + +.c-select-box .csb-menu .q-sel .q-sel-title { + font-size: 14px; + color: #a2a2a2; + margin-bottom: 3px; +} + +.c-select-box .csb-menu .q-sel .q-sel-title + ul { + margin-bottom: 10px; +} + +.c-select-box .csb-menu .q-sel a.clear { + display: inline-block; + font-size: 14px; + line-height: 12px; + text-decoration: none; + border-bottom: 1px dashed; + color: #a2a2a2; + margin-left: 0; +} + +.c-select-box .csb-menu .q-sel a.clear:hover { + color: #ff6600; +} + +.mCSB_scrollTools .mCSB_draggerRail { + width: 10px; + background: #dbdbdb; + border: 1px solid #cccccc; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.mCSB_scrollTools .mCSB_dragger { + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 8px; + border: solid #dbdbdb; + border-width: 2px 1px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.mCSB_horizontal.mCustomScrollBox > .mCSB_scrollTools { + left: 20px; + right: 20px; + bottom: 5px; + width: auto; + height: 20px; +} + +.mCSB_horizontal > .mCSB_scrollTools .mCSB_draggerRail { + width: 100%; + height: 12px; + background: #dbdbdb; +} + +.mCSB_horizontal > .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + height: 10px; + margin: 8px auto; + border-width: 2px 3px; +} + + +.pw-subscribe {} + +.pw-subscribe header { + margin: -5px 0 20px; + padding: 0; + border-bottom: 1px dotted #cccccc; +} + +.pw-subscribe header .pw-title { + float: left; + padding: 5px 20px 0 0; +} + +.tabs { + position: relative; + margin: 0 0 -1px; + padding: 0; + list-style: none; + z-index: 2; +} + +.pw-subscribe header .tabs { + margin: 0 0 -1px; + overflow: hidden; +} + +.tabs li { + display: block; + height: 51px; + float: left; + -moz-box-sizing: border-box; + box-sizing: border-box; + opacity: .2; + border: dotted transparent; + border-width: 1px 1px 0; + margin-left: 5px; +} + +.tabs li:hover { + opacity: 1; +} + +.tabs li.active { + border: dotted #cccccc; + border-width: 1px 1px 0; + background: #fcfcfb; + opacity: 1; +} + +.popup-window .tabs li.active { + background: #f8f8f6; +} + +.tabs li a { + position: relative; + display: block; + height: 50px; + padding: 12px; + overflow: hidden; + text-decoration: none; + -moz-box-sizing: border-box; + box-sizing: border-box; + font-size: 15px; +} + +.popup-window .tabs li a { + width: 54px; +} + +.tabs li a:before { + content: ''; + display: inline-block; + vertical-align: middle; + background: url(../img/sprites.png) 0 0 no-repeat; + margin: 0 7px 3px 0; +} + +.popup-window .tabs li a:before { + display: block; + margin: 0 auto 50px; +} + +.tabs li a.icon-big-email { + +} + +.tabs li a.icon-big-email:before { + width: 30px; + height: 26px; + background-position: -32px -33px; +} + +.tabs li a.icon-big-rss:before { + width: 25px; + height: 26px; + background-position: -91px -33px; +} + +.tabs li a.icon-big-twitter:before { + width: 29px; + height: 25px; + background-position: -117px -33px; +} + +.tabs li a.icon-big-ical:before { + width: 26px; + height: 29px; + background-position: -64px -33px; +} + +.tabs-content { + margin: 0; + padding: 0; + list-style: none; +} + +.tabs + .tabs-content { + position: relative; + border-top: 1px dotted #cccccc; + z-index: 1; + padding-top: 20px; +} + +.tabs-content > li { + display: none; +} + +.tabs-content > li.active { + display: block; +} + +.pw-subscribe .pw-form .pwf-field { + width: 370px; +} + +.pw-subscribe .mail { + margin-bottom: 25px; +} + + + + +.ui-datepicker { + display: none; + width: 200px; + height: auto; + padding: 10px; + font-family: 'dindisplay_pro', sans-serif; + font-size: 13px; + border: 1px solid #bdbdbd; + background: #fff; + border-radius: 4px; + line-height: 13px; + box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5); +} + +.ui-datepicker a { + text-decoration: none; +} + +.ui-datepicker table { + width: 100%; + border-collapse: collapse; +} + +.ui-datepicker-header { + font-weight: 500; + text-transform: uppercase; + border-bottom: 1px dotted #bdbdbd; + padding-bottom: 6px; + margin-bottom: 6px; + font-size: 21px; + line-height: 33px; +} + +.ui-datepicker-title { + text-align: center; + font-weight: 100; + color: #ff6600; +} + +.ui-datepicker-prev, .ui-datepicker-next { + position: relative; + display: inline-block; + width: 31px; + height: 0; + padding-top: 31px; + cursor: pointer; + border: 1px solid #bdbdbd; + border-radius: 3px; + overflow: hidden; +} + +.ui-datepicker-prev:hover, .ui-datepicker-next:hover { + border-color: #ff6600; + background: #ff6600; +} + +.ui-datepicker-prev.ui-state-disabled, +.ui-datepicker-next.ui-state-disabled { + border-color: #bdbdbd; + background: none; + opacity: .5; +} + +.ui-datepicker-prev:before, .ui-datepicker-next:before { + content: ' '; + display: block; + width: 10px; + height: 12px; + background: url(../img/sprites.png) -155px 0 no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -6px 0 0 -5px; +} + +.ui-datepicker-prev { + float: left; +} + +.ui-datepicker-prev:before, +.ui-datepicker-prev.ui-state-disabled:hover:before { + background-position: -155px 0; + margin-left: -6px; +} + +.ui-datepicker-prev:hover:before { + background-position: -113px 0; +} + +.ui-datepicker-next { + float: right; +} + +.ui-datepicker-next:before, +.ui-datepicker-next.ui-state-disabled:hover:before { + background-position: -165px 0; + margin-left: -4px; +} + +.ui-datepicker-next:hover:before { + background-position: -123px 0; +} + + +.ui-datepicker th { + text-transform: uppercase; + font-weight: 500; + padding: 0 0 4px; +} + +.ui-datepicker th.ui-datepicker-week-end { + color: #ff6600; +} + +.ui-datepicker tbody td { + padding: 2px 0; + text-align: center; +} + +.ui-datepicker td a, +.ui-datepicker td span { + display: inline-block; + width: 24px; + height: 24px; + line-height: 24px; + text-align: center; + border: 1px solid #e2e2e2; + border-radius: 3px; + color: #e2e2e2; + /*padding: 4px;*/ +} + +.ui-datepicker td a { + color: #2b2b2b; + border-color: #bdbdbd; +} + +.ui-datepicker td.ui-datepicker-week-end a { + color: #ff6600; + border-color: #ff6600; +} + +.ui-datepicker td a:hover { + background: #f0f0f0; +} + +.ui-datepicker td.ui-datepicker-today a { + background: #565656; + border-color: #565656; + color: #fff; +} + +.ui-datepicker td a.ui-state-active { + background: #ff6600; + border-color: #ff6600; + color: #fff; +} + +.pw-reply .pw-form .pwf-line { + width: 100%; +} + +.pw-reply .pw-form .pwf-line .pwf-field { + display: block; + padding-right: 0; + width: auto; +} + +.pwf-line > label { + display: block; + margin: -5px 0 5px; +} + +.pw-reply .pw-form .pwf-line label { + font-size: 20px; + display: block; + margin-bottom: 10px; +} + + +.pw-reply .pw-form .pwf-buttons-line { + margin-top: 0; +} + + +.layout-wrap > aside .sbnr { + margin: 25px 0; +} + +.layout-wrap > aside .sbnr .sbnr-wrap { + display: inline-block; + border: 1px solid #e3e3e3; +} + +.layout-wrap > aside .vk-widget { + width: 180px; + margin: 30px 0; +} + +.main-part .abn { + margin: 20px 0; + text-align: center; +} + +.main-page .abn { + margin-bottom: 0; +} + +.so-text { + margin: 20px 0; + font-size: 12px; + line-height: 15px; +} + +.so-text h2 { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 100; + font-size: 30px; + line-height: 30px; + margin: 15px 0; + color: #ff6600; +} + + +.bread-crumbs { + margin: 17px 0; + font-size: 11px; + line-height: 13px; +} + +.bread-crumbs a { + color: #a2a2a2; + margin-right: 3px; +} + +.bread-crumbs a:hover { + color: #ff6600; +} + +.bread-crumbs a:after { + content: '→'; + color: #a2a2a2; + display: inline-block; + margin-left: 7px; + text-decoration: none; +} + +.bread-crumbs b, +.bread-crumbs strong { + font-weight: normal; +} + +.page-title { + margin: 17px 0; +} + +.page-title h1, +.page-title h2 { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 100; + font-size: 40px; + line-height: 40px; + margin: 0; + color: #ff6600; +} + +.page-title h1 strong, +.page-title h2 strong { + font-weight: normal; + color: #464646; +} + +.page-title.clearfix h1, +.page-title.clearfix h2 { + float: left; +} + +.p-filter { + font-size: 12px; + color: #a2a2a2; + margin: 17px 0; +} + +.page-title + .p-filter { + margin-top: -10px; +} + +.p-filter .pf-body { + width: 100%; + float: left; + padding: 0 280px 0 55px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.p-filter .pf-body .pf-label { + width: 55px; + float: left; + margin: 0 -55px; +} + +.p-filter .pf-body a { + color: #464646; + white-space: nowrap; +} + +.p-filter .pf-body a:hover { + color: #ff6600; +} + +.p-filter .ch-dates-range { + width: 260px; + float: right; + margin-left: -260px; +} + +.p-filter .ch-dates-range a { + text-decoration: none; + border-bottom: 1px dashed; + -webkit-transition: border .3s; + -o-transition: border .3s; + transition: border .3s; +} + +.p-filter .ch-dates-range a:hover { + border-bottom: none; +} + + +.page-body { + margin: 15px 0 0 -20px; +} + +.pagination { + margin: 25px 0 40px; +} + +.pagination .pg-info { + float: right; + padding-right: 20px; + font-size: 12px; + line-height: 29px; +} + +.pagination .pg-info i { + font-style: normal; + color: #a2a2a2; +} + +.pagination .pg-body { + overflow: hidden; + font-family: 'dindisplay_pro', sans-serif; +} + +.pagination .pg-body ul { + margin: 0; + padding: 0; + list-style: none; + display: inline-block; + vertical-align: middle; +} + +.pagination .pg-body li { + display: inline-block; +} + +.pagination .pg-body li a, +.pagination .pg-body li b { + display: block; + min-width: 29px; + height: 29px; + padding: 0 5px; + font-weight: bold; + font-size: 16px; + line-height: 29px; + text-decoration: none; + text-align: center; + border: 1px solid #fcaf7b; + margin-right: 1px; + -moz-box-sizing: border-box; + box-sizing: border-box; + border-radius: 1px; +} + +.pagination .pg-body li b { + border-color: #ff6600; + background: #ff6600; + color: #ffffff; +} + +.pagination .pg-body > a { + display: inline-block; + vertical-align: middle; + height: 29px; + padding: 0 7px; + font-weight: 500; + font-size: 17px; + line-height: 29px; + text-decoration: none; + border: 1px solid #fcaf7b; + margin-right: 1px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.pagination .pg-body a.pg-prev { + border-radius: 4px 0 0 4px; +} + +.pagination .pg-body a.pg-next { + border-radius: 0 4px 4px 0; +} + +.pagination .pg-body a.pg-prev:before, +.pagination .pg-body a.pg-next:after { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 5px; + height: 8px; + background: url(../img/sprites.png) -143px -16px no-repeat; + margin-top: -1px; +} + +.pagination .pg-body a.pg-prev:before { + background-position: -143px -16px; + margin-right: 7px; +} + +.pagination .pg-body a.pg-next:after { + background-position: -148px -16px; + margin-left: 7px; +} + +.pagination .pg-body a:hover { + background: #fcaf7b; + color: #fff; +} + +.pagination .pg-body a.pg-prev:hover:before { + background-position: -143px -24px; +} + +.pagination .pg-body a.pg-next:hover:after { + background-position: -148px -24px; + margin-left: 7px; +} + +.pagination .pg-body > a.disabled { + border-color: #cdcdcc; + background: none; + color: #babab9; + cursor: default; + width: 29px; + overflow: hidden; + padding: 27px 0 0; + position: relative; +} + +.pagination .pg-body a.pg-prev.disabled:before, +.pagination .pg-body a.pg-next.disabled:after { + position: absolute; + left: 50%; + top: 50%; + margin: -4px 0 0 -3px; +} + +.pagination .pg-body a.pg-prev.disabled:before, +.pagination .pg-body a.pg-prev.disabled:hover:before { + background-position: -153px -16px; +} + +.pagination .pg-body a.pg-next.disabled:after, +.pagination .pg-body a.pg-next.disabled:hover:after { + background-position: -158px -16px; +} + + + +.cat-list { + margin: 0; + padding: 0; + list-style: none; +} + +.cat-list > li.ad { + overflow: hidden; + margin-bottom: 20px; +} + +.cat-list > .cl-item, +.m-article { + position: relative; + padding: 17px 20px 15px; + margin-bottom: 20px; + background: #fcfcfb; + box-shadow: inset 0 1px 0 #e8e8e7; + border-radius: 4px; + -webkit-transition: background .3s; + -o-transition: background .3s; + transition: background .3s; +} + +.m-article .cat-list > .cl-item { + margin-bottom: 15px; +} + +.cat-list > li.cl-item:hover { + background: #fff; + box-shadow: 0 3px 5px -3px #888; +} + +/*.cat-list > li.cl-item:after, +.cat-list > li.cl-item:before, +.cat-list > li .cli-pict, +.cat-list > li .cli-info { + cursor: pointer; +}*/ + + +/*.hit .cli-info:after { + content: ' '; + display: block; + width: 81px; + height: 81px; + background: url(../img/sprites.png) -63px -63px no-repeat; + position: absolute; + left: 0; + top: 0; + z-index: 20; +}*/ + +.hit { + display: block; + width: 81px; + height: 81px; + background: url(../img/sprites.png) -63px -63px no-repeat; + position: absolute; + left: 0; + top: 0; + z-index: 2; +} + +/*.cat-list > li.cl-item.canceled > * { + opacity: .25; +}*/ + +/*.cat-list > li.cl-item.canceled .cli-info:before { + content: ' '; + display: block; + width: 100%; + position: absolute; + left: 0; + top: 0; + bottom: 0; + background: transparent; + z-index: 20; +}*/ + +.cancel { + display: block; + width: 100%; + position: absolute; + left: 0; + top: 0; + bottom: 0; + background: rgba(255, 255, 255, .75); + z-index: 20; +} + +.lt-ie9 .cancel { + background: #fff; + -ms-filter: alpha(opacity=75); + filter: alpha(opacity=75); +} + +.cancel:after { + content: ' '; + display: block; + width: 81px; + height: 81px; + background: url(../img/sprites.png) -144px -63px no-repeat; + position: absolute; + left: 0; + top: 0; + z-index: 21; +} + +/*.cat-list > li.cl-item.canceled:after { + content: ' '; + display: block; + width: 81px; + height: 81px; + background: url(../img/sprites.png) -144px -63px no-repeat; + position: absolute; + left: 0; + top: 0; + opacity: 1; + z-index: 21; +}*/ + +.cl-item .cl-item-wrap { + padding-left: 120px; + margin-bottom: 10px; +} + +.cl-photos .cl-item .cl-item-wrap, +.e-cat .cl-item .cl-item-wrap { + padding-left: 90px; + margin-bottom: 0; +} + +.m-article .cl-item .cl-item-wrap { + padding-left: 100px; + margin-bottom: 0; +} + +.cl-item .cl-item-wrap > a { + color: #464646; + text-decoration: none; +} + +.cli-pict, +.i-pict { + width: 100px; + line-height: 96px; + text-align: center; + background: #ffffff; + margin: 3px -100% 0 -120px; + float: left; + box-shadow: inset 0 1px 0 #e8e8e7; + border-radius: 4px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.i-pict { + margin: 0 0 10px; + position: relative; +} +.i-pict .user-avatar{ + display: block; + width: 100%; + height: 100%; +} + +.cl-photos .cli-pict, +.e-cat .cli-pict { + width: 70px; + height: 70px; + line-height: 60px; + padding: 4px; + margin-left: -90px; +} + +.m-article .cl-item .cli-pict { + width: 80px; + height: 80px; + line-height: 70px; + padding: 5px; + margin-left: -100px; +} + +.cat-list li.cl-item:hover .cli-pict { + box-shadow: none; +} + +.cli-pict img, +.i-pict img { + max-width: 100%; + max-height: 100%; + border-radius: 4px; +} + + +.cli-info { + width: 100%; + float: left; + margin-bottom: 15px; +} + +.e-cat .cli-info { + margin-bottom: 0; +} + +.cat-list.cl-places .cli-info { + margin-bottom: 7px; +} + +.cli-info .cli-top { + margin-bottom: 10px; +} + +.cat-list.cl-places .cli-info .cli-top { + margin-bottom: 7px; +} + +.cl-item .cli-approved { + float: right; + opacity: .25; + -webkit-transition: opacity .3s; + -o-transition: opacity .3s; + transition: opacity .3s; + margin-right: 10px; +} + +.cat-list li.cl-item:hover .cli-approved, +.cat-list > li.cl-item.canceled .cli-approved { + opacity: 1; +} + +.cl-item .cli-status { + float: right; + font-size: 11px; + line-height: 13px; + color: #a2a2a2; +} + +.cl-item .cli-status .status { + height: 13px; + overflow: hidden; +} + +.cl-item .cli-status .status.active { + width: 13px; +} + +.cl-item .cli-status .status:before { + content: ' '; + display: inline-block; + width: 13px; + height: 13px; + background: url(../img/sprites.png) -211px -32px no-repeat; + margin: 0 3px -2px 0; +} + +.cli-photo-list .cli-phg-bot .cli-pb-button { + background-position: -345px -32px; +} + +.cl-item .cli-status .status.moderated:before { + background-position: -211px -160px; +} + +.cl-item .cli-status .status.draft:before { + content: none; +} + +.cl-item .cli-status b { + display: inline-block; + font-size: 16px; + font-weight: normal; + padding-top: 5px; +} + +.cl-item .cli-status b:before { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 16px; + height: 15px; + background: url(../img/sprites.png) -171px -16px no-repeat; + margin: -2px 5px 0 0; +} + +.cl-item .cli-status b.participant { + color: #ff6600; +} + +.cl-item .cli-status b.visitor { + color: #464646; +} + +.cl-item .cli-status b.visitor:before { + width: 14px; + background-position: -188px -16px; + margin-top: -2px; +} + +.cl-item header { + font-family: 'dindisplay_pro', sans-serif; + margin-bottom: 2px; +} + +.cl-item header .cli-title { + display: inline-block; + vertical-align: top; + font-size: 30px; + line-height: 30px; + margin: 0 6px 0 0; + -webkit-transition: color .3s; + -o-transition: color .3s; + transition: color .3s; + max-width: 490px; +} + +.cl-item header .cli-title a { + color: #464646; + text-decoration: none; +} + +.cat-list li.cl-item:hover header .cli-title { + color: #ff6600; +} + +.cl-item header .cli-title a:hover { + color: #ff6600; +} + +.cat-list > li.cl-item.canceled header .cli-title { + text-decoration: line-through; + color: #464646; +} + +.cl-item header .cli-rate { + display: inline-block; + vertical-align: top; + color: #ff6600; + font-size: 16px; + margin-top: 2px; +} + +.cl-item header .cli-rate:before { + content: ' '; + display: inline-block; + vertical-align: baseline; + width: 14px; + height: 13px; + margin: 0 4px -1px 0; + background: url(../img/sprites.png) -181px -32px no-repeat; + opacity: .5; +} + +.cli-descr { + font-size: 12px; + line-height: 15px; + color: #a2a2a2; +} + +.cli-info .cli-bot { + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + line-height: 19px; +} + +.cli-info .cli-bot .cli-date { + font-size: 17px; + line-height: 18px; + float: left; +} + +.cli-info .cli-bot .cli-area { + font-size: 17px; + line-height: 18px; + font-weight: 500; + color: #ff6600; + float: left; +} + +.cli-info .cli-bot .cli-area a { + text-decoration: none; +} + +.cli-info .cli-bot .cli-area a:hover { + color: #464646; +} + +.cli-info .cli-bot .cli-position { + font-size: 20px; + line-height: 21px; + font-weight: 500; + color: #ff6600; + float: left; +} + +.cli-info .cli-bot .cli-position a { + color: #ff6600; + text-decoration: none; +} + +.cli-info .cli-bot .cli-position a:hover { + color: #464646; +} + +.cli-info .cli-bot .cli-dim { + font-size: 16px; + line-height: 18px; + font-weight: bold; + float: left; +} + +.cli-info .cli-bot .cli-dim:before { + content: ' '; + display: inline-block; + width: 16px; + height: 16px; + background: url(../img/sprites.png) -242px -16px no-repeat; + vertical-align: middle; + margin: -4px 4px 0 0; +} + +.cli-place { + float: right; + padding-left: 15px; +} + +.cli-place:before { + content: ' '; + display: block; + width: 10px; + height: 16px; + background: url(../img/sprites.png) -217px -16px no-repeat; + float: left; + margin: 1px -10px 0 -15px; +} + +.cli-place a { + color: #464646; + text-decoration: none; +} + +.cli-place a:hover { + color: #ff6600; +} + + +.cli-buttons { + position: relative; + width: 100%; + float: left; +} + +.cli-m-buttons { + float: left; +} + +.cli-m-buttons > * { + margin-left: 5px; +} + +.cli-m-buttons > *:first-child { + margin-left: 0; +} + +.cli-services { + display: inline-block; + vertical-align: top; +} + +.cli-services:hover { + padding-bottom: 10px; + margin-bottom: -10px; + background: #ff6600; + border-radius: 4px 4px 0 0; +} + +.cli-services:hover .button.icon-sm { + border-color: #ff6600; + background: #ff6600; + color: #fff; + text-shadow: 0 1px 0 rgba(0, 0, 0, .3); + box-shadow: inset 0 1px 0 rgba(0, 0, 0, .1); +} + +.cli-services:hover .button.icon-sm:before { + background-position: -287px -41px; +} + +.cli-services-sm { + margin-top: 5px; + padding: 10px 0 1px 15px; + position: absolute; + background: #ff6600; + color: #fff; + font-size: 12px; + font-weight: bold; + width: 100%; + border-radius: 4px; + -moz-box-sizing: border-box; + box-sizing: border-box; + display: none; + z-index: 100; +} + +.cli-services:hover .cli-services-sm { + display: block; +} + +.cli-services-sm ul { + margin: 0; + padding: 0; + list-style: none; +} + +.cli-services-sm ul li { + display: inline-block; + vertical-align: top; + margin: 0 10px 9px 0; +} + +.cli-services-sm a { + display: block; + color: #fff; + text-decoration: none; + text-transform: uppercase; + padding: 2px 10px; + border: 1px solid #ffb880; + text-shadow: 0 1px 0 rgba(0, 0, 0, .3); + border-radius: 4px; +} + +.cli-services-sm a:hover { + border-color: #ffffff; + background: #ffffff; + color: #ff6600; + text-shadow: none; +} + +.cli-s-buttons { + float: right; +} + +.cat-list > li > footer { + padding-left: 120px; + font-size: 11px; + line-height: 16px; +} + +.cat-list > li > footer .cli-stats { + width: 120px; + text-align: center; + margin: 0 -100% 0 -130px; + float: left; +} + +.i-stats { + font-size: 11px; + text-align: center; + margin-left: -5px; +} + +.cat-list .cli-stats > *, +.i-stats > * { + display: inline-block; + vertical-align: baseline; + white-space: nowrap; + margin-left: 5px; +} + +.cat-list .cli-stats > *:first-child { + margin-left: 0; +} + +.cat-list .cli-stats > *:before, +.i-stats > *:before { + content: ' '; + display: inline-block; + width: 11px; + height: 12px; + background: url(../img/sprites.png) -12px 0 no-repeat; + margin: 0 3px -1px 0; +} + +.cat-list .cli-stats .visitors, +.cat-list .cli-stats .schedule, +.i-stats .visitors, +.i-stats .schedule { + color: #464646; +} + +.cat-list .cli-stats .visitors:before, +.i-stats .visitors:before { + width: 11px; + height: 12px; + background-position: -12px 0; + margin: 0 2px -1px 0; +} + +.cat-list .cli-stats .schedule:before, +.i-stats .schedule:before { + width: 13px; + height: 14px; + background-position: -228px -16px; + margin-bottom: -1px; +} + +.cat-list .cli-stats .participants, +.cat-list .cli-stats .views, +.i-stats .participants, +.i-stats .views { + color: #ff6600; +} + +.cat-list .cli-stats .participants:before, +.i-stats .participants:before { + width: 13px; + height: 12px; + background-position: -197px 0; + margin-bottom: -2px; +} + +.cat-list .cli-stats .views:before, +.i-stats .views:before { + width: 13px; + height: 8px; + background-position: -148px -52px; + margin-bottom: 0; +} + +.cat-list > li > footer .cli-tags { + color: #a2a2a2; +} + +.cat-list > li > footer .cli-tags a { + color: #a2a2a2; + white-space: nowrap; +} + +.cat-list > li > footer .cli-tags a:hover { + color: #ff6600; +} + +.cli-photo-list { + /*margin-right: -15px;*/ +} + +.cli-photo-list .clipl-wrap { + margin: 0 0 10px; +} + +.sli-slides { + overflow: hidden; + margin-right: -15px; +} + +.cli-photo-list ul { + margin: 0; + padding: 0; + list-style: none; + width: 100%; +} + +.cli-photo-list ul > li { + width: 25%; + padding-right: 15px; + float: left; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.cli-photo-list ul > li a { + display: block; + overflow: hidden; + border-radius: 4px; +} + +.cli-photo-list ul > li img { + width: 100%; +} + +.clipl-wrap .re-controls { + display: none; +} + +.clipl-wrap .re-controls.enabled { + display: block; +} + +.clipl-wrap .re-controls a { + display: block; + width: 71px; + height: 0; + padding-top: 71px; + overflow: hidden; + position: absolute; + top: 50%; + margin-top: -35px; +} + +.clipl-wrap .re-controls a:before { + content: ' '; + display: block; + width: 31px; + height: 62px; + background: url(../img/sprites.png) 0 -63px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -31px 0 0 -15px; +} + +.clipl-wrap .re-controls a.prev { + left: 0; +} + +.clipl-wrap .re-controls a.prev:before { + background-position: 0 -63px; +} + +.clipl-wrap .re-controls a.next { + right: 15px; +} + +.clipl-wrap .re-controls a.next:before { + background-position: -32px -63px; +} + +.clipl-wrap .re-controls a.prev.disabled, +.clipl-wrap .re-controls a.next.disabled { + display: none; +} + +.cli-photo-list .cli-phg-bot { + width: 100%; +} + +.cli-photo-list .cli-phg-bot > div { + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.cli-photo-list .cli-phg-bot .cli-pb-button { + width: 50%; + float: left; + padding-right: 15px; +} + +.cli-photo-list .cli-phg-bot .cli-pb-button .button { + width: 49%; + min-width: 175px; + text-align: center; + margin-right: 11px; +} + +.cli-photo-list .cli-phg-bot .cli-pb-info { + padding-left: 15px; + float: right; + font-size: 12px; + line-height: 29px; + color: #a2a2a2; +} + + +.cli-photo-text { + font-size: 12px; + line-height: 15px; + margin-bottom: 15px; +} + +.cli-photo-text > *:first-child { + margin-top: 0; +} + +.cli-photo-gallery { + margin-right: -15px; +} + +.i-photos .cli-photo-gallery { + margin-right: -20px; +} + +.cli-photo-gallery > ul { + margin: 0; + padding: 0; + list-style: none; +} + +.cli-photo-gallery > ul > li { + display: inline-block; + vertical-align: top; + width: 33.3%; + padding: 0 15px 0 0; + margin: 0 -4px 15px 0; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.i-photos .cli-photo-gallery > ul > li { + width: 20%; + padding-right: 20px; + margin-bottom: 20px; +} + +.cli-photo-gallery > ul > li > a { + position: relative; + display: block; + width: 100%; + /*height: 140px;*/ + overflow: hidden; + text-align: center; + border-radius: 4px; +} + +.i-photos .cli-photo-gallery > ul > li > a { + height: 140px; +} + +.cli-photo-gallery > ul > li img { + display: block; + width: 100%; +} + +.i-photos .cli-photo-gallery > ul > li img { + display: inline-block; + width: auto; + height: 100%; + margin: 0 -50%; +} + +.cli-photo-gallery .pg-title { + display: none; + position: absolute; + background: rgba(0, 0, 0, .7); + color: #fff; + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + width: 100%; + left: 0; + bottom: 0; + text-align: left; + padding: 20px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.lt-ie9 .cli-photo-gallery .pg-title { + background: url(../img/semitransparent-ie8.png); +} + + +.popup-gallery-container { + position: fixed; + width: 100%; + height: 100%; + left: 0; + top: 0; + overflow: auto; + background: rgba(0, 0, 0, .75); + z-index: 1000; + -moz-box-sizing: border-box; + box-sizing: border-box; + display: none; +} + +.lt-ie9 .popup-gallery-container { + background: url(../img/semitransparent-ie8.png); +} + +.pg-container-wrap { + display: table; + width: 100%; + height: 100%; +} + +.popup-gallery-outer { + position: fixed; + width: 100%; + height: 100px; +} +/* popup Галерея*/ +.popup-gallery { + position: absolute; + display: block; + width: 1040px; + height: 533px; + top: 50%; + left: 50%; + margin-top: -266px; + margin-left: -520px; + border-radius: 4px; + background-color: #ffffff +} + +.popup-gallery .pg-wrap { + position: relative; + background: #fff; + + padding-left: 730px; + overflow: hidden; + -moz-box-sizing: border-box; + box-sizing: border-box; + border-radius: 4px; +} +.popup-gallery .ajax-load-popup{ + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + +} +.popup-gallery .ajax-load-popup img{ + display: block; + width: 54px; + height: 55px; + position: absolute; + top: 50%; + left: 50%; + + margin-top: -27px; + margin-left: -27px; +} + +.lt-ie9 .popup-gallery .pg-wrap { + border: 1px solid #ccc; +} + +.popup-gallery .pg-photos { + width: 730px; + height: 533px; + line-height: 530px; + background: #eee; + margin: 0 -730px 0 -730px; + float: left; +} + +.popup-gallery .pg-photos img { + max-width: 730px; + max-height: 533px; + text-align: center; + vertical-align: middle; +} + +.popup-gallery .pg-photos ul { + margin: 0; + padding: 0; + list-style: none; +} + + +.popup-gallery .pg-info { + padding: 15px 20px 145px; + font-family: 'dindisplay_pro', sans-serif; + width: 100%; + height: 100%; + text-align: left; + float: left; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.pgi-wrap { + height: 100%; + overflow: auto; +} + +.pg-photo-title { + font-size: 20px; + padding-right: 20px; + margin-bottom: 10px; +} + +.pg-photo-text { + font-family: Arial, sans-serif; + font-size: 12px; + line-height: 15px; + color: #8d8d8d; + margin-bottom: 10px; +} + +.popup-gallery .pg-info hr { + margin: 10px 0; +} + +.pg-photo-descr { + font-size: 12px; + line-height: 15px; +} + +.pg-photo-descr h3 { + font-size: 15px; + margin: 0 0 3px; + font-weight: normal; +} + +.pg-photo-descr p { + margin: 3px 0 0; +} + +.pg-comments .pgc-title { + font-size: 15px; + margin: 0 0 5px; +} + +.pg-comments ul { + margin: 0; + padding: 0; + list-style: none; + font-size: 12px; + line-height: 15px; + color: #8d8d8d; +} + +.pg-comments ul li { + margin-top: 10px; +} +.pg-only-text .pg-photo-title{ + font-size: 24px; + line-height: 1em; + margin-top: 24px; + margin-bottom: 36px; + /*text-indent:1em;*/ + margin-left: 0.5em; +} +/* the end of gallerypopup*/ +.pgc-user { + color: #ff6600; +} + +.pgc-form { + position: absolute; + left: 750px; + right: 20px; + bottom: 20px; +} + +.pgc-form .pgc-field { + margin-bottom: 5px; +} + +.pgc-form label { + display: block; + font-size: 15px; + margin-bottom: 5px; +} + +.pgc-form textarea { + height: 50px; + padding: 5px; +} + +.pgc-form .pgc-buttons button, +.pgc-form .pgc-buttons .button { + padding-left: 8px; + padding-right: 8px; +} + +.pgc-form .pgc-buttons button { + background: none; + -webkit-filter: none; + filter: none; +} + +.pgc-form .pgc-buttons button:hover { + background: #ff6600; +} + +.pg-photos-controls a { + position: absolute; + width: 60px; + height: 0; + padding-top: 533px; + overflow: hidden; + top: 0; + opacity: .5; +} + +.pg-photos-controls a:hover { + opacity: 1; +} + +.pg-photos-controls a:before { + content: ' '; + display: block; + width: 21px; + height: 42px; + background: url(../img/sprites.png) -257px -133px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -21px 0 0 -10px; +} + +.pg-photos-controls a.pgpc-prev { + left: -60px; +} + +.pg-photos-controls a.pgpc-next { + right: -60px; +} + +.pg-photos-controls a.pgpc-next:before { + background-position: -279px -133px; +} + +.pg-close { + display: block; + position: absolute; + right: 0; + top: 0; + width: 32px; + height: 32px; + cursor: pointer; + z-index: 100; +} + +.pg-close:before { + content: ''; + display: block; + width: 10px; + height: 10px; + background: url(../img/sprites.png) -133px 0 no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -5px 0 0 -5px; +} + +.pg-close:hover:before { + background-position: -144px 0; +} + + +.item-wrap { + padding-left: 120px; +} + +.item-wrap > aside { + width: 100px; + float: left; + margin: 0 -100% 0 -120px; +} + +.item-wrap > aside .i-pict { + float: none; + margin-bottom: 5px; +} + +.item-wrap > aside .i-rating { + font-family: 'dindisplay_pro', sans-serif; + font-size: 21px; + line-height: 22px; + text-align: center; + color: #ff6600; + padding: 4px 10px 3px; + margin: 15px 0; + border: 1px solid #fdcfaf; + border-radius: 4px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.item-wrap > aside .i-rating:before { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 20px; + height: 19px; + margin: -3px 5px -2px -2px; + background: url(../img/sprites.png) -160px -32px no-repeat; + opacity: .5; +} + +.item-wrap.event > aside .i-rating { + margin-top: 22px; +} + +.i-info { + width: 100%; + float: left; +} + +.i-info header { + font-family: 'dindisplay_pro', sans-serif; + margin-bottom: 2px; +} + +.i-info header .i-place { + float: right; + font-size: 15px; + padding: 13px 0 0 15px; + max-width: 235px; + white-space: nowrap; +} + +.i-info header .i-place:before { + content: ' '; + display: block; + width: 10px; + height: 16px; + background: url(../img/sprites.png) -217px -16px no-repeat; + float: left; + margin: 1px -10px 0 -15px; +} + +.i-info header .i-place a { + color: #464646; + text-decoration: none; +} + +.i-info header .i-place a:hover { + color: #ff6600; +} + + +.i-info .i-title { + display: inline-block; + font-size: 40px; + line-height: 37px; + color: #ff6600; + margin: 0 6px 5px 0; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-transition: color .3s; + -o-transition: color .3s; + transition: color .3s; +} + +.i-info .i-position { + font-family: 'dindisplay_pro', sans-serif; + font-size: 20px; +} + +.i-info .i-position a { + text-decoration: none; + color: #464646; +} + +.i-info .i-position a:hover { + color: #ff6600; +} + +.i-info .i-descr { + font-size: 12px; + line-height: 16px; + color: #7e7e7e; + height: 27px; + font-family: Arial, sans-serif; +} + +.place .i-info .i-descr { + min-height: 30px; +} + +.i-info .i-area { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 500; + font-size: 22px; + line-height: 23px; + margin-bottom: 15px; +} + +.i-info .i-area a { + color: #464646; + text-decoration: none; +} + +.i-info .i-area a:hover { + color: #ff6600; +} + +.i-info .i-address { + margin-bottom: 15px; + + +} + +.i-address header { + font-family: 'dindisplay_pro', sans-serif; + font-size: 18px; + line-height: 21px; + margin-bottom: 15px; +} + +.i-address header > * { + display: inline-block; + vertical-align: middle; +} + +.i-address header .address { + margin-right: 10px; +} + +.i-info .i-address a.toggle-map { + display: inline-block; + vertical-align: middle; + font-size: 15px; + line-height: 12px; + color: #a2a2a2; + text-decoration: none; + border-bottom: 1px dashed; + margin-left: 15px; +} + +.i-info .i-address.map-opened header a.toggle-map { + display: none; +} + +.i-info .i-address a.toggle-map:hover { + color: #ff6600; +} + +.i-info .i-address a.toggle-map:before { + content: ' '; + display: block; + width: 10px; + height: 16px; + background: url(../img/sprites.png) -217px -16px no-repeat; + float: left; + margin: 0 -10px -0px -15px; +} + +.i-info .i-address .i-map { + position: relative; + /*margin: 0 0 20px -120px;*/ + margin: 0 0 20px; + display: none; +} + +.place .i-info .i-address .i-map { + margin-left: -120px; +} + +.i-info .i-address.map-opened .i-map { + display: block; +} + +.i-info .i-address .i-map .close-map { + position: absolute; + right: 0; + bottom: 100%; + z-index: 20; + margin-bottom: 15px; +} + +.i-info .i-address .i-map .map-canvas { + width: 100%; + height: 305px; + background: #eee; + overflow: hidden; + border-radius: 4px; +} + +.i-info .i-tags { + margin-bottom: 15px; + font-size: 11px; + line-height: 16px; + color: #a2a2a2; +} + +.i-info .i-tags { + margin-top: -5px; +} + +.i-info .i-tags a { + color: #a2a2a2; + white-space: nowrap; +} + +.i-info .i-tags a:hover { + color: #ff6600; +} + +.i-info .i-contacts { + margin-bottom: 15px; +} + +.i-info .i-contacts .ic-buttons { + width: 265px; + margin-right: 40px; + float: left; +} + +.i-info .i-contacts .ic-buttons .icb-exit-edit { + display: none; +} + +.i-info .i-contacts .ic-buttons .soc-media-buttons { + margin-top: 25px; +} + +.i-info .i-contacts .ic-links { + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + line-height: 20px; + width: 310px; + float: left; +} + +.ic-tel { + font-size: 20px; + line-height: 21px; + margin-bottom: 4px; +} + +.i-additional { + margin-bottom: 15px; + font-size: 12px; + line-height: 15px; +} + +.i-additional .ia-title { + font-family: 'dindisplay_pro', sans-serif; + font-size: 20px; + line-height: 23px; + margin-bottom: 30px; +} + +dl.add-info p{ + margin: 0; +} +dl.add-info { + margin: 0 0 -7px; + padding: 0; + font-size: 12px; + line-height: 15px; +} + +dl.add-info dt { + min-height: 15px; + width: 178px; + float: left; + clear: left; + margin: 0 5px 10px 0; +} + +dl.add-info dd { + min-height: 15px; + padding: 0; + overflow: hidden; + margin: 0 0 12px; +} + +dl.add-info dd a { + text-decoration: none; + color: #464646; +} + +dl.add-info dd a:hover { + text-decoration: none; + color: #ff6600; +} + +dl.add-info dd ul { + margin: 0; + padding: 0; + list-style: none; +} + +dl.add-info dd ul li { + margin-bottom: 3px; +} + +.i-statistics > header { + font-family: 'dindisplay_pro', sans-serif; + padding-left: 120px; + margin-bottom: 20px; + font-weight: 500; + font-size: 20px; + line-height: 23px; + color: #ff6600; +} + +.i-statistics > header b { + font-weight: bold; + font-size: 40px; + letter-spacing: -2px; + margin-right: 2px; +} + +.i-statistics > header .ish-title { + width: 100px; + margin: 0 -100% 0 -120px; + float: left; + font-weight: normal; + font-size: 17px; + line-height: 18px; + text-align: right; + color: #464646; +} + +.i-statistics > header .ish-data { + /*display: table; + height: 40px;*/ + width: 100%; + text-align: justify; + padding-right: 70px; + margin-bottom: -20px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.i-statistics > header .ish-data > * { + /*display: table-cell; + width: 33.3%; + padding: 5px 10px 0 0; + vertical-align: middle;*/ + display: inline-block; + padding-top: 10px; + max-width: 30%; +} + +.i-statistics > header .ish-data:after { + content: ''; + display: inline-block; + width: 100%; + height: 0; +} + +.i-statistics > header .ish-data a { + text-decoration: none; + color: #ff6600; +} + +.i-statistics > header .ish-data a:hover { + color: #464646; +} + + +.m-article .sect-title { + font-family: 'dindisplay_pro', sans-serif; + font-size: 23px; + line-height: 24px; + margin-bottom: 15px; +} + +.e-details .sect-title { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 300; + font-size: 30px; + line-height: 32px; + color: #feb17d; +} + +.m-article .sect-title a { + color: #464646; + text-decoration: none; +} + +.m-article .sect-title a:hover { + color: #ff6600; +} + +.graph-title { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 300; + font-size: 25px; + line-height: 26px; + color: #feb17d; +} + + +.i-staff-list { + margin-bottom: 15px; +} + +.i-staff-list > ul { + margin: 0; + padding: 0 0 0 4px; + list-style: none; +} + +.i-staff-list > ul > li { + display: inline-block; + width: 33%; + margin-left: -4px; +} + +.i-staff-list > ul > li > a { + text-decoration: none; + color: #464646; +} + +.i-staff-list .sl-item { + padding-left: 110px; +} + +.i-staff-list .sl-pict { + display: block; + width: 90px; + height: 90px; + overflow: hidden; + margin: 0 -100% 0 -110px; + float: left; + border-radius: 4px; +} + +.i-staff-list .sl-info { + display: table; + width: 100%; + height: 90px; +} + +.i-staff-list .sl-info .sl-info-wrap { + display: table-cell; + vertical-align: middle; + padding-right: 40px; +} + +.i-staff-list .sl-info .sl-name { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 500; + font-size: 19px; + line-height: 20px; + color: #ff6600; + margin-bottom: 4px; +} + +.i-staff-list a:hover .sl-info .sl-name { + color: #464646; +} + +.i-staff-list .sl-info .sl-position { + font-size: 11px; + line-height: 14px; +} + + +.i-stats { + line-height: 15px; + margin-bottom: 7px; +} + +.i-date { + font-family: 'dindisplay_pro', sans-serif; + font-size: 27px; + margin: 12px 0 10px; +} + +.i-discount { + margin-top: 15px; + font-size: 10px; + line-height: 12px; + color: #a2a2a2; +} + +.i-discount .discount-button { + display: block; + text-align: center; + text-decoration: none; + border: none; + outline: none; + height: 26px; + padding: 1px 5px 0; + font-family: 'dindisplay_pro', sans-serif; + font-weight: bold; + font-size: 13px; + line-height: 25px; + text-transform: uppercase; + color: #fff; + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); + background: #ff6600; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff8000), color-stop(100%,#ff6600)); + background: -webkit-linear-gradient(top, #ff8000 0%,#ff6600 100%); + background: -o-linear-gradient(top, #ff8000 0%,#ff6600 100%); + background: -webkit-linear-gradient(top, #ff8000 0%, #ff6600 100%); + background: -o-linear-gradient(top, #ff8000 0%, #ff6600 100%); + background: linear-gradient(to bottom, #ff8000 0%,#ff6600 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8000', endColorstr='#ff6600',GradientType=0 ); + border-radius: 3px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.i-discount .discount-button:hover { + background: #ff8000; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fe9150), color-stop(100%,#fe9150)); + background: -webkit-linear-gradient(top, #fe9150 0%,#ff8000 100%); + background: -o-linear-gradient(top, #fe9150 0%,#ff8000 100%); + background: -webkit-linear-gradient(top, #fe9150 0%, #ff8000 100%); + background: -o-linear-gradient(top, #fe9150 0%, #ff8000 100%); + background: linear-gradient(to bottom, #fe9150 0%,#ff8000 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fe9150', endColorstr='#ff8000',GradientType=0 ); +} + +.i-discount .dsc-text { + font-size: 10px; + line-height: 11px; + margin-top: 5px; + padding: 0 0 0 10px; +} + +.i-buttons {} + +.i-buttons .ib-main { + float: left; +} + +.i-buttons .ib-add { + float: right; +} + +.i-divs { + margin-bottom: 20px; +} + +.i-divs .i-subj { + width: 55%; + float: left; + font-family: 'dindisplay_pro', sans-serif; + font-size: 14px; +} + +.i-divs .i-subj ul { + margin: -3px 0 0; + padding: 0; + list-style: none; +} + +.i-divs .i-subj a { + color: #6d6d6d; +} + +.i-divs .i-subj a:hover { + color: #ff6600; +} + +.i-divs .i-tags { + width: 45%; + float: right; + margin-bottom: 0; +} + +.i-divs .i-tags a { + white-space: normal; +} + + +.i-sub-articles { + font-family: 'dindisplay_pro', sans-serif; + font-size: 16px; + padding: 0 0 0 10px; + background: #fcf4ee; + margin-bottom: 25px; + border-radius: 4px; +} + +.i-sub-articles ul { + margin: 0; + padding: 0; + list-style: none; + display: table; + width: 100%; +} + +.i-sub-articles ul > li { + display: table-cell; + padding: 15px 15px; +} + +.i-steps { + margin-bottom: 20px; +} + +.i-steps .is-title { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 100; + font-size: 26px; + line-height: 27px; + text-align: center; + text-transform: uppercase; + margin-bottom: 15px; +} + +.i-steps ul { + margin: 0; + padding: 0; + list-style: none; + display: table; + width: 100%; +} + +.i-steps ul > li { + display: table-cell; + width: 33.3%; + padding: 0 3px; +} + +.i-steps .label { + font-size: 12px; + line-height: 15px; + font-style: italic; + margin-bottom: 5px; + white-space: nowrap; + text-align: center; +} + +.i-steps a.step { + position: relative; + display: block; + text-align: center; + height: 31px; + line-height: 30px; + border: 1px solid; + font-family: 'dindisplay_pro', sans-serif; + text-transform: uppercase; + font-weight: bold; + font-size: 16px; + text-decoration: none; + -moz-box-sizing: border-box; + box-sizing: border-box; + border-radius: 4px; + -webkit-transition: background .3s; + -o-transition: background .3s; + transition: background .3s; +} + +.i-steps ul > li.s1 a:after, +.i-steps ul > li.s2 a:before, +.i-steps ul > li.s2 a:after, +.i-steps ul > li.s3 a:before { + content: ' '; + display: block; + width: 15px; + height: 31px; + background: url(../img/sprites.png) 0 -144px no-repeat; + position: absolute; + top: -1px; +} + +.i-steps ul > li a:after { + right: -1px; +} + +.i-steps ul > li a:before { + left: -1px; +} + +.i-steps ul > li.s1, +.i-steps ul > li.s1 a { + color: #ff6600; +} + +.i-steps ul > li.s1 a:after { + background-position: 0 -144px; +} + +.i-steps ul > li.s1 a:hover { + background: #ff6600; + border-color: #ff6600; + color: #fff; +} + +.i-steps ul > li.s2, +.i-steps ul > li.s2 a { + color: #00adef; +} + +.i-steps ul > li.s2 a b { + color: #1d447d; +} + +.i-steps ul > li.s2 a:before { + background-position: -15px -144px; +} + +.i-steps ul > li.s2 a:after { + background-position: -30px -144px; +} + +.i-steps ul > li.s2 a:hover { + background: #00adef; + border-color: #00adef; + color: #fff; +} + +.i-steps ul > li.s3, +.i-steps ul > li.s3 a { + color: #ef3976; +} + +.i-steps ul > li.s3 a b { + color: #08293a; +} + +.i-steps ul > li.s3 a:before { + background-position: -45px -144px; +} + +.i-steps ul > li.s3 a:hover { + background: #ef3976; + border-color: #ef3976; + color: #fff; +} + +.i-photo-slides { + margin-bottom: 25px; +} + +.ps-photo-gallery { + width: 100%; + overflow: hidden; + border-radius: 4px; +} + +.ps-photo-gallery ul { + margin: 0; + padding: 0; + list-style: none; + width: 100%; +} + +.ps-photo-gallery ul > li { + width: 100%; + float: left; +} + +.ps-photo-gallery ul > li img { + width: 100%; +} + + +.ps-photo-gallery .re-controls { + display: none; +} + +.ps-photo-gallery .re-controls.enabled { + display: block; +} + +.ps-photo-gallery .re-controls a { + display: block; + width: 71px; + height: 0; + padding-top: 71px; + overflow: hidden; + position: absolute; + top: 50%; + margin-top: -35px; +} + +.ps-photo-gallery .re-controls a:before { + content: ' '; + display: block; + width: 31px; + height: 62px; + background: url(../img/sprites.png) 0 -63px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -31px 0 0 -15px; +} + +.ps-photo-gallery .re-controls a.prev { + left: 0; +} + +.ps-photo-gallery .re-controls a.prev:before { + background-position: 0 -63px; +} + +.ps-photo-gallery .re-controls a.next { + right: 0; +} + +.ps-photo-gallery .re-controls a.next:before { + background-position: -32px -63px; +} + +.ps-photo-gallery .re-controls a.prev.disabled, +.ps-photo-gallery .re-controls a.next.disabled { + display: none; +} + +.i-event-description { + margin-bottom: 15px; +} + +.ied-title { + font-family: 'dindisplay_pro', sans-serif; + font-weight: normal; + font-size: 21px; + line-height: 22px; + margin-bottom: 15px; +} + +.ied-text { + font-size: 12px; + line-height: 15px; +} + +.i-event-additional { + margin-bottom: 20px; +} + +.i-event-additional .e-docs { + width: 30%; + float: right; + margin: 0; + padding: 0; + list-style: none; + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + line-height: 18px; +} + +.i-event-additional .e-docs > li { + margin-bottom: 5px; +} + +.i-event-additional .e-docs a:before { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 11px; + height: 13px; + background: url(../img/sprites.png) -211px 0 no-repeat; + margin: -1px 5px 0 0; +} + +.i-event-additional .add-info { + width: 70%; + padding-right: 30px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + + +.i-members { + display: table; + width: 100%; + margin-bottom: 15px; +} + +.i-members > * { + display: table-cell; + vertical-align: top; + padding-left: 25px; +} + +.i-members .im-title { + display: inline-block; + font-family: 'dindisplay_pro', sans-serif; + font-size: 23px; + line-height: 24px; + margin: 0 0 12px; +} + +.i-members .im-title:before { + content: ' '; + display: block; + width: 17px; + height: 15px; + background: url(../img/sprites.png) -239px -33px no-repeat; + float: left; + margin: 4px -100% -0px -25px; +} + +.i-members .im-visitors .im-title:before { + width: 13px; + background-position: -188px -16px; + margin-left: -22px; +} + +.i-members a.more { + font-size: 11px; + display: block; +} + +.i-members ul { + margin: 0; + padding: 0; + list-style: none; +} + +.i-members ul a { + color: #464646; +} + +.i-members ul a:hover { + color: #ff6600; +} + +.i-members .im-participants { + width: 70%; + padding-right: 30px; +} +.i-members .im-participants .button.icon-up:before{ + background-position:-365px -108px; +} +.i-members .im-participants .button.icon-up:hover:before{ + background-position:-365px -92px; + +} + +.i-members .im-title { + width: 33.3%; +} + +.i-members .im-participants a.more { + margin-left: -3px; +} + +.i-members .im-participants ul { + padding: 4px 0 0 4px; +} + +.i-members .im-participants ul li { + display: inline-block; + vertical-align: top; + width: 33.3%; + margin-left: -4px; + margin-bottom: 20px; +} + +.i-members .im-participants ul li a { + display: block; + width: 140px; + font-size: 11px; + line-height: 14px; + text-align: center; +} + +.i-members .im-participants ul li a .imp-pict { + position: relative; + display: block; + width: 140px; + overflow: hidden; + margin-bottom: 5px; + border-radius: 4px; +} + +.i-members .im-participants ul li a img { + display: block; + width: 140px; +} + +.i-members .im-participants ul li a .imp-pict:before { + content:''; + display:block; + position:absolute; + width:100%; + height:100%; + border-radius: 4px; + box-shadow: inset 0 1px 0 rgba(0, 0, 0, .2); + +} + +.i-members .im-visitors { + width: 30%; + font-size: 12px; + line-height: 17px; +} + + +.i-members .im-visitors ul li { + margin-bottom: 2px; +} + + +.e-num-info { + padding-left: 130px; + margin-bottom: 30px; + font-family: 'dindisplay_pro', sans-serif; + min-height: 120px; + margin-top: 30px; +} + +.eni-area-wrap { + color: #ff6600; + position: relative; +} + +.eni-area-wrap .eni-title { + position: absolute; + top: 0; + left: 0; + margin-left: -130px; + display: block; + width: 110px; + margin-right: 16px; + font-size: 20px; + line-height: 21px; + text-align: right; + -webkit-transition: color .3s; + -o-transition: color .3s; + transition: color .3s; + color: #464646; + margin-top: 28px; + +} +.eni-area-wrap .eni-title:hover{ + color: #ff6600; +} + +.eni-area-wrap .eni-area { + display: inline-block; + vertical-align: middle; + font-weight: bold; + font-size: 120px; + line-height: 120px; + letter-spacing: -2px; + margin-bottom: -5px; +} + +.e-num-info sup { + font-size: 60%; +} + +.eni-stats { + line-height: 47px; + margin-bottom: 10px; +} + +.eni-stats .enis-item { + display: inline-block; + vertical-align: middle; + margin-right: 50px; + font-size: 20px; +} + +.eni-stats .enis-item b { + display: inline-block; + vertical-align: middle; + font-size: 45px; +} + +.eni-founded { + font-size: 23px; + color: #a2a2a2; +} + +.eni-areas { + margin: 20px 0; +} + +.eni-areas .enis-col { + width: 225px; + display: inline-block; + vertical-align: top; + margin-right: 16px; + font-size: 15px; + line-height: 20px; +} + +.eni-holds .enis-item b, +.eni-areas .enis-col b { + display: block; + vertical-align: middle; + font-size: 45px; + line-height: 40px; + margin-bottom: -5px; + letter-spacing: -1px; +} + +.eni-areas .enis-col b { + margin-bottom: -3px; +} + +.eni-areas .enis-col .enc-title { + color: #ff6600; + margin-bottom: 5px; +} + +.eni-areas .enis-col ul { + margin: 0; + padding: 0; + list-style: none; +} + +.eni-areas .enis-col ul li { + margin-bottom: 2px; + color: #a2a2a2; +} + +.eni-areas .enis-col ul li i { + color: #464646; + font-style: normal; +} + +.eni-holds { + margin: 25px 0 25px -130px; +} + +.eni-holds .eni-title { + display: inline-block; + vertical-align: middle; + width: 110px; + margin-right: 16px; + font-size: 17px; + line-height: 20px; + text-align: right; + color: #ff6600; +} + +.eni-holds .enis-item { + display: inline-block; + vertical-align: middle; + margin-right: 50px; + font-size: 20px; + line-height: 21px; + text-align: center; +} + + +.i-events-list + .m-article { + margin-top: 30px; +} + +.h-booking { + margin: 30px -30px 30px 0; + padding: 0 20px; +} + +.m-article .h-booking { + margin: 0 -30px 0 0; + padding: 0; +} + +.h-booking header { + margin-bottom: 15px; +} + +.h-booking .sect-title { + display: inline-block; + font-family: 'dindisplay_pro', sans-serif; + font-size: 23px; + line-height: 24px; + color: #40bbea; + width: 581px; +} + +.h-booking .sect-title a { + color: #40bbea; + text-decoration: none; +} + +.h-booking .sect-title a:hover { + color: #1d447d; +} + +.m-article .h-booking .sect-title { + margin: 0; +} + +.h-booking .sect-title b { + font-weight: normal; + color: #1d447d; +} + +.h-booking a.more { + font-size: 11px; +} + +.h-booking ul { + margin: 0; + padding: 0 0 0 4px; + list-style: none; +} + +.h-booking ul li { + display: inline-block; + vertical-align: top; + width: 150px; + margin-right: 40px; + text-align: center; +} + +.h-booking ul li a { + font-size: 12px; + line-height: 15px; + color: #32a7d3; + display: block; +} + +.h-booking .hb-link{ + margin-bottom: .8em; + display: block; + line-height: 1em; +} +.h-booking .hb-pict { + display: block; + width: 150px; + height: 150px; + overflow: hidden; + margin-bottom: 7px; + border-radius: 4px; +} + +.h-booking .hb-pict img { + width: 100%; +} + +.h-booking ul li .hb-price { + font-family: 'dindisplay_pro', sans-serif; + font-weight: bold; + font-size: 16px; + line-height: 19px; + color: #1d447d; + margin: 3px 0; +} + +.h-booking ul li a.button { + font-size: 13px; +} + + +.e-cat { + margin-bottom: 40px; +} + +.m-article + .e-cat { + margin-top: 30px; +} + +.e-cat .sect-title { + font-family: 'dindisplay_pro', sans-serif; + font-size: 23px; + line-height: 24px; + color: #ff6600; + padding: 0 20px; + margin-bottom: 20px; +} + +.e-cat .sect-title a { + color: #ff6600; + text-decoration: none; +} + +.e-cat .sect-title a:hover { + color: #464646; +} + +.i-services li{ + color: #ff6600; +} +.i-services { + margin-bottom: 20px; +} + +.i-services .is-wrap { + margin-right: -20px; +} + +.i-services ul { + margin: 0; + padding: 0; + list-style: none; + width: 33.3%; + float: left; +} + +.i-services ul li { + margin-bottom: 3px; + padding-right: 30px; +} + +.e-pv-container { + margin: 20px 0; +} + +.div-img-wrap img { + display: block; + width: 100%; +} + +.e-video-container { + margin-top: 20px; +} + +.div-video-wrap { + background: #000; +} + +.div-video-wrap iframe { + margin: 0 auto; + display: block; +} + +.i-events-list { + margin-bottom: 20px; +} + +.i-events-list .sect-title { + font-family: 'dindisplay_pro', sans-serif; + font-size: 23px; + line-height: 24px; + color: #ff6600; + padding-left: 20px; + margin-bottom: 20px; +} + + +.i-contacts { + margin: 30px 0; +} + +.i-contacts .sect-title { + margin-bottom: 20px; +} + +.i-contacts .ic-wrap { + display: table; + width: 100%; + font-size: 13px; + line-height: 16px; +} + +.i-contacts .ic-wrap .ic-col { + display: table-cell; + vertical-align: top; + width: 55%; +} + +.i-contacts .ic-wrap .ic-col:first-child { + width: 45%; + padding-right: 30px; +} + +.i-contacts .ic-addr { + min-height: 32px; +} + +.i-contacts .ic-wrap .ic-col ul.tels { + margin: 0; + padding: 0; + list-style: none; +} + + + +.s-comments { + margin: 30px 0; +} + +.s-comments .sect-title { + padding-left: 20px; + margin-bottom: 15px; + font-family: 'dindisplay_pro', sans-serif; + font-size: 22px; + line-height: 23px; + color: #ff6600; +} + +.sc-comments .cl-item-wrap { + padding-left: 90px; +} + +.sc-comments .cli-pict { + margin-left: -90px; + width: 70px; + height: 70px; + line-height: 65px; + padding: 2px; +} + +.sc-comments .cli-info { + margin-bottom: 0; +} + +.sc-comments .sc-name { + font-family: 'dindisplay_pro', sans-serif; + font-weight: 500; + font-size: 17px; + line-height: 20px; + color: #ff6600; + margin: -7px 0 10px; +} + +.sc-comments .sc-name a { + text-decoration: none; + color: #ff6600; +} + +.sc-comments .sc-name a:hover { + color: #000000; +} + +.sc-comments .sc-text { + font-size: 12px; + line-height: 16px; +} + +.ma-text { + font-size: 13px; + line-height: 16px; +} + +.ma-text h2 { + font-family: 'dindisplay_pro', sans-serif; + font-weight: normal; + font-size: 25px; + line-height: 26px; + color: #ff6600; + margin: 25px 0 20px; +} + +.ma-text h3 { + font-family: 'dindisplay_pro', sans-serif; + font-weight: normal; + font-size: 20px; + line-height: 23px; + color: #ff6600; + margin: 20px 0 15px; +} + +.ma-text p { + margin: 20px 0; +} + +.ma-text > *:first-child { + margin-top: 0; +} + +.ma-text .pt-block { + margin: 25px 0; +} + + +.ma-text .pt-block img { + float: left; + margin-right: 30px; +} + +.ma-text .pt-block.p-right img { + float: right; + margin-left: 30px; +} + +.ma-text .pt-block .ptb-text { + overflow: hidden; +} + +.ma-text .pt-block .ptb-text > *:first-child { + margin-top: 0; +} + +.ma-text .pt-block .ptb-text ul { + margin: 0; + padding: 0; + list-style: none; +} + +.ma-text .pt-block .ptb-text ul li { + padding-left: 16px; + margin-bottom: 7px; +} + +.ma-text .pt-block .ptb-text ul li:before { + content: ''; + display: block; + width: 11px; + height: 8px; + background: url(../img/sprites.png) -287px -51px no-repeat; + float: left; + margin: 5px -100% 0 -16px; +} + +.s-slide-gallery-wrap { + width: 100%; + overflow: hidden; +} + +.s-slide-gallery { + margin-right: -15px; + overflow: hidden; +} + + + +.s-slide-gallery ul { + width: 100%; +} + +.s-slide-gallery li { + width: 25%; + padding-right: 15px; + float: left; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.s-slide-gallery li a { + display: block; + overflow: hidden; + border-radius: 4px; +} + +.s-slide-gallery li img { + width: 100%; +} + +.s-slide-gallery .re-controls { + display: none; +} + +.s-slide-gallery .re-controls.enabled { + display: block; +} + +.s-slide-gallery .re-controls a { + display: block; + width: 71px; + height: 0; + padding-top: 71px; + overflow: hidden; + position: absolute; + top: 50%; + margin-top: -35px; +} + +.s-slide-gallery .re-controls a:before { + content: ' '; + display: block; + width: 31px; + height: 62px; + background: url(../img/sprites.png) 0 -63px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -31px 0 0 -15px; +} + +.s-slide-gallery .re-controls a.prev { + left: 0; +} + +.s-slide-gallery .re-controls a.prev:before { + background-position: 0 -63px; +} + +.s-slide-gallery .re-controls a.next { + right: 15px; +} + +.s-slide-gallery .re-controls a.next:before { + background-position: -32px -63px; +} + +.s-slide-gallery .re-controls a.prev.disabled, +.s-slide-gallery .re-controls a.next.disabled { + display: none; +} + +.s-order { + margin: 25px 0; + display: table; + width: 100%; +} + +.s-order .so-col { + display: table-cell; + vertical-align: middle; + padding-right: 40px; +} + +.s-order .so-col + .so-col { + width: 100%; +} + +.order-button, +.rq-order-button { + display: inline-block; + text-decoration: none; + color: #ff6600; + border: 1px solid #ff6600; + height: 44px; + font-family: 'dindisplay_pro', sans-serif; + white-space: nowrap; + border-radius: 4px; +} + +.rq-order-button .rqob-wrap { + display: table; + border: none; + border-collapse: collapse; +} + +.order-button > span, +.order-button > a { + display: inline-block; + vertical-align: top; + padding: 1px 20px 0; + line-height: 43px; + height: 44px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.rq-order-button .rqob-wrap > * { + display: table-cell; + padding: 0; + line-height: 43px; + height: 44px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.order-button .ob-price { + font-size: 25px; +} + +.rq-order-button .rqob-wrap .rqob-price { + vertical-align: middle; + padding: 0 30px; + font-size: 25px; + line-height: 44px; +} + +.order-button .rqob-button { + vertical-align: top; +} + +.order-button .ob-text, +.rq-order-button button, +.rq-order-button .ob-text { + font-weight: bold; + font-size: 17px; + text-decoration: none; + text-transform: uppercase; + color: #fff; + text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); + border-radius: 0; + background: #ff6600; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff8000), color-stop(100%,#ff6600)); + background: -webkit-linear-gradient(top, #ff8000 0%,#ff6600 100%); + background: -o-linear-gradient(top, #ff8000 0%,#ff6600 100%); + background: -webkit-linear-gradient(top, #ff8000 0%, #ff6600 100%); + background: -o-linear-gradient(top, #ff8000 0%, #ff6600 100%); + background: linear-gradient(to bottom, #ff8000 0%,#ff6600 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8000', endColorstr='#ff6600',GradientType=0 ); +} + +.rq-order-button button, +.rq-order-button .ob-text { + display: block; + width: 100%; + height: 44px; + font-size: 17px; + line-height: 45px; + text-align: center; + padding: 1px 20px 0; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +a.order-button:hover .ob-text, +.order-button a.ob-text:hover, +.rq-order-button button:hover, +.rq-order-button a.ob-text:hover { + background: #ff8000; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fe9150), color-stop(100%,#ff8000)); + background: -webkit-linear-gradient(top, #fe9150 0%,#ff8000 100%); + background: -o-linear-gradient(top, #fe9150 0%,#ff8000 100%); + background: -webkit-linear-gradient(top, #fe9150 0%, #ff8000 100%); + background: -o-linear-gradient(top, #fe9150 0%, #ff8000 100%); + background: linear-gradient(to bottom, #fe9150 0%,#ff8000 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fe9150', endColorstr='#ff8000',GradientType=0 ); +} + +.order-button .ob-text:after, +.rq-order-button button:after, +.rq-order-button .ob-text:after { + content: ''; + display: inline-block; + vertical-align: middle; + width: 8px; + height: 12px; + background: url(../img/sprites.png) -175px 0 no-repeat; + margin: -1px 0 0 7px; +} + +.order-button .rub, +.rq-order-button .rub { + font-size: 22px; +} + +.order-descr { + font-size: 13px; + line-height: 15px; + color: #ff6600; +} + + +.s-note { + font-size: 12px; + line-height: 15px; +} + +.s-note p { + margin: 7px 0; +} + +.s-note ul { + margin: 7px 0; + padding: 0; + list-style: none; +} + +.s-note ul li { + padding-left: 10px; +} + +.s-note ul li:before { + content: '-'; + float: left; + margin: 0 -100% 0 -10px; +} + + +.messages-list { + margin: 0; + padding: 0; + list-style: none; + +} + +.messages-list > li { + padding: 20px 20px 5px; + background: #fcfcfb; + margin-bottom: 15px; + border-radius: 4px; + box-shadow: inset 0 1px 0 rgba(0, 0, 0, .2); +} + +.messages-list > li.mi-new { + padding: 19px 19px 4px; + border: 1px solid #ff6600; + box-shadow: none; +} + +.messages-list > li:hover { + background: #fff; +} + +.messages-list .mi-wrap { + position: relative; + padding-left: 90px; + margin-bottom: 15px; +} + +.messages-list .mi-wrap.me { + padding: 0 90px 0 0; +} + +.messages-list > li > a { + color: #464646; + text-decoration: none; +} + +.messages-list .mi-pict { + width: 70px; + height: 70px; + line-height: 65px; + text-align: center; + overflow: hidden; + margin: 0 -100% 0 -90px; + float: left; + border-radius: 4px; +} + +.messages-list .me .mi-pict { + margin: 0 -90px 0 -100%; + float: right; +} + +.messages-list .mi-pict img { + max-width: 100%; + max-height: 100%; + vertical-align: middle; +} + +.messages-list .mi-body { + width: 100%; + float: left; +} + +.messages-list .mi-body > header { + padding-right: 130px; +} + +.messages-list .mi-time { + width: 110px; + float: right; + font-size: 11px; + line-height: 16px; + color: #a2a2a2; + text-align: right; + margin: 0 0 0 -110px; +} + +.messages-list .me .mi-time { + float: left; + margin: 10px 0 0; + text-align: left; +} + +.messages-list .mi-sender { + font-family: 'dindisplay_pro', sans-serif; + font-size: 18px; + line-height: 19px; + color: #ff6600; + margin-bottom: 7px; +} + +.messages-list .mi-sender a { + color: #ff6600; + text-decoration: none; +} + +.messages-list .mi-sender a:hover { + color: #464646; +} + +.messages-list .me .mi-sender { + color: #2592c5; +} + +.messages-list .mi-buttons { + margin-bottom: 10px; + display: none; +} + +.set-sect { + padding: 10px 20px 10px; + background: #fcfcfb; + margin-bottom: 20px; + border-radius: 4px; + box-shadow: inset 0 1px 0 rgba(0, 0, 0, .2); +} + +.set-sect.p-form { + padding: 20px; +} + +.set-sect > header { + font-family: 'dindisplay_pro', sans-serif; + text-transform: uppercase; + color: #a2a2a2; + padding: 5px 0; + cursor: pointer; +} + +.set-sect > header:before { + content: ''; + display: inline-block; + vertical-align: middle; + width: 14px; + height: 15px; + background: url(../img/sprites.png) -196px -32px no-repeat; + margin: 0 4px 0 0; +} + +.set-sect.closed > header:before { + background-position: -250px -109px; +} + +.set-sect .set-sect-body { + margin: 20px 0 10px; + +} + +.set-sect.closed .set-sect-body { + display: none; +} + +.mf-buttons-line { + margin-top: 25px; +} + +.mf-line { + margin-bottom: 15px; +} + +.mf-line.cols-2 { + display: table; + width: 100%; +} + +.mf-line .mf-field { + padding-right: 10px; + width: 65%; + display: inline-block; + vertical-align: top; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding-bottom: 5px; +} +.mf-line .mf-field.full-width { + width: 100%; +} + +.mf-line.cols-2 .mf-field, +.mf-line.cols-2 > label { + display: table-cell; + width: 50%; + padding: 0 0 5px 10px; +} + +.mf-line.cols-2 .mf-field:first-child, +.mf-line.cols-2 > label:first-child { + padding: 0 10px 5px 0; +} + +.mf-line.full-width .mf-field { + padding: 0 0 5px; + width: 100%; +} + +.ch-pwd .mf-line .mf-field { + width: 47%; +} + +.tabs-content .mf-line .mf-field { + display: block; +} + +.mf-line.full-width > label { + display: block; + margin-bottom: 5px; +} + +.mf-line > label.check { + font-size: 15px; +} + +.mf-line > label.check i { + font-style: normal; + font-size: 12px; + color: #a2a2a2; +} + +.mf-line > label.check { + margin-right: 40px; +} + + +.adm-form .mf-line > label { + font-size: 17px; + line-height: 18px; +} + +.mf-soc-m { + margin: -5px 0 10px; +} + +.mf-soc-m .mf-soc-col { + padding-right: 10px; + width: 47%; + display: inline-block; + vertical-align: top; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.mfsm-title { + font-size: 15px; + margin-bottom: 10px; +} + +.mf-soc-m .mf-soc-col + .mf-soc-col .mfsm-title { + color: #a2a2a2; +} + +.mf-soc-m .sm-i { + display: inline-block; + vertical-align: middle; + font-size: 18px; + line-height: 21px; + padding-top: 4px; +} + +.mf-soc-m .sm-i img { + vertical-align: middle; + margin: -4px 4px 0 0; +} + +.mf-soc-m a.clear { + position: relative; + display: inline-block; + vertical-align: middle; + width: 30px; + height: 0; + padding-top: 30px; + overflow: hidden; + margin: -5px 0; +} + +.mf-soc-m a.clear:before { + content: ''; + display: block; + width: 9px; + height: 10px; + background: url(../img/sprites.png) -162px -52px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -5px 0 0 -5px; +} + +.mf-soc-m a.clear:hover:before { + background-position: -238px -121px; +} + +.mf-soc-m .sm-body ul { + margin: 0; + padding: 0; + list-style: none; +} + +.mf-soc-m .sm-body ul li { + display: inline-block; + margin-right: 5px; +} + +.mf-checks-title { + font-size: 15px; + margin-bottom: 15px; + color: #a2a2a2; +} + +.mf-announces { + padding-left: 205px; +} + +.mf-announces .mf-subj-checks-title { + display: block; + width: 155px; + margin: 0 -100% 0 -205px; + float: left; +} + +.mf-announces .mf-announces-body.disabled { + opacity: .5; +} + +.lt-ie9 .mf-announces .mf-announces-body.disabled { + -ms-filter: alpha(opacity=30); + filter: alpha(opacity=30); +} + +.set-sect.subscribe label.check { + font-size: 17px; +} + +.set-sect.subscribe .tabs-content label.check { + font-size: 15px; +} + +.set-sect.subscribe .mf-subj-checks-title label.check { + font-size: 17px; +} + +.set-sect .tabs-content { + margin-bottom: 25px; +} + +.tabs-content .mf-line.subj-checks { + margin-bottom: 25px; +} + +.mf-line.subj-checks > label.check { + margin-right: 30px; +} + +.tabs-content .mf-line { + margin-bottom: 10px; +} + +.tabs-content .mf-line .mf-field select, +.tabs-content .mf-line .mf-field .custom-select { + width: 100%; +} + +.mf-line.country { + margin: 20px 0 5px; +} + +.mf-line.subj { + margin: 20px 0 25px; +} + +.mf-line.country > label, +.mf-line.city > label, +.mf-line.subj > label { + display: block; + font-size: 17px; + width: 65%; + margin: 0 0 5px; + /*padding-left: 10px;*/ + -moz-box-sizing: border-box; + box-sizing: border-box; +} + + + +.p-editable { + position: relative; +} + +.p-editable.pe-active { + padding-left: 24px; +} + +.i-pict.p-editable.pe-active { + padding-left: 0; +} + +.i-info header .i-place.p-editable.pe-active { + padding-left: 24px; +} + +.i-info header .i-place.p-editable.pe-active:before { + content: none; +} + +.edit-wrap { + position: absolute; + left: 0; + top: 0; + display: none; + margin: -1px 0 0 -6px; +} + + +.i-pict.p-editable .edit-wrap { + left: 100%; + top: 5px; + margin: 0 0 0 -30px; + line-height: 1em; +} + + +.i-place.p-editable .edit-wrap { + margin-top: 10px; +} + +.i-descr.p-editable .edit-wrap, +.i-additional .p-editable .edit-wrap { + margin-top: -6px; +} + +.ic-buttons .p-editable .edit-wrap { + margin-top: -2px; +} + +.ic-tel.p-editable .edit-wrap { + margin-top: 0; +} + +.p-editable.pe-active .edit-wrap { + display: block; +} + +.e-btn { + position: relative; + display: block; + width: 24px; + height: 0; + padding-top: 24px; + overflow: hidden; + border-radius: 3px; + -webkit-transition: none; + -o-transition: none; + transition: none; +} + +.i-pict.p-editable .e-btn { + background: #fcfcfb; + width: 25px; +} + +.e-btn:before { + display: block; + position: absolute; + left: 5px; + top: 4px; + font-size: 18px; + color: #ff6600; +} + +.e-btn:hover { + opacity: 0.7; +} + +.lt-ie9 .e-btn:hover { + filter: alpha(opacity=70); +} + +.i-pict.p-editable .e-btn:hover { + background: #ff6600; +} + +.p-editable.pe-current .e-btn { + width: 28px; + background: #ff6600; + border-radius: 3px 0 0 3px; +} + +.p-editable.pe-current .e-left .e-btn { + width: 28px; + border-radius: 0 3px 3px 0; +} + +.i-pict.p-editable .e-btn:hover, +.p-editable.pe-current .e-btn:hover { + opacity: 1; +} + +.lt-ie9 .i-pict.p-editable .e-btn:hover, +.lt-ie9 .p-editable.pe-current .e-btn:hover { + filter: alpha(opacity=100); +} + +.i-pict.p-editable .e-btn:hover:before, +.p-editable.pe-current .e-btn:before { + color: #ffffff; +} + +.i-pict.p-editable.pe-current .e-btn { + width: 33px; +} + +.edit-wrap .e-form { + position: absolute; + left: 28px; + top: 0; + width: 600px; + z-index: 2; + font-family: 'dindisplay_pro', Arial, sans-serif; + font-size: 12px; + line-height: 15px; + text-align: left; + background: #ff6600; + padding: 9px 20px 15px; + -moz-box-sizing: border-box; + box-sizing: border-box; + border-radius: 0 3px 3px 3px; + display: none; +} + +.i-pict.p-editable .edit-wrap .e-form { + left: 32px; +} + +.ic-links .edit-wrap .e-form { + width: 330px; +} + +.edit-wrap.e-left .e-form { + left: auto; + right: 100%; + border-radius: 3px 0 3px 3px; +} + +.edit-wrap .e-form:before { + content: ''; + display: block; + width: 0; + height: 0; + border: 1px solid; + border-color: #ff6600 #ff6600 transparent transparent; + border-radius: 2px; + position: absolute; + right: 100%; + top: 24px; +} + +.edit-wrap.e-left .e-form:before { + border-color: #ff6600 transparent transparent #ff6600; + right: auto; + left: 100%; +} + +.p-editable.pe-active.pe-current .edit-wrap .e-form { + display: block; +} + +.edit-wrap .e-form .ef-body { + width: 420px; + float: left; + word-spacing: 16px; + margin-bottom: -10px; +} + +.ic-links .edit-wrap .e-form .ef-body { + width: 150px; +} + +.edit-wrap .e-form .epfl { + display: inline-block; + vertical-align: top; + word-spacing: normal; + min-width: 200px; + margin-bottom: 10px; +} + +.ic-links .edit-wrap .e-form .epfl { + width: 150px; + min-width: 0; +} + +.i-pict .edit-wrap .e-form .epfl { + display: block; +} + +.edit-wrap .e-form .ef-body .epfl > label, .edit-wrap .e-form .ef-body .epf-field > label { + color: #ffffff; + display: block; + margin-bottom: 5px; +} +.edit-wrap .e-form .ef-body .epf-field > label{ + word-spacing: normal; +} +.edit-wrap .e-form .ef-body .epfl > label img { + margin: -3px 0 -2px; +} + +.edit-wrap .e-form .epfl .c-select-box { + width: 200px; +} + +.e-form select, +.e-form .custom-select select { + width: 200px; + height: 26px; +} + +.e-form input[type="text"] { + height: 29px; + line-height: 26px; + padding-left: 6px; +} + +.e-form input[type="text"]:focus { + border-width: 1px; +} + +.i-title .e-form input[type="text"] { + width: 420px; +} + +.edit-wrap .e-form textarea { + width: 420px; + height: 90px; + border-width: 1px; +} + +.edit-wrap .e-form .ef-buttons { + float: right; + padding-top: 20px; +} + +.edit-wrap .e-form .ef-close { + display: block; + width: 22px; + height: 0; + padding-top: 22px; + overflow: hidden; + position: absolute; + right: 15px; + top: 5px; +} + +.edit-wrap .e-form .ef-close:before { + content: ''; + display: block; + width: 9px; + height: 10px; + background: url(../img/sprites.png) -63px -159px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -5px 0 0 -4px; +} + + + +.ed-back { + margin: 20px 0; +} + +.ed-back a { + display: inline-block; + font-size: 17px; + line-height: 17px; + text-decoration: none; + border: 1px solid #fcaf7b; + padding: 5px 25px; + border-radius: 4px; +} + +.ed-back a:before { + content: ''; + display: inline-block; + width: 6px; + height: 11px; + background: url(../img/sprites.png) -157px 0 no-repeat; + margin-right: 8px; +} + +.ed-back a:hover { + color: #ffffff; + background: #ff6600; + border-color: #ff6600; +} + +.ed-back a:hover:before { + background-position: -115px 0; +} + + +.e-programm { + margin-bottom: 30px; +} + +.ep-sect { + margin-bottom: 30px; +} + +.ep-sect-title { + height: 12px; + border-bottom: 1px dotted #cccccc; + font-family: 'dindisplay_pro', Arial, sans-serif; + font-size: 25px; + line-height: 25px; + font-weight: bold; +} + +.e-programm .ep-sect-title { + height: 14px; + font-size: 30px; + line-height: 30px; +} + +.p-calendar .ep-sect-title { + font-size: 17px; + line-height: 20px; + border: none; + height: auto; + color: #959595; +} + +.ep-sect-title a { + display: inline-block; + text-decoration: none; + text-transform: uppercase; + background: #fcfcfb; + padding: 0 10px 0 5px; + color: #464646; +} + +.e-programm .ep-sect-title a { + min-width: 180px; + margin-left: -5px; +} + +.p-calendar .ep-sect-title a { + color: #959595; +} + +.ep-sect-title a:before { + content: ''; + display: inline-block; + width: 18px; + height: 18px; + background: url(../img/sprites.png) -296px -22px no-repeat; + margin-right: 8px; +} + +.e-programm .ep-sect-title a:before { + width: 21px; + height: 21px; + background-position: -317px 0; + margin-right: 8px; +} + +.eps-opened .ep-sect-title a:before { + background-position: -315px -22px; +} + +.e-programm .eps-opened .ep-sect-title a:before { + background-position: -295px 0; +} + +.p-calendar .ep-sect-title a:before { + width: 13px; + height: 14px; + background-position: -250px -109px; + margin-right: 5px; + vertical-align: middle; + margin-top: -2px; +} + +.p-calendar .eps-opened .ep-sect-title a:before { + background-position: -211px -145px; +} + +.ep-sect-body { + padding-top: 25px; + display: none; +} + +.eps-opened .ep-sect-body { + display: block; +} + +.e-programm ul { + margin: 0; + padding: 0; + list-style: none; +} + +.e-programm li { + margin-top: 20px; + padding: 15px 0 5px; +} + +.e-programm li:first-child { + margin-top: 0; +} + +.e-programm .ep-item { + border: 1px dotted #cccccc; + padding: 0 10px 0 30px; +} + +.e-programm .ep-item header { + font-family: 'dindisplay_pro', Arial, sans-serif; + margin-top: -15px; + padding: 0 0 0 160px; +} + +.ep-item .ep-time { + font-size: 25px; + line-height: 25px; + color: #ff6600; + background: #fcfcfb; + padding: 0 5px; + float: left; + margin: 0 -100% 0 -165px; +} + +.ep-item .ep-title { + display: inline; + font-size: 22px; + line-height: 25px; + background: #fcfcfb; + outline: #fcfcfb solid 6px; + outline-offset: -1px; +} + +.ep-item .ep-title span { + position: relative; +} + +.ep-item .ep-body { + font-size: 12px; + line-height: 16px; + margin: 7px 0; +} + +.ep-item .ep-body p { + margin: 7px 0; +} + +.ep-item .ep-body .ep-coord { + color: #ff6600; +} + +.e-programm .ep-item footer { + font-family: 'dindisplay_pro', Arial, sans-serif; + font-size: 15px; + line-height: 15px; + margin-bottom: -7px; +} + +.ep-item .ap-area { + display: inline-block; + padding: 0 5px; + color: #8f8f8f; + background: #fcfcfb; + margin-left: -5px; +} + +.e-programm + .i-steps, +.e-statistic + .i-steps { + margin-top: 40px; + margin-bottom: 15px; +} + + + + +.e-statistic { + font-family: 'dindisplay_pro', Arial, sans-serif; +} + +.ep-stats { + padding: 5px 25px 0; + border-bottom: 1px dotted #cccccc; + margin-bottom: 25px; +} + +.ep-stats .eps-item { + width: 220px; + float: right; + font-weight: bold; + font-size: 28px; + line-height: 28px; + margin-bottom: -13px; +} + +.ep-stats .eps-item:first-child { + color: #ff6600; + width: 450px; + float: left; +} + +.ep-stats b { + display: block; + font-size: 120px; + line-height: 120px; + margin-top: -10px; + word-spacing: -10px; + letter-spacing: -7px; + white-space: nowrap; +} + +.ep-stats .eps-text { + display: block; + margin: -18px 0 0; + padding: 0 5px; + background: #fcfcfb; + float: left; +} + +.ep-info { + padding: 0 30px; + margin-bottom: 20px; +} + +.ep-info .ep-area-wrap { + width: 450px; + float: left; + font-size: 80px; + line-height: 80px; +} + +.ep-info .epa-title { + font-size: 18px; + line-height: 18px; + width: 110px; + padding-top: 12px; + float: left; +} + +.ep-info .epa-area { + display: inline-block; + font-weight: 100; + letter-spacing: -2px; + word-spacing: -5px; +} + +.ep-info .epa-area sup { + display: inline-block; + font-size: 45px; + margin: 0 0 0 3px; +} + +.ep-info .ep-founded { + width: 210px; + float: right; + font-size: 16px; + line-height: 18px; + color: #afafae; + padding-top: 14px; +} + +.ep-founded b { + display: block; + font-size: 40px; + line-height: 40px; + letter-spacing: -1px; + margin: 0 0 -5px -2px; +} + +.ep-countries { + padding: 0 30px 0 140px; + border-top: 1px dotted #cccccc; + font-size: 18px; + color: #ff6600; +} + +.ep-countries .epc-title { + color: #feb17d; + background: #fcfcfb; + margin: -10px -100% 0 -115px; + padding: 0 5px; + float: left; +} + +.ep-countries .epc-list { + margin-top: -10px; + display: table; + table-layout: fixed; + width: 100%; +} + +.ep-countries ul { + margin: 0; + padding: 0; + list-style: none; + display: table-cell; + vertical-align: top; +} + +.ep-countries ul + ul + ul { + width: 215px; +} + +.ep-countries ul li { + padding: 0 5px; + background: #fcfcfb; + margin-top: 4px; + float: left; + clear: left; +} + +.ep-countries ul li:first-child { + margin-top: 0; +} + + + +.e-price { + font-family: 'dindisplay_pro', Arial, sans-serif; + font-size: 15px; + line-height: 18px; + margin-bottom: 5px; +} + +.e-price-wrap { + margin: 0 -20px; + padding-top: 15px; +} + +.epr-layout { + display: table; + width: 100%; + border-spacing: 20px 0; +} + +.eprl-col { + border: 1px dotted #cccccc; + display: table-cell; + vertical-align: top; + padding: 0 15px 15px; +} + +.eprl-col:first-child { + width: 350px; +} + +.epr-title { + font-weight: bold; + font-size: 28px; + margin: -12px 0 20px -5px; +} + +.epr-title span { + display: inline-block; + padding: 0 5px; + background: #fcfcfb; +} + +.epr-subtitle { + color: #ff6600; + font-weight: bold; + text-transform: uppercase; + margin-bottom: 10px; +} + +.pr-list { + margin: 0 0 20px; + padding: 0; + list-style: none; + color: #ff6600; +} + +.pr-list.grey { + color: #8b8b8b; +} + +.pr-list li { + margin-bottom: 3px; + word-spacing: -2px; + white-space: nowrap; +} + +.pr-list .prl-value { + display: inline-block; + vertical-align: middle; + border: 1px solid #ffd2b2; + height: 32px; + padding: 2px 15px 0; + font-weight: bold; + font-size: 28px; + line-height: 32px; + word-spacing: -4px; + border-radius: 4px 0 0 4px; + max-width: 94px; + +} +.pr-list .prl-value .small{ + word-spacing: 0; + white-space: normal; + font-size: 14px; + display: block; + line-height: 1em; + padding-top: 2px; +} + +.pr-list .prl-descr { + display: inline-block; + vertical-align: top; + border: 1px solid #ffd2b2; + min-height: 34px; + padding: 0 15px; + font-size: 18px; + line-height: 32px; + word-spacing: normal; + white-space: normal; + border-radius: 0 4px 4px 0; +} + +.pr-list.grey .prl-value, +.pr-list.grey .prl-descr { + border-color: #c6c6c6; +} + +.pr-list .prl-descr span { + display: inline-block; + vertical-align: middle; + line-height: 19px; +} + +.epr-conditons { + margin-top: 20px; +} + +.epr-conditons p { + margin: 0; +} + +.tp-wrap, +.tp-btn-wrap { + display: table; + table-layout: fixed; + width: 100%; + border-spacing: 0; + border-collapse: collapse; + margin-bottom: 20px; +} + +.tp-wrap > *, +.tp-btn-wrap > * { + display: table-cell; + vertical-align: middle; + margin-bottom: 0; +} + +.tp-wrap .pr-list, +.tp-btn-wrap .tp-btn { + width: 262px; +} + +.tp-wrap .tp-descr, +.tp-btn-wrap .tp-categories { + font-weight: 500; + font-size: 14px; + line-height: 17px; + text-transform: uppercase; + color: #ff6600; +} + +.tp-wrap .tp-descr.grey { + color: #8b8b8b; +} + +.tp-btn-wrap { + margin-bottom: 0; +} + +.tp-btn-wrap > * { + vertical-align: top; +} + +.tp-btn-wrap .tp-categories { + font-weight: normal; + text-transform: none; +} + +.tp-btn-wrap .tp-categories .tpc-title { + font-size: 13px; + color: #feb17d; + margin-bottom: 3px; +} + +.tp-btn-wrap .tp-categories ul { + margin: 0; + padding: 0 0 0 15px; + font-size: 15px; + line-height: 16px; + font-weight: bold; +} + + +.targets { + font-family: 'dindisplay_pro', Arial, sans-serif; + font-size: 15px; + line-height: 16px; +} + +.t-layout { + display: table; + width: 100%; +} + +.t-layout .t-col { + display: table-cell; + vertical-align: top; + width: 50%; + padding-right: 20px; +} + +.tg-title { + font-size: 22px; + line-height: 22px; + color: #ff6600; + margin-bottom: 10px; +} + +.tg-title:before { + content: ''; + display: inline-block; + width: 24px; + height: 23px; + background: url(../img/sprites.png) -300px -41px no-repeat; + margin: 0 5px -3px 0; +} + +.tg-title.icon-case:before { + width: 23px; + height: 19px; + background-position: -300px -65px; + margin: 0 6px -1px 0; +} + +.targets ul { + margin: 0; + padding: 0 0 0 30px; + list-style: none; +} + +.targets ul li { + margin-bottom: 5px; +} + +.targets small { + display: inline-block; + font-size: 13px; +} + +.tad-price ul { + margin: 0; + padding: 0; + list-style: none; +} + +.tad-price li { + position: relative; + padding: 17px 230px 20px 20px; + margin-bottom: 20px; + background: #fcfcfb; + box-shadow: inset 0 1px 0 #e8e8e7; + border-radius: 4px; + -webkit-transition: background .3s; + -o-transition: background .3s; + transition: background .3s; +} + +.tad-price li:before, +.tad-price li:after { + content: " "; + display: table; +} + +.tad-price li:after { + clear: both; +} + +.tad-price li.p-left { + padding: 17px 20px 20px 230px; +} + +.tad-price .tad-pict { + width: 190px; + float: right; + padding: 5px 0; + margin: 0 -210px 0 -100%; +} + +.tad-price li.p-left .tad-pict { + float: left; + margin: 0 -100% 0 -210px; +} + +.tad-price .tad-pict img { + width: 190px; +} + +.tad-price .tad-pict a:hover img { + opacity: 0.9; +} + +.tad-price h3 { + font-family: 'dindisplay_pro', Arial, sans-serif; + font-weight: normal; + font-size: 25px; + line-height: 26px; + margin: 0 0 10px; +} + +.tadi-text { + font-size: 13px; + line-height: 16px; + min-height: 55px; + margin-bottom: 25px; +} + +.tad-price p { + margin: 10px 0 0; + color: #464646; +} + +.tad-price p:first-child { + margin-top: 0; +} + +.btn-wrap { + margin: 25px 0 5px; +} + +.btn-wrap .tad-prise-descr { + padding-left: 21px; + margin-top: 5px; + color: #ff6600; +} + + + +.a-graphic { + position: relative; + font-family: 'dindisplay_pro', Arial, sans-serif; + font-size: 12px; + line-height: 14px; + padding-top: 10px; +} + +.a-graphic table { + width: 100%; + border-collapse: collapse; +} + +.a-graphic > table > tbody > tr > td { + width: 100%; + padding: 0 5px 0 20px; + vertical-align: top; + background: url(../img/ag-bg.png) 0 0 repeat; +} + +.a-graphic > table > tbody.bottom > tr > td { + background: none; + vertical-align: middle; +} + +.a-graphic > table > tbody > tr > td:first-child { + width: auto; + padding: 0 10px 0 0; + height: 20px; + vertical-align: middle; + text-align: left; + background: none; +} + +.a-graphic > table > tbody > tr > td > div { + display: inline-block; + min-width: 45px; + height: 20px; + line-height: 20px; + text-align: right; +} + +.a-graphic > table > tbody.bottom > tr > td:first-child { + font-size: 11px; + line-height: 12px; + color: #aeaeae; + height: 35px; +} + +.a-graphic > table > tbody.bottom > tr > td:first-child div { + line-height: 12px; + text-align: center; +} + +.a-graphic table table { + table-layout: fixed; +} + +.a-graphic table table td { + width: 20%; + padding: 0 5px; +} + +.a-graphic tbody.main table td { + vertical-align: bottom; +} + +.a-graphic tbody.bottom table td { + text-align: center; + font-size: 14px; + font-weight: 500; + color: #ff6600; +} + +.a-graphic .at-bar { + height: 20px; + background: #ff6600; + border-radius: 4px; +} + +.a-graphic .at-bar.bh1 { + height: 20px; +} + +.a-graphic .at-bar.bh2 { + height: 40px; +} + +.a-graphic .at-bar.bh3 { + height: 60px; +} + +.a-graphic .at-bar.bh4 { + height: 80px; +} + +.a-graphic .at-bar.bh5 { + height: 100px; +} + +.a-graphic .at-bar.bh6 { + height: 120px; +} + +.a-graphic .at-bar.bh7 { + height: 140px; +} + +.a-graphic .at-bar.bh8 { + height: 160px; +} + +.a-graphic .at-bar.bh9 { + height: 180px; +} + +.a-graphic .at-bar.bh10 { + height: 200px; +} + +.a-graphic .at-bar .atb-text { + padding: 10px 5px; + color: #ffffff; + font-size: 13px; + text-align: center; +} + +.a-graphic .at-bar .atb-text p { + margin: 30px 0 0; +} + +.a-graphic .at-bar .atb-text p:first-child { + margin-top: 10px; + font-size: 15px; +} + +.a-graphic .at-bar .atb-text p b { + display: block; + font-weight: 500; + font-size: 20px; + line-height: 21px; + word-spacing: -2px; + white-space: nowrap; +} + +.a-graphic .at-bar .atb-text p:first-child b { + display: block; + font-size: 25px; + line-height: 25px; + word-spacing: -3px; +} + +/*.a-graphic td { + padding: 0 10px 0 0; + height: 20px; + vertical-align: middle; +} + +.a-graphic .main td { + position: relative; +} + +.a-graphic .main td:first-child { + position: static; + width: 70px; + padding: 0 15px 0 0; +} + +.a-graphic .main td:first-child:before { + content: ''; + display: block; + width: 100%; + height: 10px; + border-bottom: 1px dotted #cccccc; + position: absolute; +} + +.a-graphic td:first-child div { + position: relative; + display: inline-block; +} + +.a-graphic .main td:first-child div { + min-width: 45px; + height: 20px; + line-height: 20px; + padding-right: 15px; + background: #fcfcfb; + text-align: right; +} + +.a-graphic .bottom td { + text-align: center; + font-size: 14px; + font-weight: 500; + color: #ff6600; + padding-top: 5px; +} + +.a-graphic .bottom td:first-child { + text-align: left; + font-weight: normal; + font-size: 11px; + line-height: 12px; + color: #aeaeae; +} + +.a-graphic .bottom td:first-child div { + text-align: center; + width: 60px; +} + +.a-graphic .at-bar { + height: 20px; + background: #ff6600; +} + +.a-graphic .at-bar.first { + -webkit-border-radius: 0 0 4px 4px; + -moz-border-radius: 0 0 4px 4px; + border-radius: 0 0 4px 4px; +} + +.a-graphic .at-bar.last { + -webkit-border-radius: 4px 4px 0 0; + -moz-border-radius: 4px 4px 0 0; + border-radius: 4px 4px 0 0; +} + +.a-graphic .at-bar.first.last { + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +}*/ + + + +.p-calendar { + font-family: 'dindisplay_pro', Arial, sans-serif; +} + +.p-calendar .ep-sect { + margin-bottom: 0; +} + +.p-calendar .ep-sect-body { + padding-top: 10px; +} + +.p-calendar .ep-sect-body header { + height: 15px; + margin-bottom: 25px; + text-align: center; + border-bottom: 1px dotted #cccccc; +} + +.p-calendar .pc-month-wrap { + display: inline-block; + padding: 0 10px; + background: #fcfcfb; +} + +.p-calendar .pc-month-wrap a { + position: relative; + display: inline-block; + vertical-align: middle; + width: 18px; + height: 0; + padding-top: 18px; + overflow: hidden; + background: #464646; + border-radius: 18px; +} + +.p-calendar .pc-month-wrap a:hover { + background: #ff6600; +} + +.p-calendar .pc-month-wrap a:before { + content: ''; + display: block; + width: 8px; + height: 12px; + background: url(../img/sprites.png) -225px -134px no-repeat; + position: absolute; +} + +.p-calendar .pc-month-wrap a.pcm-prev:before { + background-position: -225px -134px; + left: 4px; + top: 4px; +} + +.p-calendar .pc-month-wrap a.pcm-next:before { + background-position: -175px 0; + right: 4px; + top: 4px; +} + +.p-calendar .pc-month { + display: inline-block; + vertical-align: middle; + font-weight: bold; + font-size: 30px; + line-height: 30px; + text-transform: uppercase; + margin: 0 15px; +} + +.cal-wrap { + margin: 0 -20px; +} + +.calendar-container{ + width: 100%; + position: relative; + padding-right: 20px; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +.calendar-container .scroll-content { + padding: 25px 0 5px; + width: 100%; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.calendar-container table { + border-collapse: collapse; +} + +.calendar-container .cal-days td > div { + width: 136px; +} +.calendar-container table td { + border-left: 1px dotted #cccccc; + text-align: center; + padding: 0; +} + +.calendar-container table td:first-child { + border-left: none; +} + +.calendar-container table tr.c-sep td { + height: 10px; +} + +.calendar-container table td.c-cur { + background: #fff0e5; + border: solid #ffd8bb; + border-width: 0 1px; +} + +.calendar-container .cal-days td { + font-size: 25px; + color: #959595; + padding: 8px 0 12px; + width: 136px; +} + +.calendar-container .cal-body + .cal-days td { + padding: 2px 0 28px; +} + +.calendar-container .cal-days td.c-cur > div { + position: relative; + width: 136px; + background: #fff0e5; + padding-top: 33px; + margin: -33px -1px 0; + border: solid #ffd8bb; + border-width: 1px 1px 0; + border-radius: 4px 4px 0 0; +} + +.calendar-container .cal-body + .cal-days td.c-cur > div { + padding: 0 0 32px; + margin: 0 -1px -32px; + border-width: 0 1px 1px; + border-radius: 0 0 4px 4px; +} + +.calendar-container .cal-days td b { + letter-spacing: -1px; + color: #464646; + margin-right: 3px; +} + +.calendar-container .cal-days td i { + font-style: normal; + font-size: 20px; +} + +.calendar-container .cal-days td.c-cur { + color: #ffb380; +} + +.calendar-container .cal-days td.c-cur b { + color: #ff6600; +} + +.calendar-container .cal-days td.c-cur .cur-mark { + position: absolute; + width: 100%; + left: 0; + top: 10px; + font-size: 14px; + color: #ff6600; +} + +.calendar-container .cal-body + .cal-days td.c-cur .cur-mark { + top: auto; + bottom: 12px; +} + +.calendar-container .c-event { + position: relative; + width: 100%; + padding: 0 5px; + background: #ff6600; + color: #ffffff; + margin: 0 -5px; + text-align: left; + border-radius: 4px; +} + +.calendar-container .c-event.grey { + background: #7e7e7e; +} + +.calendar-container .c-event.cont-prev { + padding-left: 20px; + margin-left: -20px; + border-radius: 0 4px 4px 0; +} + +.calendar-container .c-event.cont-next { + padding-right: 20px; + margin-right: -20px; + border-radius: 4px 0 0 4px; +} + +.calendar-container .c-event.cont-prev.cont-next { + border-radius: 0; +} + +.calendar-container .c-event .ce-wrap { + padding: 10px 7px 10px 12px; +} + +.calendar-container .c-event h3 { + margin: 0 0 5px; + font-weight: normal; + font-size: 13px; + line-height: 14px; +} + +.calendar-container .c-event h3 a { + color: #ffffff; + text-decoration: none; +} + +.calendar-container .c-event .ce-info { + font-size: 12px; + line-height: 14px; + color: #ffd0ae; +} + +.calendar-container .c-event.grey .ce-info { + color: #c0c0c0; +} + +.calendar-container .c-event .ce-info > div { + display: inline-block; + vertical-align: middle; + margin-bottom: 4px; +} + +.ce-ico { + position: relative; + display: inline-block; + vertical-align: middle; + width: 19px; + height: 19px; + margin-right: 2px; + border: 1px solid #ffb380; + border-radius: 3px; +} + +.c-event.grey .ce-ico, +.cal-item .ce-ico.icon-fav { + border-color: #bfbfbf; +} + +.ce-ico:before { + content: ''; + background: url(../img/sprites.png) 0 0 no-repeat; + position: absolute; +} + +.ce-ico.icon-check:before { + width: 12px; + height: 9px; + background-position: -93px -16px; + left: 4px; + top: 5px; +} + +.c-event .ce-ico.icon-check:before { + background-position: -117px -162px; +} + +.ce-ico.icon-fav:before { + width: 11px; + height: 11px; + background-position: -130px -162px; + left: 4px; + top: 4px; +} + +.c-event .ce-ico.icon-fav:before { + background-position: -142px -162px; +} + + + +.cal-lists { + font-family: 'dindisplay_pro', Arial, sans-serif; +} + +.cl-sect { + margin-top: 20px; +} + +.cl-sect:first-child { + margin-top: 0; +} + +.cl-sect .cls-title { + font-size: 25px; + line-height: 26px; + padding-bottom: 10px; + border-bottom: 1px dotted #cccccc; +} + +.cl-sect ul { + margin: 0; + padding: 0; + list-style: none; +} + +.cl-sect ul li { + position: relative; + padding: 10px 50px 10px 0; + border-bottom: 1px dotted #cccccc; +} + +.cal-item { + padding-left: 50px; +} + +.cal-item .cali-pict { + width: 40px; + float: left; + margin: 0 -100% 0 -50px; +} + +.cal-item .cali-pict img { + width: 40px; +} + +.cal-item .cli-info { + margin-bottom: 0; +} + +.cal-item .cli-info .cli-top { + margin-bottom: 3px; +} + +.cal-item header { + margin-bottom: 2px; +} + +.cal-item .cli-title { + display: inline-block; + font-size: 20px; + line-height: 22px; + color: #ff6600; + margin-right: 5px; + max-width: 550px; +} + +.cal-item .cli-title a { + color: #ff6600; + text-decoration: none; +} + +.cal-item .cli-title a:hover { + color: #464646; +} + +.cli-icos { + display: inline-block; + vertical-align: top; +} + +.cal-item .cli-info .cli-bot .cli-date { + width: 150px; + font-size: 15px; +} + +.cal-item .cli-place { + font-size: 15px; + float: left; +} + +.cl-sect ul li .check-wrap { + position: absolute; + right: 5px; + top: 12px; +} + + +.cl-actions { + border-bottom: 1px dotted #cccccc; + padding: 15px 0 12px; + font-size: 15px; + line-height: 16px; +} + +.cl-actions .cla-title { + float: left; + margin-right: 20px; + line-height: 26px; + color: #979797; +} + +.cl-actions .cla-btns { + overflow: hidden; +} + +.cl-actions .cla-btns .button { + margin-bottom: 4px; +} + + + + +.to-prev-cal { + font-size: 15px; + margin-top: 20px; +} + +.to-prev-cal .icon-back:before { + width: 11px; + height: 12px; + background-position: -183px -162px; + margin-right: 7px; +} + +.a-bot-buttons-line { + margin-top: 20px; + padding-top: 20px; + border-top: 1px dotted #cccccc; + word-spacing: 16px; +} + +.p-form .a-bot-buttons-line { + border-top: none; + padding-top: 0; +} + +.a-bot-buttons-line .abb-left { + float: left; + width: 75%; +} + +.a-bot-buttons-line .abb-right { + float: right; +} + +.page-title.clearfix .a-pt-button { + float: right; + margin: 3px 0 -3px; +} + +.cl-item.cpe-inactive .cl-item-wrap, +.cl-item.cpe-inactive .cli-photo-list .clipl-wrap, +.cl-item.cpe-inactive .cli-pb-button .button.more, +.cl-item.cpe-inactive .cli-pb-info { + opacity: 0.5; +} + +.mf-photos-list { + font-family: 'dindisplay_pro', Arial, sans-serif; +} + +.mfpl-button-line { + display: table; + width: 100%; + margin-bottom: 20px; +} + +.mfpl-button-line > * { + display: table-cell; + vertical-align: middle; +} + +.mfpl-button-line .mfpl-button { + padding-right: 30px; +} + +.mfpl-button-line .mfpl-text { + width: 100%; +} + +.mfpl-button-line .mfpl-text { + font-size: 14px; + line-height: 16px; + word-spacing: normal; +} + +.mfpl-button-line .mfpl-text p { + margin: 0; + max-width: 400px; +} + +.i-wait { + display: inline-block; + vertical-align: middle; + font-size: 18px; +} + +.adm-form .i-wait { + display: block; + text-align: center; + margin-bottom: 20px; +} + +.i-wait img { + vertical-align: middle; + margin: -4px 3px 0 0; +} + + +.mf-photos-list ul { + margin: 0; + padding: 0; + list-style: none; +} + +.mf-photos-list li { + border-top: 1px dotted #cccccc; + padding: 20px 0 20px 210px; +} + +.mf-photos-list li:before, +.mf-photos-list li:after { + content: " "; + display: table; +} + +.mf-photos-list li:after { + clear: both; +} + +.mf-photos-list .mfpli-pict { + width: 190px; + height: 190px; + float: left; + margin: 0 -100% 0 -210px; +} + +.mf-photos-list .mfpli-pict img { + max-width: 190px; + max-height: 190px; + border-radius: 4px; +} + + + + +.set-sect.adm-form { + margin-bottom: 22px; +} + +.set-sect .set-sect-title { + font-family: 'dindisplay_pro', Arial, sans-serif; +} + +.set-sect .set-sect-title h3 { + margin: 0; + font-weight: 300; + font-size: 25px; + line-height: 26px; + color: #ff6600; + float: left; +} + +.set-sect.not-active .set-sect-title h3 { + color: #d1d1d1; +} + +.set-sect .set-sect-title .afh-right { + float: right; +} + +.set-sect.passed .set-sect-title h3, +.set-sect.passed .set-sect-title .afh-right .button { + opacity: 0.5; +} + +.lt-ie9 .set-sect.passed .set-sect-title h3, +.lt-ie9 .set-sect.passed .set-sect-title .afh-right .button { + filter: alpha(opacity=50); +} + +.set-sect.passed .set-sect-title .afh-right .button:hover { + opacity: 1; +} + +.lt-ie9 .set-sect.passed .set-sect-title .afh-right .button:hover { + filter: alpha(opacity=100); +} + +.set-sect .set-sect-title .afh-right .sst-info { + font-weight: 300; + font-size: 20px; + color: #ff6600; +} + +.set-sect .set-sect-title .afh-right .sst-info b { + font-weight: 500; +} + +.adm-form .adm-form-body.disabled { + opacity: 0.5; +} + +.lt-ie9 .adm-form .adm-form-body.disabled { + filter: alpha(opacity=50); +} + +.adm-form h2 { + margin: -5px 0 15px; + font-weight: 100; + font-size: 30px; + line-height: 30px; + color: #ff6600; +} + +.adm-form hr { + margin-bottom: 21px; +} + +.adm-form .mf-line > label { + display: inline-block; + font-size: 17px; + line-height: 17px; + margin-right: 5px; +} + +.adm-form .mf-line > label.h2 { + display: inline-block; + font-weight: 100; + font-size: 30px; + line-height: 30px; + color: #ff6600; + vertical-align: middle; + margin-top: -6px; + padding-bottom: 5px; +} + +.adm-form .mf-line .mf-field { + vertical-align: middle; +} + +.mf-line.afs-type { + word-spacing: 16px; + padding-top: 5px; +} + +.set-sect-title + form .mf-line.afs-type { + padding-top: 0; +} + +.mf-line.afs-type label { + word-spacing: normal; +} + +.mf-line.afs-type .mf-field { + padding: 0; +} + +.mf-line.s-subj-tag { + word-spacing: 16px; + margin-top: -5px; +} + +.mf-line.s-subj-tag .mf-field { + width: 45%; + word-spacing: normal; + vertical-align: top; +} + +.mf-line.s-subj-tag .mf-field label { + display: block; + font-size: 17px; + line-height: 18px; + margin-bottom: 5px; +} + +.button.big.a-more:after, +button.big.a-more:after { + content: ''; + display: inline-block; + vertical-align: middle; + width: 7px; + height: 11px; + background: url(../img/sprites.png) -234px -134px no-repeat; + margin: -1px -3px 0 7px; +} + +.button.big.grey.a-more:after, +button.big.grey.a-more:after { + background-position: -250px -134px; +} + +.button.big.a-more:hover:after, +.button.big.orange.a-more:after, +button.big.orange.a-more:after { + background-position: -242px -134px; +} + +.mfs-location .mf-line { + word-spacing: 16px; +} + +.mfs-location .mf-line + .mf-line .mf-field { + width: 45%; +} + +.mfs-additional .mf-line { + padding-left: 135px; +} + +.mfs-additional .mf-line > label { + display: inline-block; + width: 120px; + float: left; + margin: 0 -120px 0 -135px; + padding-top: 3px; +} + +.mfs-additional .mf-line .mf-field { + width: 100%; +} + +.mfs-additional .mf-line .mf-field hr { + margin: 10px 0 0; +} + +.mfs-additional .mf-line .mf-field .mff-col { + width: 45%; + margin-right: 25px; + float: left; +} + +.mfs-additional .mf-line.mf-targets .mf-field .mff-col { + width: 30%; +} + +.mfs-additional .mf-line.mf-targets .mf-field .mff-col:first-child { + width: 45%; +} + +.adm-form-body label.check { + font-size: 15px; + min-height: 20px; +} + +.mf-targets label.check { + width: 100%; + margin-bottom: 7px; +} + +.mf-membership label.check { + display: inline-block; + vertical-align: top; + width: 45%; + margin: 0 25px 7px 0; +} + +.mf-prod input[type="text"], +.mf-prod textarea { + margin: 10px 0 10px; +} + +.mf-prod input[type="text"]:first-child, +.mf-prod textarea:first-child { + margin-top: 0; +} + +.mf-prod input[type="text"] { + width: 75%; +} + + + +.mf-line.mf-time > label { + padding-top: 11px; +} + +.w-time { + margin-bottom: 10px; + word-spacing: 22px; + display: none; +} + +.w-time:first-child, +.w-time.show { + display: block; +} + +.w-time > div { + display: inline-block; + vertical-align: middle; + word-spacing: normal; +} + +.w-time .w-time-day { + width: 125px; + display: none; +} + +.w-time.show .w-time-day { + display: inline-block; +} + +.w-time .w-time-wrap { + position: relative; + width: 90px; +} + +.w-time.show .w-time-wrap, +.w-time .w-time-wrap + .w-time-wrap { + margin-left: 20px; +} + +.w-time.show .w-time-day + .w-time-wrap { + margin-left: 15px; +} + +.w-time .w-time-wrap label { + font-size: 15px; + position: absolute; + right: 100%; + margin-right: 7px; + top: 12px; + z-index: 10; +} + +.adm-form-body .mf-line.mf-logo > label { + width: 130px; +} + +.mf-photos-list + hr { + margin-top: 5px; +} + + +.mfs-additional.mf-stat .mf-line > label { + padding-top: 11px; +} + +.mf-line > label.h3 { + font-size: 20px; +} + +.mf-prod.mf-short-input input[type="text"] { + width: 140px; + +} + +.mf-stat-item {} + +.mf-stat-item hr { + margin-left: 135px; +} + +.mf-line.mf-prod + .mf-stat-item hr { + margin: -10px 0 20px 135px; +} + +.mf-year { + width: 140px; + margin-bottom: 15px; +} + +.mf-stat-data { + display: table; + width: 100%; +} + +.mf-stat-data > div { + display: table-cell; + padding-right: 20px; +} + +.mf-stat-data .sd-visitors, +.mf-stat-data .sd-participants { + width: 35%; +} + +.mf-stat-data .sd-visitors input[type="text"], +.mf-stat-data .sd-participants input[type="text"] { + width: 100%; +} + +.mf-stat-data .sd-area { + font-size: 17px; +} + +.mf-stat-data .sd-area input[type="text"] { + width: 70%; + margin-right: 5px; +} + +.mf-line.mf-stat-countries { + margin-top: -15px; +} + +.mf-stat-countries .c-select-box { + width: 65%; +} + +.mf-stat .mf-stat-add-button { + padding-left: 135px; +} + + +.adm-form .e-price-wrap { + margin: 0 -20px 30px; + padding-top: 0; +} + +.adm-form .epr-layout { + display: table; + width: 100%; + border-spacing: 20px 0; +} + +.adm-form .eprl-col { + padding: 0; + border: none; +} + +.adm-form .eprl-col-wrap { + padding: 15px 20px; + border: 1px dotted #cccccc; +} + +.adm-form .eprl-col:first-child .eprl-col-wrap { + min-width: 350px; +} + +.adm-form .epr-subtitle { + font-size: 15px; +} + +.adm-form .eprl-col hr { + margin: 10px 0; +} + +.adm-form .eprl-col input[type="text"] { + padding-left: 7px; + padding-right: 7px; +} + + +.adm-form .eprl-col input[type="text"]:focus { + padding-left: 6px; + padding-right: 6px; +} + + +.adm-form .tp-wrap { + margin: 0; +} + +.adm-form .pr-list { + color: #464646; + margin-bottom: 10px; +} + +.adm-form .pr-list input[type="text"] { + width: 75%; + margin-right: 6px; + vertical-align: top; +} + +.adm-form .tp-wrap .pr-list input[type="text"] { + width: 115px; +} + +.adm-form .eprl-col .custom-select { + display: inline-block; + vertical-align: top; + width: 70px; +} + +.adm-form .eprl-col .custom-select .custom-select-wrap { + padding-left: 7px; +} + +.adm-form .eprl-col .custom-select .scroll-content { + padding-left: 2px; +} + +.eprl-col .mf-line label { + display: block; + margin-bottom: 5px; +} + +.eprl-col .mf-line .mf-field { + width: 100%; + padding: 0; +} + +.eprl-col .mf-line.mf-min-area label { + display: inline-block; + margin-bottom: 0; +} + +.adm-form .eprl-col .mf-line.mf-min-area .mf-field { + font-size: 15px; + width: 38%; +} + +.adm-form .eprl-col .mf-line.mf-min-area .mf-field input[type="text"] { + width: 78%; + margin-right: 3px; +} + +.adm-form .eprl-col .mf-field .period .pwf-field { + padding: 0; +} + +.adm-form .eprl-col .mf-field .period input.date[type="text"] { + padding-right: 35px; +} + +.adm-form .eprl-col .mf-field .period input.date[type="text"]:focus{ + padding-right: 34px; +} + +.mf-reg-payment input[type="text"] { + width: 120px; + margin-right: 6px; +} + +.mf-line.mf-deadline { + margin-bottom: 0; +} + + + +.cl-news {} + +.cl-news header .news-s-pict { + width: 100px; + height: 100px; + overflow: hidden; + text-align: center; + border-radius: 4px; + margin-right: 20px; + float: left; +} + +.cl-news header .news-s-pict img { + height: 100%; + margin: 0 -50%; +} + +.cl-news header .news-header-body { + overflow: hidden; + font-family: 'dindisplay_pro', Arial, sans-serif; +} + +.cl-news header .news-header-body h2 { + margin: 0 0 7px; + font-weight: 500; + font-size: 25px; + line-height: 26px; +} + +.cl-news header .news-header-body .news-header-date { + font-size: 15px; + color: #ff6600; +} + + + + +.request-form .rq-info { + margin-bottom: 15px; + display: table; + width: 100%; +} + +.request-form .rq-info > * { + display: table-cell; +} + +.request-form .rq-info .rqi-pict { + vertical-align: top; + width: 130px; + padding-right: 30px; + text-align: center; +} + +.request-form.rq-tickets .rq-info .rqi-pict { + width: 155px; +} + +.request-form .rq-info .rqi-body { + vertical-align: middle; + font-size: 13px; + line-height: 15px; +} + +/*.request-form .rq-info .rqi-pict + .rqi-body { + margin-left: 160px; +} + +.request-form.rq-tickets .rq-info .rqi-pict + .rqi-body { + margin-left: 185px; +}*/ + +.request-form .rq-info .rqi-body h2, +.request-form .rq-info .rqi-body h3, +.request-form .rq-info .rqi-body h4 { + font-family: 'dindisplay_pro', Arial, sans-serif; + font-weight: normal; +} + +.request-form .rq-info .rqi-body h2 { + margin: 20px 0 10px; + font-size: 23px; + line-height: 24px; +} + +.request-form .rq-info .rqi-body h3 { + font-size: 22px; + line-height: 24px; + color: #ff6600; + margin: 20px 0 10px; +} + +.request-form .rq-info .rqi-body h4 { + font-size: 16px; + line-height: 19px; + margin: 20px 0 10px; +} + +.request-form .rq-info .rqi-body ul { + margin: 10px 0; + padding: 0; + list-style: none; +} + +.request-form .rq-info .rqi-body ul li { + padding-left: 15px; + margin-bottom: 10px; +} + +.request-form .rq-info .rqi-body ul li:before { + content: ''; + display: block; + width: 11px; + height: 8px; + background: url(../img/sprites.png) -250px -124px no-repeat; + float: left; + margin: 4px -11px 0 -15px; +} + +.request-form .rq-info .rqi-body p { + margin: 10px 0; +} + +.request-form .rq-info .rqi-cols { + display: table; + width: 80%; + margin: 0; +} + +.request-form .rq-info .rqi-cols > *, +.request-form .rq-info .rqi-cols > ul { + display: table-cell; + margin: 0; + width: 50%; + padding-right: 20px; +} + +.request-form .rq-info .rqi-cols > ul li { + margin-bottom: 5px; +} + +.request-form .rq-info .rqi-body > *:first-child { + margin-top: 0; +} + +.request-form .rq-form { + display: none; + margin: 10px 0; +} + +.request-form.rqf-opened .rq-form { + display: block; +} + +.request-form.rqf-opened .rq-btn-to-hide, +.request-form.rqf-opened .rq-to-hide { + display: none; +} + +.request-form .rq-form .rqf-title { + font-family: 'dindisplay_pro', Arial, sans-serif; + font-weight: 100; + font-size: 30px; + line-height: 31px; + color: #ff6600; + margin-bottom: 15px; +} + +.request-form hr { + margin: 25px 0 15px; +} + +.request-form .rq-form hr { + margin: 20px 0; +} + +.request-form .rq-btn-wrap { + margin-bottom: 15px; +} + +.request-form .rq-form hr + .rq-btn-wrap { + margin-top: 25px; +} + +.request-form .rq-btn-wrap .rqb-cols { + display: table; + width: 100%; +} + +.request-form .rq-btn-wrap .rqb-cols > * { + display: table-cell; + width: 50%; +} + +.request-form .rq-btn-wrap .rqb-cols .rqb-button { + vertical-align: top; +} + +.request-form .rq-btn-wrap .rqb-cols .rqb-text { + vertical-align: middle; + padding-left: 30px; + font-family: Arial, sans-serif; + font-size: 12px; + line-height: 16px; +} + +.request-form .rq-btn-wrap > .button.big.orange, +.request-form .rq-btn-wrap > button.big.orange { + height: 44px; + line-height: 40px; + padding: 2px 30px 0; + font-size: 17px; +} + +@-moz-document url-prefix() { + .request-form .rq-btn-wrap > .button.big.orange, + .request-form .rq-btn-wrap > button.big.orange { + line-height: 39px; + } +} + +.rq-catalog .rq-btn-wrap { + width: 100%; + max-width: 650px; +} + +.rq-remotely .rq-btn-wrap { + width: 100%; + max-width: 770px; + margin-bottom: 0; +} + +.rq-tickets .rq-btn-wrap { + width: 100%; + max-width: 800px; +} + +.rq-translator .rq-btn-wrap { + width: 100%; + margin-top: 20px; +} + +.rq-translator .rq-form .rq-btn-wrap { + width: 50%; + min-width: 420px; +} + +.rq-catalog .rq-order-button, +.rq-remotely .rq-order-button, +.rq-tickets .rq-order-button, +.rq-translator .rq-order-button { + width: 100%; +} + +.rq-catalog .rq-order-button .rqob-wrap, +.rq-remotely .rq-order-button .rqob-wrap, +.rq-tickets .rq-order-button .rqob-wrap, +.rq-translator .rq-order-button .rqob-wrap { + width: 100%; +} + +.rq-participation .rq-btn-wrap, +.rq-tour .rq-btn-wrap { + margin-left: 160px; +} + +.rq-participation .rq-form .rq-btn-wrap, +.rq-tour .rq-form .rq-btn-wrap { + margin-left: 0; +} + +.request-form .rq-btn-wrap .ob-descr { + padding-left: 160px; + color: #ff6600; + font-family: Arial, sans-serif; + font-size: 13px; + line-height: 15px; + margin-top: 7px; +} + +.request-form.rq-tickets .rq-btn-wrap .ob-descr { + padding-left: 185px; +} + +.rq-note { + /*margin-top: 10px; + border-top: 1px dotted #cccccc; + padding-top: 10px;*/ + font-size: 13px; + line-height: 15px; +} + +hr + .rq-note { + margin-top: -3px; +} + +.rq-note p { + margin: 10px 0 0; +} + +.rq-note *:first-child { + margin-top: 0; +} + + +.s-tour .sect-title { + color: #ff6600; + font-family: 'dindisplay_pro',sans-serif; + font-size: 22px; + line-height: 23px; + margin: 25px 0 15px; + padding-left: 20px; +} + +.rq-form { + padding-top: 1px; +} + +.rq-form hr:first-child { + margin-top: 0; +} + +.rq-form-sect .mf-line.cols-2 { + width: auto; +} + +.rq-form-sect .mf-line.cols-2.rq-place { + width: 75%; +} + +.rq-form .mf-line.rq-person .mf-field { + width: 60%; +} + +.rq-form-sect .mf-line.cols-2.rq-tickets-data .mf-field:first-child { + padding-right: 40px; +} + +.rq-form-sect .mf-line.cols-2.rq-contacts { + width: 85%; +} + +.rq-form .mf-line label { + font-size: 17px; +} + +.mf-line.cols-2.rq-remotely-what { + width: 100%; +} + +.mf-line.cols-2.rq-remotely-what label { + width: 150px; + padding-right: 0; +} + +.mf-line.cols-2.rq-remotely-what label em { + font-style: normal; + font-size: 14px; + line-height: 16px; + margin-top: 5px; + display: block; + color: #b0b0b0; +} + +.mf-line.cols-2.rq-remotely-what .mf-field { + width: auto; +} + +.mf-line.rq-remotely-options > label { + width: auto; +} + +.mf-line.rq-remotely-options .mf-field { + width: auto; +} + +.mf-line.rq-remotely-options .mf-field label { + margin-left: 15px; +} + +.mf-line.rq-remotely-options .mf-field label:first-child { + margin-left: 0; +} + +.rq-form-sect .mf-line.cols-2 .mf-field.rq-area-val { + width: 280px; +} + +.rq-form-sect .mf-line.cols-2 .mf-field.rq-area-val input[type="text"], +.rq-form-sect .mf-line .rq-num input[type="text"] { + width: 80px; + margin-left: 7px; +} + +.rq-form-sect .mf-line .rq-num input[type="text"]:first-child, +.rq-form-sect.rq-tour-form .mf-line .rq-num input[type="text"] { + margin-left: 0; +} + +.rq-form-sect .mf-line.cols-2 .mf-field.rq-area-type .custom-select { + display: inline-block; + vertical-align: middle; + width: 190px; + margin-left: 7px; +} + +.rq-form .rq-btn-wrap { + display: none; +} + +.request-form.rqf-opened .rq-form .rq-btn-wrap { + display: block; +} + +.mf-line.rq-tel2 .mf-field { + width: 50%; +} + +.rq-translator .rq-form-sect .mf-line.cols-2.rq-trans { + width: 100%; +} + +.rq-translator .mf-line .mf-field { + vertical-align: middle; + font-size: 17px; + width: auto; +} + +.rq-translator .rq-form-sect .mf-line.cols-2.rq-trans .mf-field { + width: 50%; +} + +.rq-translator .mf-line .mf-field.rq-num input[type="text"] { + margin-right: 5px; +} + +.rq-translator .mf-line.rq-trans .mf-field > label { + display: block; + margin-bottom: 5px; + +} + +.rq-translator .mf-line > label { + display: inline-block; + vertical-align: middle; + width: 150px; + margin-top: -6px; +} + +.rq-translator .mf-line.rq-p-days > label { + width: 124px; +} + +.rq-form .rq-tour-form .mf-line { + display: table; + table-layout: fixed; + width: 100%; +} + +.rq-form .rq-tour-form .mf-line > * { + display: table-cell; + vertical-align: top; + width: auto; + padding: 0; +} + +.rq-form .rq-tour-form .mf-line > label { + width: 160px; + padding-top: 11px; +} + +.rq-form .rq-tour-form .mf-line.rq-p-days > label { + width: 130px; +} + +.rq-tour-form .mf-field > div { + display: inline-block; + margin-right: 20px; +} + +.rq-tour-form .rq-sel-cond .custom-select { + display: inline-block; + vertical-align: middle; + margin-left: 5px; + max-width: 290px; +} + +.rq-tour-form .rq-sel-cond .custom-select:first-child { + margin-left: 0; +} + +.mf-line.rq-from-city input[type="text"] { + width: 50%; +} + +.custom-radio-check.rq-rad-rate { + display: inline-block; + vertical-align: middle; + height: 40px; + border: 1px solid #feb17d; + border-radius: 3px; + -moz-box-sizing: border-box; + box-sizing: border-box; + cursor: pointer; + overflow: hidden; + position: relative; + margin-right: 2px; +} + +.custom-radio-check.rq-rad-rate:hover { + border-color: #ff6600; + background: #ff6600; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff8000), color-stop(100%,#ff6600)); + background: -webkit-linear-gradient(top, #ff8000 0%,#ff6600 100%); + background: -o-linear-gradient(top, #ff8000 0%,#ff6600 100%); + background: -webkit-linear-gradient(top, #ff8000 0%, #ff6600 100%); + background: -o-linear-gradient(top, #ff8000 0%, #ff6600 100%); + background: linear-gradient(to bottom, #ff8000 0%,#ff6600 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8000', endColorstr='#ff6600',GradientType=0 ); +} + +.custom-radio-check.rq-rad-rate .custom-checkbox { + display: block; + height: 38px; + line-height: 38px; + padding: 0 12px; +} + +.custom-radio-check.rq-rad-rate .custom-checkbox:before { + content: ''; + display: inline-block; + vertical-align: middle; + height: 15px; + background: url(../img/sprites.png) 0 0 no-repeat; + margin: -2px -1px 0 0; +} + +.custom-radio-check.rq-rad-rate .custom-checkbox:before { + background-position: -340px -16px; +} + +.custom-radio-check.rq-rad-rate .custom-checkbox.checked:before { + background-position: -340px -32px; +} + +.custom-radio-check.rq-rad-rate:hover .custom-checkbox:before { + background-position: -340px 0; +} + +.custom-radio-check.rq-rad-rate.rr1 .custom-checkbox:before { + width: 15px; +} + +.custom-radio-check.rq-rad-rate.rr2 .custom-checkbox:before { + width: 31px; +} + +.custom-radio-check.rq-rad-rate.rr3 .custom-checkbox:before { + width: 47px; +} + +.custom-radio-check.rq-rad-rate.rr4 .custom-checkbox:before { + width: 63px; +} + +.custom-radio-check.rq-rad-rate.rr5 .custom-checkbox:before { + width: 79px; +} + +.custom-radio-check.rq-rad-rate input { + position: absolute; + cursor: pointer; + bottom: 110%; + right: 110%; +} + +.rq-tour-form .rq-sel-cond.rq-hotel-loc .custom-select { + max-width: 150px; +} + +.rq-tour-form .rq-sel-cond.rq-h-price label { + font-size: 14px; +} + +.rq-tour-form .rq-sel-cond.rq-h-price input[type="text"] { + width: 80px; + margin-left: 5px; +} + +.rq-tour-form .rq-sel-cond.rq-h-price .custom-select { + max-width: 120px; +} + +.rq-form .rq-tour-form .mf-line.rq-notes { + width: 95%; +} + +.mf-line.rq-options { + margin-top: 20px; +} + +.mf-line.rq-options .mf-field > ul { + margin: 0; + padding: 15px 20px; + list-style: none; +} + +.mf-line.rq-options .mf-field > ul li { + margin-top: 10px; +} + +.mf-line.rq-options .mf-field ul li:first-child { + margin-top: 0; +} + +.mf-line .rq-sub-sect { + display: table; + background: #f3f3ef; +} + +.rq-tour-form .mf-field > div.rq-sub-sect { + margin-right: 0; +} + +.mf-line .rq-sub-sect.transl-service { + min-width: 595px; +} + +.mf-line .rq-sub-sect.transl-service .rq-sub-sect-body { + width: 355px; +} + +.mf-line .rq-sub-sect > * { + display: table-cell; + vertical-align: top; + padding: 15px 20px; + width: auto; +} + +.mf-line .rq-sub-sect.transl-service .rq-switch { + width: 180px; + padding-right: 0; +} + +.mf-line .rq-sub-sect .rq-sub-sect-body.disabled > * { + opacity: 0.5; +} + +.mf-line .rq-sub-sect.avia-tickets { + max-width: 470px; +} + +.mf-line .rq-sub-sect.avia-tickets .rq-sub-sect-body { + padding-right: 0; + padding-bottom: 5px; +} + +.mf-line .rq-sub-sect .rq-sub-sect-body .check { + margin: 0 20px 10px 0; +} + +.mf-line .rq-s-line { + margin-top: 12px; + font-size: 15px +} + +.mf-line .rq-s-line:first-child { + margin-top: 0; +} + +.rq-form .mf-line .rq-sub-sect-body label.check { + font-size: 15px; +} + +.mf-line .rq-s-line label { + display: inline-block; + vertical-align: middle; + font-size: 15px; +} + +.mf-line .rq-s-line .rq-num { + display: inline-block; + margin-left: 10px; +} + +.mf-line .rq-s-line .rq-num input[type="text"] { + width: 60px; + margin-right: 5px; +} + + + + + +/* ========================================================================== + Media Queries + ========================================================================== */ + +@media only screen and (min-width: 1080px) { + + .page-wrap { + width: 100%; + padding-right: 40px; + } + + .page-wrap .layout { + padding-left: 3%; + } + + .page-wrap .layout.mp-announces .layout-wrap { + padding-right: 0; + } + + .page-wrap .layout.mp-announces .layout-wrap aside { + margin-right: 0; + width: 33.33%; + margin-left: -100%; + } + + .page-wrap .layout.mp-announces .layout-wrap .mcl { + width: 66.66%; + } + + .eprl-col { + padding: 0 20px 15px; + } + +} + +@media only screen and (min-width: 1100px) { + + .e-price-wrap { + margin: 0 -40px; + } + + .epr-layout { + border-spacing: 40px 0; + } + +} + +@media only screen and (min-width: 1170px) { + + .page-wrap .layout { + padding-left: 6%; + } + + .page-wrap .layout .layout-wrap { + padding-left: 230px; + } + + .main-page .page-wrap .header-wrap, + .main-page .page-wrap .mp-catalog .layout-wrap, + .page-wrap > footer .layout-wrap.footer-wrap { + padding-left: 240px; + } + + .page-wrap section.layout.search-form .layout-wrap { + padding-left: 430px; + } + + .page-wrap .layout .layout-wrap > aside { + width: 230px; + padding-right: 50px; + margin-left: -230px; + } + + .page-wrap > header .logo { + margin-left: -230px; + } + + .page-wrap > header .logo h1, + .page-wrap > header .logo h2, + .page-wrap > header .logo h3 { + margin-left: -67px; + } + + .page-wrap .layout .layout-wrap > aside > .sbg { + /*left: -239px;*/ + } + + .mp-partners .mpp-wrap { + padding-left: 430px; + } + + .mp-partners .mpp-wrap header { + width: 230px; + margin-left: -230px; + } + + .s-phone { + margin-left: -25px; + } + + .online-adviser { + margin-left: -40px; + } + + .s-news-list ul li { + padding-left: 60px; + margin-left: -60px; + } + + .s-news-list .nl-pict { + margin: 0 -40px 0 -60px; + } + + .page-wrap .layout.mp-announces .layout-wrap { + padding-left: 230px; + } + + .mp-photo-gallery { + margin-left: -230px; + } + + .mp-photo-gallery header { + padding-left: 230px; + } + + .mp-photo-gallery header .pg-title { + margin-left: -230px; + } + + .mp-photo-gallery .pg-item .pgi-descr { + padding-left: 230px; + } + + .mp-photo-gallery .pg-item .pgi-descr .pgi-date { + margin-left: -190px; + } + +} + +@media only screen and (min-width: 1200px) { + + .page-wrap .layout { + /*padding-left: 9%;*/ + } + + .page-wrap > header .logo h1, + .page-wrap > header .logo h2, + .page-wrap > header .logo h3 { + margin-left: -67px; + } + + .mp-partners .mpp-wrap ul { + margin-left: -30px; + } + + .mp-partners .mpp-wrap li { + margin-left: 30px; + } + + .eprl-col:first-child { + width: 50%; + } + +} + + +@media only screen and (min-width: 1260px) { + + + .header-body .header-top { + padding-right: 510px; + } + + .header-body .header-top .ht-main { + width: 100%; + } + + .header-body .header-top .ht-side { + width: 505px; + margin-right: -505px; + } + + .mp-partners .mpp-wrap ul { + margin-left: -40px; + } + + .mp-partners .mpp-wrap li { + margin-left: 60px; + } + +} + +@media print, +(-o-min-device-pixel-ratio: 5/4), +(-webkit-min-device-pixel-ratio: 1.25), +(min-resolution: 120dpi) { + +} + +/* ========================================================================== + Helper classes + ========================================================================== */ + +.ir { + background-color: transparent; + border: 0; + overflow: hidden; + *text-indent: -9999px; +} + +.ir:before { + content: ""; + display: block; + width: 0; + height: 150%; +} + +.hidden { + display: none !important; + visibility: hidden; +} +.visible{ + display: block !important; + /*visibility: hidden;*/ +} +.c-select-box .csb-selected.dna-clone{ + display: inline-block; +} + +.visuallyhidden { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + +.visuallyhidden.focusable:active, +.visuallyhidden.focusable:focus { + clip: auto; + height: auto; + margin: 0; + overflow: visible; + position: static; + width: auto; +} + +.invisible { + visibility: hidden; +} + +.clearfix:before, +.clearfix:after { + content: " "; + display: table; +} + +.clearfix:after { + clear: both; +} + +.clearfix { + *zoom: 1; +} + +/* ========================================================================== + Print styles + ========================================================================== */ + +@media print { + * { + background: transparent !important; + color: #000 !important; /* Black prints faster: h5bp.com/s */ + box-shadow: none !important; + text-shadow: none !important; + } + + a, + a:visited { + text-decoration: underline; + } + + a[href]:after { + content: " (" attr(href) ")"; + } + + abbr[title]:after { + content: " (" attr(title) ")"; + } + + /* + * Don't show links for images, or javascript/internal links + */ + + .ir a:after, + a[href^="javascript:"]:after, + a[href^="#"]:after { + content: ""; + } + + pre, + blockquote { + border: 1px solid #999; + page-break-inside: avoid; + } + + thead { + display: table-header-group; /* h5bp.com/t */ + } + + tr, + img { + page-break-inside: avoid; + } + + img { + max-width: 100% !important; + } + + @page { + margin: 0.5cm; + } + + p, + h2, + h3 { + orphans: 3; + widows: 3; + } + + h2, + h3 { + page-break-after: avoid; + } +} +/*block*/ + +.pwf-msg .msg-error{ + color: #fe0238; + padding-left: 20px; +} + +.pwf-msg .msg-help:before { + content: '—'; + float: left; + margin: 0 -15px 0 -20px; +} + +.mf-line .mf-error, .pwf-field .error{ + color: #ff083c; + font-size: 15px; + padding-right: 10px; + padding-bottom: 5px; + width: 65%; +} + +.mf-line .mf-success{ + display: none; + color: #31ff13; + font-size: 15px; + padding-right: 10px; + padding-bottom: 5px; + width: 65%; + +} + +.fancybox-inner { + overflow: visible!important; +} +.pw-subj{ + min-height: 480px; +} +.pw-subj .csb-menu .level .sublist{ + display: none; +} +.pw-subj .csb-menu .level.active .sublist{ + display: block; +} +.pw-subj .csb-menu .level1{ + display: none; +} +.pw-subj .csb-menu .level1 > ul{ + margin-left: 1em; + margin-top: 0.5em; +} +.pw-subj .csb-menu .level1 > ul .trigger{ + margin-left: 1em; + +} +.pw-subj .csb-menu .level1.visible{ + display: block; +} + +#mCSB_1, #mCSB_3{ + min-height: 188px; +} +/* Page group by*/ +.leter-list{ + float:left; + width: 30%; + min-height:6em; +} + + +.leter-list .leter{ + color: #ff6600; + margin-bottom: 1em; +} + +/* END block*/ + +/*dimonn style*/ +.clear { clear: both;} +.about_pic { float: left; margin: 0 20px 10px 0; display: block;} +.about_block h2 { margin: 0 0 0 0; padding: 10px 0 0 0; color: #ff6600;font-family: 'dindisplay_pro'; font-size: 20px; font-weight: normal;} +.about_block ul { position: relative; left: 15px; list-style-type: none;} +.about_block ul li {padding-left: 15px;} +.about_block ul li:before { content: '';display: block;width: 11px;height: 8px;background: url(../img/sprites.png) -250px -124px no-repeat; float: left; + margin: 4px -11px 0 -15px;} + +.about_block a.clolr_1 { color: #3b5998;} +.about_block a.clolr_2 { color: #1ab2e8;} +.about_block a.clolr_3 { color: #597da3;} +.signature_block { padding: 15px 0 42px 0;font-family: 'dindisplay_pro'; font-size: 13px; color: #8d8c8c; font-weight: normal;} +.signature_block_pic { display: block; float: left; margin: 0 30px 0 10px;} +.signature_block h3 { font-size: 16px; font-weight: normal; margin: 0 0 0 0; color: #010101;} +.signature_block strong { display: block; font-weight: normal; color: #ff6600; padding: 0 0 2px 0;} +.signature_block p { padding: 0 0 0 0; margin: 0 0 0 0;} + +.about_block_menu {border-bottom: 1px dotted #ccc; list-style-type: none;float: left; width: 100%; padding: 0 0 0 0; margin: 0 0 25px 0;} +.about_block_menu li { float: left; height: 35px; padding: 15px 25px 0 25px; border: 1px dotted #fcfcfb; position: relative; top: 1px;list-style-type: none; margin: 0 0 0 0; overflow: hidden; border-bottom: none;} +.about_block_menu li a { font-size: 18px; color: #ff6600; text-decoration: none;font-family: 'dindisplay_pro'; background: url(../img/libk_bg.png) left bottom repeat-x; display: inline-block; height: 18px;-webkit-transition: none;-o-transition: none;transition: none;} +.about_block_menu li a:hover { background: none;} +.about_block_menu li:first-child { padding-left: 0;} +.about_block_menu li.active {border-color: #ccc; background: #fcfcfb;} +.about_block_menu li.active a { background: none; color: #000;} + +.about_block_menu li.active:first-child {border-left-color: #fcfcfb;} + +.about_block_menu.about_active {border-top: 1px dotted #ccc; border-bottom-color: #fcfcfb;} +.about_block_menu.about_active li { border: none;} +.about_block_menu.about_active li.m_05 { display: none;} + + + +.contacts_top_block { width: 100%; float: left;} +.contacts_top_block_left { float: left; width: 340px; color: #464646; font-size: 13px;font-family: 'dindisplay_pro';} +.contacts_top_block_left strong { font-size: 20px; font-weight: normal; padding: 0 17px 0 0 ; position: relative; top: 5px;} +.contacts_top_block_left p { padding: 0 0 0 0; margin: 0 0 0 0;} + + +.contacts_top_block_right { float: right; width: 396px; border-bottom: 1px dotted #ccc; padding: 7px 0 15px 0; font-size: 13px; color: #787777;font-family: 'dindisplay_pro';} +.contacts_top_block_right table tr th { text-align: left; vertical-align: top; padding: 1px 10px 1px 0; font-weight: normal;} +.contacts_top_block_right table tr td { text-align: left; vertical-align: top; padding: 1px 0;} +.contacts_top_block_right table tr td a { display: inline-block; position: relative; text-decoration: none; padding: 0 0 0 21px;} +.contacts_top_block_right table tr td a i { font-style: normal; text-decoration: underline;} +.contacts_top_block_right table tr td a:hover i { text-decoration: none;} +.contacts_top_block_right table tr td a span { display: block; width: 15px; height: 12px; position: absolute; left: 0; top: 3px; background: url(../img/sprites.png) -223px 0 no-repeat;} + +.button.icon-call:before {width: 12px;height: 12px;background-position: -304px -117px;} +.button.icon-call:hover:before, .button.orange.icon-call:before {background-position: -304px -130px;} + +.contacts_bottom { padding: 25px 0 0 0; font-size: 12px; color: #464646;} +.contacts_bottom h3 { font-size: 13px; font-weight: normal; color: #8b8b8b; padding: 0 0 5px 0; margin: 0 0 0 0;font-family: 'dindisplay_pro';} +.contacts_bottom p { padding: 0 0 0 0; margin: 0 0 0 0;} +.contacts_bottom .soc-media-buttons { float: right; margin: 0 0 0 0;} +.contacts_bottom h3 span { font-size: 16px; position: relative; color: #464646; top: 1px; padding: 0 0 0 5px;} +.contacts_bottom_map { margin: 10px 0 -5px 0;border-bottom: 1px dotted #ccc; padding: 0 0 26px 0;} +.contacts_bottom_map img { display: block; width: 100%;} + + + +.parnters_about_block_table { width: 100%;} +.parnters_about_block_table a:hover {color: #ff6600;} +.parnters_about_block_table tr td { text-align: left;vertical-align: top;width: 140px; padding: 0 0 20px 0;} +.parnters_about_block_table tr td.delimiter { width: auto !important;} +.parnters_about_block_table tr td a {color: #464646;display: block; width: 140px;font-size: 11px;line-height: 14px; text-align: center;} +.parnters_about_block_table tr td a .imp-pict { position: relative;display: block;width: 140px;overflow: hidden;margin-bottom: 5px;border-radius: 4px;} +.parnters_about_block_table tr td a img {display: block;width: 140px;} +.parnters_about_block_table tr td a .imp-pict:before {content:'';display:block; position:absolute; width:100%; height:100%; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(0, 0, 0, .2);} + + +.review_list { list-style-type: none; padding: 0 0 0 0; margin: -10px 0 0 0;} +.review_list li { position: relative; border-bottom: 1px dotted #ccc; padding: 25px 0 19px 0;} +.review_list li:first-child { padding-top: 0;} +.review_list li:last-child { border-bottom: none;} +.review_list .cl-item-wrap {padding-left: 90px;} +.review_list .cli-pict {margin-left: -90px;width: 70px;height: 70px;line-height: 65px;padding: 2px;} +.review_list .cli-info {margin-bottom: 0;} +.review_list .sc-name {font-family: 'dindisplay_pro', sans-serif;font-weight: 500;font-size: 17px;line-height: 20px;color: #ff6600;margin: -7px 0 10px; position: relative;} + + +.review_list .sc-name span a { font-weight: normal; font-size: 12px; float: right;} +.review_list .sc-name span a:before { + content: ' '; + display: inline-block; + vertical-align: middle; + width: 11px; + height: 13px; + background: url(../img/sprites.png) -211px 0 no-repeat; + margin: -1px 5px 0 0; +} + + +.review_list .sc-name a { text-decoration: none;} +.review_list .sc-name a:hover {color: #464646;} + +.review_list .sc-text {font-size: 12px;line-height: 16px;} +.review_list .cli-top {margin-bottom: 10px;} +.review_list header {font-family: 'dindisplay_pro', sans-serif;margin-bottom: 2px;} +.review_list header .cli-title {display: inline-block;vertical-align: top;font-size: 30px;line-height: 30px;margin: 0 6px 0 0;-webkit-transition: color .3s;-o-transition: color .3s;transition: color .3s;max-width: 490px;} +.review_list header .cli-title a {text-decoration: none;} +.review_list header .cli-title a:hover {color: #464646; +} + +.team_list { width: 100%; float: left; margin: 0 0 0 0; padding: 0 0 0 0; list-style-type: none;} + +.team_list li { + display: inline-block; + vertical-align: middle; + width: 33%; + font-size: 11px; + position: relative; + line-height: 1.25; + margin-bottom: 2em; +} +.team_list li.delimiter { width: 100%; height: 25px;} +.team_list li .team_list_bg { position: relative; float: left; padding: 0 0 0 104px;} + +.team_list li .team_list_bg .pic { + display: block; + position: absolute; + left: 0; + top: 50%; + margin-top: -45px; + width: 89px; + height: 89px; + border-radius: 4px; +} +.team_list li p { padding: 0 0 0 0; margin: 0 0 0 0; color: #a6a6a5;} +.team_list li strong { display: block; font-weight: normal; color: #464646; font-size: 13px; padding: 0 0 5px 0;} +.team_list li h4 { font-size: 21px; font-weight: 500; color: #ff6600; padding: 3px 0 3px 0; margin: 0 0 0 0; line-height: 1.0;} +.team_list li:hover h4 {color: #464646;} +.team_list li a { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: url(../img/spacer.gif);} + + + +.blog_block { font-size: 12px; color: #464646;} +.blog_block h1 { color: #424242; font-size: 25px; font-weight: normal;font-family: 'dindisplay_pro', sans-serif; margin: 0 0 0 0; padding: 0 0 0 0;} +.blog_block h2 { color: #424242; font-size: 22px; font-weight: normal;font-family: 'dindisplay_pro', sans-serif; margin: 0 0 -5px 0; padding: 7px 0 0 0;} +.blog_block h3 { color: #424242; font-size: 19px; font-weight: normal;font-family: 'dindisplay_pro', sans-serif; margin: 0 0 -5px 0; padding: 7px 0 0 0;} +.blog_block h4 { color: #ff6600; font-size: 14px; font-weight: normal;font-family: 'dindisplay_pro', sans-serif; margin: 0 0 -10px 0; padding: 4px 0 0 0;} + +.blog_block_headline { padding: 5px 0 0 120px; position: relative; font-size: 13px; min-height: 95px;} +.blog_block_headline strong { display: block; font-weight: normal; font-size: 14px; color: #ff6600; padding: 8px 0 10px 0;} +.blog_block_headline strong span { padding: 0 30px 0 0;} +.blog_block_headline p { margin: 0 0 0 0;} +.blog_block_headline strong span:before {content: ' ';display: inline-block;vertical-align: middle; width: 13px; height: 16px; background: url(../img/sprites.png) -183px -145px no-repeat; margin: 0 5px 0 0; position: relative; top: -2px;} +.blog_block_headline strong a.profile_link:before {content: ' ';display: inline-block;vertical-align: middle; width: 11px; height: 13px; background: url(../img/sprites.png) -24px 0 no-repeat;margin: 0 5px 0 0;} +.blog_block_headline strong a.flag:before {content: ' ';display: inline-block;vertical-align: middle; width: 14px; height: 14px; background: url(../img/sprites.png) -329px -49px no-repeat;margin: 0 5px 0 0;} +.blog_block_headline .pic { display: block; position: absolute; left: 0; top: 0; width: 100px; height: 100px; border-radius: 4px;} +.blog_block_headline .content-text{ + margin-left: -120px; + margin-top: 2em; +} +.blog_block .pic_left { float: left; margin: 4px 30px 5px 0;} +.blog_block .pic_left img { display: block; border-radius: 4px;} +.blog_block .pic_left i { font-size: 11px; color: #a1a1a1; display: block; padding: 3px 0 0 0;} + +.blog_block .pic_right { float: right; margin: 4px 0 10px 10px;} +.blog_block .pic_right img { display: block; border-radius: 4px;} +.blog_block .pic_right i { font-size: 11px; color: #a1a1a1; display: block; padding: 3px 0 0 0;} + +.blog_avtor { /*border-top: 1px dotted #ccc;*/ padding: 20px 0 0 0; margin: 19px 0 0 0;} +.blog_avtor table { float: left;} +.blog_avtor table tr th { text-align: left; vertical-align: top; padding: 3px 20px 0 0; font-weight: normal; font-size: 13px; color: #a2a2a2;font-family: 'dindisplay_pro', sans-serif;} +.blog_avtor table tr td { text-align: left; vertical-align: middle; padding: 0 9px 0 0;font-family: 'dindisplay_pro', sans-serif;} +.blog_avtor table tr td .pic { display: block; width: 50px; height: 50px; border-radius: 3px;} +.blog_avtor table tr td h3 { padding: 0 0 5px 0; margin: 0 0 0 0;} +.blog_avtor table tr td h3 a { text-decoration: none; color: #464646; font-size: 20px;} +.blog_avtor table tr td h3 a:hover { color: #f60;} +.blog_avtor table tr td a.facebook { font-size: 13px; color: #3b5998;} +.blog_avtor table tr td a.facebook:before {content: ' ';display: inline-block;vertical-align: middle; width: 17px; height: 17px; background: url(../img/sprites.png) -304px -144px no-repeat;margin: 0 5px 0 0;} +.blog_avtor_right { float: right; font-size: 13px; color: #ff6600;font-family: 'dindisplay_pro', sans-serif;} +.blog_avtor_right .soc_icons { margin: 0 0 12px 0; display: block;} +.blog_avtor_right .icon { display: inline-block; width: 12px; height: 13px; position: relative; top: 3px; margin: 0 3px 0 0;background: url(../img/sprites.png) -305px -162px no-repeat;} + +.blog_avtormidle {font-size: 13px; font-family: 'dindisplay_pro', sans-serif; color: #ff6600;} +.blog_avtormidle i { font-style: normal; color: #a2a2a2; padding: 0 32px 0 0;} +.blog_avtormidle .icon { display: inline-block; width: 12px; height: 13px; position: relative; top: 3px; margin: 0 3px 0 0;background: url(../img/sprites.png) -305px -162px no-repeat;} + + + +.blog_link { position: relative;} +.blog_link .button { position: absolute; right:0; top: -5px;} +.blog_link a { text-decoration: none;} + +.acticle_list { padding: 0 0 0 90px; position: relative; font-size: 12px; color: #7b7b7b;} +.acticle_list .pic { display: block; position: absolute; left: 0; top: 0; width: 70px; height: 70px; border-radius: 3px;} +.acticle_list h3 { margin: 0 0 0 0; padding: 2px 0 6px 0; font-size: 22px; font-weight: normal;font-family: 'dindisplay_pro', sans-serif;} +.acticle_list h3 a { color: #464646; text-decoration: none;} +.acticle_list h3 a:hover { color: #f60;} +.acticle_list strong { display: block; font-weight: normal; font-size: 13px; color: #ff6600; padding: 5px 0 0 0;} +.acticle_list strong span { padding: 0 30px 0 0;} +.acticle_list strong a { text-decoration: none;} +.acticle_list p { margin: 0 0 0 0; line-height: 16px;} +.acticle_list strong span:before {content: ' ';display: inline-block;vertical-align: middle; width: 13px; height: 16px; background: url(../img/sprites.png) -183px -145px no-repeat; margin: 0 5px 0 0; position: relative; top: -2px;} +.acticle_list strong i { font-style: normal; opacity: 0.5;} +.acticle_list strong i:before {content: ' ';display: inline-block;vertical-align: middle; width: 11px; height: 13px; background: url(../img/sprites.png) -24px 0 no-repeat;margin: 0 5px 0 0; position: relative; top: -1px;} +.acticle_list strong a:hover i { opacity: 1;} + +.acticle_list strong b { font-weight: normal; opacity: 0.6;} +.acticle_list strong b:before {content: ' ';display: inline-block;vertical-align: middle; width: 14px; height: 14px; background: url(../img/sprites.png) -329px -49px no-repeat;margin: 0 5px 0 0;} +.acticle_list strong a { text-decoration: none;} +.acticle_list strong a:hover b { opacity: 1;} + +.acticle_list_big { padding: 0 0 0 270px; position: relative; font-size: 12px; color: #7b7b7b; min-height: 180px;} +.acticle_list_big .pic { display: block; position: absolute; left: 0; top: 0; width: 250px; height: 180px; border-radius: 4px;} +.acticle_list_big h3 { margin: 0 0 0 0; padding: 2px 0 6px 0; font-size: 22px; font-weight: normal;font-family: 'dindisplay_pro', sans-serif;} +.acticle_list_big h3 a { color: #464646; text-decoration: none;} +.acticle_list_big h3 a:hover { color: #f60;} +.acticle_list_big strong { display: block; font-weight: normal; font-size: 13px; color: #ff6600; padding: 5px 0 0 0;} +.acticle_list_big strong span { padding: 0 30px 0 0; display: block; float: left;} +.acticle_list_big p {line-height: 16px;} +.acticle_list_big strong span:before {content: ' ';display: inline-block;vertical-align: middle; width: 13px; height: 16px; background: url(../img/sprites.png) -183px -145px no-repeat; margin: 0 5px 0 0; position: relative; top: -2px;} +.acticle_list_big .icon { display: inline-block; width: 12px; height: 13px; position: relative; top: 3px; margin: 0 3px 0 0;background: url(../img/sprites.png) -305px -162px no-repeat;} +.mf-line1 { margin-bottom: 0;} +.acticle_list_big .cli-pict .no-logo{ + width: 100px; + margin-top: 40px; +} +.acticle_list_big .cli-pict{ + position: absolute; + left: 0; + top: 0; + width: 250px; + height: 180px; + margin-left: 0; +} +.country_table { width: 100%; margin: 6px 0 12px 0;} +.country_table tr td { text-align: left; vertical-align: top; width: 50%;} +.country_table tr td ul { list-style-type: none; margin: 0 0 0 0; padding: 0 0 0 0;} +.country_table tr td ul li { padding: 2px 0;font-family: 'dindisplay_pro', sans-serif; font-size: 14px; color: #a2a2a2; font-weight: 500;} +.country_table tr td ul li strong {color: #a2a2a2; font-weight: 500; font-size: 16px;} +.country_table tr td ul li span { padding: 0 0 0 9px; font-size: 16px; color: #424242;} +.country_table tr td ul li span a {color: #424242; font-size: 18px; font-weight: bold;} +.country_table tr td ul li span a:hover { color: #f60;} +.country_table tr td ul li i { font-style: normal; float: left; display: block; padding: 0 0 5px 0;} + +.country_map {} +.country_map .i-map .close-map { bottom: -50px!important;} +.country_towns { padding: 0 0 0 122px;font-weight: 500;font-family: 'dindisplay_pro', sans-serif;} +.country_towns h4 { font-size: 14px; color: #a2a2a2; font-weight: 500; padding: 0 0 0 0; margin: 0 0 0 0;} +.country_towns table { width: 100%;} +.country_towns table tr td { text-align: left; vertical-align: top; width: 28%;} +.country_towns table tr td ul { list-style-type: none; margin: 0 0 0 0; padding: 0 0 0 0;} +.country_towns table tr td ul li { font-size: 16px; padding: 3px 0 2px 0;} +.country_towns table tr td ul li a { color: #424242;} +.country_towns table tr td ul li a:hover { color: #f60;} + +.country_content p { color: #464646;} +.country_content h4 { font-size: 23px; font-weight: normal; color: #ff6600; margin: -5px 0 -5px 0; padding: 0 0 0 0;font-family: 'dindisplay_pro', sans-serif;} +.country_content h5 { font-size: 20px; font-weight: normal; color: #ff6600; margin: 15px 0 -5px 0; padding: 0 0 0 0;font-family: 'dindisplay_pro', sans-serif;} +.country_content_table { width: 100%; font-size: 12px; color: #464646;} +.country_content_table tr td { text-align: left; vertical-align: top; width: 58%;} +.country_content_table tr td.delimiter { width: auto;} +.country_content_table tr th { text-align: left; vertical-align: top; width: 33%; font-weight: normal;} +.country_content_table h4 { font-size: 18px; font-weight: normal; color: #ff6600; margin: 0 0 0 0; padding: 0 0 5px 0;} +.country_content_table h4 span { color: #464646;} +.country_content_table p { padding: 0 0 0 0; margin: 0 0 0 0;} +.country_content_table tr td ul { list-style-type: none; padding: 0 0 0 0; margin: 0 0 0 0;} +.country_content_table tr td ul li:before {content: '•';display: inline-block; margin: 0 5px 0 0;vertical-align: middle;} + +.page-title { position: relative;} +.page-title .button {position: absolute; right: 0;top: 4px;} + +.archive_block { padding: 0 0 20px 0;} +.archive_block h4 { float: left; font-size: 23px; color: #b8b8b7; font-weight: normal;font-family: 'dindisplay_pro', sans-serif; padding: 8px 28px 0 0; margin: 0 0 0 0;} +.archive_block .select_1 { float: left; width: 148px; margin: 0 10px 0 0;} +.archive_block .select_2 { float: left; width: 128px;} + +.show-map_1 { float: right;} + + +.map_info_block { width: 100%;font-family: 'dindisplay_pro', sans-serif;} +.map_info_block tr th { text-align: left; vertical-align: top; width: 15%; font-weight: 500; color: #a2a2a2; font-size: 14px; padding: 9px 0 0 0;} +.map_info_block tr td { text-align: left; vertical-align: top; border-bottom: 1px dotted #ccc; padding: 8px 0; font-size: 16px; color: #424242; font-weight: 500;} +.map_info_block tr td.width_1 { width: 35%;} +.map_info_block tr td p { padding: 1px 0; margin: 0 0 0 0;} +.map_info_block tr td p a { display: inline-block; position: relative;color: #424242;} +.map_info_block tr td p a i { font-style: normal; position: absolute; right: -125px; top: 0; font-size: 13px; opacity: 0.7; display: none;} +.map_info_block tr td p a i:before {content: '';display: inline-block; margin: 0 5px 0 0;vertical-align: middle; width: 8px; height: 14px; background: url(../img/sprites.png) -330px -65px;} +.map_info_block tr td p a:hover { color: #f60; text-decoration: none;} +.map_info_block tr td p a:hover i { display: block;} +.map_info_block tr:last-child td { border-bottom: none;} +.i-photo-slides_1 { margin-bottom: 0;} + +.button.about { padding: 3px 12px 2px 12px; margin: 10px 0 0 0;} +.button.about:before {content: ' '; display: inline-block;vertical-align: middle;width: 13px;height: 14px;background: url(../img/sprites.png) -328px -81px no-repeat;margin: 0 4px 0 0; position: relative; top: -1px;} +.button.about:hover:before { background-position: -328px -98px;} + +.content_list {list-style-type: none; float: none !important;width: auto !important; padding: 13px 0 0 0 !important;} +.content_list li {float: none !important; width: auto !important; margin: 0 0 0 0 !important; padding: 1px 0 1px 17px !important; color: #464646;} +.content_list li:before {content: '';display: block;width: 11px;height: 8px;background: url(../img/sprites.png) -250px -124px no-repeat;float: left; + margin: 5px -11px 0 -15px;} +.i-staff-list > ul > li.delimiter { width: 100%; height: 25px;} + +.profile_top { padding: 21px 0 0 120px; position: relative; min-height: 200px;} +.profile_top_pic { position: absolute; left: 0; top: 0; width: 110px;} +.profile_top_pic img { display: block; border-radius: 4px; float: left;} +.profile_top_pic .big { width: 100px; height: 100px;} +.profile_top_pic .big_link { display: block;width: 100px; height: 100px;} +.profile_top_pic .small { width: 45px; height: 45px; margin: 10px 10px 0 0;} +.profile_top h1 { font-size: 40px; color: #ff6600; font-weight: normal;font-family: 'dindisplay_pro', sans-serif; margin: 0 0 0 0; padding: 0 0 12px 0;} +.profile_top h3 { font-size: 18px; color: #ff6600; font-weight: normal;font-family: 'dindisplay_pro', sans-serif; margin: 0 0 0 0; padding: 0 0 2px 0;} + +.profile_top_left_1 { float: left; width: 72%; font-size: 15px; color: #464646;font-family: 'dindisplay_pro', sans-serif;} +.profile_top_left_1 b { font-size: 18px; font-weight: 500;} +.profile_top_left_1 span, .profile_top_right_1 span { display: inline-block; background: url(../img/sprites.png) no-repeat; position: relative;} +.profile_top_left_1 span.icon1, .profile_top_right_1 span.icon1 { width: 16px; height: 16px; background-position: -326px -114px; margin: 0 5px 0 0; top: 3px;} +.profile_top_left_1 span.icon2, .profile_top_right_1 span.icon2 { width: 13px; height: 19px; background-position: -327px -134px; margin: 0 5px 0 0; top: 5px;} +.profile_top_left_1 span.icon3, .profile_top_right_1 span.icon3 { width: 12px; height: 11px; background-position: -327px -154px; margin: 0 5px 0 25px; top: 1px;} +.profile_top_left_1 span.icon4, .profile_top_right_1 span.icon4 { width: 9px; height: 15px; background-position: -348px -52px; margin: 0 5px 0 0; top: 2px;} +.profile_top_left_1 span.icon5, .profile_top_right_1 span.icon5 { width: 15px; height: 13px; background-position: -346px -70px; margin: 0 5px 0 0;top: 2px;} + +.profile_top_right_1 { float: right; width: 26%; text-align: right;font-size: 15px; color: #464646;font-family: 'dindisplay_pro', sans-serif;} +.profile_top_left_1 p { margin: 0 0 0 0; padding: 2px 0;} +.profile_top_right_1 p { margin: 0 0 0 0; padding: 4px 0;} +.profile_top_right_1 p a { text-decoration: none; color: #464646;} +.profile_top_right_1 p a:hover { color: #f60;} + +.profile_top_table { width: 100%; margin-bottom: 16px;} +.profile_top_table tr td { width: 47%; text-align: left; vertical-align: top; border-bottom: 1px dotted #ccc;font-family: 'dindisplay_pro', sans-serif; font-size: 15px; padding: 0 0 16px 0;} +.profile_top_table tr td h3 { font-size: 22px; padding: 0 0 10px 0;} +.profile_top_table tr td p { padding: 0 0 0 0; margin: 0 0 0 0;} +.profile_top_table tr td span { color: #a2a2a2;} +.profile_top_table tr td ul { list-style-type: none; margin: 0 0 0 0; padding: 1px 0 9px 0;} +.profile_top_table tr td ul li { font-family: Arial; font-size: 13px;} +.profile_top_table tr td ul li:before { content:''; display: inline-block; width: 12px; height: 11px;background: url(../img/sprites.png) -327px -154px no-repeat; margin: 0 6px 0 0; top: 1px;} +.profile_top_table_1 { margin-bottom: 0;} +.profile_top_table_1 tr td { border-bottom: none; padding: 0 0 0 0;} + +.profile_top_table tr td .subjects_list { position: relative;} +.profile_top_table tr td .subjects_list.more { padding-bottom: 21px;} +.profile_top_table tr td .subjects_list span { display: none; font-size: 12px; color: #ff6600; background: url(../img/subjects_list.png) left bottom repeat-x; position: absolute; left: 18px; bottom: 15px; height: 16px; font-family: Arial; cursor: pointer;} +.profile_top_table tr td .subjects_list span:hover { background: none;} +.profile_top_table tr td .subjects_list span i { font-style: normal;} +.profile_top_table tr td .subjects_list.more span { display: inline-block;} + +.profile_bottom_table { width: 100%; font-size: 15px; color: #424242;font-family: 'dindisplay_pro', sans-serif;} +.profile_bottom_table tr td { text-align: left; vertical-align: top;} +.profile_bottom_table tr td.headline { width: 120px; padding: 6px 0 0 0; font-size: 17px; color: #464646;} +.profile_bottom_table tr td.profile_info { width: 48%;} +.profile_bottom_table tr td.profile_info table { width: 100%;border-collapse: separate !important;} +.profile_bottom_table tr td.profile_info table tr td { padding: 10px 15px 10px 20px; vertical-align: middle; font-size: 18px; color: #ff6701; border: 1px solid #fdd0af; border-radius: 4px; font-weight: 500; white-space: nowrap;} +.profile_bottom_table tr td.profile_info table tr td.delimiter { width: 4px; border: none; padding: 0 0 0 0;} +.profile_bottom_table tr td.profile_info table tr td.delimiter div { width: 4px;} +.profile_bottom_table tr td.profile_info table tr.delimiter td { height: 4px; border: none; padding: 0 0 0 0;} +.profile_bottom_table tr td.profile_info table tr td strong { font-weight:bolder; font-size: 25px;} +.profile_bottom_table tr td.buttons { width: 31%;} +.profile_bottom_table tr td.buttons .buttons_bg { padding: 30px 0 0 0;} + +.profile_bottom_table1 { width: 100%; font-size: 17px; color: #464646;font-family: 'dindisplay_pro', sans-serif;} +.profile_bottom_table1 tr td { text-align: left; vertical-align: middle;} +.profile_bottom_table1 tr td.headline { width: 120px;} +.profile_bottom_table1 tr td.width1 {width: 31%;} +.profile_bottom_table1 tr td.widths { font-size: 20px; color: #ff6600; font-weight: 500;} +.profile_bottom_table1 tr td.widths strong { font-size: 40px; font-weight: bold; padding: 0 7px 0 0; position: relative; top: 3px;} +.profile_bottom_table1 tr td.width3 { width: 31%;} + +.subscribe_link { display: none;} +.pw-subscribe_doing .pw-title span { font-size: 25px; font-weight: 200; display: block; margin-top: -6px;} +.pw-subscribe_doing .pwf-msg a.reg { position: relative; left: -117px;} +.subscribe_after p { padding: 0 0 0 0; margin: -10px 0 0 0;} +.subscribe_after { display: none;} + +.places_list .space { color: #464646; font-size: 15px; font-weight: 500; float: left;} +.places_list .space:before { content:''; display: inline-block; width: 16px; height: 16px; background: url(../img/space.png) no-repeat; margin: 0 4px 0 0; position: relative; top: 2px;} +.places_list .cli-top { margin-bottom: 5px;} +.places_list .cli-info { margin-bottom: 5px;} +.places_list .button.about { margin-top: 0;} + +/*dimonn style*/ + +/*dimonn style 14.07.2014*/ +.end_reg_list {margin:0 0 0 0;padding:0 0 0 0;} +.end_reg_list li {padding:0 0 24px 0;list-style-type:none;} +.end_reg_list li:last-child {padding:0 0 0 0;} +.end_reg_list li.input_top {padding-right:140px;} +/*.end_reg_list .input_bottom {padding-right:120px;}*/ +.end_reg_list li table {} +.end_reg_list li table tr th {text-align:left;vertical-align:top;padding:8px 5px 0 0;font-size:17px;color:#000;font-weight:normal;} +.end_reg_list li table tr td {text-align:left;vertical-align:top;} +.end_reg_list li table tr td p {padding:0 0 25px 0;margin:0 0 0 0;text-align:center;font-size:13px;color:#a2a2a2;} +.end_reg_list li table tr td.width1 {width:98px;padding:0 9px 0 0;} +.end_reg_list li table tr td.width2 {width:88px;padding:0 9px 0 0;} +.end_reg_list li table tr td.width3 {width:185px;} + +.add_pic_block { + display:block; + width:100px; + height:80px; + text-align:center; + font-size:12px; + color:#a2a2a2; + font-weight:500; + text-decoration:none; + position:relative; + line-height:1.0; + -webkit-transition:background .3s, color .3s; + -o-transition:background .3s, color .3s; + transition:background .3s, color .3s; + font-family:dindisplay_pro; + cursor:pointer; + padding:20px 0 0; +} + +.add_pic_block span { + display: block; + width: 36px; + font-size: 40px; + background-position: center center; + background-repeat: no-repeat; + -webkit-transition: all .3s; + -o-transition: all .3s; + transition: all .3s; + position: relative; + margin: 0 auto; +} + +.add_pic_block .input { + display:block; + width:100px; + height:100px; + position:absolute; + left:0; + top:0; + opacity:0; + cursor:pointer; +} + +.add_pic_block i { + display:block; + font-style:normal; + padding:10px 0 1px; +} + +.add_pic_block b { + font-size:14px; + font-weight:500; +} + +.add_pic_block b:before { + content:''; + display:inline-block; + width:14px; + height:12px; + background:url(../img/sprites.png) -365px -53px no-repeat; + position:relative; + top:1px; + margin:0 4px 0 0; +} + +.add_pic_block:hover { + color:#f60; +} + + +.add_pic_block:hover b:before { + background-position:-181px -32px; +} +.add_pic_block .add-wrapper{ + margin: 0; + padding: 0;} + +.pic_block{ + width: 100px; + display: block; + overflow: hidden; +} +.pic_block .input{ + opacity: 0; + position: absolute; + top: 0; + left: 0; + width: 0; + height: 0; + z-index: 0; +} +.pic_block img{ + position: relative; + z-index: 1; +} +.pic-edit-photo{ + display: none; + line-height: 1em; + margin-top: 0.5em; +} +.pe-active .pic-edit-photo-wrap{ + -moz-box-sizing: border-box; + box-sizing: border-box; + display: block; + position: absolute; + top: 4px; + right: 4px; + z-index: 4; + padding: 4px 1px 4px 4px; + background-color: #ffffff; + border-radius: 4px; + -ms-box-shadow: 0 1px 3px rgba(0, 0, 0, .4); + -o-box-shadow: 0 1px 3px rgba(0, 0, 0, .4); + box-shadow: 0 1px 3px rgba(0, 0, 0, .4); +} +.pe-active .pic-edit-photo{ + display: block; + text-indent: -9999999px; + width: 18px; + height: 16px; + margin: 0; + background: #fff url(../img/sprites.png) -117px -145px no-repeat; + +} +.add_link_text { + padding-left:0!important; + line-height:20px; + min-height:25px; +} + +.add_link_text_text { + font-size:17px; + color:#a2a2a2; + font-family:dindisplay_pro; + font-weight:500; + display:inline-block; + position:relative; +} + +.add_link_text_top { + min-height:60px; +} + +.add_link_text a { + color:#a2a2a2; +} + +.add_link_text .edit-wrap { + display: inline-block !important; + position: relative; + left: 0; + top: 0; + height: 20px; + margin: 0 5px 0 0 !important; +} +.add_link_text a.e-btn { + display:inline-block; + width:auto; + height:auto; + font-size:17px; + color:#a2a2a2; + font-family:dindisplay_pro; + font-weight:500; + opacity:1; + vertical-align:middle; + margin:0 5px 0 0; + padding:0 0 0 0; + line-height: 18px; +} +.add_link_text a.e-btn .fa{ + width: 24px; +} +.add_link_text a.e-btn .fa:before { + display:inline-block; + width:16px; + height:17px; + -webkit-transition:color .3s; + -o-transition:color .3s; + transition:color .3s; + position:absolute; + top:0; + left:0; + font-size: 18px; +} +.add_link_text b { margin-left: 10px;} +.add_link_text b:before {content:'';display:inline-block;width:14px;height:12px;background:url(../img/sprites.png) -365px -53px no-repeat;margin:0 4px 0 0;} +.add_link_text_medium a:before { top: 2px;} + +.add_link_text.p-editable.pe-current .edit-wrap .e-form {display: block!important; top: -5px;} +.add_link_text.p-editable.pe-current a.e-btn { text-indent: -9000px; position: relative; padding: 5px 0 5px 5px; left: -5px; position: absolute; top: -5px;} +.add_link_text.p-editable.pe-current a.e-btn:before { position: absolute; left: 5px; top: 5px;display: block !important;background-position: -405px -51px;} +.add_link_text.p-editable.pe-current .add_link_text_text { display: none;} + +.add_link_text_medium a.e-btn, .add_link_text_medium .add_link_text_text, .add_link_text_medium { font-size: 15px !important;} + +.i-info header .i-place.add_link_text:before { display: none;} +.i-info header .i-place.add_link_text a { text-decoration: underline;color: #a2a2a2;} +.i-info header .i-place.add_link_text a:hover { color: #ff6600;} + +.dd_width_1 { width: 200px !important;} +.dd_width_2 { width: 328px; padding-right: 23px!important;padding-left: 75px!important;} +.dd_width_3 { width:218px; padding-right: 23px!important;} +.dd_width_4 { width: 320px !important;} +.dd_width_5 { width: 260px !important;} + +.i-place.add_link_text.p-editable.pe-current .add_link_text_text { display: block; padding-left: 35px; top: 0;} +.i-place.add_link_text.p-editable.pe-current a.e-btn:before { left: 10px;} + + +.add_link_text a:hover { color: #ff6600;} +.add_link_text a:hover:before { background-position: -425px -52px;} + + +.add_link_teg .select { float: left; width: 368px; margin: 0 13px 0 0; min-height: 36px;} +.add_link_teg b { float: left; position: relative; top: 10px; font-size: 15px; color: #a2a2a2;font-family:'dindisplay_pro'; font-weight: 500;} +.add_link_teg b:before {content:'';display:inline-block;width:14px;height:12px;background:url(../img/sprites.png) -365px -53px no-repeat;margin:0 4px 0 0;} + +.ic-buttons_pos { position: relative;} +.ic-buttons_text { left: 0; top: 32px; font-size: 13px; color: #a2a2a2; font-weight: 500;font-family:'dindisplay_pro';} + +.add_indent { margin-bottom: 4px;} +.ic-links_indent { padding-top: 5px;} + +.soc-media-buttons1 { display: inline-block; position: relative; margin: 0 0 0 0!important; top: -2px; left: 5px;} +.soc-media-indent { margin: 10px 0 0 0;} +.pe-current .soc-media-buttons1 { position: static;} + + +.add_indo_table { width: 100%;font-family:'dindisplay_pro';} +.add_indo_table tr th { text-align: left; vertical-align: top; font-size: 19px; color: #a2a2a2; font-weight: normal; padding: 0 0 13px 0;} +.add_indo_table tr th b { font-size: 20px; color: #a2a2a2;font-family:'dindisplay_pro'; font-weight: 500;} +.add_indo_table tr th b:before {content:'';display:inline-block;width:14px;height:12px;background:url(../img/sprites.png) -365px -53px no-repeat;margin:0 4px 0 0;} +.add_indo_table tr td { text-align: left; vertical-align: middle; font-size: 17px; color: #464646; padding: 5px 0;} +.add_indo_table tr td.click_td span { color: #ff6600; font-size: 14px;} +.add_indo_table tr td.click_td span a {color: #ff6600;} +.add_indo_table tr td.click_td span a:hover { opacity: 0.5;} +.add_indo_table tr td.click_td span a:before { content:'';display: inline-block;width:11px;height:12px; background: url(../img/sprites.png) 0 0; position: relative; top:2px; margin: 0 4px 0 0;} + +.add_indo_table tr td.click_td b { color: #ff6600; font-weight: normal; font-size: 14px;} +.add_indo_table tr td.click_td b a {color: #ff6600;} +.add_indo_table tr td.click_td b a:hover { opacity: 0.5;} +.add_indo_table tr td.click_td b a:before { content:'';display: inline-block;width:12px;height:13px; background: url(../img/sprites.png) -368px -69px; position: relative; top:2px; margin: 0 4px 0 0;} +.add_indo_table tr td .headline { width: 1px; height: 1px; position: relative;} +.add_indo_table tr td .headline p { position: absolute; left: 0; top: 5px;} + +.add_pic_list li { position: relative;} +.add_pic_list li span.close { display: block; position: absolute; right: 29px; top: 9px; width: 16px; height: 16px; background: url(../img/sprites.png) -385px -72px no-repeat; cursor: pointer;} + +.add_pic_list li span.close:hover { background-position: -404px -72px;} + +.add_pic_list li a.add_pic_link {text-align:center;background:#ffffff; display: block;box-shadow:inset 0 1px 0 #e8e8e7;border-radius:4px;-moz-box-sizing:border-box;box-sizing:border-box; + font-size:16px;color:#a2a2a2;font-weight:500;text-decoration:none;position:relative;line-height:1.0;-webkit-transition:background .3s, color .3s;-o-transition:background .3s, color .3s;transition:background .3s, color .3s;font-family:'dindisplay_pro';} +.add_pic_list li a.add_pic_link span {display:block;margin:30px auto 0 auto;width:46px;height:46px;background-color:#d0d0d0;border-radius:50%;background-image:url(../img/add_pic_block_bg2.png);background-position:center center;background-repeat:no-repeat;-webkit-transition:background .3s, color .3s;-o-transition:background .3s, color .3s;transition:background .3s, color .3s; position: relative;} +.add_pic_list li a.add_pic_link .input { display: block; width: 100%; height: 100%; position: absolute; left: 0; top: 0; opacity: 0; cursor: pointer;} +.add_pic_list li a.add_pic_link i {display:block;font-style:normal;padding:10px 0 1px 0;} +.add_pic_list li a.add_pic_link b {font-size:14px;font-weight:500;} +.add_pic_list li a.add_pic_link b:before {content:'';display:inline-block;width:14px;height:12px;background:url(../img/sprites.png) -365px -53px no-repeat;margin:0 4px 0 0;position:relative;top:1px;} +.add_pic_list li a.add_pic_link:hover { color: #ff6600;} +.add_pic_list li a.add_pic_link:hover span { background-color: #ff6600;} +.add_pic_list li a.add_pic_link:hover b:before { background-position: -181px -32px;} + + +.i-staff-list > ul > li a.add_pic_link {text-align:center;background:#ffffff; display: block;box-shadow:inset 0 1px 0 #e8e8e7;border-radius:4px;-moz-box-sizing:border-box;box-sizing:border-box; width: 90px; height: 79px; padding: 11px 0 0 0; + font-size:13px;color:#a2a2a2;font-weight:500;text-decoration:none;position:relative;line-height:1.0;-webkit-transition:background .3s, color .3s;-o-transition:background .3s, color .3s;transition:background .3s, color .3s;font-family:'dindisplay_pro';} +.i-staff-list > ul > li a.add_pic_link span {display:block;margin:0 auto;width:27px;height:27px;background-color:#d0d0d0;border-radius:50%;background-image:url(../img/add_pic_block_bg1.png);background-position:center center;background-repeat:no-repeat;-webkit-transition:background .3s, color .3s;-o-transition:background .3s, color .3s;transition:background .3s, color .3s; position: relative;} +.i-staff-list > ul > li a.add_pic_link .input { display: block; width: 100%; height: 100%; position: absolute; left: 0; top: 0; opacity: 0; cursor: pointer;} +.i-staff-list > ul > li a.add_pic_link i {display:block;font-style:normal;padding:10px 0 1px 0;} +.i-staff-list > ul > li a.add_pic_link b {font-size:14px;font-weight:500;} +.i-staff-list > ul > li a.add_pic_link b:before {content:'';display:inline-block;width:14px;height:12px;background:url(../img/sprites.png) -365px -53px no-repeat;margin:0 4px 0 0;position:relative;top:1px;} +.i-staff-list > ul > li a.add_pic_link:hover { color: #ff6600;} +.i-staff-list > ul > li a.add_pic_link:hover span { background-color: #ff6600;} +.i-staff-list > ul > li a.add_pic_link:hover b:before { background-position: -181px -32px;} + +.reason_block { font-size: 11px; color: #ff6600; line-height: 13px; margin: -10px 0 0 0;} +.reason_block p { padding: 6px 0 0 0; margin:0 0 0 0;} + +.i-info header { position: relative;} + +.site_link { + font-size: 13px; + font-family: 'dindisplay_pro', sans-serif; + font-weight: 500; + margin-bottom: 0.4em; +} + +.site_link a { + color: #a2a2a2; ; + text-decoration: underline; +} +.site_link a:hover { + text-decoration: none ; +} + +.site_link a:before { + content: ''; + width: 16px; + height: 16px; + background: url(../img/sprites.png) -426px -93px; + display: inline-block; + margin: 0 5px 0 0; + position: relative; + top: 4px; +} + + + +.i-contacts1 { margin-top: 0!important;} +.i-additional1 {margin-bottom: 0!important;} + +.cl-item_active { border: 1px solid #fe9232;} +.doings_block { padding-right: 0;} +.doings_block .button { border-color: #ccc; margin: 0 10px 10px 0; font-weight: 400; color: #424242;font-family:'dindisplay_pro'; font-size: 17px;} +.doings_block .button:hover { color: #fff;border-color: #ff7600;} +.doings_block .button.more:after { background-position: -158px -16px;} +.doings_block .button.more:hover:after { background-position: -165px -23px;} + + +.button.dark_green {border-color:#a5c67d;color:#4e9000;} +.button.dark_green:hover {border-color:#4e9000;background:#4e9000;color:#fff;} +.button.icon-up:before {width:13px;height:15px;background-position:-348px -92px;} +.button.icon-up:hover:before {background-position:-365px -92px;} + +.s-news-list ul li {} +.s-news-list .nl-pict { + float: left; margin: 0 10px 5px 0; + border-radius: 4px; + text-align: center; + background: #fff; + padding: 3px; + padding-top: 6px; + box-shadow: inset 0 1px 0 #e8e8e7; +} + +.add_company { text-align: right;} +.add_company a { color: #fff; text-decoration: underline; word-spacing: normal; position: relative; top: -6px;} +.add_company a:hover { text-decoration: none; color: #fff;} +.add_company a:before { content:'';background: url(../img/sprites.png) -405px -51px; display: inline-block !important; width: 16px; height: 17px; position: relative; left: -5px; top: 4px;} +.add_company a:hover:before {background: url(../img/sprites.png) -405px -51px !important;} +/*dimonn style 14.07.2014*/ +.hide-element{ + display: none !important; +} +.show-element{ + display: block !important; +} +.i-additional .add_link_text .edit-wrap > .e-btn{ + display: none; +} +.wait-ajax{ + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, .3); + z-index: 4; + +} +.wait-ajax img{ + display: block; + position: absolute; + left: 50%; + top: 50%; + margin-top: -27px; + margin-left: -27px; +} +.wait-ajax.absolute{ + position: absolute; + width: 100%; + height: 100%; + left: 0; + top: 0; + + background-color: rgba(191, 191, 191,0.3); + display: none; +} + +.dna-template { display: none; } +.pw-body .place-box{ + min-height: 282px; + position: relative; +} +.c-select-box.topics .csb-title ul.ui-autocomplete { + background: none repeat scroll 0 0 #FFFFFF; + border: 1px solid #CCCCCC; + margin-left: 0; + z-index: 1020; +} + + +.main-field-complete{ + z-index: 3; + height: auto; +} +/******************************\ +# reusable elements +\******************************/ + .button.icon-eye:before{ + width: 15px; + height: 11px; + background-position: -225px -164px; + } + .button.icon-eye:hover:before,.button.icon-eye.active:before{ + background-position: -241px -164px; + + } + .full-visible{ + visibility:visible !important; + } + .ov-hidden{ + overflow: hidden !important; + } + .specify-link{ + color: #464646; + text-decoration: none; + -webkit-transition: all .3s; + -o-transition: all .3s; + transition: all .3s; + display: block; + float: right; + clear: right; + } + .specify-link:hover{ + text-decoration: underline; + color: #ff6600; + } + .no-wrap{ + white-space: nowrap; + } + .pd-top-14{ + padding-top: 14px; + } + .mt-0{ + margin-top: 0; + } + button.gray{ + background: #dbdbdb; /* Old browsers */ /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dbdbdb), color-stop(100%,#bdbdbd)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #dbdbdb 0%,#bdbdbd 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #dbdbdb 0%,#bdbdbd 100%); /* Opera 11.10+ */ /* IE10+ */ + background: -webkit-linear-gradient(top, #dbdbdb 0%, #bdbdbd 100%); + background: -o-linear-gradient(top, #dbdbdb 0%, #bdbdbd 100%); + background: linear-gradient(to bottom, #dbdbdb 0%,#bdbdbd 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dbdbdb', endColorstr='#bdbdbd',GradientType=0 ); /* IE6-9 */ + + } + button.gray:hover{ + background: #dbdbdb; /* Old browsers */ + + } + .inline-block{ + display: inline-block; + vertical-align: top; + } + .body-fixed{ + width:100%; + height:100%; + position:fixed; + overflow:hidden + } + .modal-wrapper{ + top: 0; + left: 0; + width:100%; + height:100%; + position:fixed; + background: rgba(0,0,0,.8); + z-index: 4; + } + /* hide inner :before element */ + .disable-inner:before{ + display: none !important; + } + .right{ + float: right; + } + .min-height{ + min-height: 27px; + } + .mb-05em{ + margin-bottom: .5em; + } + .mb-2em{ + margin-bottom: 2em; + } + .mb-1em{ + margin-bottom: 1em; + } + .bd-dashed{ + border-bottom: 1px dashed #ff6600; + } + .orange-text{ + color: #ff6600; + } + /* заглушка для картинок no-logo.png */ + .stub{ + text-align: center; + background: #fff; + box-shadow: inset 0 1px 0 #e8e8e7; + border-radius: 4px; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + + + + +/******************************\ +# Модальное окно выбора тематики +\******************************/ + + .pw-subj .q-sel{ + top: 0; + position: absolute; + right: 0; + margin-top: 1em; + + } + .search_form .scroll-container{ + overflow: hidden; + } +/******************************\ +# Модальное окно общий вид +\******************************/ + +.search-modal-overlay{ + position: fixed; + bottom: 0; + right: 0; + top: 0; + left: 0; + z-index: 10; + background: url('../lib/fancybox/fancybox_overlay.png'); + display: none; + overflow-y: auto; + +} +.search-modal-wrap{ + position: absolute; + z-index: 11; + top: 50%; + left: 50%; + width: 640px; + height: auto; + min-height: 360px; + margin-bottom: 3em; + +} + +/******************************\ +# Страница "моя лента событий" EXPO-12 + +\******************************/ + + .events-feed-page{ + margin-top: -14px; + margin-bottom: 2em; + } + .events-feed-page h2{ + font-size: 16px; + font-weight: normal; + margin-left: 1em; + color: #ffffff; + /*float: left;*/ + /*margin-right: 2em;*/ + margin-bottom: 0; + } + .events-filter{ + clear: both; + margin-left: -2%; + -moz-box-sizing: border-box; + box-sizing: border-box; + + } + .events-filter .c-select-box{ + border-color: #ffffff; + border: 0; + background-color: transparent; + padding: 0; + box-shadow: none; + } + .events-filter .csb-selected-items{ + background-color: transparent; + + } + .events-filter .csb-selected{ + background: #ffffff; /* Old browsers */ /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(67%,#ffffff), color-stop(100%,#f5f5f5)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #ffffff 67%,#f5f5f5 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #ffffff 67%,#f5f5f5 100%); /* Opera 11.10+ */ /* IE10+ */ + background: -webkit-linear-gradient(top, #ffffff 67%, #f5f5f5 100%); + background: -o-linear-gradient(top, #ffffff 67%, #f5f5f5 100%); + background: linear-gradient(to bottom, #ffffff 67%,#f5f5f5 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f5f5f5',GradientType=0 ); /* IE6-9 */ + padding-bottom: 0; + } + .events-filter a{ + color: #ffffff; + text-decoration: underline; + } + .events-filter a:hover{ + text-decoration: none; + } + .events-filter:after{ + content: ''; + display: block; + clear: both; + } + .events-filter .csb-selected a{ + color: #ff6600; + } + .events-filter .col{ + margin-left: 2%; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding-top: 1px; + } + .events-filter-box .csb-selected-items{ + display: block; + border: 0; + + padding: 8px; + min-height: initial; + } + .events-filter-box .csb-selected-items .csb-selected{ + margin-bottom: 8px; + } + .events-filter-box .csb-selected.dna-clone{ + display: inline-block; + } + .events-feed-page .cl-exhibitions{ + border-top: 1px dotted #cdcdcd; + padding-top: 1.5em; + margin-top: 2em; + + } + .events-feed-page .events-filter{ + display: none; + border-radius: 4px; + background: #FF6600; + padding-right: 2%; + border-top-right-radius: 0; + -ms-box-shadow: 0 1px 3px rgba(0, 0, 0, .4); + -o-box-shadow: 0 1px 3px rgba(0, 0, 0, .4); + box-shadow: 0 1px 3px rgba(0, 0, 0, .4); + + } + .events-filter-wrap{ + position: relative; + overflow: visible; + margin-bottom: 1em; + } + .events-filter-wrap .button{ + margin-top: -40px; + float: right; + line-height: 32px; + height: 36px; + position: relative; + } + .events-filter-wrap .button.active:after{ + position: absolute; + content: ''; + display: block; + width: 100%; + height: 5px; + background: #ff6600; + border: 1px solid #ff6600; + left: 0; + margin-left: -1px; + bottom: 0; + margin-bottom: -5px; + } + .events-filter-wrap .button.active{ + background: #ff6600; + color: #ffffff; + text-shadow: 0 1px 0 rgba(0, 0, 0, .3); + border-color: #ff6600; + box-shadow: inset 0 1px 0 rgba(0, 0, 0, .1); + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + } + .button.apply-filter{ + background: #ffffff; /* Old browsers */ /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(67%,#ffffff), color-stop(100%,#f5f5f5)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #ffffff 67%,#f5f5f5 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #ffffff 67%,#f5f5f5 100%); /* Opera 11.10+ */ /* IE10+ */ + background: -webkit-linear-gradient(top, #ffffff 67%, #f5f5f5 100%); + background: -o-linear-gradient(top, #ffffff 67%, #f5f5f5 100%); + background: linear-gradient(to bottom, #ffffff 67%,#f5f5f5 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f5f5f5',GradientType=0 ); /* IE6-9 */ + color: #ff6600; + margin-top: 0; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + -moz-border-radius-topleft: 4px; + -moz-border-radius-topright: 4px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + + + -webkit-border-bottom-right-radius: 0; + -webkit-border-bottom-left-radius: 0; + -moz-border-radius-bottomright: 0; + -moz-border-radius-bottomleft: 0; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + border-bottom: 0; + display: none; + + } + .button.apply-filter.icon-check:hover{ + box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, 0.3); + text-shadow: none; + } + .button.apply-filter.icon-check:hover:before{ + background-position: -106px -16px; + } + .events-feed-page .filter-hint-block{ + border: 1px dashed #87C525; + display: none; + border-radius: 4px + } + .events-feed-page .filter-hint-block p{ + margin: 8px; + text-align: center; + color: #464646; + } + .events-feed-page .filter-hint-block p .red{ + font-weight: bold; + color: #d80000; + } + .message-not-found{ + margin-top: 19px; + margin-left: 40px; + padding-left: 60px; + padding-top: 18px; + + } + .message-not-found .fa{ + color: #ff6600; + font-size: 48px; + vertical-align: middle; + margin-left: -40px; + margin-top: -24px; + } + .message-not-found span{ + display: inline-block; + } + .message-not-found .message{ + font-family: 'dindisplay_pro', Arial, sans-serif; + font-size: 18px; + /*color: #a2a2a2;*/ + margin-left: 14px; + line-height: 1.2em; + } + + + + +/*************************\ + # блок умный поиск + catalog_search.html +\************************/ + .mp-search .clear-all-button, .search-form-wrap .clear-all-button{ + display: none; + width: 17px; + height: 17px; + background: url(../img/sprites.png) -385px -72px no-repeat; + cursor: pointer; + vertical-align: top; + margin-top: 2px; + } + .mp-search .clear-all-button.active, .search-form-wrap .clear-all-button.active{ + display: inline-block; + + } + + .mp-search .clear-all-button:active, .search-form-wrap .clear-all-button:active{ + background-position: -385px -89px; + } + .mp-search .pw-period .pwf-field.err input{ + border-width: 2px; + border-color: #D80000; + } + .search-modal-wrap .ui-menu .ui-menu-item .subj-category{ + display: inline-block; + color: #a2a2a2; + font-size: 15px; + line-height: 15px; + border: none; + padding: 2px 5px; + cursor: pointer; + text-decoration: none; + min-height: 0; + font-weight: 400; + white-space: normal; + } + .search-modal-wrap .ui-autocomplete{ + width: 533px; + } + .search-modal-wrap .ui-menu .ui-menu-item{ + white-space: nowrap; + } + .search-modal-wrap .ui-menu .ui-menu-item a{ + display: inline-block; + } + .search-modal-wrap .ui-menu li{ + margin-bottom: 4px; + } + .search-modal-wrap .ui-menu{ + line-height: 15px; + } + @media (max-width: 1086px){ + .mp-search .search-form-wrap{ + max-width: 764px; + overflow: hidden; + display: block; + } + .mp-search .search-form-wrap .search-line{ + display: block; + word-spacing: -4px; + } + .mp-search .search-form-wrap .search-line .sf-field-wrap{ + display: inline-block; + word-spacing: normal; + -moz-box-sizing: border-box; + box-sizing: border-box; + + } + } + +/******************************\ +# form validation +\******************************/ + + .required{ + position: relative; + } + .required.err input{ + border-width: 2px; + border-color: #d80000; + } + .required.err:before{ + content: ''; + display: block; + position: absolute; + top: 50%; + right: 0; + margin-right: 32px; + margin-top: -8px; + width: 15px; + height: 16px; + background: transparent url(../img/sprites.png) -360px -159px; + z-index: 1; + } + .err-message-box{ + display: none !important; + } + .err-message-box.active{ + display: block !important; + padding-left: 24px; + color: #ce0000; + } + .err-message-box:before{ + content: ''; + display: block; + width: 15px; + height: 16px; + background: transparent url(../img/sprites.png) -390px -159px; + margin-left: -24px; + float: left; + } + .err-message-box.red:before{ + background: transparent url(../img/sprites.png) -360px -159px; + } + +/******************************\ +# add to calendar button +\******************************/ + + .button.removecalendar{ + border-color: #2592c5; + background: #2592c5; + color: #fff; + text-shadow: none; + } + .button.removecalendar:before{ + background-position: -60px -16px; + } + .button.removecalendar:hover { + background: #4c9ec4; + } + +/******************************\ +# plan to visit button +\******************************/ + + .button.unvisit{ + border-color: #ff6600; + background: #ff6600; + color: #fff; + text-shadow: 0 1px 0 rgba(0, 0, 0, .3); + box-shadow: inset 0 1px 0 rgba(0, 0, 0, .1); + } + .button.unvisit:before, .button.unvisit:hover:before{ + background-position: -64px -159px; + width: 9px; + height: 10px; + margin-top: 0; + } + .button.unvisit:hover{ + background: #FF8635; + } + +/******************************\ +# papge of place object +\******************************/ + + .place .i-info .i-descr-readmore{ + display: block; + padding-bottom: 1em; + margin-bottom: 36px; + border-bottom: dashed 1px #7e7e7e; + font-size: 15px; + color: #a2a2a2; + text-decoration: none; + } + .place .i-info .i-descr-readmore:hover{ + text-decoration: underline; + } + +/******************************\ +# edit note overlay on /expo/ page +\******************************/ + + .note-wrap, .note-wrap-disabled{ + display: inline-block; + vertical-align: top; + position: relative; + } + .note-wrap-disabled .note-overlay{ + display: none; + } + .note-wrap .note-overlay{ + margin-top: 5px; + padding: 10px 14px; + position: absolute; + background: #87c525; + color: #fff; + font-size: 12px; + font-weight: bold; + width: 240px; + border-radius: 4px; + -moz-box-sizing: border-box; + box-sizing: border-box; + display: none; + z-index: 10; + } + .note-wrap:hover .note-overlay{ + display: block; + } + .note-wrap:hover .note-text{ + width: 100%; + height: 100px; + } + .note-wrap:hover .note-text:focus{ + border: 1px solid #6EA01E; + } + .note-wrap:hover .note-button{ + -webkit-transition: none; + -o-transition: none; + transition: none; + } + .note-wrap:hover .note-button{ + border-color: #87c525; + background: #87c525; + color: #fff; + text-shadow: none; + position: relative; + } + .note-wrap:hover .note-button:before{ + background-position: -74px -16px; + } + .note-wrap:hover .note-button:after{ + content: ''; + border: 1px solid #87c525; + display: block; + position: absolute; + background: #87c525; + width: 100%; + height: 8px; + bottom: 0; + left: 0; + margin-left: -1px; + margin-bottom: -8px; + } + +/******************************\ +# edit note overlay on /main page +\******************************/ + + .main-page.note-wrap .note-overlay{ + bottom: 0; + margin-bottom: 26px; + } + .main-page.note-wrap:hover .note-button:after{ + margin-bottom: 22px; + } + +/************************\ +# блок "смотри так же" +\***********************/ + + .look-also a{ + display: block; + position: relative; + color: #6d6d6d; + -webkit-transition: all .5s; + -o-transition: all .5s; + transition: all .5s; + margin-bottom: .5em; + } + .look-also a:hover{ + color: #ff6600; + text-decoration: none; + } + .look-also a:hover:before{ + background-position: -235px -134px; + } + .look-also a:before{ + content: ''; + display: inline-block; + vertical-align: middle; + height: 9px; + top: 50%; + margin-top: -4px; + width: 8px; + background: url('../img/sprites.png') no-repeat -251px -134px; + margin-right: 10px; + } + +/************************\ +# ошибки ввода на страницах услуг expo-6 +\***********************/ + + .service-page .error-field{ + position: relative; + /*padding:0 5px;*/ + -moz-box-sizing: border-box; + box-sizing: border-box; + + } + .service-page .error-field.simple-wrap{ + display : inline-block; + } + .service-page .error-field.simple-wrap:before{ + margin-right: 16px; + margin-top: -8px; + } + .mf-line.cols-2 .mf-field.error-field:first-child:before{ + margin-right: 30px; + } + .service-page .error-field:before { + content: ''; + display: block; + position: absolute; + top: 50%; + right: 0; + margin-right: 20px; + margin-top: -11px; + width: 15px; + height: 16px; + background: transparent url(../img/sprites.png) -360px -159px; + } + .service-page .error-field input{ + border-color: #d80000; + } + + .service-page .error-blob{ + border-width: 2px; + border-color: #d80000; + background: #696969; + text-align: center; + color: #ffffff; + position: absolute; + padding: 8px 16px; + top: 0; + left: 50%; + margin-top: -41px; + width: 160px; + margin-left: -100px; + border-radius: 4px; + display: none; + font-size: 14px; + -webkit-transition: all .3s; + -o-transition: all .3s; + transition: all .3s; + + } + .service-page .error-field:hover .error-blob{ + display: block; + } + .error-blob:after, .error-blob:before { + top: 100%; + left: 50%; + border: solid transparent; + content: " "; + height: 0; + width: 0; + position: absolute; + pointer-events: none; + } + + .error-blob:after { + border-color: rgba(0, 0, 0, 0); + border-top-color: #696969; + border-width: 3px; + margin-left: -3px; + } + .error-blob:before { + border-color: rgba(0, 0, 0, 0); + border-top-color: #696969; + border-width: 9px; + margin-left: -9px; + } + .service-page .error-blob ul{ + margin: 0; + padding: 0; + display: block; + list-style-type: none; + } + +/************************\ +# страница календаря /profile/calendar/ +\***********************/ + .cal-scroll-button .sprite{ + display: block; + width: 17px; + height: 17px; + border-radius: 10px; + background: #464646; + -webkit-transition: all .3s; + -o-transition: all .3s; + transition: all .3s; + padding-left: 4px; + padding-top: 3px; + -moz-box-sizing: border-box; + box-sizing: border-box; + + } + .cal-scroll-button .sprite:before{ + display: block; + content: ''; + + width: 8px; + height: 12px; + background: transparent url(../img/sprites.png) -225px -134px no-repeat; + } + .cal-scroll-button:hover .sprite{ + background: #ff6600; + } + .cal-scroll-button{ + position: absolute; + top: 0; + + width: 34px; + height: 34px; + border-radius: 17px; + background: #FCFCFB; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding-left: 9px; + padding-top: 9px; + cursor: pointer; + margin-top: 96px; + + } + + .cal-scroll-button.to-left{ + left: 0; + margin-left: 6px; + } + .cal-scroll-button.to-right{ + right: 0; + margin-right: 6px; + } + .cal-scroll-button.to-right .sprite{ + padding-left: 5px; + } + .cal-scroll-button.to-right .sprite:before{ + background-position: -175px 0; + } + .calenadar-body{ + overflow: hidden; + } + .calenadar-body .mCSB_scrollTools_horizontal{ + opacity: 0!important; + + } + .no-events .c-event{ + background-color: #CACACA; + } + .no-events .c-event .ce-wrap{ + -moz-box-sizing: border-box; + box-sizing: border-box; + height: 60px; + text-align: center; + padding-top: 20px; + font-size: 20px; + /*line-height: 44px;*/ + color: #464646; + overflow: hidden; + position: relative; + + font-family: 'dindisplay_pro'; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); + } + .no-events .c-event .ce-wrap .message{ + position: absolute; + text-align: center; + /*-webkit-transition: all 0.8s ease-In;*/ + /*-o-transition: all 0.8s ease-In;*/ + /*transition: all 0.8s ease-In;*/ + + } + + .no-events .c-event .ce-wrap.small{ + font-size: 14px; + padding-top: 14px; + } + +/************************\ +# страница редактирования профиля + пользователь и компания +\***********************/ + + .edit-profile .edit-wrap{ + display: block; + } + .edit-profile .i-title .e-form{ + margin-top: 7px; + } + .edit-profile .full-width .static-value{ + height: 27px; + } + .edit-profile .pe-current .e-form{ + display: block; + } + .edit-profile .social.pe-current .i-descr{ + opacity: 0; + } + + .edit-profile .p-editable{ + padding-left: 22px; + } + .edit-profile .p-editable.i-place{ + padding-left: 36px; + } + + .edit-profile .p-editable.social .e-btn.full-complete{ + color: #ff6600; + + } + .edit-profile .p-editable.social .e-btn.full-complete:hover{ + opacity: 0.7; + } + .edit-profile .i-pict.p-editable{ + padding: 0; + } + .edit-profile .ic-tel .custom-radio-check{ + position: relative; + } + .edit-profile .i-pict.p-editable img{ + z-index: 0; + } + .edit-profile .ic-tel .epfl{ + margin-bottom: 0; + } + .edit-profile .check{ + color: #f5f5f5; + margin-top: 4px; + margin-bottom: 0; + padding-left: 4px; + } + .edit-profile .check .custom-checkbox{ + width: 14px; + height: 14px; + margin: 0; + margin-top: -1px; + margin-right: 5px; + } + .my-companies-block{ + + } + .my-companies-block:after{ + content: ''; + display: block; + clear: both; + + } + .my-companies-block .ia-title{ + font-family: 'dindisplay_pro', sans-serif; + font-size: 20px; + line-height: 23px; + margin-bottom: 10px; + } + .my-companies-block .company{ + display: block; + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 23%; + float: left; + margin-right: 2%; + margin-top: 20px; + + } + /*добавить меньшую длину для разрешения меньше 1200*/ + .my-companies-block .company a{ + display: block; + margin-left: auto; + margin-right: auto; + } + .my-companies-block .company .logo{ + display: block; + width: 100%; + /*height: 180px;*/ + height: auto; + -moz-box-sizing: border-box; + box-sizing: border-box; + border-radius: 4px; + border-top: 1px solid #CCCBC6; + background-color: #ffffff; + overflow: hidden; + min-height: 141px; + position: relative; + } + + + + .my-companies-block .company .logo img{ + display: block; + width: 100%; + height: auto; + } + .my-companies-block .company .logo img.portrait{ + height: 141px; + width: auto; + margin-left: auto; + margin-right: auto; + } + .my-companies-block .company .logo img.no-logo{ + position: absolute; + margin-top: -29px; + margin-left: -30px; + top: 50%; + left: 50%; + width: 60px; + height: 58px; + } + .my-companies-block .company .title{ + display: block; + color: #606060; + margin-top: 8px; + text-decoration: underline; + text-align: center; + position: relative; + + } + .my-companies-block .company .title .e-btn{ + padding: 0; border-radius: 0; + height: 16px; + top: 3px; + } + .my-companies-block .company a:hover .title{ + text-decoration: none; + } + .my-companies-block.editable .company .fa:before{ + + + position: absolute; + left: 0; + top: 0; + font-size: 18px; + color: #ff6600; + } + .add-company-block{ + margin-top: 2em; + } + .edit-profile .hidden{ + display: none; + } + .edit-profile .i-info .e-btn{ + margin-right: 0; + } + .edit-profile .i-info .add_link_text_text{ + vertical-align: middle; + } + .edit-profile .ic-buttons .add_link_text{ + display: inline-block; + } + .edit-profile .ic-buttons .p-editable{ + padding-left: 0; + } + .create-company-modal .select-input.err{ + width: auto; + } + .create-company-modal .select-input.err .select2-choices{ + border-color: #d80000; + border-width: 2px; + } + .p-editable.pe-current .e-btn.social{ + background-color: transparent; + } + .p-editable.pe-current .e-btn.social:before{ + display: none; + } + .p-editable.social .edit-label{ + display: none; + } + .p-editable.pe-current.social .e-form:before{ + display: none; + } + .p-editable.pe-current.social .edit-label, .edit-profile.company .add-info .edit-label{ + display: block; + width: 24px; + margin-left: -24px; + padding-left: 5px; + padding-top: 4px; + padding-bottom: 4px; + background-color: #ff6600; + position: absolute; + top: 0; + left: 0; + border-bottom-left-radius: 3px; + border-bottom-right-radius: 0; + border-top-left-radius: 3px; + border-top-right-radius: 0; + + } + .p-editable.pe-current.social .edit-label .fa, .edit-profile.company .add-info .edit-label .fa{ + font-size: 18px; + color: #ffffff; + + } + .edit-profile .editable-wrap .static-value.website{ + height: 27px !important; + } + .edit-profile .editable-wrap .static-value.address{ + + line-height: 28px; + min-height: 27px; + display: block; + } + + .edit-profile .i-contacts .editable-wrap .static-value{ + display: block; + height: 23px; + } + .edit-profile .editable-wrap > p { + display: block; + margin: 0; + } + .edit-profile .i-additional .editable-wrap > p{ + min-height: 23px; + } + .edit-profile .i-additional .editable-wrap .static-value{ + min-height: 27px; + + } + .edit-profile .editable-wrap:before{ + display: none; + } + .edit-profile .social .e-form .err:before{ + margin-right: 9px; + } + .edit-profile .add_link_teg .select2-input{ + line-height: 36px !important; + font-size: 16px !important; + } + .edit-profile .description-text{ + font-size: 14px; + } + .edit-profile .add_link_teg .label{ + float: none; + margin-left: 12px; + } + .outer-profile .i-additional{ + margin-bottom: 36px; + } + .outer-profile .i-info .i-title{ + margin-bottom: 14px; + } + .outer-profile .i-contacts .ic-buttons{ + margin-right: 0; + padding-left: 32px; + } + .outer-profile .i-contacts .ic-buttons .soc-media-buttons{ + margin-top: 0; + margin-bottom: 16px; + padding-left: 8px; + } + .outer-profile .i-info .i-contacts{ + margin-bottom: 24px; + margin-top: 24px; + } + .outer-profile .ic-tel{ + margin-bottom: 14px; + } + .add_link_teg .tags{ + display: inline-block; + font-size: 12px; + margin-top: 0; + } + .add_link_teg .e-btn{ + vertical-align: middle; + } + .edit-profile.company .i-additional .e-btn{ + vertical-align: middle; + margin-right: 3px; + } + .edit-profile.company .i-additional dl.add-info dd, .edit-profile.company .i-additional dl.add-info dt{ + min-height: 24px; + line-height: 24px; + padding-top: 5px; + margin-bottom: 0; + } + .edit-profile.company .description-text{ + padding-top: 4px; + } + .edit-profile.company .description-text p{ + line-height: 15px; + font-size: 12px; + } + .edit-profile .theme-wrap .label, + .edit-profile .theme-wrap .input{ + display: inline-block; + } + .edit-profile .theme-wrap .label { + font-size: 15px; + color: #a2a2a2; + font-family: dindisplay_pro; + font-weight: 500; + display: inline-block; + position: relative; + padding-right: 6px; + } + .edit-profile .theme-wrap .label p{ + display: inline; + + } + .company-preview .i-info .i-contacts .ic-buttons .soc-media-buttons{ + margin-top: 12px; + } + .company-preview .i-info .brief{ + font-size: 12px; + line-height: 16px; + color: #7e7e7e; + font-family: Arial, sans-serif; + } + .company-preview .i-info .brief p{ + margin: 0; + } + .company-preview .i-info{ + margin-bottom: 1em; + } + .company-preview .i-info .i-tags{ + font-size: 12px; + } + .company-preview .pw-open{ + margin-bottom: 1em; + } + .company-preview .soc-media-buttons{ + margin-top: 2px !important; + } + .profile-preview-btn{ + margin-top: 1em; + margin-bottom: 2em; + } + .company-preview .specialization, .edit-profile .specialization .static-value{ + font-size: 13px; + font-weight: normal; + color: #7D7D7D; + } + .edit-profile .specialization{ + margin-bottom: 1em; + } + .edit-profile .specialization .p-editable{ + min-height: 27px; + } + .edit-profile .theme-form select{ + opacity: 0; + } + + /************************\ + # about page /about/ + \***********************/ + + .about-page .tab{ + display: none; + } + .about-page .tab.active{ + display: block; + } + .about-page .tabs-body{ + padding-top: 20px; + } + .about-page .tabs-opening{ + margin-bottom: 20px; + } + .team_list .stub{ + display: block; + position: absolute; + left: 0; + top: 50%; + margin-top: -40px; + width: 89px; + height: 89px; + text-align: center; + padding-top: 15px; + } + .team_list li .team_list_bg .stub img{ + display: inline; + position: relative; + top: 0; + margin-top: 0; + width: auto; + height: auto; + } + +/************************\ +# callback modal window +\***********************/ + + .сallback-modal{ + width: 534px; + } + .сallback-modal .pw-form .pwf-field{ + width: 340px; + } + .сallback-modal .submit:before{ + display: none; + } + .сallback-modal .submit:after{ + content: ' '; + display: inline-block; + vertical-align: middle; + background: url(../img/sprites.png) -176px 0 no-repeat; + margin: -2px 7px 0 6px; + width: 8px; + height: 12px; + } + .сallback-modal .required.err:before{ + margin-top: 2px; + } +/************************\ +# subscribe modal window +\***********************/ + + .subscribe-modal{ + width: 560px; + color: #000000; + } + .subscribe-modal .pw-form .pwf-field{ + width: 340px; + } + .subscribe-modal .required.err:before{ + margin-top: 2px; + } + .subscribe-modal .submit{ + cursor: pointer; + } + .subscribe-modal .pw-title { + font-size: 26px; + font-weight: 300; + } + .subscribe-modal .sub-header{ + margin-top: 0; + } + .subscribe-modal .submit-arrow{ + display: inline-block; + margin-left: 20px; + } + .subscribe-modal header{ + padding-bottom: 0; + } + .subscribe-modal .gray{ + color: #8d807f; + } + .subscribe-modal .small{ + font-size: .9em; + } + +/************************\ +# subscribe lessons modal window +\***********************/ + .subscribe-modal.lessons .form-side{ + float: left; + width: 60%; + position: relative; + z-index: 1; + -moz-box-sizing: border-box; + box-sizing: border-box; + padding-left: 14px; + + } + .subscribe-modal.lessons .image-side{ + float: left; + width: 40%; + } + .subscribe-modal.lessons .image-side{ + + } + .subscribe-modal.lessons .image-side img{ + position: absolute; + width: 233px; + margin-left: -42px; + margin-bottom: -19px; + z-index: 0; + } + .subscribe-modal.lessons .label-header{ + font-size: 18px; + } + .subscribe-modal.lessons .label-header .small{ + font-size: .8em; + } + .subscribe-modal.lessons .pw-form .pwf-field{ + width: 214px; + } + .subscribe-modal.lessons .pw-form .submit{ + height: 42px; + line-height: 42px; + width: 214px; + } + .subscribe-modal.lessons .submit-arrow { + position: absolute; + right: 0; + margin-right: -20px; + } + +/************************\ +# invite logist modal window +\***********************/ + + .invite-modal{ + width: 560px; + color: #000000; + } + .invite-modal .logos{ + display: table; + margin-left: auto; + margin-right: auto; + margin-bottom: 26px; + } + .invite-modal .logos .item{ + display: inline-block; + margin-left: 16px; + } + .invite-modal .logos .item:first-child{ + margin-left: 0; + } + .invite-modal .label p{ + margin: 0; + } + .invite-modal .pw-title{ + font-size: 24px; + font-weight: 400; + line-height: 25px; + } + .invite-modal .button{ + height: 42px; + line-height: 42px; + padding-top: 0; + padding-bottom: 0; + font-size: 15px; + width: 214px; + text-align: center; + } + .invite-modal .submit-arrow{ + display: inline-block; + margin-left: 20px; + + } + + + /************************\ + # add event page /organiser/add-event/ + \***********************/ + + .add-event-page .set-sect.not-active .form-wrap{ + display: none; + } + .add-event-page .w-time .mCSB_inside>.mCSB_container{ + margin-right: 0; + } + .add-event-page .w-time .mCustomScrollBox{ + overflow: hidden !important; + } + /*.add-event-page .date-to-date*/ + +/************************\ +# registration form +\***********************/ + + .reg-form .msg-help .error{ + color: #d80000; + } + +/************************\ +# completion of registration modal +# after registration form +\***********************/ + + .after-register-modal .pw-form .pwf-line{ + margin-bottom: 0; + } + .after-register-modal .pw-form .pwf-field{ + padding: 0; + } + .after-register-modal .pwf-field input[type="text"]{ + line-height: 30px; + height: 30px; + } + + .after-register-modal .pw-form .pwf-line, .after-register-modal .pw-form .input_top .pwf-field{ + display: block !important; + } + .after-register-modal .input_top select{ + width: 100%; + } + .after-register-modal .required.err .select2-choice{ + border-width: 2px; + border-color: #d80000; + } + .after-register-modal input[type="text"]:focus{ + padding: 0 6px; + } + .after-register-modal .required.err:before{ + margin-right: 8px; + margin-top: -27px; + } + .after-register-modal .input_bottom .required.err:before{ + margin-right: 8px; + margin-top: -7px; + } + .after-register-modal .input_top .required.err:before{ + margin-right: 8px; + margin-top: -8px; + } + .thank-registering{ + font-size: 16px; + } + .thank-registering header{ + padding-bottom: 16px !important; + } + .after-register-modal .pwf-line.phone .err-message-box{ + font-size: 13px; + } + .after-register-modal .pwf-line .err-message-box{ + margin-top: 4px; + } + .after-register-modal .pwf-line .hint-box{ + display: none; + width: 62px; + position: absolute; + text-align: center; + margin-left: 31px; + padding: 8px 12px; + color: #000000; + background-color: #aaaaaa; + opacity:.6; + margin-top: -68px; + border-radius:4px; + + } + .after-register-modal .pwf-line .err + .hint-box{ + display: none !important; + } + .after-register-modal .pwf-line .hint-box:after{ + top: 100%; + left: 50%; + border: solid transparent; + content: " "; + height: 0; + width: 0; + position: absolute; + pointer-events: none; + border-color: rgba(170, 170, 170, 0); + border-top-color: #aaaaaa; + border-width: 4px; + margin-left: -4px; + } +/************************\ +# successful registration message +\***********************/ + .message-register-success{ + margin-top: 40px; + + } + .message-register-success .fa{ + color: #ff6600; + font-size: 80px; + margin-bottom: 40px; + } + .message-register-success span{ + display: block; + text-align: center; + } + .message-register-success .message{ + font-family: 'dindisplay_pro', Arial, sans-serif; + font-size: 26px; + /*color: #a2a2a2;*/ + } + +/*********************\ +# add more company message +\*********************/ + + .message-standart{ + margin-top: 40px; + } + .message-standart .fa{ + color: #ff6600; + font-size: 40px; + vertical-align: bottom; + margin-right: 9px; + } + .message-standart .message{ + font-family: 'dindisplay_pro', Arial, sans-serif; + font-size: 18px; + line-height: 40px; + display: inline-block; + } + +/*********************\ +# recovery password page +\*********************/ + + .recovery-page{ + padding-bottom: 2.6em; + -moz-box-sizing: border-box; + box-sizing: border-box; + } + + .recovery-page .label{ + font-size: 18px; + margin-bottom: 1.5em; + margin-top: 1.5em; + } + .recovery-page .input, .recovery-page .error-text{ + display: inline-block; + } + .recovery-page .submit{ + height: 40px; + line-height: 40px; + display: block; + margin: 2em 0 0 24px; + } + .recovery-page .input input{ + margin-left: 24px; + width: 340px; + } + .recovery-page .input.err:before{ + margin-right: 12px; + + } + .recovery-page .error-text{ + padding-left: 12px; + font-size: 14px; + color: #d80000; + } + +/***********************\ + # Страница Ивента +\***********************/ + + .event-page .title{ + font-family: 'dindisplay_pro', sans-serif; + font-size: 23px; + line-height: 24px; + margin: 0 0 12px; + } + .event-page .title .fa{ + font-size: 0.8em; + } + +/******************\ + # Модальное окно "рекламировать участника" +\******************/ + .advertise-window .pwf-msg{ + + color: #ff6600; + padding-top: 8px; + padding-left: 24px; + } + .advertise-window .pwf-field{ + width: 310px !important; + } + .advertise-window header .pw-title{ + font-weight: 400; + } + .advertise-window header { + padding-bottom: 0; + } + +/*****************\ + # Страница места проведения (/places/...) +\*****************/ + .expo-place-page .i-info .i-descr{ + height: auto; + } + .expo-place-page .i-descr-readmore{ + margin-bottom: 1em; + display: block; + } + .eni-areas.stat .enis-col{ + text-align: center; + display: inline-block; + width: auto; + padding-right: 32px; + } + .eni-areas.stat .eni-title{ + float: left; + margin-left: -130px; + display: block; + width: 110px; + margin-right: 16px; + font-size: 20px; + line-height: 21px; + text-align: right; + -webkit-transition: color .3s; + -o-transition: color .3s; + transition: color .3s; + color:#ff6600; + /*margin-top: 28px;*/ + } + +/*****************\ + # Страница блогов и новостей (/blogs/ /news) +\*****************/ + + .news-filter-block .mf-line.s-subj-tag .mf-field label{ + margin-bottom: 1em; + } + .news-filter-block .select2-container-multi .select2-choices .select2-search-field:first-child input{ + line-height: 36px ; + } + +/*****************\ +# карта на странице профиля компании (google maps) +\*****************/ + + .address-wrap .map-wrap{ + margin-top: 1em; + margin-bottom: 2em; + } + .address-wrap .i-descr{ + font-family: 'dindisplay_pro', sans-serif; + font-size: 18px; + line-height: 21px; + color: #464646; + } + .address-wrap .map-wrap .gmap-canvas{ + height: 308px; + } + + .address-wrap .map-toggle{ + display: block; + float: right; + color: #a2a2a2; + text-decoration: none; + position: relative; + z-index: 2; + } + .address-wrap .map-toggle:hover{ + color: #ff6600; + + } + .address-wrap .map-toggle:hover .label{ + border: 0; + } + .address-wrap .map-toggle .label{ + font-size: 15px; + line-height: 12px; + + text-decoration: none; + border-bottom: 1px dashed; + } + .address-wrap .map-toggle .fa{ + font-size: 1.3em; + } + +/******************\ + # страница выставки (оплаченная) +\******************/ + +.paid-partner-link{ + text-transform: uppercase; + padding: 15px; + text-align: center; + display: block; + font-weight: 700; +} +.paid-partner-block{ + margin-top: 3em; +} + .paid-partner-block .desc{ + color: #ff6600; + text-align: center; + margin-top: 6px; + } + .paid-partner-block .partner-title{ + margin-bottom: 4px; + text-align: center; + } + +/******************\ + # Страница сообщения об успешной отправке (thank you page) +\******************/ + +.thanks-page .left-part{ + float: left; + position: relative; + width: 188px; + text-align: center; + padding-top: 12px; +} + .thanks-page .left-part figcaption{ + position: absolute; + top: 0; + left: 50%; + margin-top: 50px; + margin-left: -37px; + + font-family: 'dindisplay_pro', sans-serif; + } + .thanks-page .left-part figcaption span{ + display: block; + font-weight: bold; + font-size: 32px; + line-height: 32px; + } + .thanks-page .left-part figcaption span.orange-text{ + font-size: 68px; + line-height: 30px; + } + +.thanks-page .right-part{ + margin-left: 190px; +} +.thanks-page h3{ + font-size: 18px; + color: #59666e; +} +.thanks-page .help-block{ + position: relative; +} + .thanks-page .help-block .item{ + width: 33.333%; + float: left; + } + .thanks-page .help-block .figure{ + + display: block; + width: 60px; + height: 60px; + float: left; + margin-right: 12px; + background: #ff6600; + position: relative; + } + .thanks-page .help-block .figure:after { + position: absolute; + top: 100%; + right: 0; + content: " "; + height: 0; + width: 0; + pointer-events: none; + border-style: solid; + border-width: 0 10px 10px 0; + border-color: transparent #ff6600 transparent transparent; + } + .thanks-page .help-block .icon{ + + background: url(../img/thanks_sprite.png) 0 0 no-repeat; + margin-left: auto; + margin-right: auto; + } + .thanks-page .help-block .list{ + width: 32px; + height: 37px; + margin-top: 12px; + } + .thanks-page .help-block .mail{ + width: 42px; + height: 39px; + margin-top: 10px; + background-position: -32px 0; + } + .thanks-page .help-block .zoom{ + width: 43px; + height: 39px; + margin-top: 12px; + background-position: -74px 0; + + } + +/**************************\ + # форма "отправить заявку" +\**************************/ +.period .pwf-field .error-blob{ + line-height: 18px; +} +.service-page .period .pwf-field.error-field:before{ + margin-right: 13px; + margin-top: -8px; +} +/**************************\ + # форма "запрос организатору" +\**************************/ +.organizer-modal .organizer-name{ + border-bottom: 1px solid #f26c2a; +} + +/************************\ +# 404 not found page +\***********************/ + +.error-404 .items-list{ + -webkit-column-count: 3; /* Chrome, Safari, Opera */ + -moz-column-count: 3; /* Firefox */ + column-count: 3; + list-style-type: none; + list-style-position: inside; + margin: 0; + display: block; +} + .error-404 .items-list li{ + margin-bottom: 8px; + display: block; + position: relative; + } + /*.error-404 .items-list li:before{*/ + /*float: left;*/ + /*content: "\2022";*/ + + /*}*/ +.error-404 .items-list .fa{ + display: block; + float: left; + font-size: 6px; + line-height: 16px; + +} + .error-404 .items-list a{ + display: block; + + margin-left: 16px; + line-height: 1.2em; + -webkit-transition: all .3s; + -o-transition: all .3s; + transition: all .3s; + text-decoration: none; + color: #464646; + } + .error-404 .items-list a:hover{ + color: #ff6600; + } +.error-404 .title{ + font-size: 16px; + padding-top: 12px; +} +.error-404 h2{ + color: #ff6600; + font-family: dindisplay_pro,sans-serif; + font-size: 30px; + line-height: 30px; + font-weight: normal; +} +.error-404 .figure{ + display: block; + font-family: dindisplay_pro,sans-serif; + color: #f60; + float: left; + font-size: 96px; + margin-right: 22px; + line-height: 1em; + +} \ No newline at end of file diff --git a/static/client/css/normalize.css b/static/client/css/normalize.css new file mode 100644 index 00000000..6e8e42d8 --- /dev/null +++ b/static/client/css/normalize.css @@ -0,0 +1,527 @@ +/*! normalize.css v1.1.2 | MIT License | git.io/normalize */ + +/* ========================================================================== + HTML5 display definitions + ========================================================================== */ + +/** + * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3. + */ + +article, +aside, +details, +figcaption, +figure, +footer, +header, +hgroup, +main, +nav, +section, +summary { + display: block; +} + +/** + * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3. + */ + +audio, +canvas, +video { + display: inline-block; + *display: inline; + *zoom: 1; +} + +/** + * Prevent modern browsers from displaying `audio` without controls. + * Remove excess height in iOS 5 devices. + */ + +audio:not([controls]) { + display: none; + height: 0; +} + +/** + * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4. + * Known issue: no IE 6 support. + */ + +[hidden] { + display: none; +} + +/* ========================================================================== + Base + ========================================================================== */ + +/** + * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using + * `em` units. + * 2. Prevent iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-size: 100%; /* 1 */ + -ms-text-size-adjust: 100%; /* 2 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/** + * Address `font-family` inconsistency between `textarea` and other form + * elements. + */ + +html, +button, +input, +select, +textarea { + font-family: sans-serif; +} + +/** + * Address margins handled incorrectly in IE 6/7. + */ + +body { + margin: 0; +} + +/* ========================================================================== + Links + ========================================================================== */ + +/** + * Address `outline` inconsistency between Chrome and other browsers. + */ + +a:focus { + outline: thin dotted; +} + +/** + * Improve readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* ========================================================================== + Typography + ========================================================================== */ + +/** + * Address font sizes and margins set differently in IE 6/7. + * Address font sizes within `section` and `article` in Firefox 4+, Safari 5, + * and Chrome. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +h2 { + font-size: 1.5em; + margin: 0.83em 0; +} + +h3 { + font-size: 1.17em; + margin: 1em 0; +} + +h4 { + font-size: 1em; + margin: 1.33em 0; +} + +h5 { + font-size: 0.83em; + margin: 1.67em 0; +} + +h6 { + font-size: 0.67em; + margin: 2.33em 0; +} + +/** + * Address styling not present in IE 7/8/9, Safari 5, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/** + * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +blockquote { + margin: 1em 40px; +} + +/** + * Address styling not present in Safari 5 and Chrome. + */ + +dfn { + font-style: italic; +} + +/** + * Address differences between Firefox and other browsers. + * Known issue: no IE 6/7 normalization. + */ + +hr { + -moz-box-sizing: content-box; + box-sizing: content-box; + height: 0; +} + +/** + * Address styling not present in IE 6/7/8/9. + */ + +mark { + background: #ff0; + color: #000; +} + +/** + * Address margins set differently in IE 6/7. + */ + +p, +pre { + margin: 1em 0; +} + +/** + * Correct font family set oddly in IE 6, Safari 4/5, and Chrome. + */ + +code, +kbd, +pre, +samp { + font-family: monospace, serif; + _font-family: 'courier new', monospace; + font-size: 1em; +} + +/** + * Improve readability of pre-formatted text in all browsers. + */ + +pre { + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} + +/** + * Address CSS quotes not supported in IE 6/7. + */ + +q { + quotes: none; +} + +/** + * Address `quotes` property not supported in Safari 4. + */ + +q:before, +q:after { + content: ''; + content: none; +} + +/** + * Address inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* ========================================================================== + Lists + ========================================================================== */ + +/** + * Address margins set differently in IE 6/7. + */ + +dl, +menu, +ol, +ul { + margin: 1em 0; +} + +dd { + margin: 0 0 0 40px; +} + +/** + * Address paddings set differently in IE 6/7. + */ + +menu, +ol, +ul { + padding: 0 0 0 40px; +} + +/** + * Correct list images handled incorrectly in IE 7. + */ + +nav ul, +nav ol { + list-style: none; + list-style-image: none; +} + +/* ========================================================================== + Embedded content + ========================================================================== */ + +/** + * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3. + * 2. Improve image quality when scaled in IE 7. + */ + +img { + border: 0; /* 1 */ + -ms-interpolation-mode: bicubic; /* 2 */ +} + +/** + * Correct overflow displayed oddly in IE 9. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* ========================================================================== + Figures + ========================================================================== */ + +/** + * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11. + */ + +figure { + margin: 0; +} + +/* ========================================================================== + Forms + ========================================================================== */ + +/** + * Correct margin displayed oddly in IE 6/7. + */ + +form { + margin: 0; +} + +/** + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/** + * 1. Correct color not being inherited in IE 6/7/8/9. + * 2. Correct text not wrapping in Firefox 3. + * 3. Correct alignment displayed oddly in IE 6/7. + */ + +legend { + border: 0; /* 1 */ + padding: 0; + white-space: normal; /* 2 */ + *margin-left: -7px; /* 3 */ +} + +/** + * 1. Correct font size not being inherited in all browsers. + * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5, + * and Chrome. + * 3. Improve appearance and consistency in all browsers. + */ + +button, +input, +select, +textarea { + font-size: 100%; /* 1 */ + margin: 0; /* 2 */ + vertical-align: baseline; /* 3 */ + *vertical-align: middle; /* 3 */ +} + +/** + * Address Firefox 3+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +button, +input { + line-height: normal; +} + +/** + * Address inconsistent `text-transform` inheritance for `button` and `select`. + * All other form control elements do not inherit `text-transform` values. + * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+. + * Correct `select` style inheritance in Firefox 4+ and Opera. + */ + +button, +select { + text-transform: none; +} + +/** + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Correct inability to style clickable `input` types in iOS. + * 3. Improve usability and consistency of cursor style between image-type + * `input` and others. + * 4. Remove inner spacing in IE 7 without affecting normal text inputs. + * Known issue: inner spacing remains in IE 6. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ + *overflow: visible; /* 4 */ +} + +/** + * Re-set default cursor for disabled elements. + */ + +button[disabled], +html input[disabled] { + cursor: default; +} + +/** + * 1. Address box sizing set to content-box in IE 8/9. + * 2. Remove excess padding in IE 8/9. + * 3. Remove excess padding in IE 7. + * Known issue: excess padding remains in IE 6. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ + *height: 13px; /* 3 */ + *width: 13px; /* 3 */ +} + +/** + * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. + * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* 2 */ + box-sizing: content-box; +} + +/** + * Remove inner padding and search cancel button in Safari 5 and Chrome + * on OS X. + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * Remove inner padding and border in Firefox 3+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/** + * 1. Remove default vertical scrollbar in IE 6/7/8/9. + * 2. Improve readability and alignment in all browsers. + */ + +textarea { + overflow: auto; /* 1 */ + vertical-align: top; /* 2 */ +} + +/* ========================================================================== + Tables + ========================================================================== */ + +/** + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} diff --git a/static/client/css/pages/exposition_by.css b/static/client/css/pages/exposition_by.css new file mode 100644 index 00000000..66472484 --- /dev/null +++ b/static/client/css/pages/exposition_by.css @@ -0,0 +1,24 @@ +.leter-list{ + list-style: none; +} + +.leter-list li{ + margin-bottom: 2px; + margin-left: -10px; +} + +.leter-list li a:hover{ + text-decoration: none; + color: #ff6600; + border-color: transparent; +} + +.leter-list li a { + display: inline-block; + font-size: 14px; + line-height: 17px; + text-decoration: underline; + color: #464646; + padding: 2px 15px 2px 9px; + border-color: transparent; +} diff --git a/static/client/css/phototag.css b/static/client/css/phototag.css new file mode 100644 index 00000000..086af62b --- /dev/null +++ b/static/client/css/phototag.css @@ -0,0 +1,215 @@ + +/* Resizable +----------------------------------*/ +.ui-resizable { position: relative;} +.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; } +.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } +.ui-resizable-n { cursor: n-resize; height: 9px; width: 9px; top: -5px; left: 50%; margin-left: -4px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-s { cursor: s-resize; height: 9px; width: 9px; bottom: -5px; left: 50%; margin-left: -4px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-e { cursor: e-resize; width: 9px; right: -5px; top: 50%; margin-top: -4px; height: 9px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-w { cursor: w-resize; width: 9px; left: -5px; top: 50%; height: 9px; margin-top: -4px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: -5px; bottom: -5px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px; background: rgba(255, 255, 255, 0.5);} + +.photoTag-taglist{ + list-style:none; + padding: 0; +} +.photoTag-taglist li{ + margin-left: 0; + display: inline; + padding: 0; +} +.tg-close { + display: block; + position: absolute; + right: 0; + top: 0; + width: 32px; + height: 32px; + cursor: pointer; + z-index: 100; +} +.tg-close:before { + content: ''; + display: block; + width: 10px; + height: 10px; + background: url(../img/sprites.png) -227px -149px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -5px 0 0 -5px; +} +.taghover:before { + content: ''; + display: block; + width: 100%; + height: 100%; + position: absolute; + left: 0; + top: 0; +} +.taghover .tg-close { + width: 18px; + height: 18px; +} +.taghover .tg-close:before { + background: url('static/img/x.png') 0 0 no-repeat; + left: 8px; + top: 9px; +} + +.taghover .tg-close:hover:before { + background-position: 0 -32px; +} +.tg-close:hover:before { + background-position: -227px -160px ; +} +.photoTag-taglist a.tg-close { + display: inline; + margin: 0; + padding: 0 5px 0 3px; + text-decoration: none; + position: relative; +} +.photoTag-wrap { + overflow: hidden; +} +.utag-right, .utag-left { + width: 2000px; + background: rgba(0, 0, 0, 0.5); + position: absolute; + top: 0; +} +.utag-left { + left: -2000px; +} +.utag-top, .utag-bot { + width: 4000px; + background: rgba(0, 0, 0, 0.5); + position: absolute; + height: 2000px; + left: -2000px; +} +.utag-top { + top: -2000px; +} +.taghover { + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + z-index: 3014; + background-color: rgba(255, 255, 255, 0.01); +} +#expoNewTagForm { + background-color: #FFFFFF; + padding: 10px; + overflow:hidden; + position: absolute; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + line-height: 100%; + z-index: 1039; +} +#expoNewTagForm button { + padding: 0 27px; + margin: 10px 0 0 0; +} +.ptListHolder ul { + position:relative; + display: block; + min-height: 24px; + width: 120px; + background: #ffffff; +} +.ptListHolder ul li { + padding: 0; + margin:0; + border-bottom: 1px solid #DDDDDD; +} +.ptListHolder ul li a { + padding: 10px 5px 10px 5px!important; + text-align: left; + display: block!important; +} +.photoTag-tag { + border: 1px solid rgba(255, 255, 255, 0.7); + background-color: transparent; + overflow: hidden; + z-index:1021; +} +#photoTag-tag_expo { + overflow: visible; +} +.photoTag-tag .photoTag-delete { + background:url('/x2.png') no-repeat; + width:25px; + height:29px; + display:inline; + z-index:3200; + position:absolute; + right:-22px; + cursor:pointer; + opacity: 0.8; +} +#expoNewTagForm input{ + display: block; +} +#expoNewTagForm input[type="text"] { + padding: 0 5px 0 5px; + font-size: 14px; + height: 36px; +} +#expoNewTagForm label{ + width: auto; + float: left; + color: #FF6600; + line-height: 100%; + text-align: left; + line-height: 21px; +} +#expoNewTagForm .inputSubmit +{ + color: #FF6600; + background-color: #ffffff; + border: 1px solid #ffffff; + -moz-border-radius-topleft: 5px; + -webkit-border-top-left-radius: 5px; + -moz-border-radius-topright: 5px; + -webkit-border-top-right-radius: 5px; + -moz-border-radius-bottomleft: 5px; + -webkit-border-bottom-left-radius: 5px; + -moz-border-radius-bottomright: 5px; + -webkit-border-bottom-right-radius: 5px; +} +#expoNewTagForm .inputSubmit { + float: right; + margin: 5px 0 0; + padding: 5px; +} +#expoNewTagForm .inputCancel { + border: 0 none; +} + +.innerTag{ + float: left; + background-color: #FF6600; + padding: 3px; + height: 14px; + position: relative; + line-height: 100%; + top: -23px; + left: 0; + font-size: 12px; + color: #ffffff; + -moz-border-radius-topleft: 5px; + -webkit-border-top-left-radius: 5px; + -moz-border-radius-topright: 5px; + -webkit-border-top-right-radius: 5px; +} diff --git a/static/client/css/regions.css b/static/client/css/regions.css new file mode 100644 index 00000000..41c53a1f --- /dev/null +++ b/static/client/css/regions.css @@ -0,0 +1,85 @@ +.c-select-box.places .csb-title ul.ui-autocomplete { + background: none repeat scroll 0 0 #FFFFFF; + border: 1px solid #CCCCCC; + margin-left: 0; + z-index: 1020; +} + +.c-select-box.places .csb-title ul.ui-autocomplete li +{ + margin-bottom: 5px; +} +.places-list ul li a:before, .topics-list ul li a:before { + content: ""; + display: block; + height: 8px; + left: -12px; + position: absolute; + top: 50%; + margin-top: -4px; + width: 8px; + z-index: 1; + background: url('../img/sprites.png') no-repeat -83px -16px; +} +.places-list > ul > li.active > a:before,.level2.active > a:before, .topics-list > ul > li.active > a:before { + content: ""; + display: block; + height: 8px; + left: -12px; + position: absolute; + top: 3px; + width: 8px; + z-index: 1; + background: url('../img/sprites.png') no-repeat -86px -24px; +} +.places-list > ul > li.active > a:before, .topics-list > ul > li.active > a:before{ + margin-top: 2px; +} +.level2.active > a:before{ + margin-top: 2px; +} + +.c-select-box-wrap .custom-radio-check:before { + content: ''; + width: 13px; + height: 13px; + display: block; + position: absolute; + top: 50%; + margin-top: -5px; + left: -16px; + z-index: 1; + background: url('../img/sprites.png') no-repeat -345px -135px ; +} +.c-select-box-wrap .custom-radio-check.active:before { + content: ''; + width: 13px; + height: 13px; + display: block; + position: absolute; + top: 50%; + margin-top: -6px; + left: -17px; + z-index: 1; + background: url('../img/sprites.png') no-repeat -46px -16px; +} +.ac-custom-message { + background: none repeat scroll 0 0 #FFFFFF; + border: 1px solid #CCCCDC; + border-radius: 5px; + padding: 5px 10px 5px 25px; + position: absolute; + z-index: 1415; + display: none; +} +.ac-custom-message span:before { + background: url("../img/sprites.png") no-repeat scroll -106px -16px #FFFFFF; + content: ""; + display: block; + height: 10px; + left: 7px; + position: absolute; + top: 19px; + width: 13px; + z-index: 1416; +} \ No newline at end of file diff --git a/static/client/css/select2.css b/static/client/css/select2.css new file mode 100644 index 00000000..d86ad185 --- /dev/null +++ b/static/client/css/select2.css @@ -0,0 +1,640 @@ +/* ******************************************************* */ +/* Select2 plugin styles */ +/* ******************************************************* */ + +.select2-container { + position: relative; + display: inline-block; + vertical-align: middle; + margin: 0; + word-spacing: normal; +} + +.mf-field .select2-container { + width: 100%; +} + +.select2-container ul, +.select2-drop ul { + margin: 0; + padding: 0; + list-style: none; +} + +.select2-container, +.select2-drop, +.select2-search, +.select2-search input { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.select2-container .select2-choice, +.select2-container .select2-choices { + position: relative; + display: block; + border: 1px solid #bdbdbd; + background: #fff; + width: 100%; + /*padding: 5px 30px 2px 3px;*/ + padding-right: 30px; + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + line-height: 19px; + text-decoration: none; + overflow: hidden; + white-space: nowrap; + color: #464646; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + -webkit-box-shadow: inset 0 2px 2px -2px #aaa; + -moz-box-shadow: inset 0 2px 2px -2px #aaa; + box-shadow: inset 0 2px 2px -2px #aaa; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + + -webkit-transition: none; + -moz-transition: none; + -ms-transition: none; + -o-transition: none; + transition: none; +} + +.select2-container .select2-choices { + height: auto; + min-height: 40px; + cursor: text; +} + +.select2-container-active .select2-choice, +.select2-container-active .select2-choices { + /*border: 2px solid #ff6600;*/ + outline: none; + padding-right: 29px; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + border-radius: 4px; +} + +.select2-dropdown-open .select2-choice, +.select2-dropdown-open .select2-choices { + border: 2px solid #ff6600; + border-bottom: 0; + padding-right: 29px; + border-bottom: none; + -webkit-border-radius: 3px 3px 0 0; + -moz-border-radius: 3px 3px 0 0; + border-radius: 3px 3px 0 0; +} + +.select2-dropdown-open.select2-drop-above .select2-choice, +.select2-dropdown-open.select2-drop-above .select2-choices { + padding: 6px 26px 1px 2px; + border-bottom: 2px solid #ff6600; + border-top: none; + -webkit-border-radius: 0 0 3px 3px; + -moz-border-radius: 0 0 3px 3px; + border-radius: 0 0 3px 3px; +} + +.select2-container-multi .select2-choices:after { + content: " "; + display: block; + width: 8px; + height: 5px; + overflow: hidden; + background: url(../img/sprites.png) -86px -27px no-repeat; + position: absolute; + right: 12px; + top: 17px; +} + +.select2-container-multi.select2-container-active .select2-choices:after { + right: 11px; + top: 16px; +} + +.select2-dropdown-open.select2-drop-above .select2-choices:after { + right: 11px; + top: 18px; +} + +.select2-container-multi.select2-container-disabled .select2-choices { + background: #fff; + /*border: 1px solid #bdbdbd;*/ + cursor: default; +} + +.select2-container.select2-allowclear .select2-choice .select2-chosen { + margin-right: 30px; +} + +.select2-container .select2-choice > .select2-chosen { + display: block; + padding: 7px 0 6px 16px; + margin-right: 0; + line-height: 15px; + overflow: hidden; + + white-space: nowrap; + + text-overflow: ellipsis; + float: none; + width: auto; +} + +.select2-search-choice-close { + display: block; + position: absolute; + right: 0; + top: 0; + width: 25px; + height: 0; + padding-top: 26px; + overflow: hidden; + background: none; + outline: none; +} + +.select2-container-multi .select2-search-choice-close { + left: auto; +} + +.select2-search-choice-close:before { + content: ''; + display: inline-block; + width: 8px; + height: 8px; + background: url(../img/sprites.png) -134px -16px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -3px 0 0 -4px; +} + +.select2-container .select2-choice abbr { + display: none; + width: 30px; + height: 38px; + padding-top: 0; + position: absolute; + right: 30px; + top: 0; + + font-size: 1px; + text-decoration: none; + + border: 0; + background: none; + cursor: pointer; + outline: 0; +} + +.select2-container.select2-allowclear .select2-choice abbr { + display: block; +} + +.select2-container.select2-container-active.select2-allowclear .select2-choice abbr { + /*height: 36px;*/ + right: 29px; +} + +.select2-dropdown-open.select2-drop-above.select2-allowclear .select2-choice abbr { + margin-top: 2px; +} + +.select2-container.select2-allowclear .select2-choice abbr:before { + background-position: -74px -160px; +} + +.select2-container .select2-choice abbr:hover:before { + background-position: -134px -16px; +} + +.select2-container .select2-choice .select2-arrow { + display: block; + width: 29px; + height: 100%; + position: absolute; + right: 0; + top: 0; + + -webkit-border-radius: 0 3px 3px 0; + -moz-border-radius: 0 3px 3px 0; + border-radius: 0 3px 3px 0; +} + +.select2-container.select2-container-active .select2-choice .select2-arrow { + width: 28px; +} + +.select2-container .select2-choice .select2-arrow b { + display: block; + width: 8px; + height: 5px; + overflow: hidden; + background: url(../img/sprites.png) -86px -27px no-repeat; + position: absolute; + right: 12px; + top: 50%; + margin-top: -2px; +} + +.select2-container.select2-dropdown-open.select2-drop-above .select2-choice .select2-arrow b { + top: 18px; +} + +.select2-container.select2-container-active .select2-choice .select2-arrow b { + right: 11px; + top: 16px; +} + +.select2-drop-mask { + position: fixed; + left: 0; + top: 0; + z-index: 9998; + height: auto; + width: auto; + min-height: 100%; + min-width: 100%; + border: 0; + margin: 0; + padding: 0; + background-color: #fff; + opacity: 0; + filter: alpha(opacity=0); +} + + +.select2-drop { + position: absolute; + top: 100%; + z-index: 9999; + width: 100%; + padding: 0 10px 10px; + background: #fff; + color: #000; + border: 2px solid #ff6600; + border-top: none; + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + -webkit-border-radius: 0 0 4px 4px; + -moz-border-radius: 0 0 4px 4px; + border-radius: 0 0 4px 4px; +} + +.select2-drop.select2-drop-above { + padding: 10px 10px 0; + border-top: 2px solid #ff6600; + border-bottom: 0; + border-radius: 4px 4px 0 0; +} + +.select2-drop-active { + border-color: #ff6600; +} + +.select2-drop-auto-width { + border-top: 1px solid #aaa; + width: auto; +} + +.select2-drop-auto-width .select2-search { + padding-top: 4px; +} + +.select2-drop-active:before { + content: ''; + display: block; + border-top: 1px dotted #cccccc; + margin: 4px 0 5px; +} + +.select2-drop.select2-drop-above.select2-drop-active:before { + content: none; +} + +.select2-drop.select2-drop-above.select2-drop-active:after { + content: ''; + display: block; + border-bottom: 1px dotted #cccccc; + margin: 10px 0 4px; +} + + +.select2-search { + display: block; + width: 100%; + min-height: 26px; + margin: 0; + padding: 0 10px 10px; + + position: relative; + z-index: 10000; + + white-space: nowrap; +} + +.select2-search:after { + content: ''; + display: block; + width: 100%; + border-bottom: 1px dotted #cccccc; + padding: 0 10px; + margin: 5px -10px 0; +} + +.select2-search input[type='text'] { + position: relative; + width: 100%; + height: 26px; + border: none; + padding: 0; + margin: 0; + outline: 0; + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + line-height: 26px; + + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + + background: #fff url('../img/select2/select2.png') no-repeat 100% -22px; +} + +.select2-search input:focus { + border: none; +} + +.select2-search input.select2-active { + background: #fff url('../img/select2/select2-spinner.gif') no-repeat 100%; +} + +.select2-hidden-accessible { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + + +.select2-default { + color: #a2a2a2 !important; +} + + +/* results */ +.select2-results { + max-height: 200px; + padding: 0 0 0 5px; + margin: 5px 5px 5px 0; + position: relative; + overflow-x: hidden; + overflow-y: auto; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} + +html[dir="rtl"] .select2-results { + padding: 0 5px 0 0; + margin: 5px 0 5px 5px; +} + +.select2-results ul.select2-result-sub { + margin: 0; + padding-left: 0; +} + +.select2-results li { + list-style: none; + display: list-item; + background-image: none; +} + +.select2-results li.select2-result-with-children > .select2-result-label { + font-weight: bold; +} + +.select2-results .select2-result-label { + padding: 3px 7px 4px; + margin: 0; + cursor: pointer; + + min-height: 1em; + + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.select2-results-dept-1 .select2-result-label { padding-left: 20px } +.select2-results-dept-2 .select2-result-label { padding-left: 40px } +.select2-results-dept-3 .select2-result-label { padding-left: 60px } +.select2-results-dept-4 .select2-result-label { padding-left: 80px } +.select2-results-dept-5 .select2-result-label { padding-left: 100px } +.select2-results-dept-6 .select2-result-label { padding-left: 110px } +.select2-results-dept-7 .select2-result-label { padding-left: 120px } + +.select2-results .select2-highlighted { + background: none; + color: #ff6600; +} + +.select2-results li em { + background: #feffde; + font-style: normal; +} + +.select2-results .select2-highlighted em { + background: transparent; +} + +.select2-results .select2-highlighted ul { + background: #fff; + color: #000; +} + +.select2-results .select2-no-results, +.select2-results .select2-searching, +.select2-results .select2-ajax-error, +.select2-results .select2-selection-limit { + background: #f4f4f4; + display: list-item; + padding-left: 5px; +} + +/* +disabled look for disabled choices in the results dropdown +*/ +.select2-results .select2-disabled.select2-highlighted { + color: #666; + background: #f4f4f4; + display: list-item; + cursor: default; +} +.select2-results .select2-disabled { + background: #f4f4f4; + display: list-item; + cursor: default; +} + +.select2-results .select2-selected { + display: none; +} + +.select2-more-results.select2-active { + background: #f4f4f4 url('../img/select2/select2-spinner.gif') no-repeat 100%; +} + +.select2-results .select2-ajax-error { + background: rgba(255, 50, 50, .2); +} + +.select2-more-results { + background: #f4f4f4; + display: list-item; +} + +/* disabled styles */ + +.select2-container.select2-container-disabled .select2-choice { + background: #ffffff; + cursor: default; +} + +.select2-container.select2-container-disabled .select2-choice .select2-arrow { + background: none; + border-left: 0; +} + +.select2-container.select2-container-disabled .select2-choice abbr { + display: none; +} + + + +/* multiselect */ + + +.select2-container-multi .select2-choices .select2-search-choice { + position: relative; + padding: 6px 25px 5px 15px; + margin: 0 3px 3px 0; + border: 1px solid #ff6600; + line-height: 15px; + color: #ff6600; + cursor: default; + + background: #ffffff; + + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.select2-locked { + padding: 3px 5px 3px 5px !important; +} + +.select2-container-multi .select2-choices li { + float: left; + list-style: none; +} + +html[dir="rtl"] .select2-container-multi .select2-choices li +{ + float: right; +} + +.select2-container-multi .select2-choices .select2-search-field { + margin: 0; + padding: 0; + white-space: nowrap; +} + +.select2-container-multi .select2-choices .select2-search-field input { + background: none !important; + border: none; + outline: none; + color: #666; + margin: 0; + padding: 0 5px; + height: 29px; + font-family: 'dindisplay_pro', sans-serif; + line-height: 27px; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.select2-container-multi .select2-choices .select2-search-field:first-child input { + padding: 0 20px; +} + +/* end multiselect */ + + +.select2-result-selectable .select2-match, +.select2-result-unselectable .select2-match { + text-decoration: underline; +} + +.select2-offscreen, .select2-offscreen:focus { + clip: rect(0 0 0 0) !important; + width: 1px !important; + height: 1px !important; + border: 0 !important; + margin: 0 !important; + padding: 0 !important; + overflow: hidden !important; + position: absolute !important; + outline: 0 !important; + left: 0px !important; + top: 0px !important; +} + +.select2-display-none { + display: none; +} + +.select2-measure-scrollbar { + position: absolute; + top: -10000px; + left: -10000px; + width: 100px; + height: 100px; + overflow: scroll; +} diff --git a/static/client/css/vendor.css b/static/client/css/vendor.css new file mode 100644 index 00000000..64743fb6 --- /dev/null +++ b/static/client/css/vendor.css @@ -0,0 +1,2811 @@ +/* + * Swiper - Mobile Touch Slider CSS + * http://www.idangero.us/sliders/swiper + * + * Vladimir Kharlampidi, The iDangero.us + * http://www.idangero.us/ + * + * Copyright 2012-2013, Vladimir Kharlampidi + * The iDangero.us + * http://www.idangero.us + * + * Licensed under GPL & MIT + * +*/ + +/* =============================================================== +Basic Swiper Styles +================================================================*/ +.swiper-container { + margin:0 auto; + position:relative; + overflow:hidden; + -webkit-backface-visibility:hidden; + -moz-backface-visibility:hidden; + -ms-backface-visibility:hidden; + -o-backface-visibility:hidden; + backface-visibility:hidden; + /* Fix of Webkit flickering */ + z-index:1; +} +.swiper-wrapper { + position:relative; + width:100%; + -webkit-transition-property:-webkit-transform, left, top; + -webkit-transition-duration:0s; + -webkit-transform:translate3d(0px,0,0); + -webkit-transition-timing-function:ease; + + -moz-transition-property:-moz-transform, left, top; + -moz-transition-duration:0s; + -moz-transform:translate3d(0px,0,0); + -moz-transition-timing-function:ease; + + -o-transition-property:-o-transform, left, top; + -o-transition-duration:0s; + -o-transform:translate3d(0px,0,0); + -o-transition-timing-function:ease; + -o-transform:translate(0px,0px); + + -ms-transition-property:-ms-transform, left, top; + -ms-transition-duration:0s; + -ms-transform:translate3d(0px,0,0); + -ms-transition-timing-function:ease; + + transition-property:transform, left, top; + transition-duration:0s; + transform:translate3d(0px,0,0); + transition-timing-function:ease; +} +.swiper-free-mode > .swiper-wrapper { + -webkit-transition-timing-function: ease-out; + -moz-transition-timing-function: ease-out; + -ms-transition-timing-function: ease-out; + -o-transition-timing-function: ease-out; + transition-timing-function: ease-out; + margin: 0 auto; +} +.swiper-slide { + float: left; +} + +/* IE10 Windows Phone 8 Fixes */ +.swiper-wp8-horizontal { + -ms-touch-action: pan-y; +} +.swiper-wp8-vertical { + -ms-touch-action: pan-x; +} + +/* =============================================================== +Your custom styles, here you need to specify container's and slide's +sizes, pagination, etc. +================================================================*/ +.swiper-container { + /* Specify Swiper's Size: */ + + /*width:200px; + height: 100px;*/ +} +.swiper-slide { + /* Specify Slides's Size: */ + + /*width: 100%; + height: 100%;*/ +} +.swiper-slide-active { + /* Specific active slide styling: */ + +} +.swiper-slide-visible { + /* Specific visible slide styling: */ + +} +/* =============================================================== +Pagination Styles +================================================================*/ +.swiper-pagination-switch { + /* Stylize pagination button: */ + +} +.swiper-active-switch { + /* Specific active button style: */ + +} +.swiper-visible-switch { + /* Specific visible button style: */ + +} + +.mCustomScrollbar { + -ms-touch-action: none; + touch-action: none +} + +.mCustomScrollbar.mCS_no_scrollbar { + -ms-touch-action: auto; + touch-action: auto +} + +.mCustomScrollBox { + position: relative; + + height: 100%; + max-width: 100%; + outline: 0; + direction: ltr +} + +.mCSB_container { + width: auto; + height: auto +} + +.mCSB_inside > .mCSB_container { + margin-right: 30px +} + +.mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden { + margin-right: 0 +} + +.mCS-dir-rtl > .mCSB_inside > .mCSB_container { + margin-right: 0; + margin-left: 30px +} + +.mCS-dir-rtl > .mCSB_inside > .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden { + margin-left: 0 +} + +.mCSB_scrollTools { + position: absolute; + width: 16px; + height: auto; + left: auto; + top: 0; + right: 0; + bottom: 0 +} + +.mCSB_outside + .mCSB_scrollTools { + right: -26px +} + +.mCS-dir-rtl > .mCSB_inside > .mCSB_scrollTools, .mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools { + right: auto; + left: 0 +} + +.mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools { + left: -26px +} + +.mCSB_scrollTools .mCSB_draggerContainer { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + height: auto +} + +.mCSB_scrollTools a + .mCSB_draggerContainer { + margin: 20px 0 +} + +.mCSB_scrollTools .mCSB_draggerRail { + width: 2px; + height: 100%; + margin: 0 auto; + -webkit-border-radius: 16px; + -moz-border-radius: 16px; + border-radius: 16px +} + +.mCSB_scrollTools .mCSB_dragger { + cursor: pointer; + width: 100%; + height: 30px; + z-index: 1 +} + +.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + position: relative; + width: 4px; + height: 100%; + margin: 0 auto; + -webkit-border-radius: 16px; + -moz-border-radius: 16px; + border-radius: 16px; + text-align: center +} + +.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar { + width: 12px +} + +.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + width: 8px +} + +.mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_buttonDown { + display: block; + position: absolute; + height: 20px; + width: 100%; + overflow: hidden; + margin: 0 auto; + cursor: pointer +} + +.mCSB_scrollTools .mCSB_buttonDown { + bottom: 0 +} + +.mCSB_horizontal.mCSB_inside > .mCSB_container { + margin-right: 0; + margin-bottom: 30px +} + +.mCSB_horizontal.mCSB_outside > .mCSB_container { + min-height: 100% +} + +.mCSB_horizontal > .mCSB_container.mCS_no_scrollbar_x.mCS_x_hidden { + margin-bottom: 0 +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal { + width: auto; + height: 16px; + top: auto; + right: 0; + bottom: 0; + left: 0 +} + +.mCustomScrollBox + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal { + bottom: -26px +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal a + .mCSB_draggerContainer { + margin: 0 20px +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100%; + height: 2px; + margin: 7px 0 +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger { + width: 30px; + height: 100%; + left: 0 +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + width: 100%; + height: 4px; + margin: 6px auto +} + +.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar { + height: 12px; + margin: 2px auto +} + +.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + height: 8px; + margin: 4px 0 +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft, .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight { + display: block; + position: absolute; + width: 20px; + height: 100%; + overflow: hidden; + margin: 0 auto; + cursor: pointer +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft { + left: 0 +} + +.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight { + right: 0 +} + +.mCSB_container_wrapper { + position: absolute; + height: auto; + width: auto; + overflow: hidden; + top: 0; + left: 0; + right: 0; + bottom: 0; + margin-right: 30px; + margin-bottom: 30px +} + +.mCSB_container_wrapper > .mCSB_container { + padding-right: 30px; + padding-bottom: 30px +} + +.mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_vertical { + bottom: 20px +} + +.mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_horizontal { + right: 20px +} + +.mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden + .mCSB_scrollTools.mCSB_scrollTools_vertical { + bottom: 0 +} + +.mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal { + right: 0 +} + +.mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal { + left: 20px +} + +.mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal { + left: 0 +} + +.mCS-dir-rtl > .mCSB_inside > .mCSB_container_wrapper { + margin-right: 0; + margin-left: 30px +} + +.mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden > .mCSB_container { + padding-right: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box +} + +.mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden > .mCSB_container { + padding-bottom: 0; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box +} + +.mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden { + margin-right: 0; + margin-left: 0 +} + +.mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden { + margin-bottom: 0 +} + +.mCSB_scrollTools, .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight { + -webkit-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; + -moz-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; + -o-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; + transition: opacity .2s ease-in-out, background-color .2s ease-in-out +} + +.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail { + -webkit-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out; + -moz-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out; + -o-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out; + transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out +} + +.mCSB_scrollTools { + opacity: .75; + filter: "alpha(opacity=75)"; + -ms-filter: "alpha(opacity=75)" +} + +.mCS-autoHide > .mCustomScrollBox > .mCSB_scrollTools, .mCS-autoHide > .mCustomScrollBox ~ .mCSB_scrollTools { + opacity: 0; + filter: "alpha(opacity=0)"; + -ms-filter: "alpha(opacity=0)" +} + +.mCustomScrollbar > .mCustomScrollBox > .mCSB_scrollTools.mCSB_scrollTools_onDrag, .mCustomScrollbar > .mCustomScrollBox ~ .mCSB_scrollTools.mCSB_scrollTools_onDrag, .mCustomScrollBox:hover > .mCSB_scrollTools, .mCustomScrollBox:hover ~ .mCSB_scrollTools, .mCS-autoHide:hover > .mCustomScrollBox > .mCSB_scrollTools, .mCS-autoHide:hover > .mCustomScrollBox ~ .mCSB_scrollTools { + opacity: 1; + filter: "alpha(opacity=100)"; + -ms-filter: "alpha(opacity=100)" +} + +.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.4); + filter: "alpha(opacity=40)"; + -ms-filter: "alpha(opacity=40)" +} + +.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.75); + filter: "alpha(opacity=75)"; + -ms-filter: "alpha(opacity=75)" +} + +.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.85); + filter: "alpha(opacity=85)"; + -ms-filter: "alpha(opacity=85)" +} + +.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.9); + filter: "alpha(opacity=90)"; + -ms-filter: "alpha(opacity=90)" +} + +.mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight { + background-image: url(mCSB_buttons.png); + background-repeat: no-repeat; + opacity: .4; + filter: "alpha(opacity=40)"; + -ms-filter: "alpha(opacity=40)" +} + +.mCSB_scrollTools .mCSB_buttonUp { + background-position: 0 0 +} + +.mCSB_scrollTools .mCSB_buttonDown { + background-position: 0 -20px +} + +.mCSB_scrollTools .mCSB_buttonLeft { + background-position: 0 -40px +} + +.mCSB_scrollTools .mCSB_buttonRight { + background-position: 0 -56px +} + +.mCSB_scrollTools .mCSB_buttonUp:hover, .mCSB_scrollTools .mCSB_buttonDown:hover, .mCSB_scrollTools .mCSB_buttonLeft:hover, .mCSB_scrollTools .mCSB_buttonRight:hover { + opacity: .75; + filter: "alpha(opacity=75)"; + -ms-filter: "alpha(opacity=75)" +} + +.mCSB_scrollTools .mCSB_buttonUp:active, .mCSB_scrollTools .mCSB_buttonDown:active, .mCSB_scrollTools .mCSB_buttonLeft:active, .mCSB_scrollTools .mCSB_buttonRight:active { + opacity: .9; + filter: "alpha(opacity=90)"; + -ms-filter: "alpha(opacity=90)" +} + +.mCS-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.15) +} + +.mCS-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -80px 0 +} + +.mCS-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -80px -20px +} + +.mCS-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -80px -40px +} + +.mCS-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -80px -56px +} + +.mCS-light-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail { + width: 4px; + background-color: #fff; + background-color: rgba(255, 255, 255, 0.1); + -webkit-border-radius: 1px; + -moz-border-radius: 1px; + border-radius: 1px +} + +.mCS-light-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 4px; + background-color: #fff; + background-color: rgba(255, 255, 255, 0.75); + -webkit-border-radius: 1px; + -moz-border-radius: 1px; + border-radius: 1px +} + +.mCS-light-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-light-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + width: 100%; + height: 4px; + margin: 6px auto +} + +.mCS-light-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.85) +} + +.mCS-light-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-light-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.9) +} + +.mCS-light-2.mCSB_scrollTools .mCSB_buttonUp { + background-position: -32px 0 +} + +.mCS-light-2.mCSB_scrollTools .mCSB_buttonDown { + background-position: -32px -20px +} + +.mCS-light-2.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -40px -40px +} + +.mCS-light-2.mCSB_scrollTools .mCSB_buttonRight { + background-position: -40px -56px +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.1); + -webkit-border-radius: 1px; + -moz-border-radius: 1px; + border-radius: 1px +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75); + -webkit-border-radius: 1px; + -moz-border-radius: 1px; + border-radius: 1px +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_buttonUp { + background-position: -112px 0 +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_buttonDown { + background-position: -112px -20px +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -120px -40px +} + +.mCS-dark-2.mCSB_scrollTools .mCSB_buttonRight { + background-position: -120px -56px +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_draggerRail, .mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail { + width: 4px; + background-color: #fff; + background-color: rgba(255, 255, 255, 0.1); + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 6px; + background-color: #fff; + background-color: rgba(255, 255, 255, 0.75); + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px +} + +.mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100%; + height: 4px; + margin: 6px 0 +} + +.mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + width: 100%; + height: 6px; + margin: 5px auto +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.85) +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-light-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.9) +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_buttonUp { + background-position: -16px 0 +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_buttonDown { + background-position: -16px -20px +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -20px -40px +} + +.mCS-light-thick.mCSB_scrollTools .mCSB_buttonRight { + background-position: -20px -56px +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.1); + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75); + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonUp { + background-position: -96px 0 +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonDown { + background-position: -96px -20px +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -100px -40px +} + +.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonRight { + background-position: -100px -56px +} + +.mCS-light-thin.mCSB_scrollTools .mCSB_draggerRail { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.1) +} + +.mCS-light-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 2px +} + +.mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100% +} + +.mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + width: 100%; + height: 2px; + margin: 7px auto +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.15) +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonUp { + background-position: -80px 0 +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonDown { + background-position: -80px -20px +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -80px -40px +} + +.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonRight { + background-position: -80px -56px +} + +.mCS-rounded.mCSB_scrollTools .mCSB_draggerRail { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.15) +} + +.mCS-rounded.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger { + height: 14px +} + +.mCS-rounded.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 14px; + margin: 0 1px +} + +.mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger { + width: 14px +} + +.mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + height: 14px; + margin: 1px 0 +} + +.mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar { + width: 16px; + height: 16px; + margin: -1px 0 +} + +.mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + width: 4px +} + +.mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar { + height: 16px; + width: 16px; + margin: 0 -1px +} + +.mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + height: 4px; + margin: 6px 0 +} + +.mCS-rounded.mCSB_scrollTools .mCSB_buttonUp { + background-position: 0 -72px +} + +.mCS-rounded.mCSB_scrollTools .mCSB_buttonDown { + background-position: 0 -92px +} + +.mCS-rounded.mCSB_scrollTools .mCSB_buttonLeft { + background-position: 0 -112px +} + +.mCS-rounded.mCSB_scrollTools .mCSB_buttonRight { + background-position: 0 -128px +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.15) +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -80px -72px +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -80px -92px +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -80px -112px +} + +.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -80px -128px +} + +.mCS-rounded-dots.mCSB_scrollTools_vertical .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools_vertical .mCSB_draggerRail { + width: 4px +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail { + background-color: transparent; + background-position: center +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAANElEQVQYV2NkIAAYiVbw//9/Y6DiM1ANJoyMjGdBbLgJQAX/kU0DKgDLkaQAvxW4HEvQFwCRcxIJK1XznAAAAABJRU5ErkJggg=="); + background-repeat: repeat-y; + opacity: .3; + filter: "alpha(opacity=30)"; + -ms-filter: "alpha(opacity=30)" +} + +.mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail { + height: 4px; + margin: 6px 0; + background-repeat: repeat-x +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonUp { + background-position: -16px -72px +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonDown { + background-position: -16px -92px +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -20px -112px +} + +.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonRight { + background-position: -20px -128px +} + +.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail { + background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYV2NkIAAYSVFgDFR8BqrBBEifBbGRTfiPZhpYjiQFBK3A6l6CvgAAE9kGCd1mvgEAAAAASUVORK5CYII=") +} + +.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -96px -72px +} + +.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -96px -92px +} + +.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -100px -112px +} + +.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -100px -128px +} + +.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-repeat: repeat-y; + background-image: -moz-linear-gradient(left, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -webkit-gradient(linear, left top, right top, color-stop(0, rgba(255, 255, 255, 0.5)), color-stop(100%, rgba(255, 255, 255, 0))); + background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -o-linear-gradient(left, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -ms-linear-gradient(left, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: linear-gradient(to right, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%) +} + +.mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + background-repeat: repeat-x; + background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255, 255, 255, 0.5)), color-stop(100%, rgba(255, 255, 255, 0))); + background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%); + background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0) 100%) +} + +.mCS-3d.mCSB_scrollTools_vertical .mCSB_dragger, .mCS-3d-dark.mCSB_scrollTools_vertical .mCSB_dragger { + height: 70px +} + +.mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger { + width: 70px +} + +.mCS-3d.mCSB_scrollTools, .mCS-3d-dark.mCSB_scrollTools { + opacity: 1; + filter: "alpha(opacity=30)"; + -ms-filter: "alpha(opacity=30)" +} + +.mCS-3d.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + -webkit-border-radius: 16px; + -moz-border-radius: 16px; + border-radius: 16px +} + +.mCS-3d.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail { + width: 8px; + background-color: #000; + background-color: rgba(0, 0, 0, 0.2); + box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.5), inset -1px 0 1px rgba(255, 255, 255, 0.2) +} + +.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #555 +} + +.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 8px +} + +.mCS-3d.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100%; + height: 8px; + margin: 4px 0; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5), inset 0 -1px 1px rgba(255, 255, 255, 0.2) +} + +.mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + width: 100%; + height: 8px; + margin: 4px auto +} + +.mCS-3d.mCSB_scrollTools .mCSB_buttonUp { + background-position: -32px -72px +} + +.mCS-3d.mCSB_scrollTools .mCSB_buttonDown { + background-position: -32px -92px +} + +.mCS-3d.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -40px -112px +} + +.mCS-3d.mCSB_scrollTools .mCSB_buttonRight { + background-position: -40px -128px +} + +.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.1); + box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.1) +} + +.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail { + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1) +} + +.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -112px -72px +} + +.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -112px -92px +} + +.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -120px -112px +} + +.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -120px -128px +} + +.mCS-3d-thick.mCSB_scrollTools, .mCS-3d-thick-dark.mCSB_scrollTools { + opacity: 1; + filter: "alpha(opacity=30)"; + -ms-filter: "alpha(opacity=30)" +} + +.mCS-3d-thick.mCSB_scrollTools, .mCS-3d-thick-dark.mCSB_scrollTools, .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer { + -webkit-border-radius: 7px; + -moz-border-radius: 7px; + border-radius: 7px +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px +} + +.mCSB_inside + .mCS-3d-thick.mCSB_scrollTools_vertical, .mCSB_inside + .mCS-3d-thick-dark.mCSB_scrollTools_vertical { + right: 1px +} + +.mCS-3d-thick.mCSB_scrollTools_vertical, .mCS-3d-thick-dark.mCSB_scrollTools_vertical { + box-shadow: inset 1px 0 1px rgba(0, 0, 0, 0.1), inset 0 0 14px rgba(0, 0, 0, 0.5) +} + +.mCS-3d-thick.mCSB_scrollTools_horizontal, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal { + bottom: 1px; + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 0 14px rgba(0, 0, 0, 0.5) +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.4); + width: 12px; + margin: 2px; + position: absolute; + height: auto; + top: 0; + bottom: 0; + left: 0; + right: 0 +} + +.mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4) +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #555 +} + +.mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + height: 12px; + width: auto +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer { + background-color: #000; + background-color: rgba(0, 0, 0, 0.05); + box-shadow: inset 1px 1px 16px rgba(0, 0, 0, 0.1) +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_draggerRail { + background-color: transparent +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonUp { + background-position: -32px -72px +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonDown { + background-position: -32px -92px +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -40px -112px +} + +.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonRight { + background-position: -40px -128px +} + +.mCS-3d-thick-dark.mCSB_scrollTools { + box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.2) +} + +.mCS-3d-thick-dark.mCSB_scrollTools_horizontal { + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 0 14px rgba(0, 0, 0, 0.2) +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.4), inset -1px 0 0 rgba(0, 0, 0, 0.2) +} + +.mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2) +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #777 +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer { + background-color: #fff; + background-color: rgba(0, 0, 0, 0.05); + box-shadow: inset 1px 1px 16px rgba(0, 0, 0, 0.1) +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: transparent +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -112px -72px +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -112px -92px +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -120px -112px +} + +.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -120px -128px +} + +.mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical, .mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical { + right: 0; + margin: 12px 0 +} + +.mCustomScrollBox.mCS-minimal + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal { + bottom: 0; + margin: 0 12px +} + +.mCS-dir-rtl > .mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical, .mCS-dir-rtl > .mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical { + left: 0; + right: auto +} + +.mCS-minimal.mCSB_scrollTools .mCSB_draggerRail, .mCS-minimal-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: transparent +} + +.mCS-minimal.mCSB_scrollTools_vertical .mCSB_dragger, .mCS-minimal-dark.mCSB_scrollTools_vertical .mCSB_dragger { + height: 50px +} + +.mCS-minimal.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-minimal-dark.mCSB_scrollTools_horizontal .mCSB_dragger { + width: 50px +} + +.mCS-minimal.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.2); + filter: "alpha(opacity=20)"; + -ms-filter: "alpha(opacity=20)" +} + +.mCS-minimal.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-minimal.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.5); + filter: "alpha(opacity=50)"; + -ms-filter: "alpha(opacity=50)" +} + +.mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.2); + filter: "alpha(opacity=20)"; + -ms-filter: "alpha(opacity=20)" +} + +.mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.5); + filter: "alpha(opacity=50)"; + -ms-filter: "alpha(opacity=50)" +} + +.mCS-light-3.mCSB_scrollTools .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail { + width: 6px; + background-color: #000; + background-color: rgba(0, 0, 0, 0.2) +} + +.mCS-light-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 6px +} + +.mCS-light-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-light-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100%; + height: 6px; + margin: 5px 0 +} + +.mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + width: 12px +} + +.mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail { + height: 12px; + margin: 2px 0 +} + +.mCS-light-3.mCSB_scrollTools .mCSB_buttonUp { + background-position: -32px -72px +} + +.mCS-light-3.mCSB_scrollTools .mCSB_buttonDown { + background-position: -32px -92px +} + +.mCS-light-3.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -40px -112px +} + +.mCS-light-3.mCSB_scrollTools .mCSB_buttonRight { + background-position: -40px -128px +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.1) +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_buttonUp { + background-position: -112px -72px +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_buttonDown { + background-position: -112px -92px +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -120px -112px +} + +.mCS-dark-3.mCSB_scrollTools .mCSB_buttonRight { + background-position: -120px -128px +} + +.mCS-inset.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail { + width: 12px; + background-color: #000; + background-color: rgba(0, 0, 0, 0.2) +} + +.mCS-inset.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + width: 6px; + margin: 3px 5px; + position: absolute; + height: auto; + top: 0; + bottom: 0; + left: 0; + right: 0 +} + +.mCS-inset.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar { + height: 6px; + margin: 5px 3px; + position: absolute; + width: auto; + top: 0; + bottom: 0; + left: 0; + right: 0 +} + +.mCS-inset.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail { + width: 100%; + height: 12px; + margin: 2px 0 +} + +.mCS-inset.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonUp { + background-position: -32px -72px +} + +.mCS-inset.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonDown { + background-position: -32px -92px +} + +.mCS-inset.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -40px -112px +} + +.mCS-inset.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonRight { + background-position: -40px -128px +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.1) +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonUp { + background-position: -112px -72px +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonDown { + background-position: -112px -92px +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonLeft { + background-position: -120px -112px +} + +.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonRight { + background-position: -120px -128px +} + +.mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: transparent; + border-width: 1px; + border-style: solid; + border-color: #fff; + border-color: rgba(255, 255, 255, 0.2); + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box +} + +.mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail { + border-color: #000; + border-color: rgba(0, 0, 0, 0.2) +} + +.mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.6) +} + +.mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail { + background-color: #000; + background-color: rgba(0, 0, 0, 0.6) +} + +.mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.75) +} + +.mCS-inset-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.85) +} + +.mCS-inset-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #000; + background-color: rgba(0, 0, 0, 0.9) +} + +.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.75) +} + +.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.85) +} + +.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar { + background-color: #fff; + background-color: rgba(255, 255, 255, 0.9) +} +/*! jQuery UI - v1.10.3 - 2013-11-24 +* http://jqueryui.com +* Includes: jquery.ui.core.css, jquery.ui.autocomplete.css, jquery.ui.menu.css +* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { + display: none; +} +.ui-helper-hidden-accessible { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} +.ui-helper-reset { + margin: 0; + padding: 0; + border: 0; + outline: 0; + line-height: 1.3; + text-decoration: none; + font-size: 100%; + list-style: none; +} +.ui-helper-clearfix:before, +.ui-helper-clearfix:after { + content: ""; + display: table; + border-collapse: collapse; +} +.ui-helper-clearfix:after { + clear: both; +} +.ui-helper-clearfix { + min-height: 0; /* support: IE7 */ +} +.ui-helper-zfix { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute; + opacity: 0; + filter:Alpha(Opacity=0); +} + +.ui-front { + z-index: 100; +} + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { + cursor: default !important; +} + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { + display: block; + text-indent: -99999px; + overflow: hidden; + background-repeat: no-repeat; +} + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.ui-autocomplete { + position: absolute; + top: 0; + left: 0; + cursor: default; +} + +.ui-menu { + list-style: none; + padding: 2px; + margin: 0; + display: block; + outline: none; +} +.ui-menu .ui-menu { + margin-top: -3px; + position: absolute; +} +.ui-menu .ui-menu-item { + margin: 0; + padding: 0; + width: 100%; + /* support: IE10, see #8844 */ + list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); +} +.ui-menu .ui-menu-divider { + margin: 5px -2px 5px -2px; + height: 0; + font-size: 0; + line-height: 0; + border-width: 1px 0 0 0; +} +.ui-menu .ui-menu-item a { + text-decoration: none; + display: block; + padding: 2px .4em; + line-height: 1.5; + min-height: 0; /* support: IE7 */ + font-weight: normal; +} +.ui-menu .ui-menu-item a.ui-state-focus, +.ui-menu .ui-menu-item a.ui-state-active { + font-weight: normal; + margin: -1px; +} + +.ui-menu .ui-state-disabled { + font-weight: normal; + /*margin: .4em 0 .2em; + line-height: 1.5;*/ +} +.ui-menu .ui-state-disabled a { + cursor: default; +} + +/* icon support */ +/*.ui-menu-icons { + position: relative; +} +.ui-menu-icons .ui-menu-item a { + position: relative; + padding-left: 2em; +}*/ + +/* left-aligned */ +/*.ui-menu .ui-icon { + position: absolute; + top: .2em; + left: .2em; +}*/ + +/* right-aligned */ +/*.ui-menu .ui-menu-icon { + position: static; + float: right; +}*/ + +/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ +.fancybox-wrap, +.fancybox-skin, +.fancybox-outer, +.fancybox-inner, +.fancybox-image, +.fancybox-wrap iframe, +.fancybox-wrap object, +.fancybox-nav, +.fancybox-nav span, +.fancybox-tmp +{ + padding: 0; + margin: 0; + border: 0; + outline: none; + vertical-align: top; +} + +.fancybox-wrap { + position: absolute; + top: 0; + left: 0; + z-index: 8020; +} + +.fancybox-skin { + position: relative; + background: #f9f9f9; + color: #444; + text-shadow: none; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} + +.fancybox-opened { + z-index: 8030; +} + +.fancybox-opened .fancybox-skin { + -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); + -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); +} + +.fancybox-outer, .fancybox-inner { + position: relative; +} + +.fancybox-inner { + overflow: hidden; +} + +.fancybox-type-iframe .fancybox-inner { + -webkit-overflow-scrolling: touch; +} + +.fancybox-error { + color: #444; + font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; + margin: 0; + padding: 15px; + white-space: nowrap; +} + +.fancybox-image, .fancybox-iframe { + display: block; + width: 100%; + height: 100%; +} + +.fancybox-image { + max-width: 100%; + max-height: 100%; +} + +#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { + background-image: url('fancybox_sprite.png'); +} + +#fancybox-loading { + position: fixed; + top: 50%; + left: 50%; + margin-top: -22px; + margin-left: -22px; + background-position: 0 -108px; + opacity: 0.8; + cursor: pointer; + z-index: 8060; +} + +#fancybox-loading div { + width: 44px; + height: 44px; + background: url('fancybox_loading.gif') center center no-repeat; +} + +.fancybox-close { + position: absolute; + top: -18px; + right: -18px; + width: 36px; + height: 36px; + cursor: pointer; + z-index: 8040; +} + +.fancybox-nav { + position: absolute; + top: 0; + width: 40%; + height: 100%; + cursor: pointer; + text-decoration: none; + background: transparent url('blank.gif'); /* helps IE */ + -webkit-tap-highlight-color: rgba(0,0,0,0); + z-index: 8040; +} + +.fancybox-prev { + left: 0; +} + +.fancybox-next { + right: 0; +} + +.fancybox-nav span { + position: absolute; + top: 50%; + width: 36px; + height: 34px; + margin-top: -18px; + cursor: pointer; + z-index: 8040; + visibility: hidden; +} + +.fancybox-prev span { + left: 10px; + background-position: 0 -36px; +} + +.fancybox-next span { + right: 10px; + background-position: 0 -72px; +} + +.fancybox-nav:hover span { + visibility: visible; +} + +.fancybox-tmp { + position: absolute; + top: -99999px; + left: -99999px; + visibility: hidden; + max-width: 99999px; + max-height: 99999px; + overflow: visible !important; +} + +/* Overlay helper */ + +.fancybox-lock { + overflow: hidden !important; + width: auto; +} + +.fancybox-lock body { + overflow: hidden !important; +} + +.fancybox-lock-test { + overflow-y: hidden !important; +} + +.fancybox-overlay { + position: absolute; + top: 0; + left: 0; + overflow: hidden; + display: none; + z-index: 8010; + background: url('../lib/fancybox/fancybox_overlay.png'); +} + +.fancybox-overlay-fixed { + position: fixed; + bottom: 0; + right: 0; +} + +.fancybox-lock .fancybox-overlay { + overflow: auto; + overflow-y: scroll; +} + +/* Title helper */ + +.fancybox-title { + visibility: hidden; + font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; + position: relative; + text-shadow: none; + z-index: 8050; +} + +.fancybox-opened .fancybox-title { + visibility: visible; +} + +.fancybox-title-float-wrap { + position: absolute; + bottom: 0; + right: 50%; + margin-bottom: -35px; + z-index: 8050; + text-align: center; +} + +.fancybox-title-float-wrap .child { + display: inline-block; + margin-right: -100%; + padding: 2px 20px; + background: transparent; /* Fallback for web browsers that doesn't support RGBa */ + background: rgba(0, 0, 0, 0.8); + -webkit-border-radius: 15px; + -moz-border-radius: 15px; + border-radius: 15px; + text-shadow: 0 1px 2px #222; + color: #FFF; + font-weight: bold; + line-height: 24px; + white-space: nowrap; +} + +.fancybox-title-outside-wrap { + position: relative; + margin-top: 10px; + color: #fff; +} + +.fancybox-title-inside-wrap { + padding-top: 10px; +} + +.fancybox-title-over-wrap { + position: absolute; + bottom: 0; + left: 0; + color: #fff; + padding: 10px; + background: #000; + background: rgba(0, 0, 0, .8); +} + +/*Retina graphics!*/ +@media only screen and (-webkit-min-device-pixel-ratio: 1.5), + only screen and (min--moz-device-pixel-ratio: 1.5), + only screen and (min-device-pixel-ratio: 1.5){ + + #fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { + background-image: url('fancybox_sprite@2x.png'); + background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/ + } + + #fancybox-loading div { + background-image: url('fancybox_loading@2x.gif'); + background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/ + } +} + +/* Resizable +----------------------------------*/ +.ui-resizable { position: relative;} +.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; } +.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } +.ui-resizable-n { cursor: n-resize; height: 9px; width: 9px; top: -5px; left: 50%; margin-left: -4px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-s { cursor: s-resize; height: 9px; width: 9px; bottom: -5px; left: 50%; margin-left: -4px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-e { cursor: e-resize; width: 9px; right: -5px; top: 50%; margin-top: -4px; height: 9px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-w { cursor: w-resize; width: 9px; left: -5px; top: 50%; height: 9px; margin-top: -4px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: -5px; bottom: -5px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; background: rgba(255, 255, 255, 0.5);} +.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px; background: rgba(255, 255, 255, 0.5);} + +.photoTag-taglist{ + list-style:none; + padding: 0; +} +.photoTag-taglist li{ + margin-left: 0; + display: inline; + padding: 0; +} +.tg-close { + display: block; + position: absolute; + right: 0; + top: 0; + width: 32px; + height: 32px; + cursor: pointer; + z-index: 100; +} +.tg-close:before { + content: ''; + display: block; + width: 10px; + height: 10px; + background: url(../img/sprites.png) -227px -149px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -5px 0 0 -5px; +} +.taghover:before { + content: ''; + display: block; + width: 100%; + height: 100%; + position: absolute; + left: 0; + top: 0; +} +.taghover .tg-close { + width: 18px; + height: 18px; +} +.taghover .tg-close:before { + background: url('static/img/x.png') 0 0 no-repeat; + left: 8px; + top: 9px; +} + +.taghover .tg-close:hover:before { + background-position: 0 -32px; +} +.tg-close:hover:before { + background-position: -227px -160px ; +} +.photoTag-taglist a.tg-close { + display: inline; + margin: 0; + padding: 0 5px 0 3px; + text-decoration: none; + position: relative; +} +.photoTag-wrap { + overflow: hidden; +} +.utag-right, .utag-left { + width: 2000px; + background: rgba(0, 0, 0, 0.5); + position: absolute; + top: 0; +} +.utag-left { + left: -2000px; +} +.utag-top, .utag-bot { + width: 4000px; + background: rgba(0, 0, 0, 0.5); + position: absolute; + height: 2000px; + left: -2000px; +} +.utag-top { + top: -2000px; +} +.taghover { + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + z-index: 3014; + background-color: rgba(255, 255, 255, 0.01); +} +#expoNewTagForm { + background-color: #FFFFFF; + padding: 10px; + overflow:hidden; + position: absolute; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + line-height: 100%; + z-index: 1039; +} +#expoNewTagForm button { + padding: 0 27px; + margin: 10px 0 0 0; +} +.ptListHolder ul { + position:relative; + display: block; + min-height: 24px; + width: 120px; + background: #ffffff; +} +.ptListHolder ul li { + padding: 0; + margin:0; + border-bottom: 1px solid #DDDDDD; +} +.ptListHolder ul li a { + padding: 10px 5px 10px 5px!important; + text-align: left; + display: block!important; +} +.photoTag-tag { + border: 1px solid rgba(255, 255, 255, 0.7); + background-color: transparent; + overflow: hidden; + z-index:1021; +} +#photoTag-tag_expo { + overflow: visible; +} +.photoTag-tag .photoTag-delete { + background:url('/x2.png') no-repeat; + width:25px; + height:29px; + display:inline; + z-index:3200; + position:absolute; + right:-22px; + cursor:pointer; + opacity: 0.8; +} +#expoNewTagForm input{ + display: block; +} +#expoNewTagForm input[type="text"] { + padding: 0 5px 0 5px; + font-size: 14px; + height: 36px; +} +#expoNewTagForm label{ + width: auto; + float: left; + color: #FF6600; + line-height: 100%; + text-align: left; + line-height: 21px; +} +#expoNewTagForm .inputSubmit +{ + color: #FF6600; + background-color: #ffffff; + border: 1px solid #ffffff; + -moz-border-radius-topleft: 5px; + -webkit-border-top-left-radius: 5px; + -moz-border-radius-topright: 5px; + -webkit-border-top-right-radius: 5px; + -moz-border-radius-bottomleft: 5px; + -webkit-border-bottom-left-radius: 5px; + -moz-border-radius-bottomright: 5px; + -webkit-border-bottom-right-radius: 5px; +} +#expoNewTagForm .inputSubmit { + float: right; + margin: 5px 0 0; + padding: 5px; +} +#expoNewTagForm .inputCancel { + border: 0 none; +} + +.innerTag{ + float: left; + background-color: #FF6600; + padding: 3px; + height: 14px; + position: relative; + line-height: 100%; + top: -23px; + left: 0; + font-size: 12px; + color: #ffffff; + -moz-border-radius-topleft: 5px; + -webkit-border-top-left-radius: 5px; + -moz-border-radius-topright: 5px; + -webkit-border-top-right-radius: 5px; +} + +.c-select-box.places .csb-title ul.ui-autocomplete { + background: none repeat scroll 0 0 #FFFFFF; + border: 1px solid #CCCCCC; + margin-left: 0; + z-index: 1020; +} + +.c-select-box.places .csb-title ul.ui-autocomplete li +{ + margin-bottom: 5px; +} +.places-list ul li a:before, .topics-list ul li a:before { + content: ""; + display: block; + height: 8px; + left: -12px; + position: absolute; + top: 50%; + margin-top: -4px; + width: 8px; + z-index: 1; + background: url('../img/sprites.png') no-repeat -83px -16px; +} +.places-list > ul > li.active > a:before,.level2.active > a:before, .topics-list > ul > li.active > a:before { + content: ""; + display: block; + height: 8px; + left: -12px; + position: absolute; + top: 3px; + width: 8px; + z-index: 1; + background: url('../img/sprites.png') no-repeat -86px -24px; +} +.places-list > ul > li.active > a:before, .topics-list > ul > li.active > a:before{ + margin-top: 2px; +} +.level2.active > a:before{ + margin-top: 2px; +} + +.c-select-box-wrap .custom-radio-check:before { + content: ''; + width: 13px; + height: 13px; + display: block; + position: absolute; + top: 50%; + margin-top: -5px; + left: -16px; + z-index: 1; + background: url('../img/sprites.png') no-repeat -345px -135px ; +} +.c-select-box-wrap .custom-radio-check.active:before { + content: ''; + width: 13px; + height: 13px; + display: block; + position: absolute; + top: 50%; + margin-top: -6px; + left: -17px; + z-index: 1; + background: url('../img/sprites.png') no-repeat -46px -16px; +} +.ac-custom-message { + background: none repeat scroll 0 0 #FFFFFF; + border: 1px solid #CCCCDC; + border-radius: 5px; + padding: 5px 10px 5px 25px; + position: absolute; + z-index: 1415; + display: none; +} +.ac-custom-message span:before { + background: url("../img/sprites.png") no-repeat scroll -106px -16px #FFFFFF; + content: ""; + display: block; + height: 10px; + left: 7px; + position: absolute; + top: 19px; + width: 13px; + z-index: 1416; +} +/* ******************************************************* */ +/* Select2 plugin styles */ +/* ******************************************************* */ + +.select2-container { + position: relative; + display: inline-block; + vertical-align: middle; + margin: 0; + word-spacing: normal; +} + +.mf-field .select2-container { + width: 100%; +} + +.select2-container ul, +.select2-drop ul { + margin: 0; + padding: 0; + list-style: none; +} + +.select2-container, +.select2-drop, +.select2-search, +.select2-search input { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.select2-container .select2-choice, +.select2-container .select2-choices { + position: relative; + display: block; + border: 1px solid #bdbdbd; + background: #fff; + width: 100%; + /*padding: 5px 30px 2px 3px;*/ + padding-right: 30px; + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + line-height: 19px; + text-decoration: none; + overflow: hidden; + white-space: nowrap; + color: #464646; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + -webkit-box-shadow: inset 0 2px 2px -2px #aaa; + -moz-box-shadow: inset 0 2px 2px -2px #aaa; + box-shadow: inset 0 2px 2px -2px #aaa; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + + -webkit-transition: none; + -moz-transition: none; + -ms-transition: none; + -o-transition: none; + transition: none; +} + +.select2-container .select2-choices { + height: auto; + min-height: 40px; + cursor: text; +} + +.select2-container-active .select2-choice, +.select2-container-active .select2-choices { + /*border: 2px solid #ff6600;*/ + outline: none; + padding-right: 29px; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + border-radius: 4px; +} + +.select2-dropdown-open .select2-choice, +.select2-dropdown-open .select2-choices { + border: 2px solid #ff6600; + border-bottom: 0; + padding-right: 29px; + border-bottom: none; + -webkit-border-radius: 3px 3px 0 0; + -moz-border-radius: 3px 3px 0 0; + border-radius: 3px 3px 0 0; +} + +.select2-dropdown-open.select2-drop-above .select2-choice, +.select2-dropdown-open.select2-drop-above .select2-choices { + padding: 6px 26px 1px 2px; + border-bottom: 2px solid #ff6600; + border-top: none; + -webkit-border-radius: 0 0 3px 3px; + -moz-border-radius: 0 0 3px 3px; + border-radius: 0 0 3px 3px; +} + +.select2-container-multi .select2-choices:after { + content: " "; + display: block; + width: 8px; + height: 5px; + overflow: hidden; + background: url(../img/sprites.png) -86px -27px no-repeat; + position: absolute; + right: 12px; + top: 17px; +} + +.select2-container-multi.select2-container-active .select2-choices:after { + right: 11px; + top: 16px; +} + +.select2-dropdown-open.select2-drop-above .select2-choices:after { + right: 11px; + top: 18px; +} + +.select2-container-multi.select2-container-disabled .select2-choices { + background: #fff; + /*border: 1px solid #bdbdbd;*/ + cursor: default; +} + +.select2-container.select2-allowclear .select2-choice .select2-chosen { + margin-right: 30px; +} + +.select2-container .select2-choice > .select2-chosen { + display: block; + padding: 7px 0 6px 16px; + margin-right: 0; + line-height: 15px; + overflow: hidden; + + white-space: nowrap; + + text-overflow: ellipsis; + float: none; + width: auto; +} + +.select2-search-choice-close { + display: block; + position: absolute; + right: 0; + top: 0; + width: 25px; + height: 0; + padding-top: 26px; + overflow: hidden; + background: none; + outline: none; +} + +.select2-container-multi .select2-search-choice-close { + left: auto; +} + +.select2-search-choice-close:before { + content: ''; + display: inline-block; + width: 8px; + height: 8px; + background: url(../img/sprites.png) -134px -16px no-repeat; + position: absolute; + left: 50%; + top: 50%; + margin: -3px 0 0 -4px; +} + +.select2-container .select2-choice abbr { + display: none; + width: 30px; + height: 38px; + padding-top: 0; + position: absolute; + right: 30px; + top: 0; + + font-size: 1px; + text-decoration: none; + + border: 0; + background: none; + cursor: pointer; + outline: 0; +} + +.select2-container.select2-allowclear .select2-choice abbr { + display: block; +} + +.select2-container.select2-container-active.select2-allowclear .select2-choice abbr { + /*height: 36px;*/ + right: 29px; +} + +.select2-dropdown-open.select2-drop-above.select2-allowclear .select2-choice abbr { + margin-top: 2px; +} + +.select2-container.select2-allowclear .select2-choice abbr:before { + background-position: -74px -160px; +} + +.select2-container .select2-choice abbr:hover:before { + background-position: -134px -16px; +} + +.select2-container .select2-choice .select2-arrow { + display: block; + width: 29px; + height: 100%; + position: absolute; + right: 0; + top: 0; + + -webkit-border-radius: 0 3px 3px 0; + -moz-border-radius: 0 3px 3px 0; + border-radius: 0 3px 3px 0; +} + +.select2-container.select2-container-active .select2-choice .select2-arrow { + width: 28px; +} + +.select2-container .select2-choice .select2-arrow b { + display: block; + width: 8px; + height: 5px; + overflow: hidden; + background: url(../img/sprites.png) -86px -27px no-repeat; + position: absolute; + right: 12px; + top: 50%; + margin-top: -2px; +} + +.select2-container.select2-dropdown-open.select2-drop-above .select2-choice .select2-arrow b { + top: 18px; +} + +.select2-container.select2-container-active .select2-choice .select2-arrow b { + right: 11px; + top: 16px; +} + +.select2-drop-mask { + position: fixed; + left: 0; + top: 0; + z-index: 9998; + height: auto; + width: auto; + min-height: 100%; + min-width: 100%; + border: 0; + margin: 0; + padding: 0; + background-color: #fff; + opacity: 0; + filter: alpha(opacity=0); +} + + +.select2-drop { + position: absolute; + top: 100%; + z-index: 9999; + width: 100%; + padding: 0 10px 10px; + background: #fff; + color: #000; + border: 2px solid #ff6600; + border-top: none; + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + -webkit-border-radius: 0 0 4px 4px; + -moz-border-radius: 0 0 4px 4px; + border-radius: 0 0 4px 4px; +} + +.select2-drop.select2-drop-above { + padding: 10px 10px 0; + border-top: 2px solid #ff6600; + border-bottom: 0; + border-radius: 4px 4px 0 0; +} + +.select2-drop-active { + border-color: #ff6600; +} + +.select2-drop-auto-width { + border-top: 1px solid #aaa; + width: auto; +} + +.select2-drop-auto-width .select2-search { + padding-top: 4px; +} + +.select2-drop-active:before { + content: ''; + display: block; + border-top: 1px dotted #cccccc; + margin: 4px 0 5px; +} + +.select2-drop.select2-drop-above.select2-drop-active:before { + content: none; +} + +.select2-drop.select2-drop-above.select2-drop-active:after { + content: ''; + display: block; + border-bottom: 1px dotted #cccccc; + margin: 10px 0 4px; +} + + +.select2-search { + display: block; + width: 100%; + min-height: 26px; + margin: 0; + padding: 0 10px 10px; + + position: relative; + z-index: 10000; + + white-space: nowrap; +} + +.select2-search:after { + content: ''; + display: block; + width: 100%; + border-bottom: 1px dotted #cccccc; + padding: 0 10px; + margin: 5px -10px 0; +} + +.select2-search input[type='text'] { + position: relative; + width: 100%; + height: 26px; + border: none; + padding: 0; + margin: 0; + outline: 0; + font-family: 'dindisplay_pro', sans-serif; + font-size: 15px; + line-height: 26px; + + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + + background: #fff url('../img/select2/select2.png') no-repeat 100% -22px; +} + +.select2-search input:focus { + border: none; +} + +.select2-search input.select2-active { + background: #fff url('../img/select2/select2-spinner.gif') no-repeat 100%; +} + +.select2-hidden-accessible { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + + +.select2-default { + color: #a2a2a2 !important; +} + + +/* results */ +.select2-results { + max-height: 200px; + padding: 0 0 0 5px; + margin: 5px 5px 5px 0; + position: relative; + overflow-x: hidden; + overflow-y: auto; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} + +html[dir="rtl"] .select2-results { + padding: 0 5px 0 0; + margin: 5px 0 5px 5px; +} + +.select2-results ul.select2-result-sub { + margin: 0; + padding-left: 0; +} + +.select2-results li { + list-style: none; + display: list-item; + background-image: none; +} + +.select2-results li.select2-result-with-children > .select2-result-label { + font-weight: bold; +} + +.select2-results .select2-result-label { + padding: 3px 7px 4px; + margin: 0; + cursor: pointer; + + min-height: 1em; + + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.select2-results-dept-1 .select2-result-label { padding-left: 20px } +.select2-results-dept-2 .select2-result-label { padding-left: 40px } +.select2-results-dept-3 .select2-result-label { padding-left: 60px } +.select2-results-dept-4 .select2-result-label { padding-left: 80px } +.select2-results-dept-5 .select2-result-label { padding-left: 100px } +.select2-results-dept-6 .select2-result-label { padding-left: 110px } +.select2-results-dept-7 .select2-result-label { padding-left: 120px } + +.select2-results .select2-highlighted { + background: none; + color: #ff6600; +} + +.select2-results li em { + background: #feffde; + font-style: normal; +} + +.select2-results .select2-highlighted em { + background: transparent; +} + +.select2-results .select2-highlighted ul { + background: #fff; + color: #000; +} + +.select2-results .select2-no-results, +.select2-results .select2-searching, +.select2-results .select2-ajax-error, +.select2-results .select2-selection-limit { + background: #f4f4f4; + display: list-item; + padding-left: 5px; +} + +/* +disabled look for disabled choices in the results dropdown +*/ +.select2-results .select2-disabled.select2-highlighted { + color: #666; + background: #f4f4f4; + display: list-item; + cursor: default; +} +.select2-results .select2-disabled { + background: #f4f4f4; + display: list-item; + cursor: default; +} + +.select2-results .select2-selected { + display: none; +} + +.select2-more-results.select2-active { + background: #f4f4f4 url('../img/select2/select2-spinner.gif') no-repeat 100%; +} + +.select2-results .select2-ajax-error { + background: rgba(255, 50, 50, .2); +} + +.select2-more-results { + background: #f4f4f4; + display: list-item; +} + +/* disabled styles */ + +.select2-container.select2-container-disabled .select2-choice { + background: #ffffff; + cursor: default; +} + +.select2-container.select2-container-disabled .select2-choice .select2-arrow { + background: none; + border-left: 0; +} + +.select2-container.select2-container-disabled .select2-choice abbr { + display: none; +} + + + +/* multiselect */ + + +.select2-container-multi .select2-choices .select2-search-choice { + position: relative; + padding: 6px 25px 5px 15px; + margin: 0 3px 3px 0; + border: 1px solid #ff6600; + line-height: 15px; + color: #ff6600; + cursor: default; + + background: #ffffff; + + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.select2-locked { + padding: 3px 5px 3px 5px !important; +} + +.select2-container-multi .select2-choices li { + float: left; + list-style: none; +} + +html[dir="rtl"] .select2-container-multi .select2-choices li +{ + float: right; +} + +.select2-container-multi .select2-choices .select2-search-field { + margin: 0; + padding: 0; + white-space: nowrap; +} + +.select2-container-multi .select2-choices .select2-search-field input { + background: none !important; + border: none; + outline: none; + color: #666; + margin: 0; + padding: 0 5px; + height: 29px; + font-family: 'dindisplay_pro', sans-serif; + line-height: 27px; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.select2-container-multi .select2-choices .select2-search-field:first-child input { + padding: 0 20px; +} + +/* end multiselect */ + + +.select2-result-selectable .select2-match, +.select2-result-unselectable .select2-match { + text-decoration: underline; +} + +.select2-offscreen, .select2-offscreen:focus { + clip: rect(0 0 0 0) !important; + width: 1px !important; + height: 1px !important; + border: 0 !important; + margin: 0 !important; + padding: 0 !important; + overflow: hidden !important; + position: absolute !important; + outline: 0 !important; + left: 0px !important; + top: 0px !important; +} + +.select2-display-none { + display: none; +} + +.select2-measure-scrollbar { + position: absolute; + top: -10000px; + left: -10000px; + width: 100px; + height: 100px; + overflow: scroll; +} diff --git a/static/client/css_min/main.min.css b/static/client/css_min/main.min.css new file mode 100644 index 00000000..62ebcec0 --- /dev/null +++ b/static/client/css_min/main.min.css @@ -0,0 +1 @@ +.page-wrap .layout .layout-wrap:after,hr{clear:both}a.l-button.ico:before,img{vertical-align:middle}.cabinet-links .cl-body a,.header-body .hb-wrap ul a,.page-wrap>header .logo a,.rub,a.l-button,a:hover{text-decoration:none}.a-graphic table,.calendar-container table,.mp-catalog-lists,.search-form-wrap,.sf-field,.tp-btn-wrap,.tp-wrap,.ui-datepicker table{border-collapse:collapse}button,html,input,select,textarea{color:#222}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}hr{height:1px;padding:0}fieldset{border:0;margin:0;padding:0}.chromeframe{background:#c00;color:#fee;padding:1em;margin:0;font-size:16px}.chromeframe a{color:#fee}.chromeframe a:hover{color:#fff}@font-face{font-family:dindisplay_pro;src:url(../fonts/pfdindisplaypro-med-webfont.eot);src:url(../fonts/pfdindisplaypro-med-webfont.eot?#iefix) format('embedded-opentype'),url(../fonts/pfdindisplaypro-med-webfont.woff) format('woff'),url(../fonts/pfdindisplaypro-med-webfont.ttf) format('truetype'),url(../fonts/pfdindisplaypro-med-webfont.svg#pf_dindisplay_promedium) format('svg');font-weight:500;font-style:normal}@font-face{font-family:dindisplay_pro;src:url(../fonts/pfdindisplaypro-thin-webfont.eot);src:url(../fonts/pfdindisplaypro-thin-webfont.eot?#iefix) format('embedded-opentype'),url(../fonts/pfdindisplaypro-thin-webfont.ttf) format('truetype'),url(../fonts/pfdindisplaypro-thin-webfont.woff) format('woff');font-weight:100;font-style:normal}@font-face{font-family:dindisplay_pro;src:url(../fonts/pfdindisplaypro-light-webfont.eot);src:url(../fonts/pfdindisplaypro-light-webfont.eot?#iefix) format('embedded-opentype'),url(../fonts/pfdindisplaypro-light-webfont.woff) format('woff'),url(../fonts/pfdindisplaypro-light-webfont.ttf) format('truetype');font-weight:300;font-style:normal}@font-face{font-family:dindisplay_pro;src:url(../fonts/pfdindisplaypro-italic-webfont.eot);src:url(../fonts/pfdindisplaypro-italic-webfont.eot?#iefix) format('embedded-opentype'),url(../fonts/pfdindisplaypro-italic-webfont.woff) format('woff'),url(../fonts/pfdindisplaypro-italic-webfont.ttf) format('truetype');font-weight:400;font-style:italic}@font-face{font-family:dindisplay_pro;src:url(../fonts/pfdindisplaypro-bold-webfont.eot);src:url(../fonts/pfdindisplaypro-bold-webfont.eot?#iefix) format('embedded-opentype'),url(../fonts/pfdindisplaypro-bold-webfont.ttf) format('truetype'),url(../fonts/pfdindisplaypro-bold-webfont.woff) format('woff');font-weight:700;font-style:normal}@font-face{font-family:dindisplay_pro;src:url(../fonts/pfdindisplaypro-reg-webfont.eot);src:url(../fonts/pfdindisplaypro-reg-webfont.eot?#iefix) format('embedded-opentype'),url(../fonts/pfdindisplaypro-reg-webfont.woff) format('woff'),url(../fonts/pfdindisplaypro-reg-webfont.ttf) format('truetype');font-weight:400;font-style:normal}@font-face{font-family:pt_sans;src:url(../fonts/pts75f-webfont.eot);src:url(../fonts/pts75f-webfont.eot?#iefix) format('embedded-opentype'),url(../fonts/pts75f-webfont.woff) format('woff'),url(../fonts/pts75f-webfont.ttf) format('truetype');font-weight:700;font-style:normal}@font-face{font-family:pt_sans;src:url(../fonts/pts55f-webfont.eot);src:url(../fonts/pts55f-webfont.eot?#iefix) format('embedded-opentype'),url(../fonts/pts55f-webfont.woff) format('woff'),url(../fonts/pts55f-webfont.ttf) format('truetype');font-weight:400;font-style:normal}body,html{margin:0;padding:0;height:100%;background:#f8f8f6;color:#464646;font-family:Arial,'Helvetica Neue',sans-serif;font-weight:400;font-style:normal;font-size:13px;line-height:18px;-webkit-font-smoothing:antialiased}body{position:relative;height:auto;min-width:1024px}body.no-scroll{overflow:hidden}a{color:#f60;background:0 0;outline:0!important;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}a[class*=icon-]:before{content:' ';display:inline-block;vertical-align:middle;width:16px;height:16px;background:url(../img/sprites.png) no-repeat;margin-right:4px}a.icon-mail:before{width:15px;height:12px;background-position:-223px 0}a.icon-ext-link:before{width:15px;height:13px;background-position:-261px 0}hr{display:block;border:dotted #ccc;border-width:1px 0 0;margin:17px 0;background:0 0}.lt-ie9 .header-body .header-top,.lt-ie9 .main-page .page-wrap .header-wrap{border-bottom:1px solid #ddd}.e-details .item-wrap.event+hr{margin-top:5px}.rub{font-style:normal}.rub:before{content:'\20CF';font-family:pt_sans,sans-serif}.rub i{display:none}.page-wrap{-moz-box-sizing:border-box;box-sizing:border-box;width:1024px;max-width:1310px;padding:0 7px;margin:0 auto}.page-wrap .layout{padding-left:13px}.page-wrap .layout .layout-wrap{padding-left:220px}.page-wrap .layout .layout-wrap:after,.page-wrap .layout .layout-wrap:before{content:" ";display:table}.page-wrap .layout .layout-wrap>*{-moz-box-sizing:border-box;box-sizing:border-box}.page-wrap .layout .layout-wrap>aside{position:relative;float:left;width:220px;padding-right:40px;margin:0 -100% 0 -220px}.page-wrap .layout.main-part .layout-wrap>aside{padding-top:30px}.page-wrap .layout .layout-wrap>aside>.sbg{width:200em;height:150px;background:url(../img/search-bg.jpg) no-repeat #f60;position:absolute;margin-right:40px;right:100%;top:0;border-radius:4px}.page-wrap .layout .layout-wrap .mcl{width:100%;float:right}.page-wrap .layout.mp-announces .layout-wrap{padding:0 257px 0 220px}.page-wrap .layout.mp-announces .layout-wrap aside{float:right;margin-right:-257px;padding-right:0;width:257px}.page-wrap .layout.mp-announces .layout-wrap .mcl{float:left;padding-right:40px}.page-wrap>header{font-family:dindisplay_pro,Arial,sans-serif}.cabinet-links .cl-body,a.l-button{font-family:dindisplay_pro,sans-serif}.page-wrap .header-wrap{padding:5px 0}.main-page .page-wrap .header-wrap{padding:5px 10px 5px 230px;margin:0 -10px;box-shadow:0 3px 6px -5px rgba(0,0,0,.4)}@-moz-document url-prefix(){.main-page .page-wrap .header-wrap{box-shadow:0 3px 5px -5px rgba(0,0,0,.3)}}.page-wrap>header .logo{width:220px;padding:38px 0 0;float:left;margin:0 -100% 0 -220px;-moz-box-sizing:border-box;box-sizing:border-box}.page-wrap>header .logo h1,.page-wrap>header .logo h2,.page-wrap>header .logo h3{-moz-box-sizing:border-box;box-sizing:border-box;margin:0 0 0 -13px;width:196px;padding-left:67px;font-family:dindisplay_pro,sans-serif;font-weight:500;font-style:normal;font-size:13px;line-height:13px}.page-wrap>header .logo a{color:#a2a2a2}.page-wrap>header .logo strong{display:block;width:196px;height:0;padding-top:59px;overflow:hidden;background:url(../img/logo.png) no-repeat;margin-left:-67px}.page-wrap>header .logo.beta strong{background:url(../img/logo_beta.png) no-repeat;width:225px}.page-wrap>header .logo b{margin-top:-8px;display:block;font-weight:400}.page-wrap>header .header-body{width:79%;min-width:770px;float:right}.header-body .header-top{-moz-box-sizing:border-box;box-sizing:border-box;padding:5px 510px 1px 25px;margin:0 -10px 0 -25px;font-size:12px;line-height:25px;text-transform:uppercase;box-shadow:0 3px 6px -5px rgba(0,0,0,.4)}@-moz-document url-prefix(){.header-body .header-top{box-shadow:0 3px 5px -5px rgba(0,0,0,.3)}}.header-body .header-top.coordinators{padding-right:10px}.header-body ul{margin:0;padding:0;list-style:none}.header-body .header-top ul li{display:inline}.header-body .header-top .ht-main{width:100%;float:left}.header-body .header-top.coordinators .ht-main{width:auto}.header-body .header-top .add-link{width:50%;float:left}a.l-button{color:#f60;font-weight:500;font-size:12px;line-height:15px;display:inline-block;margin-left:-21px;padding:5px;border:1px solid transparent;border-radius:4px}a.l-button:hover{color:#000}a.l-button.ico:before{content:' ';display:inline-block;width:11px;height:12px;background:url(../img/sprites.png) no-repeat;margin:-1px 4px 0 0}.add-link a.l-button.ico:hover:before{background-position:-63px -145px}.header-body .header-top ul{float:left}.header-body .header-top .lang-switch{width:50%;color:#a2a2a2}.header-body .header-top.coordinators .lang-switch{width:auto}.header-body .header-top .lang-switch li:before{content:'|';margin:-1px 7px 0 3px}.header-body .header-top .lang-switch li:first-child:before{content:'';margin:0;display:none}.header-body .header-top .lang-switch a{color:#464646}.header-body .header-top .lang-switch a:hover{color:#f60}.header-body .header-top .ht-side{width:510px;margin-right:-510px;float:right}.header-body .header-top.coordinators .ht-side{width:auto;margin-right:0}.header-body .header-top .authorisation-links{float:right;font-weight:500;text-decoration:none}.header-body .header-top .authorisation-links a{margin:0 -6px 0 16px}.header-body .header-top .authorisation-links a:first-child{margin-left:0}.header-body .header-top .authorisation-links a.register{color:#000}.header-body .header-top .authorisation-links a.register:hover{color:#f60}.header-body .header-top .authorisation-links a.register:before{background-position:-12px 0;height:13px;margin-top:-2px}.header-body .header-top .authorisation-links a.register:hover:before{background-position:-24px 0}.header-body .header-top .authorisation-links a.login:before{background-position:-36px 0;width:9px;height:12px;margin-top:-2px}.header-body .header-top .authorisation-links a.login:hover:before{background-position:-75px -145px}.cabinet-links{float:right;padding-right:35px;width:360px;-moz-box-sizing:border-box;box-sizing:border-box}.coordinators .cabinet-links{width:auto}.cabinet-links .cl-body{width:100%;float:left;background:#f60;color:#fff;font-size:11px;line-height:20px;font-weight:700;text-transform:uppercase;padding-left:22px;-webkit-border-bottom-right-radius:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomright:4px;-moz-border-radius-bottomleft:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;-moz-box-sizing:border-box;box-sizing:border-box;height:44px;margin-top:-10px;margin-bottom:-4px}.button,.e-form button,.mp-top .recent-expo .re-date,.mp-top .recent-expo .re-title,.page-wrap>footer,.pgc-buttons button,nav ul{font-family:dindisplay_pro,Arial,sans-serif}.cabinet-links .cl-body>div,.cabinet-links .cl-body>ul{display:block;border-left:1px solid #fff;float:left;height:30px;margin-top:14px;padding-left:2px;padding-right:2px}.cabinet-links .cl-body .clb-messages{min-width:40px;padding-left:3px}.cabinet-links .cl-body>ul{padding:0 0 12px}.cabinet-links .cl-body>ul>li{display:block;padding:0 2px 12px;margin-bottom:-10px;border-left:1px solid #fff;float:left}.cabinet-links .cl-body>:first-child,.cabinet-links .cl-body>ul>li:first-child{border-left:none}.cabinet-links .cl-body>div.clb-settings{width:32px;float:right}.cabinet-links .cl-body>div.clb-docs{width:57px;padding-left:6px;float:left}.cabinet-links .cl-body>div.clb-docs a.cl-btn{margin-left:-4px;margin-right:-2px}.cabinet-links .cl-body a{color:#fff;position:relative;display:inline-block;height:30px;line-height:30px;padding:0 7px;margin:-6px 0;border:1px solid transparent;border-radius:4px}.cabinet-links .cl-body a:hover{border-color:#fff}.cabinet-links .cl-body .clb-messages a{text-align:center;display:table;margin-left:auto;margin-right:auto}a.icon-msg:before,a.icon-user:before{vertical-align:middle;display:inline-block;margin:-2px 3px 0 -1px}.cabinet-links .cl-body a.cl-btn{width:30px;height:0;padding:30px 0 0;overflow:hidden}a.icon-user:before{content:'';width:11px;height:13px;background:url(../img/sprites.png) -283px -101px no-repeat}a.cl-btn:before,a.icon-msg:before{content:'';width:13px}a.icon-msg:before{height:12px;background:url(../img/sprites.png) -268px -88px no-repeat}a.cl-btn:before{display:block;height:13px;background:url(../img/sprites.png) -283px -88px no-repeat;position:absolute;left:50%;top:50%;margin:-6px 0 0 -6px}a.icon-gear:before{background-position:-268px -101px}a.icon-cal:before{height:15px;background-position:-60px -17px;margin-top:-7px}a.icon-doc:before{width:10px;height:14px;background-position:-74px -16px;margin:-7px 0 0 -5px}.cabinet-links .logout{width:32px;float:right;margin:0 -35px 0 -32px}.cabinet-links .logout a{position:relative;display:block;width:30px;height:0;padding-top:30px;overflow:hidden;border:1px solid transparent;border-radius:4px;margin:-1px 0 -6px}.cabinet-links .logout a:hover{border-color:#f60;background:#fff}.cabinet-links .logout a:before{content:'';display:block;width:13px;height:12px;background:url(../img/sprites.png) -283px -88px no-repeat;position:absolute;left:50%;top:50%;margin:-5px 0 0 -5px}.page-wrap>footer nav>ul>li,nav ul{display:inline-block}.soc-media-buttons{margin:0;padding:0;list-style:none}.soc-media-buttons li{display:inline-block;line-height:18px;margin-left:2px}.soc-media-buttons li:first-child{margin-left:0}.header-body .header-top .soc-media-buttons{width:auto}.header-body .header-top.coordinators .soc-media-buttons{margin-right:10px}.header-body .header-top .soc-media-buttons li{line-height:14px;margin:0 5px 0 0}.header-body .header-top .soc-media-buttons img{height:14px;vertical-align:middle}.header-body .hb-wrap{padding:22px 470px 22px 0}.serv-links{float:left;width:100%}.header-body .hb-wrap ul{-moz-box-sizing:border-box;box-sizing:border-box;width:49.9%;min-width:140px;float:left;padding-right:10px}.header-body .hb-wrap ul li{margin-top:3px}.header-body .hb-wrap ul li:first-child{margin-top:0}.header-body .hb-wrap ul a{color:#a2a2a2}.header-body .hb-wrap ul a:hover{color:#f60;text-decoration:underline}.header-body .hb-wrap .abn{float:right;width:468px;height:60px;border:1px solid #eee;margin-right:-470px}.page-wrap>footer{margin-top:20px}.page-wrap>footer .layout-wrap.footer-wrap{padding:25px 10px 25px 230px;margin:0 -10px;box-shadow:inset 0 3px 6px -5px rgba(0,0,0,.4)}.lt-ie9 .page-wrap>footer .layout-wrap.footer-wrap{border-top:1px solid #ddd}.page-wrap>footer .copy{font-size:12px;color:#f60;margin-bottom:10px}.page-wrap>footer nav{width:65%;float:left}nav ul{margin:0;padding:0;list-style:none;text-transform:uppercase;font-size:13px;line-height:16px}.page-wrap .layout .layout-wrap>aside nav{margin-bottom:20px}.main-page .page-wrap .layout .layout-wrap>aside nav{margin-bottom:0}aside nav>ul.main-menu>li{margin-top:-4px}aside nav>ul.main-menu>li:first-child{margin-top:0}nav>ul>li.sub>span,nav>ul>li>a{display:block;text-decoration:none;padding:4px 6px 2px;border:1px solid transparent;border-radius:4px}@-moz-document url-prefix(){.page-wrap>footer .footer-wrap{box-shadow:inset 0 3px 5px -5px rgba(0,0,0,.3)}nav ul{line-height:17px}nav>ul>li>a{padding:3px 6px 2px}}aside nav>ul.main-menu>li.sub>span,aside nav>ul.main-menu>li>a{padding:5px 10px 3px}nav>ul>li>a:hover{border-color:#f60}nav .main-menu{font-size:25px;line-height:25px;margin:-5px 0 10px -11px}.page-wrap>footer nav .main-menu{font-size:20px;line-height:20px;margin:-3px 0 1px -10px}.page-wrap>footer nav .main-menu>li{margin-left:10px;letter-spacing:1px}.page-wrap>footer nav .main-menu>li:first-child{margin-left:0}.main-menu>li>a,.main-menu>li>span{color:#464646;padding:5px 9px 2px}@-moz-document url-prefix(){.main-menu>li>a{padding:4px 9px 3px}}.page-wrap>footer nav .main-menu>li.sub>a{padding-right:10px}.main-menu li:hover>a{color:#f60;border-color:#f60}.main-menu>li.sub>a,.main-menu>li.sub>span{-webkit-transition:color .3s;-o-transition:color .3s;transition:color .3s}.main-menu>li.sub:hover>a,.main-menu>li.sub:hover>span{color:#ff9e74;background:#f60}.main-menu .sub{position:relative}.main-menu li.sub>a:after,.main-menu li.sub>span:after{content:' ';display:inline-block;vertical-align:middle;width:13px;height:12px;background:url(../img/sprites.png) -46px 0 no-repeat;margin:-3px 0 0 8px}.main-menu .sub:hover>a:after,.main-menu .sub:hover>span:after{background-position:-46px -16px}.page-wrap>footer nav .main-menu li.sub>a:after{width:12px;height:10px;background-position:0 -16px;margin-left:5px}.page-wrap>footer nav .main-menu .sub:hover>a:after{background-position:-13px -16px}.main-menu .sub ul{position:absolute;width:100%;left:0;top:100%;padding:5px 10px;font-size:18px;line-height:22px;letter-spacing:normal;background:#f60;margin-top:-5px;border-radius:4px;-moz-box-sizing:border-box;box-sizing:border-box;display:none}.page-wrap>footer nav .main-menu .sub ul{top:auto;bottom:100%;font-size:16px;line-height:18px;margin:0 0 -5px}.main-menu .sub:hover ul{display:block}.main-menu .sub ul a{text-decoration:none;color:#fff}.main-menu>li.sub ul a:hover{color:#ffc4aa}aside nav ul.s-menu{display:inline-block;font-size:14px;line-height:17px;margin-top:-2px}nav ul.s-menu{margin:0 0 0 -7px}aside nav ul.s-menu>li{margin-top:-2px}.page-wrap>footer nav ul.s-menu>li{margin-left:3px}.page-wrap>footer ul.s-menu>li:first-child,aside nav ul.s-menu>li:first-child{margin:0}aside nav+hr{margin-top:-5px}.page-wrap>footer .counters{width:33.33%;float:right}.page-wrap>footer .counters>ul{display:inline-block;vertical-align:top;margin:0;padding:0;list-style:none;text-align:left}.page-wrap>footer .counters>ul>li{display:inline-block;vertical-align:top;margin:0 0 5px 3px}.swiper-wrapper{margin:0;padding:0;list-style:none}.main-page section.layout{margin:30px 0}.mp-top .recent-expo{position:relative;overflow:hidden;padding-top:5px}.mp-top .recent-expo ul{margin:0;padding:0;list-style:none}.mp-top .recent-expo ul li{float:left;width:100%;display:none}.mp-top .recent-expo ul li:first-child{display:block}.mp-top .recent-expo .re-pict{width:220px;height:220px;margin-right:40px;overflow:hidden;float:left;border-radius:4px;max-width:100%;max-height:100%}.mp-top .recent-expo .re-body{position:relative;overflow:hidden;min-height:220px}.mp-top .recent-expo .re-body .re-info{margin-bottom:70px}.mp-top .recent-expo .re-body .re-info a{text-decoration:none}.mp-top .recent-expo .re-title{font-weight:100;font-size:50px;line-height:48px;margin:0 80px 5px 0}.mp-top .recent-expo .re-title a{text-decoration:none}.mp-top .recent-expo .re-date{font-weight:100;font-size:24px;line-height:27px;color:#464646;margin-bottom:3px}.mp-top .recent-expo .re-date span{color:#afafaf}.mp-top .recent-expo .re-descr{color:#a2a2a2;font-size:14px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis}.mp-top .recent-expo footer{position:absolute;width:100%;bottom:0;left:0}.mp-top .recent-expo .re-buttons{margin-bottom:12px}.mp-top .recent-expo .re-tags{color:#a2a2a2;font-size:11px;line-height:15px}.mp-top .recent-expo .re-tags a{color:#a2a2a2;text-decoration:none}.mp-top .recent-expo .re-tags .re-t-total{color:#d4d4d4;-webkit-transition:color .3s;-o-transition:color .3s;transition:color .3s}.mp-top .recent-expo .re-tags a:hover,.mp-top .recent-expo .re-tags a:hover .re-t-total{color:#f60}.mp-top .recent-expo .re-controls{position:absolute;right:0;top:0;z-index:100;display:none}.mp-top .recent-expo .re-controls.enabled{display:block}.mp-top .recent-expo .re-controls a{position:relative;display:inline-block;width:29px;height:0;padding-top:29px;overflow:hidden;background:#e3e3e3;box-shadow:inset 0 1px 0 rgba(0,0,0,.1),0 1px 0 #fff}.mp-top .recent-expo .re-controls a:before{content:' ';display:block;width:10px;height:12px;background:url(../img/sprites.png) -113px 0 no-repeat;position:absolute;left:50%;top:50%;margin:-6px 0 0 -5px}.mp-top .recent-expo .re-controls a:hover{background:#f60}.mp-top .recent-expo .re-controls a.prev{border-radius:4px 0 0 4px;margin-right:-1px}.mp-top .recent-expo .re-controls a.prev:before{background-position:-113px 0}.mp-top .recent-expo .re-controls a.next{border-radius:0 4px 4px 0;margin-left:-1px}.mp-top .recent-expo .re-controls a.next:before{background-position:-123px 0}.mp-top .recent-expo .re-controls a.next.disabled,.mp-top .recent-expo .re-controls a.prev.disabled{background:#e3e3e3;opacity:.5;cursor:default}.button,.e-form button,.pgc-buttons button{display:inline-block;vertical-align:middle;height:26px;padding:3px 14px 2px;background:0 0;text-decoration:none;color:#f60;border:1px solid #feb17d;text-transform:uppercase;font-weight:700;font-size:13px;line-height:20px;text-shadow:0 1px 0 #fff;border-radius:4px;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background .3s,color .3s;-o-transition:background .3s,color .3s;transition:background .3s,color .3s;word-spacing:normal;white-space:nowrap}.lc{text-transform:none}.button.lc{font-weight:400;line-height:18px}.button.big{height:36px;font-size:15px;line-height:31px;padding:3px 19px 2px}.e-form .button,.e-form button{color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.3)}@-moz-document url-prefix(){.button.lc{line-height:17px}}.button:hover,.e-form button:hover,.pgc-buttons button:hover{border-color:#f60;background:#f60;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.3);box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.e-form .button:hover,.e-form .input-file:hover .button,.e-form button:hover{background:#ff8000;border-color:#fff}.button.blue{border-color:#90c7e0;color:#2592c5}.button.blue.active,.button.blue:hover{border-color:#2592c5;background:#2592c5;color:#fff}.button.blue2{border-color:#7ed4f5;color:#00adef}.button.blue2 i{font-style:normal;color:#1d447d}.button.blue2:hover{border-color:#1d447d;background:#1d447d;color:#00adef}.button.blue2:hover i{color:#fff}.button.green{border-color:#c1e090;color:#87c525}.button.green.active,.button.green:hover{border-color:#87c525;background:#87c525;color:#fff;text-shadow:none}.button.orange,.button.orange:hover{text-shadow:0 1px 0 rgba(0,0,0,.3)}.button.red{border-color:#e87e7d;color:#d90000}.button.red:hover{border-color:#d90000;background:#d90000;color:#fff}.button.grey{border-color:#c6c6c6;color:#b4b4b4}.button.grey:hover{border-color:#b4b4b4;background:#b4b4b4;color:#fff}.button.orange{border-color:#f60;color:#fff;background:#f60;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#ff8000),color-stop(100%,#f60));background:-webkit-linear-gradient(top,#ff8000 0,#f60 100%);background:-o-linear-gradient(top,#ff8000 0,#f60 100%);background:-webkit-linear-gradient(top,#ff8000 0,#f60 100%);background:-o-linear-gradient(top,#ff8000 0,#f60 100%);background:linear-gradient(to bottom,#ff8000 0,#f60 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8000', endColorstr='#ff6600', GradientType=0 )}.cli-photo-list .cli-phg-bot .cli-pb-button .button{height:29px;line-height:22px;padding-top:4px}.button.more,.cli-photo-list .cli-phg-bot .cli-pb-button .button.more{height:29px;font-size:17px;line-height:19px;text-transform:none;padding-top:4px}.button.more:after{content:' ';display:inline-block;vertical-align:middle;width:5px;height:9px;background:url(../img/sprites.png) -148px -16px no-repeat;margin:1px 0 0 10px}.button.b-more:after{content:'';display:inline-block;vertical-align:middle;width:8px;height:12px;background:url(../img/sprites.png) -175px 0 no-repeat;margin:-1px -5px 0 8px}.button.blue.more:after{background-position:-165px -14px}.button.more:hover:after{background-position:-165px -23px}.button[class*=icon-]:before{content:' ';display:inline-block;vertical-align:middle;width:16px;height:16px;background:url(../img/sprites.png) no-repeat;margin:-3px 5px 0 0}.button.big[class*=icon-]:before{margin-right:7px}.button.icon-calendar:before{width:14px;background-position:-60px 0}.button.icon-calendar.active:before,.button.icon-calendar:hover:before{background-position:-60px -16px}.button.icon-calendar-o:before{width:13px;background-position:-183px -145px}.button.icon-calendar-o:hover:before{background-position:-197px -145px}.button.icon-save:before{width:12px;height:13px;background-position:-155px -145px;margin-top:-1px}.button.icon-save:hover:before{background-position:-155px -159px}.button.icon-print:before{width:13px;height:13px;background-position:-169px -145px;margin-top:-2px}.button.icon-print:hover:before{background-position:-169px -159px}.button.icon-note:before{width:11px;height:14px;background-position:-74px 0}.button.icon-note.active:before,.button.icon-note:hover:before{background-position:-74px -16px}.button.icon-sm:before{width:8px;height:9px;background-position:-287px -32px;margin-left:-2px}.button.icon-sm:hover:before{background-position:-287px -41px}.button.icon-edit:before{width:14px;height:13px;background-position:-277px 0}.button.icon-edit:hover:before,.button.orange.icon-edit:before{background-position:-277px -15px}.button.icon-del:before{width:12px;height:14px;background-position:-259px -30px}.button.icon-del:hover:before{background-position:-259px -45px}.button.icon-copy:before{width:15px;height:14px;background-position:-261px 0}.button.icon-copy:hover:before{background-position:-261px -15px}.button.icon-info:before{width:10px;height:11px;background-position:-280px -64px}.button.icon-info:hover:before{background-position:-280px -76px}.button.icon-list:before{width:10px;height:9px}.button.blue.icon-list:before{background-position:-175px -52px}.button.green.icon-list:before{background-position:-186px -52px}.button.icon-list:hover:before{background-position:-197px -52px}.button.icon-msg:before{width:11px;height:11px;background-position:-268px -64px}.button.icon-msg:hover:before{background-position:-268px -76px}.button.icon-photo:before{width:11px;height:11px;background-position:-226px -96px}.button.icon-photo:hover:before{background-position:-226px -108px}.button.icon-reply:before{width:11px;height:12px;background-position:-238px -95px}.button.icon-reply:hover:before{background-position:-238px -108px}.button.icon-go:before{width:8px;height:10px;background-position:-291px -64px}.button.icon-go:hover:before{background-position:-291px -75px}.button.icon-check:before,.pgc-buttons button.icon-check:before{width:13px;height:11px;background-position:-106px -16px}.button.icon-check:hover:before,.button.orange.icon-check:before,.pgc-buttons button.icon-check:hover:before{background-position:-120px -16px}.button.icon-find:before{width:12px;height:13px;background-position:-184px 0}.button.icon-find:hover:before{background-position:-250px -95px}.button.icon-bell:before{width:12px;height:13px;background-position:-211px -49px;margin-top:0}.button.icon-bell:hover:before{background-position:-225px -120px}.button.icon-tag:before{width:10px;height:10px;background-position:-239px 0}.button.icon-tag:hover:before{background-position:-250px 0}.button.icon-clip:before{width:14px;height:16px;background-position:-225px -147px;margin-bottom:-1px}.button.icon-clip:hover:before,.e-form .button.icon-clip:before{background-position:-240px -147px}.button.icon-camera:before{width:16px;height:15px;background-position:-300px -85px}.button.icon-camera:hover:before,.button.orange.icon-camera:before{background-position:-300px -101px}.button.icon-view:before{width:15px;height:11px;background-position:-225px -164px}.button.icon-view:hover:before{background-position:-241px -164px}.button.icon-add:before{width:13px;height:14px;background-position:-268px -116px}.button.icon-add:hover:before{background-position:-282px -116px}.e-price-wrap .button.big.orange,button{border:none;outline:0;height:36px;padding:1px 25px 0;font-family:dindisplay_pro,sans-serif;font-weight:700;font-size:15px;line-height:35px;text-transform:uppercase;text-align:center;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.3);letter-spacing:normal;word-spacing:normal;background:#f60;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#ff8000),color-stop(100%,#f60));background:-webkit-linear-gradient(top,#ff8000 0,#f60 100%);background:-o-linear-gradient(top,#ff8000 0,#f60 100%);background:-webkit-linear-gradient(top,#ff8000 0,#f60 100%);background:-o-linear-gradient(top,#ff8000 0,#f60 100%);background:linear-gradient(to bottom,#ff8000 0,#f60 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8000', endColorstr='#ff6600', GradientType=0 );border-radius:3px;-moz-box-sizing:border-box;box-sizing:border-box}.e-price-wrap .button.big.orange{height:41px;font-size:17px;line-height:40px}.button.orange:hover,.e-price-wrap .button.big.orange:hover,button:hover{background:#ff8000;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fe9150),color-stop(100%,#ff8000));background:-webkit-linear-gradient(top,#fe9150 0,#ff8000 100%);background:-o-linear-gradient(top,#fe9150 0,#ff8000 100%);background:-webkit-linear-gradient(top,#fe9150 0,#ff8000 100%);background:-o-linear-gradient(top,#fe9150 0,#ff8000 100%);background:linear-gradient(to bottom,#fe9150 0,#ff8000 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#fe9150', endColorstr='#ff8000', GradientType=0 )}.pw-form button{padding:2px 25px 0;height:46px;line-height:44px}.pw-form button[class*=icon-]{padding:2px 40px 0 30px}.pw-reg .pw-form button{width:265px;cursor:pointer}button[class*=icon-]:before{content:' ';display:inline-block;vertical-align:middle;background:url(../img/sprites.png) no-repeat;margin:-2px 7px 0 0}button.icon-check:before{width:13px;height:11px;background-position:-120px -16px}button.icon-save:before{width:13px;height:14px;background-position:-203px -16px}button.icon-arrow:before{width:8px;height:12px;background-position:-176px 0}.page-wrap section.layout.search-form .layout-wrap{height:125px;padding:25px 0 25px 420px;margin-left:-200px;border-radius:0 4px 4px 0;box-sizing:border-box}.in-search-form,.page-wrap section.layout.search-form .layout-wrap{font-family:dindisplay_pro,Arial,sans-serif;font-weight:400;font-size:14px;line-height:18px;color:#fff;background:url(../img/search-bg.jpg) 100% 100% no-repeat #f60;-moz-box-sizing:border-box}.in-search-form{position:relative;height:150px;margin:0 0 15px -40px;padding:30px 0 5px 40px;z-index:3;border-radius:4px;box-sizing:border-box}.in-search-form .s-title,.search-form aside .s-title{text-transform:uppercase;font-size:25px;line-height:25px}.modals .popup-window{display:none}.search-form aside .s-title{white-space:nowrap;margin-right:-20px}.in-search-form .s-title{margin-bottom:15px}.search-form .mcl{padding-right:50px}.search-form-wrap{display:table;width:100%}.search-form-wrap .search-line{display:table-row}.search-form-wrap .search-line .sf-field-wrap{display:table-cell;vertical-align:middle;padding:0 10px 8px 0;color:#ffd9bf;line-height:15px}.search-form-wrap .search-line .sf-field-wrap:first-child{width:48%}.search-form-wrap .search-line .sf-field-wrap+.sf-field-wrap{width:32%}.search-form-wrap .search-line .sf-field-wrap+.sf-field-wrap+.sf-field-wrap{width:20%}.search-line.sl-options a{display:inline-block;color:#fff;text-decoration:none;border-bottom:1px dashed;line-height:13px}.search-line.sl-options a:hover{border-bottom:none}.search-line.sl-options a.sf-clear{position:relative;display:inline-block;vertical-align:middle;border-bottom:none;width:16px;height:0;padding-top:24px;margin:-5px 0 -5px 2px;overflow:hidden}.search-line.sl-options a.sf-clear:before{content:'';display:block;width:6px;height:7px;background:url(../img/sprites.png) -135px -25px no-repeat;position:absolute;left:50%;top:50%;margin:-3px 0 0 -3px}.fancybox-close:before,.mp-photo-gallery .pg-item .pgi-descr .pgi-date b:before,.mp-photo-gallery .re-controls a:before,.mps-sect nav a:after,.online-adviser header b:before,.subscribe-sm ul li a:before,a.more:after{content:' '}.sf-field{position:relative;display:table;width:100%;height:40px;background:#fff;color:#aaa;box-shadow:inset 0 1px 0 #d9d9d9,0 -1px 0 rgba(0,0,0,.2);z-index:1}.sf-field-wrap:first-child .sf-field{border-radius:4px 0 0 4px}.sf-field>*{display:table-cell;vertical-align:middle}.sf-field label{font-size:16px;line-height:20px;font-weight:400;padding:10px 5px 10px 20px;white-space:nowrap}.sf-field .input-text{width:100%;height:100%}.sf-field .input-text input[type=text]{display:block;width:100%;height:100%;background:0 0;border:none;outline:0;padding:10px 10px 10px 0;font-family:dindisplay_pro,Arial,sans-serif;font-weight:400;font-size:16px;line-height:20px;-moz-box-sizing:border-box;box-sizing:border-box}.in-search-form button.modal-approve,.in-search-form button.search_submit,.search-form button.modal-approve,.search-form button.search_submit{display:inline-block;vertical-align:top;height:40px;border:1px solid #fff;outline:0;color:#fff;font-family:dindisplay_pro,Arial,sans-serif;font-weight:700;font-size:15px;line-height:41px;text-transform:uppercase;padding:0 25px;border-radius:0 4px 4px 0;-moz-box-sizing:border-box;box-sizing:border-box;box-shadow:0 1px 0 rgba(0,0,0,.2),inset 0 1px 0 rgba(0,0,0,.2);-webkit-filter:none;filter:none}button.modal-approve{border-radius:4px!important}.in-search-form button.modal-approve:before,.in-search-form button.search_submit:before,.search-form button.modal-approve:before,.search-form button.search_submit:before{content:' ';display:inline-block;vertical-align:middle;width:15px;height:14px;background:url(../img/sprites.png) -98px 0 no-repeat;margin:-2px 5px 0 -1px}.in-search-form button:hover,.search-form button:hover{position:relative;top:-1px}.sf-autocomplete{position:relative;z-index:3048;height:40px;display:none}.sf-autocomplete.show{display:block}.sf-autocomplete .sfa-wrap{position:absolute;left:0;width:100%;top:0;padding:20px;overflow:hidden;-moz-box-sizing:border-box;box-sizing:border-box;box-shadow:0 0 0 3px rgba(0,0,0,.2);visibility:hidden;background:-webkit-gradient(linear,left top,left bottom,color-stop(10%,#fff),color-stop(100%,#efefef));background:-webkit-linear-gradient(top,#fff 10%,#efefef 100%);background:-o-linear-gradient(top,#fff 10%,#efefef 100%);background:-webkit-linear-gradient(top,#fff 10%,#efefef 100%);background:-o-linear-gradient(top,#fff 10%,#efefef 100%);background:linear-gradient(to bottom,#fff 10%,#efefef 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#efefef', GradientType=0 );border-radius:4px 0 4px 4px}.sf-autocomplete .sfa-wrap.show{visibility:visible}.ui-autocomplete{position:relative;width:100%;max-height:265px;overflow-y:auto;overflow-x:hidden;left:0!important;top:0!important;padding:5px 10px 0 0;border-top:1px dotted #ccc;-moz-box-sizing:border-box;box-sizing:border-box}.c-select-box .csb-menu,.custom-select .cs-scroll-container{max-height:230px}.ui-autocomplete-category{font-size:15px;line-height:17px;color:#f60;padding:8px 10px 0 0}.ui-menu .ui-menu-item{padding:0 10px 0 5px;margin-top:2px}.ui-menu .ui-menu-item a{color:#464646;font-size:15px;line-height:15px;border:none;padding:2px 5px;cursor:pointer}.ui-menu .ui-menu-item a.ui-state-active,.ui-menu .ui-menu-item a.ui-state-focus{color:#f60;margin:0}.ui-menu .ui-menu-item a i{font-style:normal;color:#a2a2a2}.in-search-form .modal-clear,.search-form .modal-clear{height:40px;border:1px solid #fff;padding:0 25px;box-shadow:0 1px 0 rgba(0,0,0,.2),inset 0 1px 0 rgba(0,0,0,.2)}.main-page .page-wrap .mp-catalog .layout-wrap{padding:0 10px 30px 230px;margin:0 -10px;box-shadow:0 3px 6px -5px rgba(0,0,0,.4)}.mp-catalog-lists{display:table;table-layout:fixed;width:100%}.mp-catalog-lists .mpc-list{display:table-cell;vertical-align:top;padding-right:40px;width:33.33%;-moz-box-sizing:border-box;box-sizing:border-box}.mp-catalog-lists .mpc-list:first-child{min-width:260px}.mp-catalog-lists .mpc-list header{font-family:dindisplay_pro,Arial,sans-serif;font-weight:100;font-size:28px;line-height:28px;text-transform:uppercase;color:#f60;margin-bottom:10px}.mp-news-list footer,.mp-news-list header,.mp-photo-gallery,.online-adviser header,.s-news-list footer,.s-news-list header,.s-phone .s-callback,.s-phone .s-tel,.subscribe-sm{font-family:dindisplay_pro,sans-serif}.mp-catalog-lists .mpc-list ul{margin:0 0 7px;padding:0;list-style:none;font-size:12px;line-height:15px}.mp-catalog-lists .mpc-list ul li{margin-bottom:4px}.leter-list a,.mp-catalog-lists .mpc-list ul a{color:#464646;text-decoration:none}.mp-catalog-lists .mpc-list ul a span{text-decoration:underline}.mp-catalog-lists .mpc-list ul a i{font-style:normal;color:#aaa}.leter-list a,.mp-catalog-lists .mpc-list ul a,.mp-catalog-lists .mpc-list ul a *{-webkit-transition:color .3s;-o-transition:color .3s;transition:color .3s}.leter-list a:hover,.mp-catalog-lists .mpc-list ul a:hover,.mp-catalog-lists .mpc-list ul a:hover *{color:#f60;text-decoration:none}.mp-catalog-lists .mpc-list footer{font-size:11px}a.more:after{display:inline-block;vertical-align:middle;width:6px;height:7px;background:url(../img/sprites.png) -39px -16px no-repeat;margin-left:5px}a.more.blue2{color:#40bbea}a.more.blue2:after{background-position:-249px -52px}.mp-catalog-lists+.abn{display:inline-block;margin-top:25px;overflow:hidden;border-radius:4px}.main-page .online-adviser .oa-wrap,.main-page .s-phone .sp-wrap{border:none;padding-top:0}.s-phone{margin:0 0 15px;padding-left:25px}.s-phone .s-tel{font-weight:500;font-style:normal;font-size:25px;line-height:25px}.s-phone .s-tel em{display:block;font-style:normal;font-weight:400;font-size:17px;line-height:19px;float:left;margin:0 5px 0 -25px;color:#a2a2a2}@-moz-document url-prefix(){.main-page .page-wrap .mp-catalog .layout-wrap{box-shadow:0 3px 5px -5px rgba(0,0,0,.3)}.s-phone .s-tel em{margin-top:1px}}.main-page .s-phone .s-tel em{color:#f60}.s-phone .s-callback{font-weight:400;font-size:10px;text-transform:uppercase;margin-top:-2px}.s-phone .s-callback a{color:#a2a2a2}.s-phone .s-callback a:hover{color:#f60;text-decoration:none}.online-adviser{margin:0 0 15px;padding-left:40px}.main-page .online-adviser{margin-bottom:40px}.online-adviser header{overflow:hidden;font-weight:500;font-size:16px;text-transform:uppercase;padding-left:40px;margin:0 0 8px -40px}.mp-news-list ul,.s-news-list ul,.subscribe-sm ul{list-style:none;padding:0}.online-adviser header a{color:#464646;text-decoration:none}.online-adviser header b{display:block;font-weight:400;font-size:20px;line-height:20px;text-decoration:underline;color:#87c525}.online-adviser header b:before{display:block;width:31px;height:26px;background:url(../img/sprites.png) 0 -33px no-repeat;float:left;margin:0 -100% 0 -40px}.online-adviser header a,.online-adviser header a *{-webkit-transition:color .3s;-o-transition:color .3s;transition:color .3s}.online-adviser header a:hover,.online-adviser header a:hover *{color:#f60;text-decoration:none}.online-adviser header a:hover b:before{background-position:-84px -145px}.online-adviser .oa-descr{font-size:11px;line-height:14px;color:#a2a2a2}.subscribe-sm header{font-weight:100;font-size:18px;line-height:18px;text-transform:uppercase;margin-bottom:10px}.subscribe-sm ul{margin:0 -100% 0 0;font-size:10px;line-height:13px}.subscribe-sm ul li{display:inline-block;vertical-align:bottom;margin-left:5px}.subscribe-sm ul li:first-child{margin-left:0}.subscribe-sm ul li a{text-decoration:none}.subscribe-sm ul li a:before{display:block;background:url(../img/sprites.png) no-repeat;margin:0 auto 5px}a.icon-big-email{color:#5e5e5e}.subscribe-sm ul li a.icon-big-email:before{width:30px;height:26px;background-position:-32px -33px}a.icon-big-rss{color:#f60}.subscribe-sm ul li a.icon-big-rss:before{width:25px;height:26px;background-position:-91px -33px}a.icon-big-twitter{color:#00bff3}.subscribe-sm ul li a.icon-big-twitter:before{width:29px;height:25px;background-position:-117px -33px}a.icon-big-ical{color:#ed1c24}.subscribe-sm ul li a.icon-big-ical:before{width:26px;height:29px;background-position:-64px -33px}.mp-news-list header{font-weight:100;font-size:27px;line-height:28px;color:#a2a2a2;margin-bottom:15px}.mp-news-list header a{color:#a2a2a2;text-decoration:none}.mp-news-list header a:hover{color:#f60}.mp-news-list ul{margin:0}.mp-news-list ul li{margin-bottom:20px;overflow:hidden;font-size:12px;line-height:15px}.mp-news-list ul li a{display:block;text-decoration:none;color:#767675}.mp-news-list ul li a:hover{color:#f60}.mp-news-list li a span{display:block}.mp-news-list .nl-pict img{margin-top:11px}.mp-news-list .nl-pict{width:80px;height:80px;overflow:hidden;margin-right:20px;float:left;border-radius:4px;text-align:center;background:#fff;box-shadow:inset 0 1px 0 #e8e8e7}.mp-news-list .nl-body{overflow:hidden}.mp-news-list .nl-text{margin-bottom:5px}.mp-news-list .nl-date{font-size:11px;line-height:13px;color:#f60}.mp-news-list footer a.more{color:#bbb}.mp-news-list footer a.more:after{background-position:-39px -24px}.mp-news-list footer a.more:hover{color:#f60}.mp-news-list footer a.more:hover:after{background-position:-39px -16px}.s-news-list{margin:20px 0}.s-news-list header{font-weight:100;font-size:23px;line-height:25px;color:#a2a2a2;margin-bottom:15px}.s-news-list header a{text-decoration:none;color:#a2a2a2}.s-news-list header a:hover{color:#f60}.s-news-list ul{margin:0}.s-news-list ul li{margin-bottom:15px;overflow:hidden;font-size:12px;line-height:15px}.s-news-list ul li a{display:block;text-decoration:none;color:#767675}.s-news-list ul li a:hover{color:#f60}.s-news-list li a span{display:block}.s-news-list .nl-pict{width:40px;height:40px;overflow:hidden;margin-right:20px}.s-news-list .nl-pict img{width:100%}.s-news-list .nl-body{overflow:hidden}.s-news-list .nl-text{margin-bottom:5px}.s-news-list .nl-date{font-size:11px;line-height:13px;color:#f60}.s-news-list footer a.more{color:#bbb}.s-news-list footer a.more:after{background-position:-39px -24px}.s-news-list footer a.more:hover{color:#f60}.s-news-list footer a.more:hover:after{background-position:-39px -16px}.mp-photo-gallery{margin-left:-220px}.mp-photo-gallery header{font-weight:100;font-size:27px;line-height:28px;color:#a2a2a2;margin-bottom:15px;padding-left:220px}.mp-photo-gallery header .pg-title{width:225px;margin:0 -220px;float:left}.mp-photo-gallery header .pg-title>a{color:#a2a2a2}.mp-photo-gallery header .pg-title>a:hover{color:#f60}.mp-photo-gallery header h2{display:inline-block;font-weight:400;font-size:28px;line-height:28px;margin:0;color:#f60}.mp-photo-gallery header h2 a:hover{color:#464646}.mp-photo-gallery .photo-gallery{position:relative;width:720px;max-width:100%;height:320px;margin:0}.mp-photo-gallery a{display:inline-block;width:100%;text-decoration:none}.mp-photo-gallery .photo-gallery ul{width:100%;height:100%}.mp-photo-gallery li{width:100%;height:100%;float:left}.mp-photo-gallery .pg-item{display:inline-block;position:relative;max-width:100%;overflow:hidden;border-radius:4px}.mp-photo-gallery .pg-item .pgi-pict{max-width:100%;text-align:center}.mp-photo-gallery .pg-item .pgi-pict img{margin:0 -50%}.mp-photo-gallery .pg-item .pgi-descr{position:absolute;width:100%;left:0;bottom:0;-moz-box-sizing:border-box;box-sizing:border-box;color:#fff;background:rgba(0,0,0,.6);padding:12px 25px 15px 220px;font-size:14px;line-height:16px;display:none}.lt-ie9 .mp-photo-gallery .pg-item .pgi-descr{background:url(../img/semitransparent-ie8.png)}.mp-photo-gallery li:first-child .pg-item .pgi-descr{display:block}.mp-photo-gallery .pg-item .pgi-descr .pgi-date{width:145px;float:left;margin:0 -145px 0 -180px;font-weight:100;font-size:13px;line-height:16px}.mp-photo-gallery .pg-item .pgi-descr .pgi-date b{display:block;font-weight:500;font-size:15px}.mp-partners .mpp-wrap header,.mps-sect header{font-family:dindisplay_pro,sans-serif;font-size:27px}.mp-photo-gallery .pg-item .pgi-descr .pgi-date b:before{display:block;width:12px;height:14px;background:url(../img/sprites.png) -85px 0 no-repeat;float:left;margin:2px -12px -14px -16px}.mp-photo-gallery .re-controls{display:none}.mp-photo-gallery .re-controls.enabled{display:block}.mp-photo-gallery .re-controls a{display:block;width:71px;height:0;padding-top:71px;overflow:hidden;position:absolute;top:50%;margin-top:-55px}.mp-photo-gallery .re-controls a:before{display:block;width:31px;height:62px;background:url(../img/sprites.png) 0 -63px no-repeat;position:absolute;left:50%;top:50%;margin:-31px 0 0 -15px}.mp-photo-gallery .re-controls a.prev{left:0}.mp-photo-gallery .re-controls a.prev:before{background-position:0 -63px}.mp-photo-gallery .re-controls a.next{right:0}.mp-photo-gallery .re-controls a.next:before{background-position:-32px -63px}.mp-photo-gallery .re-controls a.next.disabled,.mp-photo-gallery .re-controls a.prev.disabled{display:none}.mp-partners .layout-wrap{padding-left:200px;margin-left:-200px}.mp-partners .mpp-wrap{margin-left:-200px;padding:10px 0 12px 420px;line-height:71px;background:#fff;border-radius:0 4px 4px 0;box-shadow:0 -1px 0 #f0f0f0}.mp-partners .mpp-wrap header{display:block;float:left;width:220px;margin:0 -220px;font-weight:100;color:#a2a2a2}.mp-partners .mpp-wrap ul{margin:0 0 0 -20px;padding:0;list-style:none}.mp-partners .mpp-wrap li{display:inline-block;vertical-align:middle;margin-left:20px}.mps-sect header{font-weight:100;line-height:28px;color:#f60;margin-bottom:10px}.mps-sect nav ul{margin:0 -20px 0 -10px;text-transform:none}.mps-sect nav ul li{margin-bottom:2px}.mps-sect nav a{display:inline-block;font-size:14px;line-height:17px;text-decoration:underline;color:#464646;padding:2px 15px 2px 9px;border-color:transparent}.mps-sect nav a:hover{text-decoration:none;color:#f60;border-color:transparent}.mps-sect nav a:after{display:inline-block;vertical-align:middle;width:5px;height:8px;background:url(../img/sprites.png) -86px -16px no-repeat;margin:-1px -12px 0 7px;visibility:hidden}.mps-sect nav a:hover:after{visibility:visible}.hidden,.invisible{visibility:hidden}.mp-reviews-wrap .mp-reviews{width:65.9%;float:left;-moz-box-sizing:border-box;box-sizing:border-box}.mp-reviews-wrap .mp-reviews header{font-family:dindisplay_pro,sans-serif;font-weight:100;font-size:27px;line-height:28px;color:#a2a2a2;display:table;width:100%;margin-bottom:10px}.mp-reviews-wrap .mp-reviews ul,.popup-window{font-family:dindisplay_pro,sans-serif;line-height:17px}.mp-reviews-wrap .mp-reviews header>*{display:table-cell;width:50%}.mp-reviews-wrap .mp-reviews header .mpr-title a{color:#a2a2a2;text-decoration:none}.mp-reviews-wrap .mp-reviews header .mpr-title a:hover{color:#f60}.mp-reviews-wrap .mp-reviews header .more-link{font-size:13px}.mp-reviews-wrap .mp-reviews ul{margin:0;padding:0;list-style:none;display:table;width:100%;font-size:14px}.mp-reviews-wrap .mp-reviews ul>li{display:table-cell;width:50%;padding-right:35px}.mp-reviews-wrap .mp-reviews li a{display:block;width:220px;color:#464646;text-decoration:none}.mp-reviews-wrap .mp-reviews li a:hover{color:#f60}.mp-reviews-wrap .mp-reviews li .mpr-pict{display:block;overflow:hidden;margin-bottom:7px;border-radius:4px}.mp-reviews-wrap .sbnr{width:33.33%;float:right;padding-top:43px}.mp-reviews-wrap .sbnr .sbnr-wrap{display:inline-block;border:1px solid #e3e3e3}.popups-wrap{position:absolute;left:-20000em;top:-20000em;width:100%;height:1px;overflow:hidden}.fancybox-skin{background:#f8f8f6}.fancybox-close{top:5px;right:5px;width:36px;height:36px;cursor:pointer;z-index:8040;background:0 0}.fancybox-close:before{display:block;width:10px;height:10px;background:url(../img/sprites.png) -133px 0 no-repeat;position:absolute;left:50%;top:50%;margin:-5px 0 0 -5px}.fancybox-close:hover:before{background-position:-144px 0}.popup-window{width:640px;font-size:15px;padding:35px 50px 30px;-moz-box-sizing:border-box;box-sizing:border-box}.popup-window.pw-period{width:530px}.popup-window header{padding-bottom:20px}.popup-window.pw-period header{padding-bottom:30px}.popup-window .pw-title{font-family:dindisplay_pro,sans-serif;font-weight:100;font-size:35px;line-height:35px;color:#f60}.popup-window footer{border-top:1px dotted #ccc;margin-top:25px;padding-top:25px}.popup-window footer .soc-med-login{display:table}.popup-window footer .soc-med-login>div{display:table-cell;vertical-align:top;line-height:30px}.popup-window footer .soc-med-login .sm-label{font-style:italic;padding-right:15px}.popup-window footer .soc-med-login .sm-body ul{margin:0;padding:0;list-style:none}.popup-window footer .soc-med-login .sm-body ul li{display:inline-block;margin-left:5px}.pw-form .pwf-line{margin-bottom:15px;display:table}.pw-form .pwf-line.subj-checks{margin-bottom:25px}.pw-form .pwf-line.period{margin-top:25px}.pw-form .pwf-buttons-line{margin-top:30px;display:block}.pw-form .pwf-buttons-line>div,.pw-form .pwf-line>div{display:inline-block;vertical-align:middle;width:auto}.pwf-line>label+div.pwf-field{display:block}.pw-form .pwf-field{padding-right:20px;vertical-align:top;width:310px}.pw-reg .pw-form .pwf-field{width:265px}.pw-form .pwf-field+.pwf-field{padding-right:0}.epf-field{position:relative}.custom-select .custom-select-wrap,.editor-wrap,input[type=text],input[type=password],textarea{border:1px solid #bdbdbd;outline:0;background:#fff;width:100%;height:40px;padding:0 6px;font-family:dindisplay_pro,sans-serif;font-size:15px;border-radius:3px;box-shadow:inset 0 2px 2px -2px #aaa;-moz-box-sizing:border-box;box-sizing:border-box}html[data-useragent*='Trident/7.0'] input[type=text],html[data-useragent*='Trident/7.0'] input[type=password],html[data-useragent*='Trident/7.0'] textarea{padding:0 5px 0 20px}input[type=text]:focus,input[type=password]:focus,textarea:focus{border:2px solid #f60;padding:0 5px}textarea{height:146px;padding:5px;line-height:20px;resize:none}.editor-wrap{height:auto;padding:0;line-height:normal;overflow:hidden}.editor-wrap textarea{border:none;padding:5px;box-shadow:none}textarea:focus{padding:4px}.p-form textarea{height:176px;resize:vertical}.p-form .mf-photos-list textarea{height:146px;resize:none}.pw-form input[type=text],.pw-form input[type=password]{height:40px}.pw-period .pw-form .pwf-field+.pwf-field{padding-left:10px}.mf-field .period .pwf-field{display:inline-block;padding-left:30px;font-size:17px;line-height:40px}.period .pwf-field label{font-size:20px;margin:0 5px 0 -15px}.mf-field .period .pwf-field label{font-size:17px}.period input[type=text].date{width:175px;padding-right:35px;background:url(../img/select.png) 100% 50% no-repeat #fff}.period input[type=text].date+button{position:absolute;width:36px;padding:0;overflow:hidden;margin-left:-37px;-moz-box-sizing:border-box;box-sizing:border-box;opacity:0}.period input[type=text].date+button:hover{top:auto}.lt-ie9 .period input[type=text].date+button{-ms-filter:alpha(opacity=0);filter:alpha(opacity=0)}::-webkit-input-placeholder{color:#a2a2a2}:-moz-placeholder{color:#a2a2a2}::-moz-placeholder{color:#676767}:-ms-input-placeholder{color:#a2a2a2}.placeholder{color:#a2a2a2}label.check{display:inline-block;font-size:13px;line-height:15px;padding-left:27px;word-spacing:normal;cursor:pointer;-moz-box-sizing:border-box;box-sizing:border-box}label.check input{opacity:0;outline:0}.lt-ie9 label.check input{-ms-filter:alpha(opacity=0);filter:alpha(opacity=0)}.lt-ie9 .custom-select select,.lt-ie9 .input-file .if-field-wrap input[type=file]{filter:alpha(opacity=0)}.check .custom-checkbox,.check .custom-radio{position:relative;display:block;width:20px;height:20px;margin:-3px -100% 0 -27px;float:left;background:#fff;border:1px solid #bdbdbd;border-radius:3px;box-shadow:inset 0 2px 2px -2px #aaa;-moz-box-sizing:border-box;box-sizing:border-box}.check .custom-checkbox:before,.check .custom-radio:before{content:' ';display:none;position:absolute;left:50%;top:50%;margin:-5px 0 0 -5px}.check .custom-radio{width:22px;height:22px;border-radius:20px}.check .custom-checkbox:before{width:11px;height:9px;background:url(../img/sprites.png) -93px -16px no-repeat}.check .custom-radio:before{width:10px;height:10px;background:#f60;border-radius:10px}.check .custom-checkbox.checked:before,.check .custom-radio.checked:before{display:block}.custom-select{display:block;text-align:left;line-height:18px;height:40px;box-sizing:border-box}.custom-select,.custom-select select{position:relative;-moz-box-sizing:border-box}.pw-form .custom-select{width:100%;height:40px}.e-form .custom-select{width:200px;height:26px}.custom-select select{width:100%;padding-right:30px;height:40px;opacity:0;z-index:0;cursor:pointer;box-sizing:border-box}.custom-select select[disabled]{cursor:default}.pw-form .custom-select select{height:40px}.custom-select option{padding:2px 10px}.custom-select .custom-select-wrap{display:block;position:absolute;overflow:hidden;left:0;right:0;top:0;z-index:1;padding-top:1px;padding-right:30px;cursor:pointer}.custom-select select[disabled]+.custom-select-wrap{cursor:default}.pw-form .custom-select .custom-select-wrap{line-height:47px;height:40px}.e-form .custom-select .custom-select-wrap{line-height:26px;height:26px;padding-left:7px}.custom-select .custom-select-wrap:after{content:" ";display:block;width:8px;height:5px;overflow:hidden;background:url(../img/sprites.png) -86px -27px no-repeat;position:absolute;right:12px;top:50%;margin-top:-3px}.e-form .custom-select .custom-select-wrap:after{margin-top:-2px}.custom-select .custom-select-text{display:block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:39px}.pw-form .custom-select .custom-select-text{line-height:39px}.e-form .custom-select .custom-select-text{line-height:25px}.custom-select select:focus+.custom-select-wrap{border:2px solid #f60;padding:0 29px 0 19px}.custom-select select:focus+.custom-select-wrap:after{right:11px}.custom-select .cs-menu-wrap{position:absolute;min-width:100%;left:0;top:100%;margin-top:-1px;white-space:nowrap;z-index:50;padding:5px;border:1px solid #ccc;box-sizing:border-box;display:none}.c-select-box,.custom-select .cs-menu-wrap{background:#fff;-moz-box-sizing:border-box}.custom-select .scroll-content{padding:5px 18px}.custom-select .scroll-content ul{margin:0;padding:0;list-style:none;font-size:15px;line-height:19px}.custom-select .scroll-content ul li{margin-top:2px;cursor:pointer}.custom-select .scroll-content ul li:first-child{margin-top:0}.custom-select .scroll-content ul li:hover{color:#f60}.input-file{display:block;position:relative}.e-form .input-file{color:#fff;cursor:pointer}.mf-line .input-file{vertical-align:middle}.e-form .input-file .button{float:left;margin-right:10px}.mf-line .input-file .button{float:left;margin-right:20px}.input-file .file-text{display:block;overflow:hidden;height:26px;line-height:26px;text-overflow:ellipsis;font-size:15px;white-space:nowrap}.mf-line .input-file .file-text{font-size:17px;line-height:35px}.mf-line .input-file .file-text.placehlder{color:#aeaeae}.input-file .if-field-wrap{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden}.input-file .if-field-wrap input[type=file]{position:absolute;left:0;top:0;width:100%;height:100%;letter-spacing:10em;-ms-transform:scale(20);-webkit-transform:scale(20);-o-transform:scale(20);transform:scale(20);font-size:200em;opacity:0;cursor:pointer}form{font-family:dindisplay_pro,sans-serif}form.s-message{padding-left:20px}.s-message .mf-line{padding-left:120px;margin:20px 0 10px}.s-message .mf-line label{margin:5px -120px;float:left;font-size:20px;color:#f60}.s-message .mf-buttons-line{padding-left:120px;margin-top:10px}.s-message .mf-buttons-line a{margin-left:25px;font-size:15px}.pwf-msg .msg-help{color:#f60;padding-left:20px;display:none;max-width:234px}.pw-login a.forgot{font-size:14px;color:#464646}.pw-login .pw-form .pwf-field{width:310px}.pw-login a.forgot:hover{color:#f60}.pw-login button{margin-right:20px}.pw-login a.reg{font-weight:500;font-size:16px}.mf-line.afs-type>.mf-field label.check,.pwf-line.subj-checks>.pwf-field label.check{padding-right:0;width:20%}.pwf-line.subj-checks>.pwf-field label.check{font-size:17px}.c-select-box{position:relative;border:1px solid #bdbdbd;outline:0;width:100%;padding:3px;font-family:dindisplay_pro,sans-serif;font-size:15px;line-height:19px;border-radius:3px;box-shadow:inset 0 2px 2px -2px #aaa;box-sizing:border-box}.c-select-box.select{padding-bottom:0;min-height:40px}.e-form .c-select-box.select{min-height:26px;padding:0 1px}.c-select-box .csb-title{padding:0 35px 0 0;height:40px;font-size:16px;line-height:40px;border-bottom:1px dotted #cdcdcd;color:#a2a2a2;background:#fff;margin-bottom:3px}.c-select-box .csb-title input{border:none;padding:0 0 0 18px;height:35px;box-shadow:none}.c-select-box .csb-selected-items{display:none;border-bottom:1px dotted #cdcdcd;padding:2px 0;margin-bottom:3px;min-height:30px;line-height:24px}.e-form .c-select-box .csb-selected-items{min-height:18px;line-height:18px;padding:1px 0;margin-bottom:2px}.c-select-box .csb-selected-items.show{display:block}.c-select-box.select .csb-selected-items{display:block;border:none;padding-right:30px;margin-bottom:0;cursor:pointer}.c-select-box.select.disabled .csb-selected-items{cursor:default}.c-select-box.select .csb-selected-items:after{content:" ";display:block;width:8px;height:5px;overflow:hidden;background:url(../img/sprites.png) -86px -27px no-repeat;position:absolute;right:12px;top:20px;margin-top:-3px}.e-form .c-select-box.select .csb-selected-items:after{top:15px}.c-select-box .csb-selected-items .csb-placeholder{display:none;min-height:28px;line-height:28px;padding-left:18px;color:#aeaeae}.c-select-box .csb-selected-items .csb-placeholder.show{display:block}.c-select-box .csb-selected{position:relative;display:none;vertical-align:top;min-height:26px;line-height:25px;color:#f60;white-space:nowrap;margin:0 3px 3px 0;border:1px solid #f60;padding-right:25px;border-radius:3px}.e-form .c-select-box .csb-selected{min-height:16px;margin:0 2px 1px 0}.c-select-box .csb-selected.show{display:inline-block}.c-select-box .csb-selected>*{display:inline-block;vertical-align:middle}.c-select-box .csb-selected .csbs-text{padding-left:15px;line-height:18px;font-size:16px;white-space:normal}.c-select-box .csb-selected a.csbs-del:hover{text-shadow:0 1px 1px rgba(0,0,0,.3)}.c-select-box .csb-selected a.csbs-del{display:block;position:absolute;right:0;top:0;width:25px;overflow:hidden;height:18px;line-height:25px;text-align:right;padding-right:10px;text-decoration:none;font-family:Verdana,san-serif}.cl-item header,.cli-info .cli-bot,.cli-photo-gallery .pg-title,.page-title h1,.page-title h2,.pagination .pg-body,.popup-gallery .pg-info,.so-text h2,.ui-datepicker{font-family:dindisplay_pro,sans-serif}.e-form .c-select-box .csb-selected a.csbs-del{padding-top:20px}.popup-window .c-select-box.select .csb-menu{max-height:145px}.c-select-box.select .csb-menu-wrap{position:absolute;left:-1px;right:-1px;top:100%;margin-top:-3px;background:#fff;z-index:50;padding:5px;border:1px solid #ccc;-moz-box-sizing:border-box;box-sizing:border-box;display:none}.e-form .c-select-box.select .csb-menu-wrap{margin-top:0}.c-select-box.places .csb-menu{height:245px}.c-select-box .csb-menu .scroll-content{padding:5px 10px}.c-select-box .csb-menu ul{margin:0;padding:0;list-style:none}.c-select-box .csb-menu ul li{margin-bottom:4px}.c-select-box .csb-menu a,.c-select-box .csb-menu label{cursor:pointer;color:#464646;position:relative;margin-left:12px}.c-select-box .csb-menu label.active{color:#a2a2a2}.c-select-box .csb-menu .places-list>ul>li.active>a,.c-select-box .csb-menu .places-list>ul>li.active>label,.c-select-box .csb-menu a:hover,.c-select-box .csb-menu label:hover{color:#f60}.c-select-box .csb-menu label input[type=checkbox]{opacity:0;outline:0;position:absolute;z-index:-1}.lt-ie9 .c-select-box .csb-menu label input[type=checkbox]{-ms-filter:alpha(opacity=0);filter:alpha(opacity=0)}.c-select-box .csb-menu .places-list{width:260px;float:left}.c-select-box .csb-menu .places-list>ul>li>a{display:inline-block;border-bottom:1px dashed;text-decoration:none;font-size:17px;line-height:15px}.c-select-box .csb-menu .places-list>ul ul{margin:5px 0 0 16px;font-size:16px}.places-list .final-tire{margin-left:16px}.places-list .final-tire .custom-radio-check{padding-left:12px}.c-select-box .csb-menu .places-list>ul>li{margin-bottom:15px}.c-select-box .csb-menu .places-list .active>.sublist{display:block}.c-select-box .csb-menu .places-list .sublist{display:none}.c-select-box .csb-menu .places-list .sublist.parent{display:block}.c-select-box .csb-menu .q-sel{width:190px;float:right}.tabs li,.ui-datepicker-prev{float:left}.c-select-box .csb-menu .q-sel .q-sel-title{font-size:14px;color:#a2a2a2;margin-bottom:3px}.c-select-box .csb-menu .q-sel .q-sel-title+ul{margin-bottom:10px}.c-select-box .csb-menu .q-sel a.clear{display:inline-block;font-size:14px;line-height:12px;text-decoration:none;border-bottom:1px dashed;color:#a2a2a2;margin-left:0}.c-select-box .csb-menu .q-sel a.clear:hover,.ui-datepicker th.ui-datepicker-week-end{color:#f60}.mCSB_scrollTools .mCSB_draggerRail{width:10px;background:#dbdbdb;border:1px solid #ccc;-moz-box-sizing:border-box;box-sizing:border-box}.mCSB_scrollTools .mCSB_dragger{-moz-box-sizing:border-box;box-sizing:border-box}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:8px;border:solid #dbdbdb;border-width:2px 1px;-moz-box-sizing:border-box;box-sizing:border-box}.mCSB_horizontal.mCustomScrollBox>.mCSB_scrollTools{left:20px;right:20px;bottom:5px;width:auto;height:20px}.mCSB_horizontal>.mCSB_scrollTools .mCSB_draggerRail{width:100%;height:12px;background:#dbdbdb}.mCSB_horizontal>.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{height:10px;margin:8px auto;border-width:2px 3px}.pw-subscribe header{margin:-5px 0 20px;padding:0;border-bottom:1px dotted #ccc}.pw-subscribe header .pw-title{float:left;padding:5px 20px 0 0}.tabs{position:relative;margin:0 0 -1px;padding:0;list-style:none;z-index:2}.pw-subscribe header .tabs{margin:0 0 -1px;overflow:hidden}.tabs li{height:51px;box-sizing:border-box;opacity:.2;border:dotted transparent;border-width:1px 1px 0;margin-left:5px}.tabs li,.tabs li a{display:block;-moz-box-sizing:border-box}.tabs li:hover{opacity:1}.tabs li.active{border:dotted #ccc;border-width:1px 1px 0;background:#fcfcfb;opacity:1}.popup-window .tabs li.active{background:#f8f8f6}.tabs li a{position:relative;height:50px;padding:12px;overflow:hidden;text-decoration:none;box-sizing:border-box;font-size:15px}.popup-window .tabs li a{width:54px}.tabs li a:before{content:'';display:inline-block;vertical-align:middle;background:url(../img/sprites.png) no-repeat;margin:0 7px 3px 0}.popup-window .tabs li a:before{display:block;margin:0 auto 50px}.tabs li a.icon-big-email:before{width:30px;height:26px;background-position:-32px -33px}.tabs li a.icon-big-rss:before{width:25px;height:26px;background-position:-91px -33px}.tabs li a.icon-big-twitter:before{width:29px;height:25px;background-position:-117px -33px}.tabs li a.icon-big-ical:before{width:26px;height:29px;background-position:-64px -33px}.tabs-content{margin:0;padding:0;list-style:none}.tabs+.tabs-content{position:relative;border-top:1px dotted #ccc;z-index:1;padding-top:20px}.tabs-content>li{display:none}.tabs-content>li.active{display:block}.pw-subscribe .pw-form .pwf-field{width:370px}.pw-subscribe .mail{margin-bottom:25px}.ui-datepicker{display:none;width:200px;height:auto;padding:10px;font-size:13px;border:1px solid #bdbdbd;background:#fff;border-radius:4px;line-height:13px;box-shadow:0 0 10px 0 rgba(0,0,0,.5)}.ui-datepicker a{text-decoration:none}.ui-datepicker table{width:100%}.ui-datepicker-header{font-weight:500;text-transform:uppercase;border-bottom:1px dotted #bdbdbd;padding-bottom:6px;margin-bottom:6px;font-size:21px;line-height:33px}.ui-datepicker-title{text-align:center;font-weight:100;color:#f60}.ui-datepicker-next,.ui-datepicker-prev{position:relative;display:inline-block;width:31px;height:0;padding-top:31px;cursor:pointer;border:1px solid #bdbdbd;border-radius:3px;overflow:hidden}.ui-datepicker-next:hover,.ui-datepicker-prev:hover{border-color:#f60;background:#f60}.ui-datepicker-next.ui-state-disabled,.ui-datepicker-prev.ui-state-disabled{border-color:#bdbdbd;background:0 0;opacity:.5}.ui-datepicker-next:before,.ui-datepicker-prev:before{content:' ';display:block;width:10px;height:12px;background:url(../img/sprites.png) -155px 0 no-repeat;position:absolute;left:50%;top:50%;margin:-6px 0 0 -5px}.ui-datepicker-prev.ui-state-disabled:hover:before,.ui-datepicker-prev:before{background-position:-155px 0;margin-left:-6px}.ui-datepicker-prev:hover:before{background-position:-113px 0}.ui-datepicker-next{float:right}.ui-datepicker-next.ui-state-disabled:hover:before,.ui-datepicker-next:before{background-position:-165px 0;margin-left:-4px}.ui-datepicker-next:hover:before{background-position:-123px 0}.ui-datepicker th{text-transform:uppercase;font-weight:500;padding:0 0 4px}.ui-datepicker tbody td{padding:2px 0;text-align:center}.ui-datepicker td a,.ui-datepicker td span{display:inline-block;width:24px;height:24px;line-height:24px;text-align:center;border:1px solid #e2e2e2;border-radius:3px;color:#e2e2e2}.ui-datepicker td a{color:#2b2b2b;border-color:#bdbdbd}.ui-datepicker td.ui-datepicker-week-end a{color:#f60;border-color:#f60}.ui-datepicker td a:hover{background:#f0f0f0}.ui-datepicker td.ui-datepicker-today a{background:#565656;border-color:#565656;color:#fff}.ui-datepicker td a.ui-state-active{background:#f60;border-color:#f60;color:#fff}.pw-reply .pw-form .pwf-line{width:100%}.pw-reply .pw-form .pwf-line .pwf-field{display:block;padding-right:0;width:auto}.pwf-line>label{display:block;margin:-5px 0 5px}.pw-reply .pw-form .pwf-line label{font-size:20px;display:block;margin-bottom:10px}.pw-reply .pw-form .pwf-buttons-line{margin-top:0}.layout-wrap>aside .sbnr{margin:25px 0}.layout-wrap>aside .sbnr .sbnr-wrap{display:inline-block;border:1px solid #e3e3e3}.layout-wrap>aside .vk-widget{width:180px;margin:30px 0}.main-part .abn{margin:20px 0;text-align:center}.main-page .abn{margin-bottom:0}.so-text{margin:20px 0;font-size:12px;line-height:15px}.so-text h2{font-weight:100;font-size:30px;line-height:30px;margin:15px 0;color:#f60}.bread-crumbs{margin:17px 0;font-size:11px;line-height:13px}.bread-crumbs a{color:#a2a2a2;margin-right:3px}.bread-crumbs a:hover{color:#f60}.bread-crumbs a:after{content:'→';color:#a2a2a2;display:inline-block;margin-left:7px;text-decoration:none}.bread-crumbs b,.bread-crumbs strong{font-weight:400}.page-title{margin:17px 0}.page-title h1,.page-title h2{font-weight:100;font-size:40px;line-height:40px;margin:0;color:#f60}.page-title h1 strong,.page-title h2 strong{font-weight:400;color:#464646}.page-title.clearfix h1,.page-title.clearfix h2{float:left}.p-filter{font-size:12px;color:#a2a2a2;margin:17px 0}.page-title+.p-filter{margin-top:-10px}.p-filter .pf-body{width:100%;float:left;padding:0 280px 0 55px;-moz-box-sizing:border-box;box-sizing:border-box}.p-filter .pf-body .pf-label{width:55px;float:left;margin:0 -55px}.p-filter .pf-body a{color:#464646;white-space:nowrap}.p-filter .pf-body a:hover{color:#f60}.p-filter .ch-dates-range{width:260px;float:right;margin-left:-260px}.p-filter .ch-dates-range a{text-decoration:none;border-bottom:1px dashed;-webkit-transition:border .3s;-o-transition:border .3s;transition:border .3s}.p-filter .ch-dates-range a:hover{border-bottom:none}.page-body{margin:15px 0 0 -20px}.pagination{margin:25px 0 40px}.pagination .pg-info{float:right;padding-right:20px;font-size:12px;line-height:29px}.pagination .pg-info i{font-style:normal;color:#a2a2a2}.pagination .pg-body{overflow:hidden}.pagination .pg-body ul{margin:0;padding:0;list-style:none;display:inline-block;vertical-align:middle}.pagination .pg-body li{display:inline-block}.pagination .pg-body li a,.pagination .pg-body li b{display:block;min-width:29px;height:29px;padding:0 5px;font-weight:700;font-size:16px;line-height:29px;text-decoration:none;text-align:center;border:1px solid #fcaf7b;margin-right:1px;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:1px}.pagination .pg-body li b{border-color:#f60;background:#f60;color:#fff}.pagination .pg-body>a{display:inline-block;vertical-align:middle;height:29px;padding:0 7px;font-weight:500;font-size:17px;line-height:29px;text-decoration:none;border:1px solid #fcaf7b;margin-right:1px;-moz-box-sizing:border-box;box-sizing:border-box}.pagination .pg-body a.pg-prev{border-radius:4px 0 0 4px}.pagination .pg-body a.pg-next{border-radius:0 4px 4px 0}.pagination .pg-body a.pg-next:after,.pagination .pg-body a.pg-prev:before{content:' ';display:inline-block;vertical-align:middle;width:5px;height:8px;background:url(../img/sprites.png) -143px -16px no-repeat;margin-top:-1px}.pagination .pg-body a.pg-prev:before{background-position:-143px -16px;margin-right:7px}.pagination .pg-body a.pg-next:after{background-position:-148px -16px;margin-left:7px}.pagination .pg-body a:hover{background:#fcaf7b;color:#fff}.pagination .pg-body a.pg-prev:hover:before{background-position:-143px -24px}.pagination .pg-body a.pg-next:hover:after{background-position:-148px -24px;margin-left:7px}.pagination .pg-body>a.disabled{border-color:#cdcdcc;background:0 0;color:#babab9;cursor:default;width:29px;overflow:hidden;padding:27px 0 0;position:relative}.pagination .pg-body a.pg-next.disabled:after,.pagination .pg-body a.pg-prev.disabled:before{position:absolute;left:50%;top:50%;margin:-4px 0 0 -3px}.pagination .pg-body a.pg-prev.disabled:before,.pagination .pg-body a.pg-prev.disabled:hover:before{background-position:-153px -16px}.pagination .pg-body a.pg-next.disabled:after,.pagination .pg-body a.pg-next.disabled:hover:after{background-position:-158px -16px}.cat-list{margin:0;padding:0;list-style:none}.cat-list>li.ad{overflow:hidden;margin-bottom:20px}.cat-list>.cl-item,.m-article{position:relative;padding:17px 20px 15px;margin-bottom:20px;background:#fcfcfb;box-shadow:inset 0 1px 0 #e8e8e7;border-radius:4px;-webkit-transition:background .3s;-o-transition:background .3s;transition:background .3s}.cancel,.cancel:after,.hit{display:block;position:absolute;left:0;top:0}.m-article .cat-list>.cl-item{margin-bottom:15px}.cat-list>li.cl-item:hover{background:#fff;box-shadow:0 3px 5px -3px #888}.hit{width:81px;height:81px;background:url(../img/sprites.png) -63px -63px no-repeat;z-index:2}.cancel{width:100%;bottom:0;background:rgba(255,255,255,.75);z-index:20}.lt-ie9 .cancel{background:#fff;-ms-filter:alpha(opacity=75);filter:alpha(opacity=75)}.cancel:after{content:' ';width:81px;height:81px;background:url(../img/sprites.png) -144px -63px no-repeat;z-index:21}.cl-item .cl-item-wrap{padding-left:120px;margin-bottom:10px}.cl-photos .cl-item .cl-item-wrap,.e-cat .cl-item .cl-item-wrap{padding-left:90px;margin-bottom:0}.m-article .cl-item .cl-item-wrap{padding-left:100px;margin-bottom:0}.cl-item .cl-item-wrap>a{color:#464646;text-decoration:none}.cli-pict,.i-pict{width:100px;line-height:96px;text-align:center;background:#fff;margin:3px -100% 0 -120px;float:left;box-shadow:inset 0 1px 0 #e8e8e7;border-radius:4px;-moz-box-sizing:border-box;box-sizing:border-box}.i-pict{margin:0 0 10px;position:relative}.i-pict .user-avatar{display:block;width:100%;height:100%}.cl-photos .cli-pict,.e-cat .cli-pict{width:70px;height:70px;line-height:60px;padding:4px;margin-left:-90px}.m-article .cl-item .cli-pict{width:80px;height:80px;line-height:70px;padding:5px;margin-left:-100px}.cat-list li.cl-item:hover .cli-pict{box-shadow:none}.cli-pict img,.i-pict img{max-width:100%;max-height:100%;border-radius:4px}.cli-info{width:100%;float:left;margin-bottom:15px}.e-cat .cli-info{margin-bottom:0}.cat-list.cl-places .cli-info{margin-bottom:7px}.cli-info .cli-top{margin-bottom:10px}.cat-list.cl-places .cli-info .cli-top{margin-bottom:7px}.cl-item .cli-approved{float:right;opacity:.25;-webkit-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s}.cat-list li.cl-item:hover .cli-approved,.cat-list>li.cl-item.canceled .cli-approved{opacity:1}.cl-item .cli-status{float:right;font-size:11px;line-height:13px;color:#a2a2a2}.cl-item .cli-status .status{height:13px;overflow:hidden}.cl-item .cli-status .status.active{width:13px}.cl-item .cli-status .status:before{content:' ';display:inline-block;width:13px;height:13px;background:url(../img/sprites.png) -211px -32px no-repeat;margin:0 3px -2px 0}.cli-photo-list .cli-phg-bot .cli-pb-button{background-position:-345px -32px}.cl-item .cli-status .status.moderated:before{background-position:-211px -160px}.cl-item .cli-status .status.draft:before{content:none}.cl-item .cli-status b{display:inline-block;font-size:16px;font-weight:400;padding-top:5px}.cl-item .cli-status b:before{content:' ';display:inline-block;vertical-align:middle;width:16px;height:15px;background:url(../img/sprites.png) -171px -16px no-repeat;margin:-2px 5px 0 0}.cl-item .cli-status b.participant{color:#f60}.cl-item .cli-status b.visitor{color:#464646}.cl-item .cli-status b.visitor:before{width:14px;background-position:-188px -16px;margin-top:-2px}.cl-item header{margin-bottom:2px}.cl-item header .cli-title{display:inline-block;vertical-align:top;font-size:30px;line-height:30px;margin:0 6px 0 0;transition:color .3s;max-width:490px}.cl-item header .cli-title,.i-info .i-title{-webkit-transition:color .3s;-o-transition:color .3s}.cl-item header .cli-title a{color:#464646;text-decoration:none}.cat-list li.cl-item:hover header .cli-title,.cl-item header .cli-title a:hover{color:#f60}.cat-list>li.cl-item.canceled header .cli-title{text-decoration:line-through;color:#464646}.cl-item header .cli-rate{display:inline-block;vertical-align:top;color:#f60;font-size:16px;margin-top:2px}.cl-item header .cli-rate:before{content:' ';display:inline-block;vertical-align:baseline;width:14px;height:13px;margin:0 4px -1px 0;background:url(../img/sprites.png) -181px -32px no-repeat;opacity:.5}.cli-info .cli-bot .cli-dim:before,.cli-place:before{content:' ';height:16px}.cli-descr{font-size:12px;line-height:15px;color:#a2a2a2}.cli-info .cli-bot{font-size:15px;line-height:19px}.cli-info .cli-bot .cli-area,.cli-info .cli-bot .cli-date{float:left;font-size:17px;line-height:18px}.cli-info .cli-bot .cli-area{font-weight:500;color:#f60}.cli-info .cli-bot .cli-area a{text-decoration:none}.cli-info .cli-bot .cli-area a:hover{color:#464646}.cli-info .cli-bot .cli-position{font-size:20px;line-height:21px;font-weight:500;color:#f60;float:left}.cli-info .cli-bot .cli-position a{color:#f60;text-decoration:none}.cli-info .cli-bot .cli-position a:hover,.cli-place a{color:#464646}.cli-info .cli-bot .cli-dim{font-size:16px;line-height:18px;font-weight:700;float:left}.cli-info .cli-bot .cli-dim:before{display:inline-block;width:16px;background:url(../img/sprites.png) -242px -16px no-repeat;vertical-align:middle;margin:-4px 4px 0 0}.cli-place{float:right;padding-left:15px}.cli-place:before{display:block;width:10px;background:url(../img/sprites.png) -217px -16px no-repeat;float:left;margin:1px -10px 0 -15px}.cli-place a{text-decoration:none}.cli-place a:hover{color:#f60}.cli-buttons{position:relative;width:100%;float:left}.cli-m-buttons{float:left}.cli-m-buttons>*{margin-left:5px}.cli-m-buttons>:first-child{margin-left:0}.cli-services{display:inline-block;vertical-align:top}.cli-services:hover{padding-bottom:10px;margin-bottom:-10px;background:#f60;border-radius:4px 4px 0 0}.cli-services:hover .button.icon-sm{border-color:#f60;background:#f60;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.3);box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.cli-services:hover .button.icon-sm:before{background-position:-287px -41px}.cli-services-sm{margin-top:5px;padding:10px 0 1px 15px;position:absolute;background:#f60;color:#fff;font-size:12px;font-weight:700;width:100%;border-radius:4px;-moz-box-sizing:border-box;box-sizing:border-box;display:none;z-index:100}.cli-services:hover .cli-services-sm{display:block}.cli-services-sm ul{margin:0;padding:0;list-style:none}.cli-services-sm ul li{display:inline-block;vertical-align:top;margin:0 10px 9px 0}.cli-services-sm a{display:block;color:#fff;text-decoration:none;text-transform:uppercase;padding:2px 10px;border:1px solid #ffb880;text-shadow:0 1px 0 rgba(0,0,0,.3);border-radius:4px}.cli-services-sm a:hover{border-color:#fff;background:#fff;color:#f60;text-shadow:none}.cli-s-buttons{float:right}.cat-list>li>footer{padding-left:120px;font-size:11px;line-height:16px}.cat-list>li>footer .cli-stats{width:120px;text-align:center;margin:0 -100% 0 -130px;float:left}.i-stats{font-size:11px;text-align:center;margin-left:-5px}.cat-list .cli-stats>*,.i-stats>*{display:inline-block;vertical-align:baseline;white-space:nowrap;margin-left:5px}.cat-list .cli-stats>:first-child{margin-left:0}.cat-list .cli-stats>:before,.i-stats>:before{content:' ';display:inline-block;width:11px;height:12px;background:url(../img/sprites.png) -12px 0 no-repeat;margin:0 3px -1px 0}.cat-list .cli-stats .schedule,.cat-list .cli-stats .visitors,.i-stats .schedule,.i-stats .visitors{color:#464646}.cat-list .cli-stats .visitors:before,.i-stats .visitors:before{width:11px;height:12px;background-position:-12px 0;margin:0 2px -1px 0}.cat-list .cli-stats .schedule:before,.i-stats .schedule:before{width:13px;height:14px;background-position:-228px -16px;margin-bottom:-1px}.cat-list .cli-stats .participants,.cat-list .cli-stats .views,.i-stats .participants,.i-stats .views{color:#f60}.cat-list .cli-stats .participants:before,.i-stats .participants:before{width:13px;height:12px;background-position:-197px 0;margin-bottom:-2px}.cat-list .cli-stats .views:before,.i-stats .views:before{width:13px;height:8px;background-position:-148px -52px;margin-bottom:0}.cat-list>li>footer .cli-tags{color:#a2a2a2}.cat-list>li>footer .cli-tags a{color:#a2a2a2;white-space:nowrap}.cat-list>li>footer .cli-tags a:hover{color:#f60}.cli-photo-list .clipl-wrap{margin:0 0 10px}.sli-slides{overflow:hidden;margin-right:-15px}.cli-photo-list ul{margin:0;padding:0;list-style:none;width:100%}.cli-photo-list ul>li{width:25%;padding-right:15px;float:left;-moz-box-sizing:border-box;box-sizing:border-box}.cli-photo-list ul>li a{display:block;overflow:hidden;border-radius:4px}.cli-photo-list ul>li img{width:100%}.clipl-wrap .re-controls{display:none}.clipl-wrap .re-controls.enabled{display:block}.clipl-wrap .re-controls a{display:block;width:71px;height:0;padding-top:71px;overflow:hidden;position:absolute;top:50%;margin-top:-35px}.clipl-wrap .re-controls a:before{content:' ';display:block;width:31px;height:62px;background:url(../img/sprites.png) 0 -63px no-repeat;position:absolute;left:50%;top:50%;margin:-31px 0 0 -15px}.clipl-wrap .re-controls a.prev{left:0}.clipl-wrap .re-controls a.prev:before{background-position:0 -63px}.clipl-wrap .re-controls a.next{right:15px}.clipl-wrap .re-controls a.next:before{background-position:-32px -63px}.clipl-wrap .re-controls a.next.disabled,.clipl-wrap .re-controls a.prev.disabled{display:none}.cli-photo-list .cli-phg-bot{width:100%}.cli-photo-list .cli-phg-bot>div{-moz-box-sizing:border-box;box-sizing:border-box}.cli-photo-list .cli-phg-bot .cli-pb-button{width:50%;float:left;padding-right:15px}.cli-photo-list .cli-phg-bot .cli-pb-button .button{width:49%;min-width:175px;text-align:center;margin-right:11px}.cli-photo-list .cli-phg-bot .cli-pb-info{padding-left:15px;float:right;font-size:12px;line-height:29px;color:#a2a2a2}.cli-photo-text{font-size:12px;line-height:15px;margin-bottom:15px}.cli-photo-text>:first-child{margin-top:0}.cli-photo-gallery{margin-right:-15px}.i-photos .cli-photo-gallery{margin-right:-20px}.cli-photo-gallery>ul{margin:0;padding:0;list-style:none}.cli-photo-gallery>ul>li{display:inline-block;vertical-align:top;width:33.3%;padding:0 15px 0 0;margin:0 -4px 15px 0;-moz-box-sizing:border-box;box-sizing:border-box}.i-photos .cli-photo-gallery>ul>li{width:20%;padding-right:20px;margin-bottom:20px}.cli-photo-gallery>ul>li>a{position:relative;display:block;width:100%;overflow:hidden;text-align:center;border-radius:4px}.i-photos .cli-photo-gallery>ul>li>a{height:140px}.cli-photo-gallery>ul>li img{display:block;width:100%}.i-photos .cli-photo-gallery>ul>li img{display:inline-block;width:auto;height:100%;margin:0 -50%}.cli-photo-gallery .pg-title{position:absolute;background:rgba(0,0,0,.7);color:#fff;font-size:15px;bottom:0;text-align:left;padding:20px;box-sizing:border-box}.cli-photo-gallery .pg-title,.popup-gallery-container{width:100%;left:0;-moz-box-sizing:border-box;display:none}.lt-ie9 .cli-photo-gallery .pg-title{background:url(../img/semitransparent-ie8.png)}.popup-gallery-container{position:fixed;height:100%;top:0;overflow:auto;background:rgba(0,0,0,.75);z-index:1000;box-sizing:border-box}.lt-ie9 .popup-gallery-container{background:url(../img/semitransparent-ie8.png)}.pg-container-wrap{display:table;width:100%;height:100%}.popup-gallery-outer{position:fixed;width:100%;height:100px}.popup-gallery{position:absolute;display:block;width:1040px;height:533px;top:50%;left:50%;margin-top:-266px;margin-left:-520px;border-radius:4px;background-color:#fff}.popup-gallery .pg-wrap{position:relative;background:#fff;padding-left:730px;overflow:hidden;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:4px}.popup-gallery .ajax-load-popup{position:absolute;left:0;top:0;width:100%;height:100%}.popup-gallery .ajax-load-popup img{display:block;width:54px;height:55px;position:absolute;top:50%;left:50%;margin-top:-27px;margin-left:-27px}.lt-ie9 .popup-gallery .pg-wrap{border:1px solid #ccc}.popup-gallery .pg-photos{width:730px;height:533px;line-height:530px;background:#eee;margin:0 -730px;float:left}.popup-gallery .pg-photos img{max-width:730px;max-height:533px;text-align:center;vertical-align:middle}.popup-gallery .pg-photos ul{margin:0;padding:0;list-style:none}.popup-gallery .pg-info{padding:15px 20px 145px;width:100%;height:100%;text-align:left;float:left;-moz-box-sizing:border-box;box-sizing:border-box}.pgi-wrap{height:100%;overflow:auto}.pg-photo-title{font-size:20px;padding-right:20px;margin-bottom:10px}.pg-photo-descr,.pg-photo-text{line-height:15px;font-size:12px}.pg-photo-text{font-family:Arial,sans-serif;color:#8d8d8d;margin-bottom:10px}.i-info .i-position,.i-info header,.item-wrap>aside .i-rating{font-family:dindisplay_pro,sans-serif}.popup-gallery .pg-info hr{margin:10px 0}.pg-photo-descr h3{font-size:15px;margin:0 0 3px;font-weight:400}.pg-photo-descr p{margin:3px 0 0}.pg-comments .pgc-title{font-size:15px;margin:0 0 5px}.pg-comments ul{margin:0;padding:0;list-style:none;font-size:12px;line-height:15px;color:#8d8d8d}.pg-comments ul li{margin-top:10px}.pg-only-text .pg-photo-title{font-size:24px;line-height:1em;margin-top:24px;margin-bottom:36px;margin-left:.5em}.pgc-form .pgc-field,.pgc-form label{margin-bottom:5px}.pgc-user{color:#f60}.pgc-form{position:absolute;left:750px;right:20px;bottom:20px}.pgc-form label{display:block;font-size:15px}.pgc-form textarea{height:50px;padding:5px}.pgc-form .pgc-buttons .button,.pgc-form .pgc-buttons button{padding-left:8px;padding-right:8px}.pgc-form .pgc-buttons button{background:0 0;-webkit-filter:none;filter:none}.pgc-form .pgc-buttons button:hover{background:#f60}.pg-photos-controls a{position:absolute;width:60px;height:0;padding-top:533px;overflow:hidden;top:0;opacity:.5}.pg-photos-controls a:hover{opacity:1}.pg-photos-controls a:before{content:' ';display:block;width:21px;height:42px;background:url(../img/sprites.png) -257px -133px no-repeat;position:absolute;left:50%;top:50%;margin:-21px 0 0 -10px}.pg-photos-controls a.pgpc-prev{left:-60px}.pg-photos-controls a.pgpc-next{right:-60px}.pg-photos-controls a.pgpc-next:before{background-position:-279px -133px}.pg-close{display:block;position:absolute;right:0;top:0;width:32px;height:32px;cursor:pointer;z-index:100}.pg-close:before{content:'';display:block;width:10px;height:10px;background:url(../img/sprites.png) -133px 0 no-repeat;position:absolute;left:50%;top:50%;margin:-5px 0 0 -5px}.pg-close:hover:before{background-position:-144px 0}.item-wrap{padding-left:120px}.item-wrap>aside{width:100px;float:left;margin:0 -100% 0 -120px}.item-wrap>aside .i-pict{float:none;margin-bottom:5px}.item-wrap>aside .i-rating{font-size:21px;line-height:22px;text-align:center;color:#f60;padding:4px 10px 3px;margin:15px 0;border:1px solid #fdcfaf;border-radius:4px;-moz-box-sizing:border-box;box-sizing:border-box}.item-wrap>aside .i-rating:before{content:' ';display:inline-block;vertical-align:middle;width:20px;height:19px;margin:-3px 5px -2px -2px;background:url(../img/sprites.png) -160px -32px no-repeat;opacity:.5}.item-wrap.event>aside .i-rating{margin-top:22px}.i-info{width:100%;float:left}.i-info .i-address a.toggle-map:before,.i-info header .i-place:before{content:' ';width:10px;background:url(../img/sprites.png) -217px -16px no-repeat}.i-info header{margin-bottom:2px}.i-info header .i-place{float:right;font-size:15px;padding:13px 0 0 15px;max-width:235px;white-space:nowrap}.i-info header .i-place:before{display:block;height:16px;float:left;margin:1px -10px 0 -15px}.i-info header .i-place a{color:#464646;text-decoration:none}.i-info header .i-place a:hover{color:#f60}.i-info .i-title{display:inline-block;font-size:40px;line-height:37px;color:#f60;margin:0 6px 5px 0;-moz-box-sizing:border-box;box-sizing:border-box;transition:color .3s}.i-address header,.i-info .i-address,.i-info .i-area{margin-bottom:15px}.i-info .i-position{font-size:20px}.i-info .i-position a{text-decoration:none;color:#464646}.i-info .i-position a:hover{color:#f60}.i-info .i-descr{font-size:12px;line-height:16px;color:#7e7e7e;height:27px;font-family:Arial,sans-serif}.i-additional .ia-title,.i-address header,.i-info .i-area,.i-info .i-contacts .ic-links,.i-statistics>header{font-family:dindisplay_pro,sans-serif}.place .i-info .i-descr{min-height:30px}.i-info .i-area{font-weight:500;font-size:22px;line-height:23px}.i-info .i-area a{color:#464646;text-decoration:none}.i-info .i-area a:hover{color:#f60}.i-address header{font-size:18px;line-height:21px}.i-address header>*{display:inline-block;vertical-align:middle}.i-address header .address{margin-right:10px}.i-info .i-address a.toggle-map{display:inline-block;vertical-align:middle;font-size:15px;line-height:12px;color:#a2a2a2;text-decoration:none;border-bottom:1px dashed;margin-left:15px}.i-info .i-address.map-opened header a.toggle-map{display:none}.i-info .i-address a.toggle-map:hover{color:#f60}.i-info .i-address a.toggle-map:before{display:block;height:16px;float:left;margin:0 -10px 0 -15px}.i-info .i-address .i-map{position:relative;margin:0 0 20px;display:none}.i-info .i-contacts,.i-info .i-tags{margin-bottom:15px}.place .i-info .i-address .i-map{margin-left:-120px}.i-info .i-address.map-opened .i-map{display:block}.i-info .i-address .i-map .close-map{position:absolute;right:0;bottom:100%;z-index:20;margin-bottom:15px}.i-info .i-address .i-map .map-canvas{width:100%;height:305px;background:#eee;overflow:hidden;border-radius:4px}.i-info .i-tags{font-size:11px;line-height:16px;color:#a2a2a2;margin-top:-5px}.i-info .i-tags a{color:#a2a2a2;white-space:nowrap}.i-info .i-tags a:hover{color:#f60}.i-info .i-contacts .ic-buttons{width:265px;margin-right:40px;float:left}.i-info .i-contacts .ic-buttons .icb-exit-edit{display:none}.i-info .i-contacts .ic-buttons .soc-media-buttons{margin-top:25px}.i-info .i-contacts .ic-links{font-size:15px;line-height:20px;width:310px;float:left}.ic-tel{font-size:20px;line-height:21px;margin-bottom:4px}.i-additional{margin-bottom:15px;font-size:12px;line-height:15px}.i-additional .ia-title{font-size:20px;line-height:23px;margin-bottom:30px}dl.add-info p{margin:0}dl.add-info{margin:0 0 -7px;padding:0;font-size:12px;line-height:15px}dl.add-info dt{min-height:15px;width:178px;float:left;clear:left;margin:0 5px 10px 0}dl.add-info dd{min-height:15px;padding:0;overflow:hidden;margin:0 0 12px}dl.add-info dd a{text-decoration:none;color:#464646}dl.add-info dd a:hover{text-decoration:none;color:#f60}dl.add-info dd ul{margin:0;padding:0;list-style:none}dl.add-info dd ul li{margin-bottom:3px}.i-statistics>header{padding-left:120px;margin-bottom:20px;font-weight:500;font-size:20px;line-height:23px;color:#f60}.i-statistics>header b{font-weight:700;font-size:40px;letter-spacing:-2px;margin-right:2px}.i-statistics>header .ish-title{width:100px;margin:0 -100% 0 -120px;float:left;font-weight:400;font-size:17px;line-height:18px;text-align:right;color:#464646}.e-details .sect-title,.graph-title{font-family:dindisplay_pro,sans-serif;font-weight:300}.i-statistics>header .ish-data{width:100%;text-align:justify;padding-right:70px;margin-bottom:-20px;-moz-box-sizing:border-box;box-sizing:border-box}.i-statistics>header .ish-data>*{display:inline-block;padding-top:10px;max-width:30%}.i-statistics>header .ish-data:after{content:'';display:inline-block;width:100%;height:0}.i-statistics>header .ish-data a{text-decoration:none;color:#f60}.i-statistics>header .ish-data a:hover{color:#464646}.m-article .sect-title{font-family:dindisplay_pro,sans-serif;font-size:23px;line-height:24px;margin-bottom:15px}.e-details .sect-title{font-size:30px;line-height:32px;color:#feb17d}.m-article .sect-title a{color:#464646;text-decoration:none}.m-article .sect-title a:hover{color:#f60}.graph-title{font-size:25px;line-height:26px;color:#feb17d}.i-staff-list{margin-bottom:15px}.i-staff-list>ul{margin:0;padding:0 0 0 4px;list-style:none}.i-staff-list>ul>li{display:inline-block;width:33%;margin-left:-4px}.i-staff-list>ul>li>a{text-decoration:none;color:#464646}.i-staff-list .sl-item{padding-left:110px}.i-staff-list .sl-pict{display:block;width:90px;height:90px;overflow:hidden;margin:0 -100% 0 -110px;float:left;border-radius:4px}.i-staff-list .sl-info{display:table;width:100%;height:90px}.i-staff-list .sl-info .sl-info-wrap{display:table-cell;vertical-align:middle;padding-right:40px}.i-staff-list .sl-info .sl-name{font-family:dindisplay_pro,sans-serif;font-weight:500;font-size:19px;line-height:20px;color:#f60;margin-bottom:4px}.i-staff-list a:hover .sl-info .sl-name{color:#464646}.i-staff-list .sl-info .sl-position{font-size:11px;line-height:14px}.i-stats{line-height:15px;margin-bottom:7px}.i-date{font-family:dindisplay_pro,sans-serif;font-size:27px;margin:12px 0 10px}.i-discount{margin-top:15px;font-size:10px;line-height:12px;color:#a2a2a2}.i-discount .discount-button{display:block;text-align:center;text-decoration:none;border:none;outline:0;height:26px;padding:1px 5px 0;font-family:dindisplay_pro,sans-serif;font-weight:700;font-size:13px;line-height:25px;text-transform:uppercase;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.3);background:#f60;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#ff8000),color-stop(100%,#f60));background:-webkit-linear-gradient(top,#ff8000 0,#f60 100%);background:-o-linear-gradient(top,#ff8000 0,#f60 100%);background:-webkit-linear-gradient(top,#ff8000 0,#f60 100%);background:-o-linear-gradient(top,#ff8000 0,#f60 100%);background:linear-gradient(to bottom,#ff8000 0,#f60 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8000', endColorstr='#ff6600', GradientType=0 );border-radius:3px;-moz-box-sizing:border-box;box-sizing:border-box}.i-discount .discount-button:hover{background:#ff8000;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fe9150),color-stop(100%,#fe9150));background:-webkit-linear-gradient(top,#fe9150 0,#ff8000 100%);background:-o-linear-gradient(top,#fe9150 0,#ff8000 100%);background:-webkit-linear-gradient(top,#fe9150 0,#ff8000 100%);background:-o-linear-gradient(top,#fe9150 0,#ff8000 100%);background:linear-gradient(to bottom,#fe9150 0,#ff8000 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#fe9150', endColorstr='#ff8000', GradientType=0 )}.i-discount .dsc-text{font-size:10px;line-height:11px;margin-top:5px;padding:0 0 0 10px}.i-buttons .ib-main{float:left}.i-buttons .ib-add{float:right}.i-divs{margin-bottom:20px}.i-divs .i-subj{width:55%;float:left;font-family:dindisplay_pro,sans-serif;font-size:14px}.i-divs .i-subj ul{margin:-3px 0 0;padding:0;list-style:none}.i-divs .i-subj a{color:#6d6d6d}.i-divs .i-subj a:hover,.i-steps ul>li.s1,.i-steps ul>li.s1 a{color:#f60}.i-divs .i-tags{width:45%;float:right;margin-bottom:0}.i-divs .i-tags a{white-space:normal}.i-sub-articles{font-family:dindisplay_pro,sans-serif;font-size:16px;padding:0 0 0 10px;background:#fcf4ee;margin-bottom:25px;border-radius:4px}.i-sub-articles ul{margin:0;padding:0;list-style:none;display:table;width:100%}.i-sub-articles ul>li{display:table-cell;padding:15px}.i-steps{margin-bottom:20px}.i-steps .is-title{font-family:dindisplay_pro,sans-serif;font-weight:100;font-size:26px;line-height:27px;text-align:center;text-transform:uppercase;margin-bottom:15px}.i-steps ul{margin:0;padding:0;list-style:none;display:table;width:100%}.i-steps ul>li{display:table-cell;width:33.3%;padding:0 3px}.i-steps .label{font-size:12px;line-height:15px;font-style:italic;margin-bottom:5px;white-space:nowrap;text-align:center}.i-steps a.step{position:relative;display:block;text-align:center;height:31px;line-height:30px;border:1px solid;font-family:dindisplay_pro,sans-serif;text-transform:uppercase;font-weight:700;font-size:16px;text-decoration:none;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:4px;-webkit-transition:background .3s;-o-transition:background .3s;transition:background .3s}.i-steps ul>li.s1 a:after,.i-steps ul>li.s2 a:after,.i-steps ul>li.s2 a:before,.i-steps ul>li.s3 a:before{content:' ';display:block;width:15px;height:31px;background:url(../img/sprites.png) 0 -144px no-repeat;position:absolute;top:-1px}.i-steps ul>li a:after{right:-1px}.i-steps ul>li a:before{left:-1px}.i-steps ul>li.s1 a:after{background-position:0 -144px}.i-steps ul>li.s1 a:hover{background:#f60;border-color:#f60;color:#fff}.i-steps ul>li.s2,.i-steps ul>li.s2 a{color:#00adef}.i-steps ul>li.s2 a b{color:#1d447d}.i-steps ul>li.s2 a:before{background-position:-15px -144px}.i-steps ul>li.s2 a:after{background-position:-30px -144px}.i-steps ul>li.s2 a:hover{background:#00adef;border-color:#00adef;color:#fff}.i-steps ul>li.s3,.i-steps ul>li.s3 a{color:#ef3976}.i-steps ul>li.s3 a b{color:#08293a}.i-steps ul>li.s3 a:before{background-position:-45px -144px}.i-steps ul>li.s3 a:hover{background:#ef3976;border-color:#ef3976;color:#fff}.i-photo-slides{margin-bottom:25px}.ps-photo-gallery{width:100%;overflow:hidden;border-radius:4px}.ps-photo-gallery ul{margin:0;padding:0;list-style:none;width:100%}.ps-photo-gallery ul>li{width:100%;float:left}.ps-photo-gallery ul>li img{width:100%}.ps-photo-gallery .re-controls{display:none}.ps-photo-gallery .re-controls.enabled{display:block}.ps-photo-gallery .re-controls a{display:block;width:71px;height:0;padding-top:71px;overflow:hidden;position:absolute;top:50%;margin-top:-35px}.ps-photo-gallery .re-controls a:before{content:' ';display:block;width:31px;height:62px;background:url(../img/sprites.png) 0 -63px no-repeat;position:absolute;left:50%;top:50%;margin:-31px 0 0 -15px}.i-event-description,.ied-title{margin-bottom:15px}.ps-photo-gallery .re-controls a.prev{left:0}.ps-photo-gallery .re-controls a.prev:before{background-position:0 -63px}.ps-photo-gallery .re-controls a.next{right:0}.ps-photo-gallery .re-controls a.next:before{background-position:-32px -63px}.ps-photo-gallery .re-controls a.next.disabled,.ps-photo-gallery .re-controls a.prev.disabled{display:none}.ied-title{font-family:dindisplay_pro,sans-serif;font-weight:400;font-size:21px;line-height:22px}.ied-text{font-size:12px;line-height:15px}.i-event-additional{margin-bottom:20px}.i-event-additional .e-docs{width:30%;float:right;margin:0;padding:0;list-style:none;font-family:dindisplay_pro,sans-serif;font-size:15px;line-height:18px}.i-event-additional .e-docs>li{margin-bottom:5px}.i-event-additional .e-docs a:before{content:' ';display:inline-block;vertical-align:middle;width:11px;height:13px;background:url(../img/sprites.png) -211px 0 no-repeat;margin:-1px 5px 0 0}.i-event-additional .add-info{width:70%;padding-right:30px;-moz-box-sizing:border-box;box-sizing:border-box}.i-members{display:table;width:100%;margin-bottom:15px}.i-members>*{display:table-cell;vertical-align:top;padding-left:25px}.i-members .im-title{display:inline-block;font-family:dindisplay_pro,sans-serif;font-size:23px;line-height:24px;margin:0 0 12px}.i-members .im-title:before{content:' ';display:block;width:17px;height:15px;background:url(../img/sprites.png) -239px -33px no-repeat;float:left;margin:4px -100% 0 -25px}.i-members .im-visitors .im-title:before{width:13px;background-position:-188px -16px;margin-left:-22px}.i-members a.more{font-size:11px;display:block}.i-members ul{margin:0;padding:0;list-style:none}.i-members ul a{color:#464646}.i-members ul a:hover{color:#f60}.i-members .im-participants{width:70%;padding-right:30px}.i-members .im-participants .button.icon-up:before{background-position:-365px -108px}.i-members .im-participants .button.icon-up:hover:before{background-position:-365px -92px}.i-members .im-title{width:33.3%}.i-members .im-participants a.more{margin-left:-3px}.i-members .im-participants ul{padding:4px 0 0 4px}.i-members .im-participants ul li{display:inline-block;vertical-align:top;width:33.3%;margin-left:-4px;margin-bottom:20px}.eni-area-wrap .eni-area,.eni-stats .enis-item,.eni-stats .enis-item b{display:inline-block;vertical-align:middle}.i-members .im-participants ul li a{display:block;width:140px;font-size:11px;line-height:14px;text-align:center}.i-members .im-participants ul li a .imp-pict{position:relative;display:block;width:140px;overflow:hidden;margin-bottom:5px;border-radius:4px}.i-members .im-participants ul li a img{display:block;width:140px}.i-members .im-participants ul li a .imp-pict:before{content:'';display:block;position:absolute;width:100%;height:100%;border-radius:4px;box-shadow:inset 0 1px 0 rgba(0,0,0,.2)}.i-members .im-visitors{width:30%;font-size:12px;line-height:17px}.i-members .im-visitors ul li{margin-bottom:2px}.e-num-info{padding-left:130px;margin-bottom:30px;font-family:dindisplay_pro,sans-serif;min-height:120px;margin-top:30px}.eni-area-wrap{color:#f60;position:relative}.eni-area-wrap .eni-title{position:absolute;top:0;left:0;margin-left:-130px;display:block;width:110px;margin-right:16px;font-size:20px;line-height:21px;text-align:right;-webkit-transition:color .3s;-o-transition:color .3s;transition:color .3s;color:#464646;margin-top:28px}.eni-area-wrap .eni-title:hover{color:#f60}.eni-area-wrap .eni-area{font-weight:700;font-size:120px;line-height:120px;letter-spacing:-2px;margin-bottom:-5px}.e-num-info sup{font-size:60%}.eni-stats{line-height:47px;margin-bottom:10px}.eni-stats .enis-item{margin-right:50px;font-size:20px}.eni-stats .enis-item b{font-size:45px}.eni-founded{font-size:23px;color:#a2a2a2}.eni-areas{margin:20px 0}.eni-areas .enis-col{width:225px;display:inline-block;vertical-align:top;margin-right:16px;font-size:15px;line-height:20px}.eni-areas .enis-col b,.eni-holds .enis-item b{display:block;vertical-align:middle;font-size:45px;line-height:40px;margin-bottom:-5px;letter-spacing:-1px}.eni-areas .enis-col b{margin-bottom:-3px}.eni-areas .enis-col .enc-title{color:#f60;margin-bottom:5px}.eni-areas .enis-col ul{margin:0;padding:0;list-style:none}.eni-areas .enis-col ul li{margin-bottom:2px;color:#a2a2a2}.eni-areas .enis-col ul li i{color:#464646;font-style:normal}.eni-holds{margin:25px 0 25px -130px}.eni-holds .eni-title{display:inline-block;vertical-align:middle;width:110px;margin-right:16px;font-size:17px;line-height:20px;text-align:right;color:#f60}.eni-holds .enis-item{display:inline-block;vertical-align:middle;margin-right:50px;font-size:20px;line-height:21px;text-align:center}.i-events-list+.m-article{margin-top:30px}.h-booking{margin:30px -30px 30px 0;padding:0 20px}.m-article .h-booking{margin:0 -30px 0 0;padding:0}.h-booking header{margin-bottom:15px}.h-booking .sect-title{display:inline-block;font-family:dindisplay_pro,sans-serif;font-size:23px;line-height:24px;color:#40bbea;width:581px}.h-booking .sect-title a{color:#40bbea;text-decoration:none}.h-booking .sect-title a:hover{color:#1d447d}.m-article .h-booking .sect-title{margin:0}.h-booking .sect-title b{font-weight:400;color:#1d447d}.h-booking a.more{font-size:11px}.h-booking ul{margin:0;padding:0 0 0 4px;list-style:none}.h-booking ul li{display:inline-block;vertical-align:top;width:150px;margin-right:40px;text-align:center}.h-booking ul li a{font-size:12px;line-height:15px;color:#32a7d3;display:block}.h-booking .hb-link{margin-bottom:.8em;display:block;line-height:1em}.h-booking .hb-pict{display:block;width:150px;height:150px;overflow:hidden;margin-bottom:7px;border-radius:4px}.h-booking .hb-pict img{width:100%}.h-booking ul li .hb-price{font-family:dindisplay_pro,sans-serif;font-weight:700;font-size:16px;line-height:19px;color:#1d447d;margin:3px 0}.h-booking ul li a.button{font-size:13px}.e-cat .sect-title,.i-events-list .sect-title{font-family:dindisplay_pro,sans-serif;font-size:23px;line-height:24px}.e-cat{margin-bottom:40px}.e-cat .sect-title,.i-services{margin-bottom:20px}.m-article+.e-cat{margin-top:30px}.e-cat .sect-title{color:#f60;padding:0 20px}.e-cat .sect-title a{color:#f60;text-decoration:none}.e-cat .sect-title a:hover{color:#464646}.i-services li{color:#f60}.i-services .is-wrap{margin-right:-20px}.i-services ul{margin:0;padding:0;list-style:none;width:33.3%;float:left}.i-services ul li{margin-bottom:3px;padding-right:30px}.e-pv-container{margin:20px 0}.div-img-wrap img{display:block;width:100%}.e-video-container{margin-top:20px}.div-video-wrap{background:#000}.div-video-wrap iframe{margin:0 auto;display:block}.i-events-list{margin-bottom:20px}.i-events-list .sect-title{color:#f60;padding-left:20px;margin-bottom:20px}.i-contacts{margin:30px 0}.i-contacts .sect-title{margin-bottom:20px}.i-contacts .ic-wrap{display:table;width:100%;font-size:13px;line-height:16px}.i-contacts .ic-wrap .ic-col{display:table-cell;vertical-align:top;width:55%}.i-contacts .ic-wrap .ic-col:first-child{width:45%;padding-right:30px}.i-contacts .ic-addr{min-height:32px}.i-contacts .ic-wrap .ic-col ul.tels{margin:0;padding:0;list-style:none}.s-comments{margin:30px 0}.s-comments .sect-title{padding-left:20px;margin-bottom:15px;font-family:dindisplay_pro,sans-serif;font-size:22px;line-height:23px;color:#f60}.sc-comments .cl-item-wrap{padding-left:90px}.sc-comments .cli-pict{margin-left:-90px;width:70px;height:70px;line-height:65px;padding:2px}.sc-comments .cli-info{margin-bottom:0}.sc-comments .sc-name{font-family:dindisplay_pro,sans-serif;font-weight:500;font-size:17px;line-height:20px;color:#f60;margin:-7px 0 10px}.sc-comments .sc-name a{text-decoration:none;color:#f60}.sc-comments .sc-name a:hover{color:#000}.ma-text h2,.ma-text h3,.order-button,.rq-order-button{font-family:dindisplay_pro,sans-serif;color:#f60}.sc-comments .sc-text{font-size:12px;line-height:16px}.ma-text{font-size:13px;line-height:16px}.ma-text h2{font-weight:400;font-size:25px;line-height:26px;margin:25px 0 20px}.ma-text h3{font-weight:400;font-size:20px;line-height:23px;margin:20px 0 15px}.ma-text p{margin:20px 0}.ma-text>:first-child{margin-top:0}.ma-text .pt-block{margin:25px 0}.ma-text .pt-block img{float:left;margin-right:30px}.ma-text .pt-block.p-right img{float:right;margin-left:30px}.ma-text .pt-block .ptb-text{overflow:hidden}.ma-text .pt-block .ptb-text>:first-child{margin-top:0}.ma-text .pt-block .ptb-text ul{margin:0;padding:0;list-style:none}.ma-text .pt-block .ptb-text ul li{padding-left:16px;margin-bottom:7px}.ma-text .pt-block .ptb-text ul li:before{content:'';display:block;width:11px;height:8px;background:url(../img/sprites.png) -287px -51px no-repeat;float:left;margin:5px -100% 0 -16px}.s-slide-gallery-wrap{width:100%;overflow:hidden}.s-slide-gallery{margin-right:-15px;overflow:hidden}.s-slide-gallery ul{width:100%}.s-slide-gallery li{width:25%;padding-right:15px;float:left;-moz-box-sizing:border-box;box-sizing:border-box}.s-slide-gallery li a{display:block;overflow:hidden;border-radius:4px}.s-slide-gallery li img{width:100%}.s-slide-gallery .re-controls{display:none}.s-slide-gallery .re-controls.enabled{display:block}.s-slide-gallery .re-controls a{display:block;width:71px;height:0;padding-top:71px;overflow:hidden;position:absolute;top:50%;margin-top:-35px}.s-slide-gallery .re-controls a:before{content:' ';display:block;width:31px;height:62px;background:url(../img/sprites.png) 0 -63px no-repeat;position:absolute;left:50%;top:50%;margin:-31px 0 0 -15px}.s-order,.s-order .so-col+.so-col{width:100%}.s-slide-gallery .re-controls a.prev{left:0}.s-slide-gallery .re-controls a.prev:before{background-position:0 -63px}.s-slide-gallery .re-controls a.next{right:15px}.s-slide-gallery .re-controls a.next:before{background-position:-32px -63px}.s-slide-gallery .re-controls a.next.disabled,.s-slide-gallery .re-controls a.prev.disabled{display:none}.s-order{margin:25px 0;display:table}.s-order .so-col{display:table-cell;vertical-align:middle;padding-right:40px}.order-button,.rq-order-button{display:inline-block;text-decoration:none;border:1px solid #f60;height:44px;white-space:nowrap;border-radius:4px}.rq-order-button .rqob-wrap{display:table;border:none;border-collapse:collapse}.order-button>a,.order-button>span{display:inline-block;vertical-align:top;padding:1px 20px 0;line-height:43px;height:44px;-moz-box-sizing:border-box;box-sizing:border-box}.rq-order-button .rqob-wrap>*{display:table-cell;padding:0;line-height:43px;height:44px;-moz-box-sizing:border-box;box-sizing:border-box}.order-button .ob-price{font-size:25px}.rq-order-button .rqob-wrap .rqob-price{vertical-align:middle;padding:0 30px;font-size:25px;line-height:44px}.order-button .rqob-button{vertical-align:top}.order-button .ob-text,.rq-order-button .ob-text,.rq-order-button button{font-weight:700;font-size:17px;text-decoration:none;text-transform:uppercase;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.3);border-radius:0;background:#f60;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#ff8000),color-stop(100%,#f60));background:-webkit-linear-gradient(top,#ff8000 0,#f60 100%);background:-o-linear-gradient(top,#ff8000 0,#f60 100%);background:-webkit-linear-gradient(top,#ff8000 0,#f60 100%);background:-o-linear-gradient(top,#ff8000 0,#f60 100%);background:linear-gradient(to bottom,#ff8000 0,#f60 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8000', endColorstr='#ff6600', GradientType=0 )}.rq-order-button .ob-text,.rq-order-button button{display:block;width:100%;height:44px;font-size:17px;line-height:45px;text-align:center;padding:1px 20px 0;-moz-box-sizing:border-box;box-sizing:border-box}.order-button a.ob-text:hover,.rq-order-button a.ob-text:hover,.rq-order-button button:hover,a.order-button:hover .ob-text{background:#ff8000;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fe9150),color-stop(100%,#ff8000));background:-webkit-linear-gradient(top,#fe9150 0,#ff8000 100%);background:-o-linear-gradient(top,#fe9150 0,#ff8000 100%);background:-webkit-linear-gradient(top,#fe9150 0,#ff8000 100%);background:-o-linear-gradient(top,#fe9150 0,#ff8000 100%);background:linear-gradient(to bottom,#fe9150 0,#ff8000 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#fe9150', endColorstr='#ff8000', GradientType=0 )}.order-button .ob-text:after,.rq-order-button .ob-text:after,.rq-order-button button:after{content:'';display:inline-block;vertical-align:middle;width:8px;height:12px;background:url(../img/sprites.png) -175px 0 no-repeat;margin:-1px 0 0 7px}.s-note p,.s-note ul{margin:7px 0}.order-button .rub,.rq-order-button .rub{font-size:22px}.order-descr{font-size:13px;line-height:15px;color:#f60}.s-note{font-size:12px;line-height:15px}.s-note ul{padding:0;list-style:none}.s-note ul li{padding-left:10px}.s-note ul li:before{content:'-';float:left;margin:0 -100% 0 -10px}.messages-list{margin:0;padding:0;list-style:none}.messages-list>li{padding:20px 20px 5px;background:#fcfcfb;margin-bottom:15px;border-radius:4px;box-shadow:inset 0 1px 0 rgba(0,0,0,.2)}.messages-list>li.mi-new{padding:19px 19px 4px;border:1px solid #f60;box-shadow:none}.messages-list>li:hover{background:#fff}.messages-list .mi-wrap{position:relative;padding-left:90px;margin-bottom:15px}.messages-list .mi-wrap.me{padding:0 90px 0 0}.messages-list>li>a{color:#464646;text-decoration:none}.messages-list .mi-pict{width:70px;height:70px;line-height:65px;text-align:center;overflow:hidden;margin:0 -100% 0 -90px;float:left;border-radius:4px}.messages-list .me .mi-pict{margin:0 -90px 0 -100%;float:right}.messages-list .mi-pict img{max-width:100%;max-height:100%;vertical-align:middle}.messages-list .mi-body{width:100%;float:left}.messages-list .mi-body>header{padding-right:130px}.messages-list .mi-time{width:110px;float:right;font-size:11px;line-height:16px;color:#a2a2a2;text-align:right;margin:0 0 0 -110px}.messages-list .me .mi-time{float:left;margin:10px 0 0;text-align:left}.messages-list .mi-sender{font-family:dindisplay_pro,sans-serif;font-size:18px;line-height:19px;color:#f60;margin-bottom:7px}.messages-list .mi-sender a{color:#f60;text-decoration:none}.messages-list .mi-sender a:hover{color:#464646}.messages-list .me .mi-sender{color:#2592c5}.messages-list .mi-buttons{margin-bottom:10px;display:none}.set-sect{padding:10px 20px;background:#fcfcfb;margin-bottom:20px;border-radius:4px;box-shadow:inset 0 1px 0 rgba(0,0,0,.2)}.set-sect.p-form{padding:20px}.set-sect>header{font-family:dindisplay_pro,sans-serif;text-transform:uppercase;color:#a2a2a2;padding:5px 0;cursor:pointer}.a-graphic,.cal-lists,.cl-news header .news-header-body,.e-price,.e-programm .ep-item footer,.e-programm .ep-item header,.e-statistic,.edit-wrap .e-form,.ep-sect-title,.mf-photos-list,.p-calendar,.request-form .rq-form .rqf-title,.request-form .rq-info .rqi-body h2,.request-form .rq-info .rqi-body h3,.request-form .rq-info .rqi-body h4,.set-sect .set-sect-title,.targets{font-family:dindisplay_pro,Arial,sans-serif}.set-sect>header:before{content:'';display:inline-block;vertical-align:middle;width:14px;height:15px;background:url(../img/sprites.png) -196px -32px no-repeat;margin:0 4px 0 0}.set-sect.closed>header:before{background-position:-250px -109px}.set-sect .set-sect-body{margin:20px 0 10px}.set-sect.closed .set-sect-body{display:none}.mf-buttons-line{margin-top:25px}.mf-line{margin-bottom:15px}.mf-line.cols-2{display:table;width:100%}.mf-line .mf-field{padding-right:10px;width:65%;display:inline-block;box-sizing:border-box;padding-bottom:5px}.mf-line .mf-field,.mf-soc-m .mf-soc-col{vertical-align:top;-moz-box-sizing:border-box}.mf-line .mf-field.full-width{width:100%}.mf-line.cols-2 .mf-field,.mf-line.cols-2>label{display:table-cell;width:50%;padding:0 0 5px 10px}.mf-line.cols-2 .mf-field:first-child,.mf-line.cols-2>label:first-child{padding:0 10px 5px 0}.mf-line.full-width .mf-field{padding:0 0 5px;width:100%}.ch-pwd .mf-line .mf-field{width:47%}.tabs-content .mf-line .mf-field{display:block}.mf-line.full-width>label{display:block;margin-bottom:5px}.mf-soc-m .sm-i,.mf-soc-m a.clear{vertical-align:middle;display:inline-block}.mf-line>label.check{font-size:15px;margin-right:40px}.mf-line>label.check i{font-style:normal;font-size:12px;color:#a2a2a2}.mf-soc-m{margin:-5px 0 10px}.mf-soc-m .mf-soc-col{padding-right:10px;width:47%;display:inline-block;box-sizing:border-box}.mfsm-title{font-size:15px;margin-bottom:10px}.mf-soc-m .mf-soc-col+.mf-soc-col .mfsm-title{color:#a2a2a2}.mf-soc-m .sm-i{font-size:18px;line-height:21px;padding-top:4px}.mf-soc-m .sm-i img{vertical-align:middle;margin:-4px 4px 0 0}.mf-soc-m a.clear{position:relative;width:30px;height:0;padding-top:30px;overflow:hidden;margin:-5px 0}.mf-soc-m a.clear:before{content:'';display:block;width:9px;height:10px;background:url(../img/sprites.png) -162px -52px no-repeat;position:absolute;left:50%;top:50%;margin:-5px 0 0 -5px}.mf-soc-m a.clear:hover:before{background-position:-238px -121px}.mf-soc-m .sm-body ul{margin:0;padding:0;list-style:none}.mf-soc-m .sm-body ul li{display:inline-block;margin-right:5px}.mf-checks-title{font-size:15px;margin-bottom:15px;color:#a2a2a2}.mf-announces{padding-left:205px}.mf-announces .mf-subj-checks-title{display:block;width:155px;margin:0 -100% 0 -205px;float:left}.mf-announces .mf-announces-body.disabled{opacity:.5}.lt-ie9 .mf-announces .mf-announces-body.disabled{-ms-filter:alpha(opacity=30);filter:alpha(opacity=30)}.set-sect.subscribe label.check{font-size:17px}.set-sect.subscribe .tabs-content label.check{font-size:15px}.set-sect.subscribe .mf-subj-checks-title label.check{font-size:17px}.set-sect .tabs-content,.tabs-content .mf-line.subj-checks{margin-bottom:25px}.mf-line.subj-checks>label.check{margin-right:30px}.tabs-content .mf-line{margin-bottom:10px}.tabs-content .mf-line .mf-field .custom-select,.tabs-content .mf-line .mf-field select{width:100%}.mf-line.country{margin:20px 0 5px}.mf-line.subj{margin:20px 0 25px}.mf-line.city>label,.mf-line.country>label,.mf-line.subj>label{display:block;font-size:17px;width:65%;margin:0 0 5px;-moz-box-sizing:border-box;box-sizing:border-box}.p-editable{position:relative}.p-editable.pe-active{padding-left:24px}.i-pict.p-editable.pe-active{padding-left:0}.i-info header .i-place.p-editable.pe-active{padding-left:24px}.i-info header .i-place.p-editable.pe-active:before{content:none}.ed-back a:before,.edit-wrap .e-form .ef-close:before,.edit-wrap .e-form:before,.ep-sect-title a:before,.tg-title:before{content:''}.edit-wrap{position:absolute;left:0;top:0;display:none;margin:-1px 0 0 -6px}.e-btn,.e-btn:before,.p-editable.pe-active .edit-wrap{display:block}.i-pict.p-editable .edit-wrap{left:100%;top:5px;margin:0 0 0 -30px;line-height:1em}.i-place.p-editable .edit-wrap{margin-top:10px}.i-additional .p-editable .edit-wrap,.i-descr.p-editable .edit-wrap{margin-top:-6px}.ic-buttons .p-editable .edit-wrap{margin-top:-2px}.ic-tel.p-editable .edit-wrap{margin-top:0}.e-btn{position:relative;width:24px;height:0;padding-top:24px;overflow:hidden;border-radius:3px;-webkit-transition:none;-o-transition:none;transition:none}.i-pict.p-editable .e-btn{background:#fcfcfb;width:25px}.e-btn:before{position:absolute;left:5px;top:4px;font-size:18px;color:#f60}.e-btn:hover{opacity:.7}.lt-ie9 .e-btn:hover{filter:alpha(opacity=70)}.i-pict.p-editable .e-btn:hover{background:#f60}.p-editable.pe-current .e-btn{width:28px;background:#f60;border-radius:3px 0 0 3px}.p-editable.pe-current .e-left .e-btn{width:28px;border-radius:0 3px 3px 0}.i-pict.p-editable .e-btn:hover,.p-editable.pe-current .e-btn:hover{opacity:1}.lt-ie9 .i-pict.p-editable .e-btn:hover,.lt-ie9 .p-editable.pe-current .e-btn:hover{filter:alpha(opacity=100)}.i-pict.p-editable .e-btn:hover:before,.p-editable.pe-current .e-btn:before{color:#fff}.i-pict.p-editable.pe-current .e-btn{width:33px}.edit-wrap .e-form{position:absolute;left:28px;top:0;width:600px;z-index:2;font-size:12px;line-height:15px;text-align:left;background:#f60;padding:9px 20px 15px;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:0 3px 3px;display:none}.i-pict.p-editable .edit-wrap .e-form{left:32px}.ic-links .edit-wrap .e-form{width:330px}.edit-wrap.e-left .e-form{left:auto;right:100%;border-radius:3px 0 3px 3px}.edit-wrap .e-form:before{display:block;width:0;height:0;border:1px solid;border-color:#f60 #f60 transparent transparent;border-radius:2px;position:absolute;right:100%;top:24px}.edit-wrap.e-left .e-form:before{border-color:#f60 transparent transparent #f60;right:auto;left:100%}.p-editable.pe-active.pe-current .edit-wrap .e-form{display:block}.edit-wrap .e-form .ef-body{width:420px;float:left;word-spacing:16px;margin-bottom:-10px}.ic-links .edit-wrap .e-form .ef-body{width:150px}.edit-wrap .e-form .epfl{display:inline-block;vertical-align:top;word-spacing:normal;min-width:200px;margin-bottom:10px}.ic-links .edit-wrap .e-form .epfl{width:150px;min-width:0}.i-pict .edit-wrap .e-form .epfl{display:block}.edit-wrap .e-form .ef-body .epf-field>label,.edit-wrap .e-form .ef-body .epfl>label{color:#fff;display:block;margin-bottom:5px}.edit-wrap .e-form .ef-body .epf-field>label{word-spacing:normal}.edit-wrap .e-form .ef-body .epfl>label img{margin:-3px 0 -2px}.edit-wrap .e-form .epfl .c-select-box{width:200px}.e-form .custom-select select,.e-form select{width:200px;height:26px}.e-form input[type=text]{height:29px;line-height:26px;padding-left:6px}.e-form input[type=text]:focus{border-width:1px}.i-title .e-form input[type=text]{width:420px}.edit-wrap .e-form textarea{width:420px;height:90px;border-width:1px}.edit-wrap .e-form .ef-buttons{float:right;padding-top:20px}.edit-wrap .e-form .ef-close{display:block;width:22px;height:0;padding-top:22px;overflow:hidden;position:absolute;right:15px;top:5px}.edit-wrap .e-form .ef-close:before{display:block;width:9px;height:10px;background:url(../img/sprites.png) -63px -159px no-repeat;position:absolute;left:50%;top:50%;margin:-5px 0 0 -4px}.a-graphic,.ep-item .ep-title span,.tad-price li{position:relative}.ed-back{margin:20px 0}.ed-back a{display:inline-block;font-size:17px;line-height:17px;text-decoration:none;border:1px solid #fcaf7b;padding:5px 25px;border-radius:4px}.ed-back a:before{display:inline-block;width:6px;height:11px;background:url(../img/sprites.png) -157px 0 no-repeat;margin-right:8px}.ed-back a:hover{color:#fff;background:#f60;border-color:#f60}.ed-back a:hover:before{background-position:-115px 0}.e-programm,.ep-sect{margin-bottom:30px}.ep-sect-title{height:12px;border-bottom:1px dotted #ccc;font-size:25px;line-height:25px;font-weight:700}.e-programm .ep-sect-title{height:14px;font-size:30px;line-height:30px}.p-calendar .ep-sect-title{font-size:17px;line-height:20px;border:none;height:auto;color:#959595}.ep-sect-title a{display:inline-block;text-decoration:none;text-transform:uppercase;background:#fcfcfb;padding:0 10px 0 5px;color:#464646}.e-programm .ep-sect-title a{min-width:180px;margin-left:-5px}.p-calendar .ep-sect-title a{color:#959595}.ep-sect-title a:before{display:inline-block;width:18px;height:18px;background:url(../img/sprites.png) -296px -22px no-repeat;margin-right:8px}.e-programm .ep-sect-title a:before{width:21px;height:21px;background-position:-317px 0;margin-right:8px}.eps-opened .ep-sect-title a:before{background-position:-315px -22px}.e-programm .eps-opened .ep-sect-title a:before{background-position:-295px 0}.p-calendar .ep-sect-title a:before{width:13px;height:14px;background-position:-250px -109px;margin-right:5px;vertical-align:middle;margin-top:-2px}.p-calendar .eps-opened .ep-sect-title a:before{background-position:-211px -145px}.ep-sect-body{padding-top:25px;display:none}.eps-opened .ep-sect-body{display:block}.e-programm ul{margin:0;padding:0;list-style:none}.e-programm li{margin-top:20px;padding:15px 0 5px}.e-programm li:first-child{margin-top:0}.e-programm .ep-item{border:1px dotted #ccc;padding:0 10px 0 30px}.e-programm .ep-item header{margin-top:-15px;padding:0 0 0 160px}.ep-item .ep-time{font-size:25px;line-height:25px;color:#f60;background:#fcfcfb;padding:0 5px;float:left;margin:0 -100% 0 -165px}.ep-item .ep-title{display:inline;font-size:22px;line-height:25px;background:#fcfcfb;outline:#fcfcfb solid 6px;outline-offset:-1px}.ep-item .ep-body{font-size:12px;line-height:16px;margin:7px 0}.ep-item .ep-body p{margin:7px 0}.ep-item .ep-body .ep-coord{color:#f60}.e-programm .ep-item footer{font-size:15px;line-height:15px;margin-bottom:-7px}.ep-item .ap-area{display:inline-block;padding:0 5px;color:#8f8f8f;background:#fcfcfb;margin-left:-5px}.e-programm+.i-steps,.e-statistic+.i-steps{margin-top:40px;margin-bottom:15px}.ep-stats{padding:5px 25px 0;border-bottom:1px dotted #ccc;margin-bottom:25px}.ep-stats .eps-item{width:220px;float:right;font-weight:700;font-size:28px;line-height:28px;margin-bottom:-13px}.ep-stats .eps-item:first-child{color:#f60;width:450px;float:left}.ep-stats b{display:block;font-size:120px;line-height:120px;margin-top:-10px;word-spacing:-10px;letter-spacing:-7px;white-space:nowrap}.ep-stats .eps-text{display:block;margin:-18px 0 0;padding:0 5px;background:#fcfcfb;float:left}.ep-info{padding:0 30px;margin-bottom:20px}.ep-info .ep-area-wrap{width:450px;float:left;font-size:80px;line-height:80px}.ep-info .epa-title{font-size:18px;line-height:18px;width:110px;padding-top:12px;float:left}.ep-info .epa-area{display:inline-block;font-weight:100;letter-spacing:-2px;word-spacing:-5px}.ep-info .epa-area sup{display:inline-block;font-size:45px;margin:0 0 0 3px}.ep-info .ep-founded{width:210px;float:right;font-size:16px;line-height:18px;color:#afafae;padding-top:14px}.ep-founded b{display:block;font-size:40px;line-height:40px;letter-spacing:-1px;margin:0 0 -5px -2px}.ep-countries{padding:0 30px 0 140px;border-top:1px dotted #ccc;font-size:18px;color:#f60}.ep-countries .epc-title{color:#feb17d;background:#fcfcfb;margin:-10px -100% 0 -115px;padding:0 5px;float:left}.ep-countries .epc-list{margin-top:-10px;display:table;table-layout:fixed;width:100%}.ep-countries ul{margin:0;padding:0;list-style:none;display:table-cell;vertical-align:top}.ep-countries ul+ul+ul{width:215px}.ep-countries ul li{padding:0 5px;background:#fcfcfb;margin-top:4px;float:left;clear:left}.clear,.clearfix:after,.mf-photos-list li:after,.tad-price li:after{clear:both}.ep-countries ul li:first-child{margin-top:0}.e-price{font-size:15px;line-height:18px;margin-bottom:5px}.epr-title,.pr-list .prl-value{font-weight:700;font-size:28px}.e-price-wrap{margin:0 -20px;padding-top:15px}.epr-layout{display:table;width:100%;border-spacing:20px 0}.eprl-col{border:1px dotted #ccc;display:table-cell;vertical-align:top;padding:0 15px 15px}.eprl-col:first-child{width:350px}.epr-title{margin:-12px 0 20px -5px}.epr-title span{display:inline-block;padding:0 5px;background:#fcfcfb}.epr-subtitle{color:#f60;font-weight:700;text-transform:uppercase;margin-bottom:10px}.pr-list{margin:0 0 20px;padding:0;list-style:none;color:#f60}.pr-list.grey{color:#8b8b8b}.pr-list li{margin-bottom:3px;word-spacing:-2px;white-space:nowrap}.pr-list .prl-value{display:inline-block;vertical-align:middle;border:1px solid #ffd2b2;height:32px;padding:2px 15px 0;line-height:32px;word-spacing:-4px;border-radius:4px 0 0 4px;max-width:94px}.pr-list .prl-value .small{word-spacing:0;white-space:normal;font-size:14px;display:block;line-height:1em;padding-top:2px}.pr-list .prl-descr{display:inline-block;vertical-align:top;border:1px solid #ffd2b2;min-height:34px;padding:0 15px;font-size:18px;line-height:32px;word-spacing:normal;white-space:normal;border-radius:0 4px 4px 0}.pr-list.grey .prl-descr,.pr-list.grey .prl-value{border-color:#c6c6c6}.pr-list .prl-descr span{display:inline-block;vertical-align:middle;line-height:19px}.epr-conditons{margin-top:20px}.epr-conditons p{margin:0}.tp-btn-wrap,.tp-wrap{display:table;table-layout:fixed;width:100%;border-spacing:0;margin-bottom:20px}.tp-btn-wrap>*,.tp-wrap>*{display:table-cell;vertical-align:middle;margin-bottom:0}.t-layout .t-col,.tp-btn-wrap>*{vertical-align:top}.tp-btn-wrap .tp-btn,.tp-wrap .pr-list{width:262px}.tp-btn-wrap .tp-categories,.tp-wrap .tp-descr{font-weight:500;font-size:14px;line-height:17px;text-transform:uppercase;color:#f60}.tp-wrap .tp-descr.grey{color:#8b8b8b}.tp-btn-wrap{margin-bottom:0}.tp-btn-wrap .tp-categories{font-weight:400;text-transform:none}.tp-btn-wrap .tp-categories .tpc-title{font-size:13px;color:#feb17d;margin-bottom:3px}.tp-btn-wrap .tp-categories ul{margin:0;padding:0 0 0 15px;font-size:15px;line-height:16px;font-weight:700}.targets{font-size:15px;line-height:16px}.t-layout{display:table;width:100%}.t-layout .t-col{display:table-cell;width:50%;padding-right:20px}.tg-title{font-size:22px;line-height:22px;color:#f60;margin-bottom:10px}.tg-title:before{display:inline-block;width:24px;height:23px;background:url(../img/sprites.png) -300px -41px no-repeat;margin:0 5px -3px 0}.tg-title.icon-case:before{width:23px;height:19px;background-position:-300px -65px;margin:0 6px -1px 0}.targets ul{margin:0;padding:0 0 0 30px;list-style:none}.targets ul li{margin-bottom:5px}.targets small{display:inline-block;font-size:13px}.tad-price ul{margin:0;padding:0;list-style:none}.tad-price li{padding:17px 230px 20px 20px;margin-bottom:20px;background:#fcfcfb;box-shadow:inset 0 1px 0 #e8e8e7;border-radius:4px;-webkit-transition:background .3s;-o-transition:background .3s;transition:background .3s}.tad-price li:after,.tad-price li:before{content:" ";display:table}.tad-price li.p-left{padding:17px 20px 20px 230px}.tad-price .tad-pict{width:190px;float:right;padding:5px 0;margin:0 -210px 0 -100%}.tad-price li.p-left .tad-pict{float:left;margin:0 -100% 0 -210px}.tad-price .tad-pict img{width:190px}.tad-price .tad-pict a:hover img{opacity:.9}.cl-item.cpe-inactive .cl-item-wrap,.cl-item.cpe-inactive .cli-pb-button .button.more,.cl-item.cpe-inactive .cli-pb-info,.cl-item.cpe-inactive .cli-photo-list .clipl-wrap,.set-sect.passed .set-sect-title .afh-right .button,.set-sect.passed .set-sect-title h3{opacity:.5}.tad-price h3{font-family:dindisplay_pro,Arial,sans-serif;font-weight:400;font-size:25px;line-height:26px;margin:0 0 10px}.tadi-text{font-size:13px;line-height:16px;min-height:55px;margin-bottom:25px}.tad-price p{margin:10px 0 0;color:#464646}.tad-price p:first-child{margin-top:0}.btn-wrap{margin:25px 0 5px}.btn-wrap .tad-prise-descr{padding-left:21px;margin-top:5px;color:#f60}.a-graphic{font-size:12px;line-height:14px;padding-top:10px}.a-graphic table{width:100%}.a-graphic>table>tbody>tr>td{width:100%;padding:0 5px 0 20px;vertical-align:top;background:url(../img/ag-bg.png)}.a-graphic>table>tbody.bottom>tr>td{background:0 0;vertical-align:middle}.a-graphic>table>tbody>tr>td:first-child{width:auto;padding:0 10px 0 0;height:20px;vertical-align:middle;text-align:left;background:0 0}.a-graphic>table>tbody>tr>td>div{display:inline-block;min-width:45px;height:20px;line-height:20px;text-align:right}.a-graphic>table>tbody.bottom>tr>td:first-child{font-size:11px;line-height:12px;color:#aeaeae;height:35px}.a-graphic>table>tbody.bottom>tr>td:first-child div{line-height:12px;text-align:center}.a-graphic table table{table-layout:fixed}.a-graphic table table td{width:20%;padding:0 5px}.a-graphic tbody.main table td{vertical-align:bottom}.a-graphic tbody.bottom table td{text-align:center;font-size:14px;font-weight:500;color:#f60}.a-graphic .at-bar{height:20px;background:#f60;border-radius:4px}.a-graphic .at-bar.bh1{height:20px}.a-graphic .at-bar.bh2{height:40px}.a-graphic .at-bar.bh3{height:60px}.a-graphic .at-bar.bh4{height:80px}.a-graphic .at-bar.bh5{height:100px}.a-graphic .at-bar.bh6{height:120px}.a-graphic .at-bar.bh7{height:140px}.a-graphic .at-bar.bh8{height:160px}.a-graphic .at-bar.bh9{height:180px}.a-graphic .at-bar.bh10{height:200px}.a-graphic .at-bar .atb-text{padding:10px 5px;color:#fff;font-size:13px;text-align:center}.a-graphic .at-bar .atb-text p{margin:30px 0 0}.a-graphic .at-bar .atb-text p:first-child{margin-top:10px;font-size:15px}.a-graphic .at-bar .atb-text p b{display:block;font-weight:500;font-size:20px;line-height:21px;word-spacing:-2px;white-space:nowrap}.a-graphic .at-bar .atb-text p:first-child b{display:block;font-size:25px;line-height:25px;word-spacing:-3px}.p-calendar .ep-sect{margin-bottom:0}.p-calendar .ep-sect-body{padding-top:10px}.p-calendar .ep-sect-body header{height:15px;margin-bottom:25px;text-align:center;border-bottom:1px dotted #ccc}.p-calendar .pc-month-wrap{display:inline-block;padding:0 10px;background:#fcfcfb}.p-calendar .pc-month-wrap a{position:relative;display:inline-block;vertical-align:middle;width:18px;height:0;padding-top:18px;overflow:hidden;background:#464646;border-radius:18px}.p-calendar .pc-month-wrap a:hover{background:#f60}.p-calendar .pc-month-wrap a:before{content:'';display:block;width:8px;height:12px;background:url(../img/sprites.png) -225px -134px no-repeat;position:absolute}.cal-item .cli-title,.ce-ico,.cli-icos,.p-calendar .pc-month{display:inline-block}.p-calendar .pc-month-wrap a.pcm-prev:before{background-position:-225px -134px;left:4px;top:4px}.p-calendar .pc-month-wrap a.pcm-next:before{background-position:-175px 0;right:4px;top:4px}.p-calendar .pc-month{vertical-align:middle;font-weight:700;font-size:30px;line-height:30px;text-transform:uppercase;margin:0 15px}.cal-wrap{margin:0 -20px}.calendar-container{width:100%;position:relative;padding-right:20px;-moz-box-sizing:border-box;box-sizing:border-box}.calendar-container .scroll-content{padding:25px 0 5px;width:100%;-moz-box-sizing:border-box;box-sizing:border-box}.calendar-container .cal-days td>div{width:136px}.calendar-container table td{border-left:1px dotted #ccc;text-align:center;padding:0}.calendar-container table td:first-child{border-left:none}.calendar-container table tr.c-sep td{height:10px}.calendar-container table td.c-cur{background:#fff0e5;border:solid #ffd8bb;border-width:0 1px}.calendar-container .cal-days td{font-size:25px;color:#959595;padding:8px 0 12px;width:136px}.calendar-container .cal-body+.cal-days td{padding:2px 0 28px}.calendar-container .cal-days td.c-cur>div{position:relative;width:136px;background:#fff0e5;padding-top:33px;margin:-33px -1px 0;border:solid #ffd8bb;border-width:1px 1px 0;border-radius:4px 4px 0 0}.calendar-container .cal-body+.cal-days td.c-cur>div{padding:0 0 32px;margin:0 -1px -32px;border-width:0 1px 1px;border-radius:0 0 4px 4px}.calendar-container .cal-days td b{letter-spacing:-1px;color:#464646;margin-right:3px}.calendar-container .cal-days td i{font-style:normal;font-size:20px}.calendar-container .cal-days td.c-cur{color:#ffb380}.calendar-container .cal-days td.c-cur b{color:#f60}.calendar-container .cal-days td.c-cur .cur-mark{position:absolute;width:100%;left:0;top:10px;font-size:14px;color:#f60}.calendar-container .cal-body+.cal-days td.c-cur .cur-mark{top:auto;bottom:12px}.calendar-container .c-event{position:relative;width:100%;padding:0 5px;background:#f60;color:#fff;margin:0 -5px;text-align:left;border-radius:4px}.calendar-container .c-event.grey{background:#7e7e7e}.calendar-container .c-event.cont-prev{padding-left:20px;margin-left:-20px;border-radius:0 4px 4px 0}.calendar-container .c-event.cont-next{padding-right:20px;margin-right:-20px;border-radius:4px 0 0 4px}.calendar-container .c-event.cont-prev.cont-next{border-radius:0}.calendar-container .c-event .ce-wrap{padding:10px 7px 10px 12px}.calendar-container .c-event h3{margin:0 0 5px;font-weight:400;font-size:13px;line-height:14px}.calendar-container .c-event h3 a{color:#fff;text-decoration:none}.calendar-container .c-event .ce-info{font-size:12px;line-height:14px;color:#ffd0ae}.calendar-container .c-event.grey .ce-info{color:silver}.calendar-container .c-event .ce-info>div{display:inline-block;vertical-align:middle;margin-bottom:4px}.ce-ico{position:relative;vertical-align:middle;width:19px;height:19px;margin-right:2px;border:1px solid #ffb380;border-radius:3px}.cl-actions,.cl-sect .cls-title,.cl-sect ul li{border-bottom:1px dotted #ccc}.c-event.grey .ce-ico,.cal-item .ce-ico.icon-fav{border-color:#bfbfbf}.ce-ico:before{content:'';background:url(../img/sprites.png) no-repeat;position:absolute}.ce-ico.icon-check:before{width:12px;height:9px;background-position:-93px -16px;left:4px;top:5px}.c-event .ce-ico.icon-check:before{background-position:-117px -162px}.ce-ico.icon-fav:before{width:11px;height:11px;background-position:-130px -162px;left:4px;top:4px}.c-event .ce-ico.icon-fav:before{background-position:-142px -162px}.cl-sect{margin-top:20px}.cl-sect:first-child{margin-top:0}.cl-sect .cls-title{font-size:25px;line-height:26px;padding-bottom:10px}.cl-sect ul{margin:0;padding:0;list-style:none}.cl-sect ul li{position:relative;padding:10px 50px 10px 0}.cal-item{padding-left:50px}.cal-item .cali-pict{width:40px;float:left;margin:0 -100% 0 -50px}.cal-item .cali-pict img{width:40px}.cal-item .cli-info{margin-bottom:0}.cal-item .cli-info .cli-top{margin-bottom:3px}.cal-item header{margin-bottom:2px}.cal-item .cli-title{font-size:20px;line-height:22px;color:#f60;margin-right:5px;max-width:550px}.cal-item .cli-title a{color:#f60;text-decoration:none}.cal-item .cli-title a:hover{color:#464646}.cli-icos{vertical-align:top}.adm-form .mf-line .mf-field,.i-wait,.i-wait img,.mfpl-button-line>*{vertical-align:middle}.cal-item .cli-info .cli-bot .cli-date{width:150px;font-size:15px}.cal-item .cli-place{font-size:15px;float:left}.cl-sect ul li .check-wrap{position:absolute;right:5px;top:12px}.cl-actions{padding:15px 0 12px;font-size:15px;line-height:16px}.cl-actions .cla-title{float:left;margin-right:20px;line-height:26px;color:#979797}.cl-actions .cla-btns{overflow:hidden}.cl-actions .cla-btns .button{margin-bottom:4px}.to-prev-cal{font-size:15px;margin-top:20px}.to-prev-cal .icon-back:before{width:11px;height:12px;background-position:-183px -162px;margin-right:7px}.a-bot-buttons-line{margin-top:20px;padding-top:20px;border-top:1px dotted #ccc;word-spacing:16px}.p-form .a-bot-buttons-line{border-top:none;padding-top:0}.a-bot-buttons-line .abb-left{float:left;width:75%}.a-bot-buttons-line .abb-right{float:right}.page-title.clearfix .a-pt-button{float:right;margin:3px 0 -3px}.mfpl-button-line{display:table;width:100%;margin-bottom:20px}.mfpl-button-line>*{display:table-cell}.mfpl-button-line .mfpl-button{padding-right:30px}.mfpl-button-line .mfpl-text{width:100%;font-size:14px;line-height:16px;word-spacing:normal}.mfpl-button-line .mfpl-text p{margin:0;max-width:400px}.i-wait{display:inline-block;font-size:18px}.adm-form .i-wait{display:block;text-align:center;margin-bottom:20px}.i-wait img{margin:-4px 3px 0 0}.mf-photos-list ul{margin:0;padding:0;list-style:none}.mf-photos-list li{border-top:1px dotted #ccc;padding:20px 0 20px 210px}.mf-photos-list li:after,.mf-photos-list li:before{content:" ";display:table}.mf-photos-list .mfpli-pict{width:190px;height:190px;float:left;margin:0 -100% 0 -210px}.mf-photos-list .mfpli-pict img{max-width:190px;max-height:190px;border-radius:4px}.set-sect.adm-form{margin-bottom:22px}.set-sect .set-sect-title h3{margin:0;font-weight:300;font-size:25px;line-height:26px;color:#f60;float:left}.set-sect.not-active .set-sect-title h3{color:#d1d1d1}.set-sect .set-sect-title .afh-right{float:right}.lt-ie9 .set-sect.passed .set-sect-title .afh-right .button,.lt-ie9 .set-sect.passed .set-sect-title h3{filter:alpha(opacity=50)}.set-sect.passed .set-sect-title .afh-right .button:hover{opacity:1}.adm-form .adm-form-body.disabled,.mf-line .rq-sub-sect .rq-sub-sect-body.disabled>*{opacity:.5}.lt-ie9 .set-sect.passed .set-sect-title .afh-right .button:hover{filter:alpha(opacity=100)}.set-sect .set-sect-title .afh-right .sst-info{font-weight:300;font-size:20px;color:#f60}.set-sect .set-sect-title .afh-right .sst-info b{font-weight:500}.lt-ie9 .adm-form .adm-form-body.disabled{filter:alpha(opacity=50)}.adm-form h2{margin:-5px 0 15px;font-weight:100;font-size:30px;line-height:30px;color:#f60}.adm-form hr{margin-bottom:21px}.adm-form .mf-line>label{display:inline-block;font-size:17px;line-height:17px;margin-right:5px}.adm-form .mf-line>label.h2{display:inline-block;font-weight:100;font-size:30px;line-height:30px;color:#f60;vertical-align:middle;margin-top:-6px;padding-bottom:5px}.mf-line.afs-type{word-spacing:16px;padding-top:5px}.set-sect-title+form .mf-line.afs-type{padding-top:0}.mf-line.afs-type label{word-spacing:normal}.mf-line.afs-type .mf-field{padding:0}.mf-stat .mf-stat-add-button,.mfs-additional .mf-line{padding-left:135px}.mf-line.s-subj-tag{word-spacing:16px;margin-top:-5px}.mf-line.s-subj-tag .mf-field{width:45%;word-spacing:normal;vertical-align:top}.mf-line.s-subj-tag .mf-field label{display:block;font-size:17px;line-height:18px;margin-bottom:5px}.button.big.a-more:after,button.big.a-more:after{content:'';display:inline-block;vertical-align:middle;width:7px;height:11px;background:url(../img/sprites.png) -234px -134px no-repeat;margin:-1px -3px 0 7px}.button.big.grey.a-more:after,button.big.grey.a-more:after{background-position:-250px -134px}.button.big.a-more:hover:after,.button.big.orange.a-more:after,button.big.orange.a-more:after{background-position:-242px -134px}.mfs-location .mf-line{word-spacing:16px}.mfs-location .mf-line+.mf-line .mf-field{width:45%}.mfs-additional .mf-line>label{display:inline-block;width:120px;float:left;margin:0 -120px 0 -135px;padding-top:3px}.mf-line.mf-time>label,.mfs-additional.mf-stat .mf-line>label{padding-top:11px}.mfs-additional .mf-line .mf-field{width:100%}.mfs-additional .mf-line .mf-field hr{margin:10px 0 0}.mfs-additional .mf-line .mf-field .mff-col{width:45%;margin-right:25px;float:left}.mfs-additional .mf-line.mf-targets .mf-field .mff-col{width:30%}.mfs-additional .mf-line.mf-targets .mf-field .mff-col:first-child{width:45%}.adm-form-body label.check{font-size:15px;min-height:20px}.mf-targets label.check{width:100%;margin-bottom:7px}.mf-membership label.check{display:inline-block;vertical-align:top;width:45%;margin:0 25px 7px 0}.mf-prod input[type=text],.mf-prod textarea{margin:10px 0}.mf-prod input[type=text]:first-child,.mf-prod textarea:first-child{margin-top:0}.mf-prod input[type=text]{width:75%}.w-time{margin-bottom:10px;word-spacing:22px;display:none}.w-time.show,.w-time:first-child{display:block}.w-time>div{display:inline-block;vertical-align:middle;word-spacing:normal}.w-time .w-time-day{width:125px;display:none}.w-time.show .w-time-day{display:inline-block}.w-time .w-time-wrap{position:relative;width:90px}.w-time .w-time-wrap+.w-time-wrap,.w-time.show .w-time-wrap{margin-left:20px}.w-time.show .w-time-day+.w-time-wrap{margin-left:15px}.w-time .w-time-wrap label{font-size:15px;position:absolute;right:100%;margin-right:7px;top:12px;z-index:10}.adm-form-body .mf-line.mf-logo>label{width:130px}.mf-prod.mf-short-input input[type=text],.mf-year{width:140px}.mf-photos-list+hr{margin-top:5px}.mf-line>label.h3{font-size:20px}.mf-stat-item hr{margin-left:135px}.mf-line.mf-prod+.mf-stat-item hr{margin:-10px 0 20px 135px}.mf-year{margin-bottom:15px}.mf-stat-data{display:table;width:100%}.mf-stat-data>div{display:table-cell;padding-right:20px}.mf-stat-data .sd-participants,.mf-stat-data .sd-visitors{width:35%}.mf-stat-data .sd-participants input[type=text],.mf-stat-data .sd-visitors input[type=text]{width:100%}.mf-stat-data .sd-area{font-size:17px}.mf-stat-data .sd-area input[type=text]{width:70%;margin-right:5px}.mf-line.mf-stat-countries{margin-top:-15px}.mf-stat-countries .c-select-box{width:65%}.adm-form .e-price-wrap{margin:0 -20px 30px;padding-top:0}.adm-form .epr-layout{display:table;width:100%;border-spacing:20px 0}.adm-form .eprl-col{padding:0;border:none}.adm-form .eprl-col-wrap{padding:15px 20px;border:1px dotted #ccc}.adm-form .eprl-col:first-child .eprl-col-wrap{min-width:350px}.adm-form .epr-subtitle{font-size:15px}.adm-form .eprl-col hr{margin:10px 0}.adm-form .eprl-col input[type=text]{padding-left:7px;padding-right:7px}.adm-form .eprl-col input[type=text]:focus{padding-left:6px;padding-right:6px}.adm-form .tp-wrap{margin:0}.adm-form .pr-list{color:#464646;margin-bottom:10px}.adm-form .pr-list input[type=text]{width:75%;margin-right:6px;vertical-align:top}.adm-form .tp-wrap .pr-list input[type=text]{width:115px}.adm-form .eprl-col .custom-select{display:inline-block;vertical-align:top;width:70px}.adm-form .eprl-col .custom-select .custom-select-wrap{padding-left:7px}.adm-form .eprl-col .custom-select .scroll-content{padding-left:2px}.eprl-col .mf-line label{display:block;margin-bottom:5px}.eprl-col .mf-line .mf-field{width:100%;padding:0}.eprl-col .mf-line.mf-min-area label{display:inline-block;margin-bottom:0}.adm-form .eprl-col .mf-line.mf-min-area .mf-field{font-size:15px;width:38%}.adm-form .eprl-col .mf-line.mf-min-area .mf-field input[type=text]{width:78%;margin-right:3px}.adm-form .eprl-col .mf-field .period .pwf-field{padding:0}.adm-form .eprl-col .mf-field .period input.date[type=text]{padding-right:35px}.adm-form .eprl-col .mf-field .period input.date[type=text]:focus{padding-right:34px}.mf-reg-payment input[type=text]{width:120px;margin-right:6px}.mf-line.mf-deadline{margin-bottom:0}.cl-news header .news-s-pict{width:100px;height:100px;overflow:hidden;text-align:center;border-radius:4px;margin-right:20px;float:left}.cl-news header .news-s-pict img{height:100%;margin:0 -50%}.cl-news header .news-header-body{overflow:hidden}.cl-news header .news-header-body h2{margin:0 0 7px;font-weight:500;font-size:25px;line-height:26px}.cl-news header .news-header-body .news-header-date{font-size:15px;color:#f60}.request-form .rq-info{margin-bottom:15px;display:table;width:100%}.request-form .rq-info>*{display:table-cell}.request-form .rq-info .rqi-pict{vertical-align:top;width:130px;padding-right:30px;text-align:center}.request-form.rq-tickets .rq-info .rqi-pict{width:155px}.request-form .rq-info .rqi-body{vertical-align:middle;font-size:13px;line-height:15px}.request-form .rq-info .rqi-body h2,.request-form .rq-info .rqi-body h3,.request-form .rq-info .rqi-body h4{font-weight:400}.request-form .rq-info .rqi-body h2{margin:20px 0 10px;font-size:23px;line-height:24px}.request-form .rq-info .rqi-body h3{font-size:22px;line-height:24px;color:#f60;margin:20px 0 10px}.request-form .rq-info .rqi-body h4{font-size:16px;line-height:19px;margin:20px 0 10px}.request-form .rq-info .rqi-body ul{margin:10px 0;padding:0;list-style:none}.request-form .rq-info .rqi-body ul li{padding-left:15px;margin-bottom:10px}.request-form .rq-info .rqi-body ul li:before{content:'';display:block;width:11px;height:8px;background:url(../img/sprites.png) -250px -124px no-repeat;float:left;margin:4px -11px 0 -15px}.request-form .rq-info .rqi-body p{margin:10px 0}.request-form .rq-info .rqi-cols{display:table;width:80%;margin:0}.request-form .rq-info .rqi-cols>*,.request-form .rq-info .rqi-cols>ul{display:table-cell;margin:0;width:50%;padding-right:20px}.request-form .rq-info .rqi-cols>ul li{margin-bottom:5px}.request-form .rq-info .rqi-body>:first-child{margin-top:0}.request-form .rq-form{display:none;margin:10px 0}.request-form.rqf-opened .rq-form{display:block}.request-form.rqf-opened .rq-btn-to-hide,.request-form.rqf-opened .rq-to-hide{display:none}.request-form .rq-form .rqf-title{font-weight:100;font-size:30px;line-height:31px;color:#f60;margin-bottom:15px}.request-form hr{margin:25px 0 15px}.request-form .rq-form hr{margin:20px 0}.request-form .rq-btn-wrap{margin-bottom:15px}.request-form .rq-form hr+.rq-btn-wrap{margin-top:25px}.request-form .rq-btn-wrap .rqb-cols{display:table;width:100%}.request-form .rq-btn-wrap .rqb-cols>*{display:table-cell;width:50%}.request-form .rq-btn-wrap .rqb-cols .rqb-button{vertical-align:top}.request-form .rq-btn-wrap .rqb-cols .rqb-text{vertical-align:middle;padding-left:30px;font-family:Arial,sans-serif;font-size:12px;line-height:16px}.request-form .rq-btn-wrap>.button.big.orange,.request-form .rq-btn-wrap>button.big.orange{height:44px;line-height:40px;padding:2px 30px 0;font-size:17px}@-moz-document url-prefix(){.request-form .rq-btn-wrap>.button.big.orange,.request-form .rq-btn-wrap>button.big.orange{line-height:39px}}.rq-catalog .rq-btn-wrap{width:100%;max-width:650px}.rq-remotely .rq-btn-wrap{width:100%;max-width:770px;margin-bottom:0}.rq-tickets .rq-btn-wrap{width:100%;max-width:800px}.rq-translator .rq-btn-wrap{width:100%;margin-top:20px}.rq-translator .rq-form .rq-btn-wrap{width:50%;min-width:420px}.rq-catalog .rq-order-button,.rq-catalog .rq-order-button .rqob-wrap,.rq-remotely .rq-order-button,.rq-remotely .rq-order-button .rqob-wrap,.rq-tickets .rq-order-button,.rq-tickets .rq-order-button .rqob-wrap,.rq-translator .rq-order-button,.rq-translator .rq-order-button .rqob-wrap{width:100%}.rq-participation .rq-btn-wrap,.rq-tour .rq-btn-wrap{margin-left:160px}.rq-participation .rq-form .rq-btn-wrap,.rq-tour .rq-form .rq-btn-wrap{margin-left:0}.request-form .rq-btn-wrap .ob-descr{padding-left:160px;color:#f60;font-family:Arial,sans-serif;font-size:13px;line-height:15px;margin-top:7px}.request-form.rq-tickets .rq-btn-wrap .ob-descr{padding-left:185px}.rq-note{font-size:13px;line-height:15px}hr+.rq-note{margin-top:-3px}.rq-note p{margin:10px 0 0}.rq-note :first-child{margin-top:0}.s-tour .sect-title{color:#f60;font-family:dindisplay_pro,sans-serif;font-size:22px;line-height:23px;margin:25px 0 15px;padding-left:20px}.about_block h2,.about_block_menu li a,.contacts_bottom h3,.contacts_top_block_left,.contacts_top_block_right,.signature_block{font-family:dindisplay_pro}.rq-form{padding-top:1px}.rq-form hr:first-child{margin-top:0}.rq-form-sect .mf-line.cols-2{width:auto}.rq-form-sect .mf-line.cols-2.rq-place{width:75%}.rq-form .mf-line.rq-person .mf-field{width:60%}.rq-form-sect .mf-line.cols-2.rq-tickets-data .mf-field:first-child{padding-right:40px}.rq-form-sect .mf-line.cols-2.rq-contacts{width:85%}.rq-form .mf-line label{font-size:17px}.mf-line.cols-2.rq-remotely-what{width:100%}.mf-line.cols-2.rq-remotely-what label{width:150px;padding-right:0}.mf-line.cols-2.rq-remotely-what label em{font-style:normal;font-size:14px;line-height:16px;margin-top:5px;display:block;color:#b0b0b0}.mf-line.cols-2.rq-remotely-what .mf-field,.mf-line.rq-remotely-options .mf-field,.mf-line.rq-remotely-options>label{width:auto}.mf-line.rq-remotely-options .mf-field label{margin-left:15px}.mf-line.rq-remotely-options .mf-field label:first-child{margin-left:0}.rq-form-sect .mf-line.cols-2 .mf-field.rq-area-val{width:280px}.rq-form-sect .mf-line .rq-num input[type=text],.rq-form-sect .mf-line.cols-2 .mf-field.rq-area-val input[type=text]{width:80px;margin-left:7px}.rq-form-sect .mf-line .rq-num input[type=text]:first-child,.rq-form-sect.rq-tour-form .mf-line .rq-num input[type=text]{margin-left:0}.rq-form-sect .mf-line.cols-2 .mf-field.rq-area-type .custom-select{display:inline-block;vertical-align:middle;width:190px;margin-left:7px}.rq-form .rq-btn-wrap{display:none}.request-form.rqf-opened .rq-form .rq-btn-wrap{display:block}.mf-line.rq-tel2 .mf-field{width:50%}.rq-translator .rq-form-sect .mf-line.cols-2.rq-trans{width:100%}.rq-translator .mf-line .mf-field{vertical-align:middle;font-size:17px;width:auto}.rq-translator .rq-form-sect .mf-line.cols-2.rq-trans .mf-field{width:50%}.rq-translator .mf-line .mf-field.rq-num input[type=text]{margin-right:5px}.rq-translator .mf-line.rq-trans .mf-field>label{display:block;margin-bottom:5px}.rq-translator .mf-line>label{display:inline-block;vertical-align:middle;width:150px;margin-top:-6px}.rq-translator .mf-line.rq-p-days>label{width:124px}.rq-form .rq-tour-form .mf-line{display:table;table-layout:fixed;width:100%}.rq-form .rq-tour-form .mf-line>*{display:table-cell;vertical-align:top;width:auto;padding:0}.rq-form .rq-tour-form .mf-line>label{width:160px;padding-top:11px}.rq-form .rq-tour-form .mf-line.rq-p-days>label{width:130px}.rq-tour-form .mf-field>div{display:inline-block;margin-right:20px}.rq-tour-form .rq-sel-cond .custom-select{display:inline-block;vertical-align:middle;margin-left:5px;max-width:290px}.rq-tour-form .rq-sel-cond .custom-select:first-child{margin-left:0}.mf-line.rq-from-city input[type=text]{width:50%}.custom-radio-check.rq-rad-rate{display:inline-block;vertical-align:middle;height:40px;border:1px solid #feb17d;border-radius:3px;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;overflow:hidden;position:relative;margin-right:2px}.custom-radio-check.rq-rad-rate:hover{border-color:#f60;background:#f60;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#ff8000),color-stop(100%,#f60));background:-webkit-linear-gradient(top,#ff8000 0,#f60 100%);background:-o-linear-gradient(top,#ff8000 0,#f60 100%);background:-webkit-linear-gradient(top,#ff8000 0,#f60 100%);background:-o-linear-gradient(top,#ff8000 0,#f60 100%);background:linear-gradient(to bottom,#ff8000 0,#f60 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8000', endColorstr='#ff6600', GradientType=0 )}.ir,.visuallyhidden{border:0;overflow:hidden}.custom-radio-check.rq-rad-rate .custom-checkbox{display:block;height:38px;line-height:38px;padding:0 12px}.custom-radio-check.rq-rad-rate .custom-checkbox:before{content:'';display:inline-block;vertical-align:middle;height:15px;background:url(../img/sprites.png) -340px -16px no-repeat;margin:-2px -1px 0 0}.custom-radio-check.rq-rad-rate .custom-checkbox.checked:before{background-position:-340px -32px}.custom-radio-check.rq-rad-rate:hover .custom-checkbox:before{background-position:-340px 0}.custom-radio-check.rq-rad-rate.rr1 .custom-checkbox:before{width:15px}.custom-radio-check.rq-rad-rate.rr2 .custom-checkbox:before{width:31px}.custom-radio-check.rq-rad-rate.rr3 .custom-checkbox:before{width:47px}.custom-radio-check.rq-rad-rate.rr4 .custom-checkbox:before{width:63px}.custom-radio-check.rq-rad-rate.rr5 .custom-checkbox:before{width:79px}.custom-radio-check.rq-rad-rate input{position:absolute;cursor:pointer;bottom:110%;right:110%}.rq-tour-form .rq-sel-cond.rq-hotel-loc .custom-select{max-width:150px}.rq-tour-form .rq-sel-cond.rq-h-price label{font-size:14px}.rq-tour-form .rq-sel-cond.rq-h-price input[type=text]{width:80px;margin-left:5px}.rq-tour-form .rq-sel-cond.rq-h-price .custom-select{max-width:120px}.rq-form .rq-tour-form .mf-line.rq-notes{width:95%}.mf-line.rq-options{margin-top:20px}.mf-line.rq-options .mf-field>ul{margin:0;padding:15px 20px;list-style:none}.mf-line.rq-options .mf-field>ul li{margin-top:10px}.mf-line.rq-options .mf-field ul li:first-child{margin-top:0}.mf-line .rq-sub-sect{display:table;background:#f3f3ef}.rq-tour-form .mf-field>div.rq-sub-sect{margin-right:0}.mf-line .rq-sub-sect.transl-service{min-width:595px}.mf-line .rq-sub-sect.transl-service .rq-sub-sect-body{width:355px}.mf-line .rq-sub-sect>*{display:table-cell;vertical-align:top;padding:15px 20px;width:auto}.mf-line .rq-sub-sect.transl-service .rq-switch{width:180px;padding-right:0}.mf-line .rq-sub-sect.avia-tickets{max-width:470px}.mf-line .rq-sub-sect.avia-tickets .rq-sub-sect-body{padding-right:0;padding-bottom:5px}.mf-line .rq-sub-sect .rq-sub-sect-body .check{margin:0 20px 10px 0}.mf-line .rq-s-line{margin-top:12px;font-size:15px}.mf-line .rq-s-line:first-child{margin-top:0}.rq-form .mf-line .rq-sub-sect-body label.check{font-size:15px}.mf-line .rq-s-line label{display:inline-block;vertical-align:middle;font-size:15px}.mf-line .rq-s-line .rq-num{display:inline-block;margin-left:10px}.mf-line .rq-s-line .rq-num input[type=text]{width:60px;margin-right:5px}@media only screen and (min-width:1080px){.page-wrap{width:100%;padding-right:40px}.page-wrap .layout{padding-left:3%}.page-wrap .layout.mp-announces .layout-wrap{padding-right:0}.page-wrap .layout.mp-announces .layout-wrap aside{margin-right:0;width:33.33%;margin-left:-100%}.page-wrap .layout.mp-announces .layout-wrap .mcl{width:66.66%}.eprl-col{padding:0 20px 15px}}@media only screen and (min-width:1100px){.e-price-wrap{margin:0 -40px}.epr-layout{border-spacing:40px 0}}@media only screen and (min-width:1170px){.page-wrap .layout{padding-left:6%}.page-wrap .layout .layout-wrap{padding-left:230px}.main-page .page-wrap .header-wrap,.main-page .page-wrap .mp-catalog .layout-wrap,.page-wrap>footer .layout-wrap.footer-wrap{padding-left:240px}.mp-partners .mpp-wrap,.page-wrap section.layout.search-form .layout-wrap{padding-left:430px}.page-wrap .layout .layout-wrap>aside{width:230px;padding-right:50px;margin-left:-230px}.page-wrap>header .logo{margin-left:-230px}.page-wrap>header .logo h1,.page-wrap>header .logo h2,.page-wrap>header .logo h3{margin-left:-67px}.mp-partners .mpp-wrap header{width:230px;margin-left:-230px}.s-phone{margin-left:-25px}.online-adviser{margin-left:-40px}.s-news-list ul li{padding-left:60px;margin-left:-60px}.mp-photo-gallery .pg-item .pgi-descr,.mp-photo-gallery header,.page-wrap .layout.mp-announces .layout-wrap{padding-left:230px}.s-news-list .nl-pict{margin:0 -40px 0 -60px}.mp-photo-gallery,.mp-photo-gallery header .pg-title{margin-left:-230px}.mp-photo-gallery .pg-item .pgi-descr .pgi-date{margin-left:-190px}}@media only screen and (min-width:1200px){.page-wrap>header .logo h1,.page-wrap>header .logo h2,.page-wrap>header .logo h3{margin-left:-67px}.mp-partners .mpp-wrap ul{margin-left:-30px}.mp-partners .mpp-wrap li{margin-left:30px}.eprl-col:first-child{width:50%}}@media only screen and (min-width:1260px){.header-body .header-top{padding-right:510px}.header-body .header-top .ht-main{width:100%}.header-body .header-top .ht-side{width:505px;margin-right:-505px}.mp-partners .mpp-wrap ul{margin-left:-40px}.mp-partners .mpp-wrap li{margin-left:60px}}.ir{background-color:transparent}.ir:before{content:"";display:block;width:0;height:150%}.hidden{display:none!important}.visible{display:block!important}.c-select-box .csb-selected.dna-clone{display:inline-block}.visuallyhidden{clip:rect(0 0 0 0);height:1px;margin:-1px;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.mf-line .mf-error,.mf-line .mf-success,.pwf-field .error{font-size:15px;padding-right:10px;padding-bottom:5px;width:65%}.clearfix:after,.clearfix:before{content:" ";display:table}@media print{blockquote,img,pre,tr{page-break-inside:avoid}*{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999}thead{display:table-header-group}img{max-width:100%!important}@page{margin:.5cm}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}}.pwf-msg .msg-error{color:#fe0238;padding-left:20px}.pwf-msg .msg-help:before{content:'—';float:left;margin:0 -15px 0 -20px}.mf-line .mf-error,.pwf-field .error{color:#ff083c}.mf-line .mf-success{display:none;color:#31ff13}.fancybox-inner{overflow:visible!important}.pw-subj{min-height:480px}.pw-subj .csb-menu .level .sublist{display:none}.pw-subj .csb-menu .level.active .sublist{display:block}.pw-subj .csb-menu .level1{display:none}.pw-subj .csb-menu .level1>ul{margin-left:1em;margin-top:.5em}.pw-subj .csb-menu .level1>ul .trigger{margin-left:1em}.pw-subj .csb-menu .level1.visible{display:block}#mCSB_1,#mCSB_3{min-height:188px}.leter-list{float:left;width:30%;min-height:6em}.leter-list .leter{color:#f60;margin-bottom:1em}.about_pic{float:left;margin:0 20px 10px 0;display:block}.about_block h2{margin:0;padding:10px 0 0;color:#f60;font-size:20px;font-weight:400}.about_block ul{position:relative;left:15px;list-style-type:none}.about_block ul li{padding-left:15px}.about_block ul li:before{content:'';display:block;width:11px;height:8px;background:url(../img/sprites.png) -250px -124px no-repeat;float:left;margin:4px -11px 0 -15px}.about_block_menu,.contacts_top_block{float:left;width:100%}.about_block a.clolr_1{color:#3b5998}.about_block a.clolr_2{color:#1ab2e8}.about_block a.clolr_3{color:#597da3}.signature_block{padding:15px 0 42px;font-size:13px;color:#8d8c8c;font-weight:400}.signature_block_pic{display:block;float:left;margin:0 30px 0 10px}.signature_block h3{font-size:16px;font-weight:400;margin:0;color:#010101}.signature_block strong{display:block;font-weight:400;color:#f60;padding:0 0 2px}.signature_block p{padding:0;margin:0}.about_block_menu{border-bottom:1px dotted #ccc;list-style-type:none;padding:0;margin:0 0 25px}.about_block_menu li{float:left;height:35px;padding:15px 25px 0;border:1px dotted #fcfcfb;position:relative;top:1px;list-style-type:none;margin:0;overflow:hidden;border-bottom:none}.about_block_menu li a{font-size:18px;color:#f60;text-decoration:none;background:url(../img/libk_bg.png) left bottom repeat-x;display:inline-block;height:18px;-webkit-transition:none;-o-transition:none;transition:none}.about_block_menu li a:hover{background:0 0}.about_block_menu li:first-child{padding-left:0}.about_block_menu li.active{border-color:#ccc;background:#fcfcfb}.about_block_menu li.active a{background:0 0;color:#000}.about_block_menu li.active:first-child{border-left-color:#fcfcfb}.about_block_menu.about_active{border-top:1px dotted #ccc;border-bottom-color:#fcfcfb}.about_block_menu.about_active li{border:none}.about_block_menu.about_active li.m_05{display:none}.contacts_top_block_left{float:left;width:340px;color:#464646;font-size:13px}.contacts_top_block_left strong{font-size:20px;font-weight:400;padding:0 17px 0 0;position:relative;top:5px}.contacts_top_block_left p{padding:0;margin:0}.contacts_top_block_right{float:right;width:396px;border-bottom:1px dotted #ccc;padding:7px 0 15px;font-size:13px;color:#787777}.contacts_top_block_right table tr th{text-align:left;vertical-align:top;padding:1px 10px 1px 0;font-weight:400}.contacts_top_block_right table tr td{text-align:left;vertical-align:top;padding:1px 0}.contacts_top_block_right table tr td a{display:inline-block;position:relative;text-decoration:none;padding:0 0 0 21px}.contacts_top_block_right table tr td a i{font-style:normal;text-decoration:underline}.acticle_list strong a,.acticle_list_big h3 a,.add_pic_block,.blog_avtor table tr td h3 a,.blog_link a,.contacts_top_block_right table tr td a:hover i,.map_info_block tr td p a:hover,.profile_top_right_1 p a,.review_list .sc-name a,.review_list header .cli-title a{text-decoration:none}.contacts_top_block_right table tr td a span{display:block;width:15px;height:12px;position:absolute;left:0;top:3px;background:url(../img/sprites.png) -223px 0 no-repeat}.button.icon-call:before{width:12px;height:12px;background-position:-304px -117px}.button.icon-call:hover:before,.button.orange.icon-call:before{background-position:-304px -130px}.contacts_bottom{padding:25px 0 0;font-size:12px;color:#464646}.contacts_bottom h3{font-size:13px;font-weight:400;color:#8b8b8b;padding:0 0 5px;margin:0}.review_list .sc-name,.review_list header{font-family:dindisplay_pro,sans-serif}.contacts_bottom p{padding:0;margin:0}.contacts_bottom .soc-media-buttons{float:right;margin:0}.contacts_bottom h3 span{font-size:16px;position:relative;color:#464646;top:1px;padding:0 0 0 5px}.contacts_bottom_map{margin:10px 0 -5px;border-bottom:1px dotted #ccc;padding:0 0 26px}.contacts_bottom_map img{display:block;width:100%}.parnters_about_block_table{width:100%}.parnters_about_block_table a:hover{color:#f60}.parnters_about_block_table tr td{text-align:left;vertical-align:top;width:140px;padding:0 0 20px}.parnters_about_block_table tr td.delimiter{width:auto!important}.parnters_about_block_table tr td a{color:#464646;display:block;width:140px;font-size:11px;line-height:14px;text-align:center}.parnters_about_block_table tr td a .imp-pict{position:relative;display:block;width:140px;overflow:hidden;margin-bottom:5px;border-radius:4px}.parnters_about_block_table tr td a img{display:block;width:140px}.parnters_about_block_table tr td a .imp-pict:before{content:'';display:block;position:absolute;width:100%;height:100%;border-radius:4px;box-shadow:inset 0 1px 0 rgba(0,0,0,.2)}.review_list{list-style-type:none;padding:0;margin:-10px 0 0}.review_list li{position:relative;border-bottom:1px dotted #ccc;padding:25px 0 19px}.review_list li:first-child{padding-top:0}.review_list li:last-child{border-bottom:none}.review_list .cl-item-wrap{padding-left:90px}.review_list .cli-pict{margin-left:-90px;width:70px;height:70px;line-height:65px;padding:2px}.review_list .cli-info{margin-bottom:0}.review_list .sc-name{font-weight:500;font-size:17px;line-height:20px;color:#f60;margin:-7px 0 10px;position:relative}.review_list .sc-name a:hover,.review_list header .cli-title a:hover{color:#464646}.review_list .sc-name span a{font-weight:400;font-size:12px;float:right}.review_list .sc-name span a:before{content:' ';display:inline-block;vertical-align:middle;width:11px;height:13px;background:url(../img/sprites.png) -211px 0 no-repeat;margin:-1px 5px 0 0}.review_list .sc-text{font-size:12px;line-height:16px}.review_list .cli-top{margin-bottom:10px}.review_list header{margin-bottom:2px}.review_list header .cli-title{display:inline-block;vertical-align:top;font-size:30px;line-height:30px;margin:0 6px 0 0;-webkit-transition:color .3s;-o-transition:color .3s;transition:color .3s;max-width:490px}.team_list{width:100%;float:left;margin:0;padding:0;list-style-type:none}.team_list li{display:inline-block;vertical-align:middle;width:33%;font-size:11px;position:relative;line-height:1.25;margin-bottom:2em}.team_list li.delimiter{width:100%;height:25px}.team_list li .team_list_bg{position:relative;float:left;padding:0 0 0 104px}.team_list li .team_list_bg .pic{display:block;position:absolute;left:0;top:50%;margin-top:-45px;width:89px;height:89px;border-radius:4px}.team_list li p{padding:0;margin:0;color:#a6a6a5}.team_list li strong{display:block;font-weight:400;color:#464646;font-size:13px;padding:0 0 5px}.team_list li h4{font-size:21px;font-weight:500;color:#f60;padding:3px 0;margin:0;line-height:1}.acticle_list p,.acticle_list_big p{line-height:16px}.blog_block,.team_list li:hover h4{color:#464646}.team_list li a{display:block;position:absolute;left:0;top:0;width:100%;height:100%;background:url(../img/spacer.gif)}.blog_block{font-size:12px}.blog_block h1{color:#424242;font-size:25px;font-weight:400;font-family:dindisplay_pro,sans-serif;margin:0;padding:0}.blog_block h2,.blog_block h3{font-weight:400;font-family:dindisplay_pro,sans-serif;color:#424242;margin:0 0 -5px;padding:7px 0 0}.blog_block h2{font-size:22px}.blog_block h3{font-size:19px}.blog_block h4{color:#f60;font-size:14px;font-weight:400;font-family:dindisplay_pro,sans-serif;margin:0 0 -10px;padding:4px 0 0}.blog_block_headline{padding:5px 0 0 120px;position:relative;font-size:13px;min-height:95px}.blog_block_headline strong{display:block;font-weight:400;font-size:14px;color:#f60;padding:8px 0 10px}.blog_block_headline strong span{padding:0 30px 0 0}.blog_block_headline p{margin:0}.blog_block_headline strong a.flag:before,.blog_block_headline strong a.profile_link:before,.blog_block_headline strong span:before{content:' ';display:inline-block;vertical-align:middle;margin:0 5px 0 0}.blog_block_headline strong span:before{width:13px;height:16px;background:url(../img/sprites.png) -183px -145px no-repeat;position:relative;top:-2px}.blog_block_headline strong a.profile_link:before{width:11px;height:13px;background:url(../img/sprites.png) -24px 0 no-repeat}.blog_block_headline strong a.flag:before{width:14px;height:14px;background:url(../img/sprites.png) -329px -49px no-repeat}.blog_block_headline .pic{display:block;position:absolute;left:0;top:0;width:100px;height:100px;border-radius:4px}.blog_block_headline .content-text{margin-left:-120px;margin-top:2em}.blog_block .pic_left{float:left;margin:4px 30px 5px 0}.blog_block .pic_left img{display:block;border-radius:4px}.blog_block .pic_left i{font-size:11px;color:#a1a1a1;display:block;padding:3px 0 0}.blog_block .pic_right{float:right;margin:4px 0 10px 10px}.blog_block .pic_right img{display:block;border-radius:4px}.blog_block .pic_right i{font-size:11px;color:#a1a1a1;display:block;padding:3px 0 0}.blog_avtor{padding:20px 0 0;margin:19px 0 0}.blog_avtor table{float:left}.blog_avtor table tr th{text-align:left;vertical-align:top;padding:3px 20px 0 0;font-weight:400;font-size:13px;color:#a2a2a2;font-family:dindisplay_pro,sans-serif}.blog_avtor table tr td{text-align:left;vertical-align:middle;padding:0 9px 0 0;font-family:dindisplay_pro,sans-serif}.blog_avtor table tr td .pic{display:block;width:50px;height:50px;border-radius:3px}.blog_avtor table tr td h3{padding:0 0 5px;margin:0}.blog_avtor table tr td h3 a{color:#464646;font-size:20px}.blog_avtor table tr td h3 a:hover{color:#f60}.blog_avtor table tr td a.facebook{font-size:13px;color:#3b5998}.blog_avtor_right,.blog_avtormidle{font-family:dindisplay_pro,sans-serif;font-size:13px;color:#f60}.blog_avtor table tr td a.facebook:before{content:' ';display:inline-block;vertical-align:middle;width:17px;height:17px;background:url(../img/sprites.png) -304px -144px no-repeat;margin:0 5px 0 0}.blog_avtor_right{float:right}.blog_avtor_right .soc_icons{margin:0 0 12px;display:block}.blog_avtor_right .icon,.blog_avtormidle .icon{position:relative;display:inline-block;width:12px;height:13px;top:3px;margin:0 3px 0 0;background:url(../img/sprites.png) -305px -162px no-repeat}.blog_avtormidle i{font-style:normal;color:#a2a2a2;padding:0 32px 0 0}.blog_link{position:relative}.blog_link .button{position:absolute;right:0;top:-5px}.acticle_list{padding:0 0 0 90px;position:relative;font-size:12px;color:#7b7b7b}.acticle_list .pic{display:block;position:absolute;left:0;top:0;width:70px;height:70px;border-radius:3px}.acticle_list h3{margin:0;padding:2px 0 6px;font-size:22px;font-weight:400;font-family:dindisplay_pro,sans-serif}.acticle_list h3 a{color:#464646;text-decoration:none}.acticle_list h3 a:hover{color:#f60}.acticle_list strong{display:block;font-weight:400;font-size:13px;color:#f60;padding:5px 0 0}.acticle_list strong span{padding:0 30px 0 0}.acticle_list p{margin:0}.acticle_list strong b:before,.acticle_list strong i:before,.acticle_list strong span:before{content:' ';vertical-align:middle;display:inline-block;margin:0 5px 0 0}.acticle_list strong span:before{width:13px;height:16px;background:url(../img/sprites.png) -183px -145px no-repeat;position:relative;top:-2px}.acticle_list strong i{font-style:normal;opacity:.5}.acticle_list strong i:before{width:11px;height:13px;background:url(../img/sprites.png) -24px 0 no-repeat;position:relative;top:-1px}.acticle_list strong a:hover i{opacity:1}.acticle_list strong b{font-weight:400;opacity:.6}.acticle_list strong b:before{width:14px;height:14px;background:url(../img/sprites.png) -329px -49px no-repeat}.acticle_list strong a:hover b{opacity:1}.acticle_list_big{padding:0 0 0 270px;position:relative;font-size:12px;color:#7b7b7b;min-height:180px}.acticle_list_big .pic{display:block;position:absolute;left:0;top:0;width:250px;height:180px;border-radius:4px}.acticle_list_big h3{margin:0;padding:2px 0 6px;font-size:22px;font-weight:400;font-family:dindisplay_pro,sans-serif}.acticle_list_big h3 a{color:#464646}.acticle_list_big h3 a:hover{color:#f60}.acticle_list_big strong{display:block;font-weight:400;font-size:13px;color:#f60;padding:5px 0 0}.acticle_list_big strong span{padding:0 30px 0 0;display:block;float:left}.acticle_list_big strong span:before{content:' ';display:inline-block;vertical-align:middle;width:13px;height:16px;background:url(../img/sprites.png) -183px -145px no-repeat;margin:0 5px 0 0;position:relative;top:-2px}.acticle_list_big .icon{display:inline-block;width:12px;height:13px;position:relative;top:3px;margin:0 3px 0 0;background:url(../img/sprites.png) -305px -162px no-repeat}.mf-line1{margin-bottom:0}.acticle_list_big .cli-pict .no-logo{width:100px;margin-top:40px}.acticle_list_big .cli-pict{position:absolute;left:0;top:0;width:250px;height:180px;margin-left:0}.country_table{width:100%;margin:6px 0 12px}.country_table tr td{text-align:left;vertical-align:top;width:50%}.country_table tr td ul{list-style-type:none;margin:0;padding:0}.country_table tr td ul li{padding:2px 0;font-family:dindisplay_pro,sans-serif;font-size:14px;color:#a2a2a2;font-weight:500}.country_table tr td ul li strong{color:#a2a2a2;font-weight:500;font-size:16px}.country_table tr td ul li span{padding:0 0 0 9px;font-size:16px;color:#424242}.country_table tr td ul li span a{color:#424242;font-size:18px;font-weight:700}.country_table tr td ul li span a:hover{color:#f60}.country_table tr td ul li i{font-style:normal;float:left;display:block;padding:0 0 5px}.country_map .i-map .close-map{bottom:-50px!important}.country_towns{padding:0 0 0 122px;font-weight:500;font-family:dindisplay_pro,sans-serif}.country_towns h4{font-size:14px;color:#a2a2a2;font-weight:500;padding:0;margin:0}.country_towns table{width:100%}.country_towns table tr td{text-align:left;vertical-align:top;width:28%}.country_towns table tr td ul{list-style-type:none;margin:0;padding:0}.country_towns table tr td ul li{font-size:16px;padding:3px 0 2px}.country_towns table tr td ul li a{color:#424242}.country_towns table tr td ul li a:hover{color:#f60}.country_content p{color:#464646}.country_content h4,.country_content h5{font-family:dindisplay_pro,sans-serif;font-weight:400;color:#f60;padding:0}.country_content h4{font-size:23px;margin:-5px 0}.country_content h5{font-size:20px;margin:15px 0 -5px}.country_content_table{width:100%;font-size:12px;color:#464646}.country_content_table tr td{text-align:left;vertical-align:top;width:58%}.country_content_table tr td.delimiter{width:auto}.country_content_table tr th{text-align:left;vertical-align:top;width:33%;font-weight:400}.country_content_table h4{font-size:18px;font-weight:400;color:#f60;margin:0;padding:0 0 5px}.country_content_table h4 span{color:#464646}.country_content_table p{padding:0;margin:0}.country_content_table tr td ul{list-style-type:none;padding:0;margin:0}.country_content_table tr td ul li:before{content:'•';display:inline-block;margin:0 5px 0 0;vertical-align:middle}.page-title{position:relative}.page-title .button{position:absolute;right:0;top:4px}.archive_block{padding:0 0 20px}.archive_block h4{float:left;font-size:23px;color:#b8b8b7;font-weight:400;font-family:dindisplay_pro,sans-serif;padding:8px 28px 0 0;margin:0}.map_info_block tr td,.map_info_block tr th{text-align:left;vertical-align:top;font-weight:500}.archive_block .select_1{float:left;width:148px;margin:0 10px 0 0}.archive_block .select_2{float:left;width:128px}.show-map_1{float:right}.map_info_block{width:100%;font-family:dindisplay_pro,sans-serif}.map_info_block tr th{width:15%;color:#a2a2a2;font-size:14px;padding:9px 0 0}.map_info_block tr td{border-bottom:1px dotted #ccc;padding:8px 0;font-size:16px;color:#424242}.map_info_block tr td.width_1{width:35%}.map_info_block tr td p{padding:1px 0;margin:0}.map_info_block tr td p a{display:inline-block;position:relative;color:#424242}.map_info_block tr td p a i{font-style:normal;position:absolute;right:-125px;top:0;font-size:13px;opacity:.7;display:none}.map_info_block tr td p a i:before{content:'';display:inline-block;margin:0 5px 0 0;vertical-align:middle;width:8px;height:14px;background:url(../img/sprites.png) -330px -65px}.map_info_block tr td p a:hover{color:#f60}.map_info_block tr td p a:hover i{display:block}.map_info_block tr:last-child td{border-bottom:none}.i-photo-slides_1{margin-bottom:0}.button.about{padding:3px 12px 2px;margin:10px 0 0}.button.about:before{content:' ';display:inline-block;vertical-align:middle;width:13px;height:14px;background:url(../img/sprites.png) -328px -81px no-repeat;margin:0 4px 0 0;position:relative;top:-1px}.content_list,.content_list li{float:none!important;width:auto!important}.add_link_teg b:before,.add_link_text b:before,.add_pic_block b:before,.content_list li:before,.places_list .space:before,.profile_top_table tr td ul li:before{content:''}.button.about:hover:before{background-position:-328px -98px}.content_list{list-style-type:none;padding:13px 0 0!important}.content_list li{margin:0!important;padding:1px 0 1px 17px!important;color:#464646}.content_list li:before{display:block;width:11px;height:8px;background:url(../img/sprites.png) -250px -124px no-repeat;float:left;margin:5px -11px 0 -15px}.i-staff-list>ul>li.delimiter{width:100%;height:25px}.profile_top{padding:21px 0 0 120px;position:relative;min-height:200px}.profile_top_pic{position:absolute;left:0;top:0;width:110px}.profile_top_pic img{display:block;border-radius:4px;float:left}.profile_top_pic .big{width:100px;height:100px}.profile_top_pic .big_link{display:block;width:100px;height:100px}.profile_top_pic .small{width:45px;height:45px;margin:10px 10px 0 0}.profile_top h1,.profile_top h3{font-family:dindisplay_pro,sans-serif;color:#f60;font-weight:400;margin:0}.profile_top h1{font-size:40px;padding:0 0 12px}.profile_top h3{font-size:18px;padding:0 0 2px}.profile_top_left_1{float:left;width:72%;font-size:15px;color:#464646;font-family:dindisplay_pro,sans-serif}.profile_top_left_1 b{font-size:18px;font-weight:500}.profile_top_right_1,.profile_top_table tr td{font-family:dindisplay_pro,sans-serif;font-size:15px}.profile_top_left_1 span,.profile_top_right_1 span{display:inline-block;background:url(../img/sprites.png) no-repeat;position:relative}.profile_top_left_1 span.icon1,.profile_top_right_1 span.icon1{width:16px;height:16px;background-position:-326px -114px;margin:0 5px 0 0;top:3px}.profile_top_left_1 span.icon2,.profile_top_right_1 span.icon2{width:13px;height:19px;background-position:-327px -134px;margin:0 5px 0 0;top:5px}.profile_top_left_1 span.icon3,.profile_top_right_1 span.icon3{width:12px;height:11px;background-position:-327px -154px;margin:0 5px 0 25px;top:1px}.profile_top_left_1 span.icon4,.profile_top_right_1 span.icon4{width:9px;height:15px;background-position:-348px -52px;margin:0 5px 0 0;top:2px}.profile_top_left_1 span.icon5,.profile_top_right_1 span.icon5{width:15px;height:13px;background-position:-346px -70px;margin:0 5px 0 0;top:2px}.profile_top_right_1{float:right;width:26%;text-align:right;color:#464646}.profile_bottom_table tr td,.profile_top_table tr td{text-align:left;vertical-align:top}.profile_top_left_1 p{margin:0;padding:2px 0}.profile_top_right_1 p{margin:0;padding:4px 0}.profile_top_right_1 p a{color:#464646}.profile_top_right_1 p a:hover{color:#f60}.profile_top_table{width:100%;margin-bottom:16px}.profile_top_table tr td{width:47%;border-bottom:1px dotted #ccc;padding:0 0 16px}.profile_top_table tr td h3{font-size:22px;padding:0 0 10px}.profile_top_table tr td p{padding:0;margin:0}.profile_top_table tr td span{color:#a2a2a2}.profile_top_table tr td ul{list-style-type:none;margin:0;padding:1px 0 9px}.profile_top_table tr td ul li{font-family:Arial;font-size:13px}.profile_top_table tr td ul li:before{display:inline-block;width:12px;height:11px;background:url(../img/sprites.png) -327px -154px no-repeat;margin:0 6px 0 0;top:1px}.profile_top_table_1{margin-bottom:0}.profile_top_table_1 tr td{border-bottom:none;padding:0}.profile_top_table tr td .subjects_list{position:relative}.profile_top_table tr td .subjects_list.more{padding-bottom:21px}.profile_top_table tr td .subjects_list span{display:none;font-size:12px;color:#f60;background:url(../img/subjects_list.png) left bottom repeat-x;position:absolute;left:18px;bottom:15px;height:16px;font-family:Arial;cursor:pointer}.profile_bottom_table,.profile_bottom_table1{font-family:dindisplay_pro,sans-serif}.profile_top_table tr td .subjects_list span:hover{background:0 0}.profile_top_table tr td .subjects_list span i{font-style:normal}.profile_top_table tr td .subjects_list.more span{display:inline-block}.profile_bottom_table{width:100%;font-size:15px;color:#424242}.profile_bottom_table tr td.headline{width:120px;padding:6px 0 0;font-size:17px;color:#464646}.profile_bottom_table tr td.profile_info{width:48%}.profile_bottom_table tr td.profile_info table{width:100%;border-collapse:separate!important}.profile_bottom_table tr td.profile_info table tr td{padding:10px 15px 10px 20px;vertical-align:middle;font-size:18px;color:#ff6701;border:1px solid #fdd0af;border-radius:4px;font-weight:500;white-space:nowrap}.profile_bottom_table tr td.profile_info table tr td.delimiter{width:4px;border:none;padding:0}.profile_bottom_table tr td.profile_info table tr td.delimiter div{width:4px}.profile_bottom_table tr td.profile_info table tr.delimiter td{height:4px;border:none;padding:0}.profile_bottom_table tr td.profile_info table tr td strong{font-weight:bolder;font-size:25px}.profile_bottom_table tr td.buttons{width:31%}.profile_bottom_table tr td.buttons .buttons_bg{padding:30px 0 0}.profile_bottom_table1{width:100%;font-size:17px;color:#464646}.profile_bottom_table1 tr td{text-align:left;vertical-align:middle}.end_reg_list li table tr td,.end_reg_list li table tr th{text-align:left;vertical-align:top}.profile_bottom_table1 tr td.headline{width:120px}.profile_bottom_table1 tr td.width1,.profile_bottom_table1 tr td.width3{width:31%}.profile_bottom_table1 tr td.widths{font-size:20px;color:#f60;font-weight:500}.profile_bottom_table1 tr td.widths strong{font-size:40px;font-weight:700;padding:0 7px 0 0;position:relative;top:3px}.subscribe_link{display:none}.pw-subscribe_doing .pw-title span{font-size:25px;font-weight:200;display:block;margin-top:-6px}.pw-subscribe_doing .pwf-msg a.reg{position:relative;left:-117px}.subscribe_after p{padding:0;margin:-10px 0 0}.subscribe_after{display:none}.places_list .space{color:#464646;font-size:15px;font-weight:500;float:left}.places_list .space:before{display:inline-block;width:16px;height:16px;background:url(../img/space.png) no-repeat;margin:0 4px 0 0;position:relative;top:2px}.places_list .cli-info,.places_list .cli-top{margin-bottom:5px}.places_list .button.about{margin-top:0}.end_reg_list{margin:0;padding:0}.end_reg_list li{padding:0 0 24px;list-style-type:none}.end_reg_list li:last-child{padding:0}.end_reg_list li.input_top{padding-right:140px}.end_reg_list li table tr th{padding:8px 5px 0 0;font-size:17px;color:#000;font-weight:400}.end_reg_list li table tr td p{padding:0 0 25px;margin:0;text-align:center;font-size:13px;color:#a2a2a2}.end_reg_list li table tr td.width1{width:98px;padding:0 9px 0 0}.end_reg_list li table tr td.width2{width:88px;padding:0 9px 0 0}.end_reg_list li table tr td.width3{width:185px}.add_pic_block{display:block;width:100px;height:80px;text-align:center;font-size:12px;color:#a2a2a2;font-weight:500;position:relative;line-height:1;-webkit-transition:background .3s,color .3s;-o-transition:background .3s,color .3s;transition:background .3s,color .3s;font-family:dindisplay_pro;cursor:pointer;padding:20px 0 0}.add_pic_block span{display:block;width:36px;font-size:40px;background-position:center center;background-repeat:no-repeat;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s;position:relative;margin:0 auto}.add_pic_block .input{display:block;width:100px;height:100px;position:absolute;left:0;top:0;opacity:0;cursor:pointer}.add_pic_block i{display:block;font-style:normal;padding:10px 0 1px}.add_pic_block b{font-size:14px;font-weight:500}.add_link_text a.e-btn,.add_link_text_text{font-weight:500;font-size:17px;font-family:dindisplay_pro}.add_pic_block b:before{display:inline-block;width:14px;height:12px;background:url(../img/sprites.png) -365px -53px no-repeat;position:relative;top:1px;margin:0 4px 0 0}.add_pic_block:hover{color:#f60}.add_pic_block:hover b:before{background-position:-181px -32px}.add_pic_block .add-wrapper{margin:0;padding:0}.pic_block{width:100px;display:block;overflow:hidden}.pic_block .input{opacity:0;position:absolute;top:0;left:0;width:0;height:0;z-index:0}.pic_block img{position:relative;z-index:1}.pic-edit-photo{display:none;line-height:1em;margin-top:.5em}.pe-active .pic-edit-photo-wrap{-moz-box-sizing:border-box;box-sizing:border-box;display:block;position:absolute;top:4px;right:4px;z-index:4;padding:4px 1px 4px 4px;background-color:#fff;border-radius:4px;-ms-box-shadow:0 1px 3px rgba(0,0,0,.4);-o-box-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 1px 3px rgba(0,0,0,.4)}.pe-active .pic-edit-photo{display:block;text-indent:-9999999px;width:18px;height:16px;margin:0;background:url(../img/sprites.png) -117px -145px no-repeat #fff}.add_link_text{padding-left:0!important;line-height:20px;min-height:25px}.add_link_text_text{color:#a2a2a2;display:inline-block;position:relative}.add_link_text_top{min-height:60px}.add_link_text a{color:#a2a2a2}.add_link_text .edit-wrap{display:inline-block!important;position:relative;left:0;top:0;height:20px;margin:0 5px 0 0!important}.add_link_text a.e-btn{display:inline-block;width:auto;height:auto;color:#a2a2a2;opacity:1;vertical-align:middle;margin:0 5px 0 0;padding:0;line-height:18px}.add_indo_table tr td.click_td b a:hover,.add_indo_table tr td.click_td span a:hover{opacity:.5}.add_link_text a.e-btn .fa{width:24px}.add_link_text a.e-btn .fa:before{display:inline-block;width:16px;height:17px;-webkit-transition:color .3s;-o-transition:color .3s;transition:color .3s;position:absolute;top:0;left:0;font-size:18px}.add_link_text b{margin-left:10px}.add_link_text b:before{display:inline-block;width:14px;height:12px;background:url(../img/sprites.png) -365px -53px no-repeat;margin:0 4px 0 0}.add_link_text_medium a:before{top:2px}.add_link_text.p-editable.pe-current .edit-wrap .e-form{display:block!important;top:-5px}.add_link_text.p-editable.pe-current a.e-btn{text-indent:-9000px;padding:5px 0 5px 5px;left:-5px;position:absolute;top:-5px}.dd_width_2,.dd_width_3{padding-right:23px!important}.add_link_text.p-editable.pe-current a.e-btn:before{position:absolute;left:5px;top:5px;display:block!important;background-position:-405px -51px}.add_link_text.p-editable.pe-current .add_link_text_text,.i-info header .i-place.add_link_text:before{display:none}.add_link_teg b,.ic-buttons_pos{position:relative}.add_link_text_medium,.add_link_text_medium .add_link_text_text,.add_link_text_medium a.e-btn{font-size:15px!important}.i-info header .i-place.add_link_text a{text-decoration:underline;color:#a2a2a2}.add_link_text a:hover,.i-info header .i-place.add_link_text a:hover{color:#f60}.add_pic_list li a.add_pic_link,.i-staff-list>ul>li a.add_pic_link{text-decoration:none;line-height:1;font-family:dindisplay_pro}.dd_width_1{width:200px!important}.dd_width_2{width:328px;padding-left:75px!important}.dd_width_3{width:218px}.dd_width_4{width:320px!important}.dd_width_5{width:260px!important}.i-place.add_link_text.p-editable.pe-current .add_link_text_text{display:block;padding-left:35px;top:0}.i-place.add_link_text.p-editable.pe-current a.e-btn:before{left:10px}.add_link_text a:hover:before{background-position:-425px -52px}.add_indo_table tr th b:before,.add_link_teg b:before{height:12px;background:url(../img/sprites.png) -365px -53px no-repeat}.add_link_teg .select{float:left;width:368px;margin:0 13px 0 0;min-height:36px}.add_link_teg b{float:left;top:10px;font-size:15px;color:#a2a2a2;font-family:dindisplay_pro;font-weight:500}.add_link_teg b:before{display:inline-block;width:14px;margin:0 4px 0 0}.ic-buttons_text{left:0;top:32px;font-size:13px;color:#a2a2a2;font-weight:500;font-family:dindisplay_pro}.add_indent{margin-bottom:4px}.ic-links_indent{padding-top:5px}.soc-media-buttons1{display:inline-block;position:relative;margin:0!important;top:-2px;left:5px}.soc-media-indent{margin:10px 0 0}.add_indo_table tr td.click_td b a:before,.add_indo_table tr td.click_td span a:before,.add_indo_table tr th b:before{content:'';display:inline-block;margin:0 4px 0 0}.pe-current .soc-media-buttons1{position:static}.add_indo_table{width:100%;font-family:dindisplay_pro}.add_indo_table tr th{text-align:left;vertical-align:top;font-size:19px;color:#a2a2a2;font-weight:400;padding:0 0 13px}.add_indo_table tr th b{font-size:20px;color:#a2a2a2;font-family:dindisplay_pro;font-weight:500}.add_indo_table tr th b:before{width:14px}.add_indo_table tr td{text-align:left;vertical-align:middle;font-size:17px;color:#464646;padding:5px 0}.add_indo_table tr td.click_td span{color:#f60;font-size:14px}.add_indo_table tr td.click_td span a{color:#f60}.add_indo_table tr td.click_td span a:before{width:11px;height:12px;background:url(../img/sprites.png);position:relative;top:2px}.add_indo_table tr td.click_td b{color:#f60;font-weight:400;font-size:14px}.add_indo_table tr td.click_td b a{color:#f60}.add_indo_table tr td.click_td b a:before{width:12px;height:13px;background:url(../img/sprites.png) -368px -69px;position:relative;top:2px}.add_indo_table tr td .headline{width:1px;height:1px;position:relative}.add_indo_table tr td .headline p{position:absolute;left:0;top:5px}.add_pic_list li{position:relative}.add_pic_list li span.close{display:block;position:absolute;right:29px;top:9px;width:16px;height:16px;background:url(../img/sprites.png) -385px -72px no-repeat;cursor:pointer}.add_pic_list li span.close:hover{background-position:-404px -72px}.add_pic_list li a.add_pic_link{text-align:center;background:#fff;box-shadow:inset 0 1px 0 #e8e8e7;border-radius:4px;-moz-box-sizing:border-box;box-sizing:border-box;font-size:16px;color:#a2a2a2;font-weight:500;transition:background .3s,color .3s}.add_pic_list li a.add_pic_link,.add_pic_list li a.add_pic_link span{display:block;-webkit-transition:background .3s,color .3s;-o-transition:background .3s,color .3s;position:relative}.add_pic_list li a.add_pic_link span{margin:30px auto 0;width:46px;height:46px;background-color:#d0d0d0;border-radius:50%;background-image:url(../img/add_pic_block_bg2.png);background-position:center center;background-repeat:no-repeat;transition:background .3s,color .3s}.add_pic_list li a.add_pic_link .input{display:block;width:100%;height:100%;position:absolute;left:0;top:0;opacity:0;cursor:pointer}.add_pic_list li a.add_pic_link i{display:block;font-style:normal;padding:10px 0 1px}.add_pic_list li a.add_pic_link b{font-size:14px;font-weight:500}.add_pic_list li a.add_pic_link b:before{content:'';display:inline-block;width:14px;height:12px;background:url(../img/sprites.png) -365px -53px no-repeat;margin:0 4px 0 0;position:relative;top:1px}.add_pic_list li a.add_pic_link:hover{color:#f60}.add_pic_list li a.add_pic_link:hover span{background-color:#f60}.add_pic_list li a.add_pic_link:hover b:before{background-position:-181px -32px}.i-staff-list>ul>li a.add_pic_link{text-align:center;background:#fff;border-radius:4px;box-sizing:border-box;width:90px;height:79px;padding:11px 0 0;font-size:13px;color:#a2a2a2;font-weight:500;transition:background .3s,color .3s}.i-staff-list>ul>li a.add_pic_link,.i-staff-list>ul>li a.add_pic_link span{display:block;-webkit-transition:background .3s,color .3s;-o-transition:background .3s,color .3s;position:relative}.i-staff-list>ul>li a.add_pic_link,.stub{box-shadow:inset 0 1px 0 #e8e8e7;-moz-box-sizing:border-box}.i-staff-list>ul>li a.add_pic_link span{margin:0 auto;width:27px;height:27px;background-color:#d0d0d0;border-radius:50%;background-image:url(../img/add_pic_block_bg1.png);background-position:center center;background-repeat:no-repeat;transition:background .3s,color .3s}.i-staff-list>ul>li a.add_pic_link .input{display:block;width:100%;height:100%;position:absolute;left:0;top:0;opacity:0;cursor:pointer}.i-staff-list>ul>li a.add_pic_link i{display:block;font-style:normal;padding:10px 0 1px}.i-staff-list>ul>li a.add_pic_link b:before,.site_link a:before{content:'';position:relative;display:inline-block}.i-staff-list>ul>li a.add_pic_link b{font-size:14px;font-weight:500}.i-staff-list>ul>li a.add_pic_link b:before{width:14px;height:12px;background:url(../img/sprites.png) -365px -53px no-repeat;margin:0 4px 0 0;top:1px}.i-staff-list>ul>li a.add_pic_link:hover{color:#f60}.i-staff-list>ul>li a.add_pic_link:hover span{background-color:#f60}.i-staff-list>ul>li a.add_pic_link:hover b:before{background-position:-181px -32px}.reason_block{font-size:11px;color:#f60;line-height:13px;margin:-10px 0 0}.reason_block p{padding:6px 0 0;margin:0}.i-info header{position:relative}.site_link{font-size:13px;font-family:dindisplay_pro,sans-serif;font-weight:500;margin-bottom:.4em}.site_link a{color:#a2a2a2;text-decoration:underline}.site_link a:hover{text-decoration:none}.site_link a:before{width:16px;height:16px;background:url(../img/sprites.png) -426px -93px;margin:0 5px 0 0;top:4px}.i-contacts1{margin-top:0!important}.i-additional1{margin-bottom:0!important}.cl-item_active{border:1px solid #fe9232}.doings_block{padding-right:0}.doings_block .button{border-color:#ccc;margin:0 10px 10px 0;font-weight:400;color:#424242;font-family:dindisplay_pro;font-size:17px}.doings_block .button:hover{color:#fff;border-color:#ff7600}.doings_block .button.more:after{background-position:-158px -16px}.doings_block .button.more:hover:after{background-position:-165px -23px}.button.dark_green{border-color:#a5c67d;color:#4e9000}.button.dark_green:hover{border-color:#4e9000;background:#4e9000;color:#fff}.button.icon-up:before{width:13px;height:15px;background-position:-348px -92px}.button.icon-up:hover:before{background-position:-365px -92px}.s-news-list .nl-pict{float:left;margin:0 10px 5px 0;border-radius:4px;text-align:center;background:#fff;padding:6px 3px 3px;box-shadow:inset 0 1px 0 #e8e8e7}.add_company{text-align:right}.add_company a{color:#fff;text-decoration:underline;word-spacing:normal;position:relative;top:-6px}.add_company a:hover{text-decoration:none;color:#fff}.add_company a:before{content:'';background:url(../img/sprites.png) -405px -51px;display:inline-block!important;width:16px;height:17px;position:relative;left:-5px;top:4px}.add_company a:hover:before{background:url(../img/sprites.png) -405px -51px!important}.hide-element{display:none!important}.show-element{display:block!important}.i-additional .add_link_text .edit-wrap>.e-btn{display:none}.wait-ajax{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);z-index:4}.wait-ajax img{display:block;position:absolute;left:50%;top:50%;margin-top:-27px;margin-left:-27px}.wait-ajax.absolute{position:absolute;width:100%;height:100%;left:0;top:0;background-color:rgba(191,191,191,.3);display:none}.dna-template{display:none}.pw-body .place-box{min-height:282px;position:relative}.c-select-box.topics .csb-title ul.ui-autocomplete{background:#FFF;border:1px solid #CCC;margin-left:0;z-index:1020}.main-field-complete{z-index:3;height:auto}.button.icon-eye:before{width:15px;height:11px;background-position:-225px -164px}.body-fixed,.modal-wrapper{width:100%;height:100%;position:fixed}.button.icon-eye.active:before,.button.icon-eye:hover:before{background-position:-241px -164px}button.gray,button.gray:hover{background:#dbdbdb}.full-visible{visibility:visible!important}.ov-hidden{overflow:hidden!important}.body-fixed,.search_form .scroll-container{overflow:hidden}.specify-link{color:#464646;text-decoration:none;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s;display:block;float:right;clear:right}.specify-link:hover{text-decoration:underline;color:#f60}.no-wrap{white-space:nowrap}.pd-top-14{padding-top:14px}.mt-0{margin-top:0}button.gray{background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dbdbdb),color-stop(100%,#bdbdbd));background:-webkit-linear-gradient(top,#dbdbdb 0,#bdbdbd 100%);background:-o-linear-gradient(top,#dbdbdb 0,#bdbdbd 100%);background:-webkit-linear-gradient(top,#dbdbdb 0,#bdbdbd 100%);background:-o-linear-gradient(top,#dbdbdb 0,#bdbdbd 100%);background:linear-gradient(to bottom,#dbdbdb 0,#bdbdbd 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#dbdbdb', endColorstr='#bdbdbd', GradientType=0 )}.button.apply-filter,.events-filter .csb-selected{filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f5f5f5', GradientType=0 )}.inline-block{display:inline-block;vertical-align:top}.modal-wrapper{top:0;left:0;background:rgba(0,0,0,.8);z-index:4}.disable-inner:before{display:none!important}.right{float:right}.min-height{min-height:27px}.mb-05em{margin-bottom:.5em}.mb-2em{margin-bottom:2em}.mb-1em{margin-bottom:1em}.bd-dashed{border-bottom:1px dashed #f60}.orange-text{color:#f60}.stub{text-align:center;background:#fff;border-radius:4px;box-sizing:border-box}.pw-subj .q-sel{top:0;position:absolute;right:0;margin-top:1em}.search-modal-overlay{position:fixed;bottom:0;right:0;top:0;left:0;z-index:10;background:url(../lib/fancybox/fancybox_overlay.png);display:none;overflow-y:auto}.events-filter .c-select-box,.events-filter .csb-selected-items{background-color:transparent}.search-modal-wrap{position:absolute;z-index:11;top:50%;left:50%;width:640px;height:auto;min-height:360px;margin-bottom:3em}.events-feed-page{margin-top:-14px;margin-bottom:2em}.events-feed-page h2{font-size:16px;font-weight:400;margin-left:1em;color:#fff;margin-bottom:0}.events-filter{clear:both;margin-left:-2%;-moz-box-sizing:border-box;box-sizing:border-box}.events-filter .c-select-box{border:0;padding:0;box-shadow:none}.events-filter .csb-selected{background:#fff;background:-webkit-gradient(linear,left top,left bottom,color-stop(67%,#fff),color-stop(100%,#f5f5f5));background:-webkit-linear-gradient(top,#fff 67%,#f5f5f5 100%);background:-o-linear-gradient(top,#fff 67%,#f5f5f5 100%);background:-webkit-linear-gradient(top,#fff 67%,#f5f5f5 100%);background:-o-linear-gradient(top,#fff 67%,#f5f5f5 100%);background:linear-gradient(to bottom,#fff 67%,#f5f5f5 100%);padding-bottom:0}.events-filter a{color:#fff;text-decoration:underline}.events-filter a:hover{text-decoration:none}.events-filter:after{content:'';display:block;clear:both}.events-filter .csb-selected a{color:#f60}.events-filter .col{margin-left:2%;-moz-box-sizing:border-box;box-sizing:border-box;padding-top:1px}.events-filter-box .csb-selected-items{display:block;border:0;padding:8px;min-height:initial}.events-filter-box .csb-selected-items .csb-selected{margin-bottom:8px}.events-filter-box .csb-selected.dna-clone{display:inline-block}.events-feed-page .cl-exhibitions{border-top:1px dotted #cdcdcd;padding-top:1.5em;margin-top:2em}.events-feed-page .events-filter{display:none;border-radius:4px 0 4px 4px;background:#F60;padding-right:2%;-ms-box-shadow:0 1px 3px rgba(0,0,0,.4);-o-box-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 1px 3px rgba(0,0,0,.4)}.events-filter-wrap{position:relative;overflow:visible;margin-bottom:1em}.events-filter-wrap .button{margin-top:-40px;float:right;line-height:32px;height:36px;position:relative}.events-filter-wrap .button.active:after{position:absolute;content:'';display:block;width:100%;height:5px;background:#f60;border:1px solid #f60;left:0;margin-left:-1px;bottom:0;margin-bottom:-5px}.events-filter-wrap .button.active{background:#f60;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.3);border-color:#f60;box-shadow:inset 0 1px 0 rgba(0,0,0,.1);border-bottom-left-radius:0;border-bottom-right-radius:0}.button.apply-filter{background:#fff;background:-webkit-gradient(linear,left top,left bottom,color-stop(67%,#fff),color-stop(100%,#f5f5f5));background:-webkit-linear-gradient(top,#fff 67%,#f5f5f5 100%);background:-o-linear-gradient(top,#fff 67%,#f5f5f5 100%);background:-webkit-linear-gradient(top,#fff 67%,#f5f5f5 100%);background:-o-linear-gradient(top,#fff 67%,#f5f5f5 100%);background:linear-gradient(to bottom,#fff 67%,#f5f5f5 100%);color:#f60;margin-top:0;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;border-bottom:0;display:none;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.button.apply-filter.icon-check:hover{box-shadow:inset 0 0 2px 0 rgba(0,0,0,.3);text-shadow:none}.button.apply-filter.icon-check:hover:before{background-position:-106px -16px}.events-feed-page .filter-hint-block{border:1px dashed #87C525;display:none;border-radius:4px}.events-feed-page .filter-hint-block p{margin:8px;text-align:center;color:#464646}.events-feed-page .filter-hint-block p .red{font-weight:700;color:#d80000}.message-not-found{margin-top:19px;margin-left:40px;padding-left:60px;padding-top:18px}.message-not-found .fa{color:#f60;font-size:48px;vertical-align:middle;margin-left:-40px;margin-top:-24px}.message-not-found span{display:inline-block}.message-not-found .message{font-family:dindisplay_pro,Arial,sans-serif;font-size:18px;margin-left:14px;line-height:1.2em}.mp-search .clear-all-button,.search-form-wrap .clear-all-button{display:none;width:17px;height:17px;background:url(../img/sprites.png) -385px -72px no-repeat;cursor:pointer;vertical-align:top;margin-top:2px}.mp-search .clear-all-button.active,.search-form-wrap .clear-all-button.active,.search-modal-wrap .ui-menu .ui-menu-item a{display:inline-block}.mp-search .clear-all-button:active,.search-form-wrap .clear-all-button:active{background-position:-385px -89px}.mp-search .pw-period .pwf-field.err input{border-width:2px;border-color:#D80000}.search-modal-wrap .ui-menu .ui-menu-item .subj-category{display:inline-block;color:#a2a2a2;font-size:15px;line-height:15px;border:none;padding:2px 5px;cursor:pointer;text-decoration:none;min-height:0;font-weight:400;white-space:normal}.search-modal-wrap .ui-autocomplete{width:533px}.err-message-box:before,.required.err:before{content:'';width:15px;height:16px}.search-modal-wrap .ui-menu .ui-menu-item{white-space:nowrap}.search-modal-wrap .ui-menu li{margin-bottom:4px}.search-modal-wrap .ui-menu{line-height:15px}@media (max-width:1086px){.mp-search .search-form-wrap{max-width:764px;overflow:hidden;display:block}.mp-search .search-form-wrap .search-line{display:block;word-spacing:-4px}.mp-search .search-form-wrap .search-line .sf-field-wrap{display:inline-block;word-spacing:normal;-moz-box-sizing:border-box;box-sizing:border-box}}.required{position:relative}.required.err input{border-width:2px;border-color:#d80000}.required.err:before{display:block;position:absolute;top:50%;right:0;margin-right:32px;margin-top:-8px;background:url(../img/sprites.png) -360px -159px;z-index:1}.err-message-box{display:none!important}.err-message-box.active{display:block!important;padding-left:24px;color:#ce0000}.err-message-box:before{display:block;background:url(../img/sprites.png) -390px -159px;margin-left:-24px;float:left}.err-message-box.red:before{background:url(../img/sprites.png) -360px -159px}.button.removecalendar{border-color:#2592c5;background:#2592c5;color:#fff;text-shadow:none}.button.removecalendar:before{background-position:-60px -16px}.button.removecalendar:hover{background:#4c9ec4}.button.unvisit{border-color:#f60;background:#f60;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.3);box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.button.unvisit:before,.button.unvisit:hover:before{background-position:-64px -159px;width:9px;height:10px;margin-top:0}.button.unvisit:hover{background:#FF8635}.place .i-info .i-descr-readmore{display:block;padding-bottom:1em;margin-bottom:36px;border-bottom:dashed 1px #7e7e7e;font-size:15px;color:#a2a2a2;text-decoration:none}.place .i-info .i-descr-readmore:hover{text-decoration:underline}.note-wrap,.note-wrap-disabled{display:inline-block;vertical-align:top;position:relative}.add_link_teg .e-btn,.edit-profile .i-info .add_link_text_text,.look-also a:before,.сallback-modal .submit:after{vertical-align:middle}.note-wrap-disabled .note-overlay{display:none}.note-wrap .note-overlay{margin-top:5px;padding:10px 14px;position:absolute;background:#87c525;color:#fff;font-size:12px;font-weight:700;width:240px;border-radius:4px;-moz-box-sizing:border-box;box-sizing:border-box;display:none;z-index:10}.look-also a,.note-wrap:hover .note-overlay{display:block}.note-wrap:hover .note-text{width:100%;height:100px}.note-wrap:hover .note-text:focus{border:1px solid #6EA01E}.note-wrap:hover .note-button{-webkit-transition:none;-o-transition:none;transition:none;border-color:#87c525;background:#87c525;color:#fff;text-shadow:none;position:relative}.note-wrap:hover .note-button:before{background-position:-74px -16px}.note-wrap:hover .note-button:after{content:'';border:1px solid #87c525;display:block;position:absolute;background:#87c525;width:100%;height:8px;bottom:0;left:0;margin-left:-1px;margin-bottom:-8px}.main-page.note-wrap .note-overlay{bottom:0;margin-bottom:26px}.main-page.note-wrap:hover .note-button:after{margin-bottom:22px}.look-also a{position:relative;color:#6d6d6d;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;margin-bottom:.5em}.look-also a:before,.service-page .error-field.simple-wrap{display:inline-block}.look-also a:hover{color:#f60;text-decoration:none}.look-also a:hover:before{background-position:-235px -134px}.look-also a:before{content:'';height:9px;top:50%;margin-top:-4px;width:8px;background:url(../img/sprites.png) -251px -134px no-repeat;margin-right:10px}.service-page .error-field{position:relative;-moz-box-sizing:border-box;box-sizing:border-box}.service-page .error-field.simple-wrap:before{margin-right:16px;margin-top:-8px}.mf-line.cols-2 .mf-field.error-field:first-child:before{margin-right:30px}.service-page .error-field:before{content:'';display:block;position:absolute;top:50%;right:0;margin-right:20px;margin-top:-11px;width:15px;height:16px;background:url(../img/sprites.png) -360px -159px}.service-page .error-field input{border-color:#d80000}.service-page .error-blob{border-width:2px;border-color:#d80000;background:#696969;text-align:center;color:#fff;position:absolute;padding:8px 16px;top:0;left:50%;margin-top:-41px;width:160px;margin-left:-100px;border-radius:4px;display:none;font-size:14px;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.service-page .error-field:hover .error-blob{display:block}.error-blob:after,.error-blob:before{top:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:#696969 transparent transparent}.error-blob:after{border-width:3px;margin-left:-3px}.error-blob:before{border-width:9px;margin-left:-9px}.after-register-modal .required.err .select2-choice,.create-company-modal .select-input.err .select2-choices{border-width:2px;border-color:#d80000}.service-page .error-blob ul{margin:0;padding:0;display:block;list-style-type:none}.cal-scroll-button .sprite{display:block;width:17px;height:17px;border-radius:10px;background:#464646;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s;padding-left:4px;padding-top:3px;-moz-box-sizing:border-box;box-sizing:border-box}.cal-scroll-button .sprite:before{display:block;content:'';width:8px;height:12px;background:url(../img/sprites.png) -225px -134px no-repeat}.cal-scroll-button:hover .sprite{background:#f60}.cal-scroll-button{position:absolute;top:0;width:34px;height:34px;border-radius:17px;background:#FCFCFB;-moz-box-sizing:border-box;box-sizing:border-box;padding-left:9px;padding-top:9px;cursor:pointer;margin-top:96px}.cal-scroll-button.to-left{left:0;margin-left:6px}.cal-scroll-button.to-right{right:0;margin-right:6px}.cal-scroll-button.to-right .sprite{padding-left:5px}.cal-scroll-button.to-right .sprite:before{background-position:-175px 0}.calenadar-body{overflow:hidden}.calenadar-body .mCSB_scrollTools_horizontal{opacity:0!important}.no-events .c-event{background-color:#CACACA}.no-events .c-event .ce-wrap{-moz-box-sizing:border-box;box-sizing:border-box;height:60px;text-align:center;padding-top:20px;font-size:20px;color:#464646;overflow:hidden;position:relative;font-family:dindisplay_pro;text-shadow:0 1px 0 rgba(255,255,255,.8)}.no-events .c-event .ce-wrap .message{position:absolute;text-align:center}.no-events .c-event .ce-wrap.small{font-size:14px;padding-top:14px}.edit-profile .edit-wrap{display:block}.edit-profile .i-title .e-form{margin-top:7px}.edit-profile .full-width .static-value{height:27px}.edit-profile .pe-current .e-form{display:block}.edit-profile .social.pe-current .i-descr{opacity:0}.edit-profile .p-editable{padding-left:22px}.edit-profile .p-editable.i-place{padding-left:36px}.edit-profile .p-editable.social .e-btn.full-complete{color:#f60}.edit-profile .p-editable.social .e-btn.full-complete:hover{opacity:.7}.edit-profile .i-pict.p-editable{padding:0}.edit-profile .ic-tel .custom-radio-check{position:relative}.edit-profile .i-pict.p-editable img{z-index:0}.edit-profile .ic-tel .epfl{margin-bottom:0}.edit-profile .check{color:#f5f5f5;margin-top:4px;margin-bottom:0;padding-left:4px}.edit-profile .check .custom-checkbox{width:14px;height:14px;margin:-1px 5px 0 0}.my-companies-block:after{content:'';display:block;clear:both}.my-companies-block .ia-title{font-family:dindisplay_pro,sans-serif;font-size:20px;line-height:23px;margin-bottom:10px}.my-companies-block .company{display:block;-moz-box-sizing:border-box;box-sizing:border-box;width:23%;float:left;margin-right:2%;margin-top:20px}.my-companies-block .company .logo,.my-companies-block .company .logo img{display:block;width:100%;height:auto}.my-companies-block .company a{display:block;margin-left:auto;margin-right:auto}.my-companies-block .company .logo{-moz-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border-top:1px solid #CCCBC6;background-color:#fff;overflow:hidden;min-height:141px;position:relative}.my-companies-block .company .logo img.portrait{height:141px;width:auto;margin-left:auto;margin-right:auto}.my-companies-block .company .logo img.no-logo{position:absolute;margin-top:-29px;margin-left:-30px;top:50%;left:50%;width:60px;height:58px}.my-companies-block .company .title{display:block;color:#606060;margin-top:8px;text-decoration:underline;text-align:center;position:relative}.my-companies-block .company .title .e-btn{padding:0;border-radius:0;height:16px;top:3px}.my-companies-block .company a:hover .title{text-decoration:none}.my-companies-block.editable .company .fa:before{position:absolute;left:0;top:0;font-size:18px;color:#f60}.add-company-block{margin-top:2em}.edit-profile .hidden{display:none}.edit-profile .i-info .e-btn{margin-right:0}.edit-profile .ic-buttons .add_link_text{display:inline-block}.edit-profile .ic-buttons .p-editable{padding-left:0}.create-company-modal .select-input.err{width:auto}.p-editable.pe-current .e-btn.social{background-color:transparent}.p-editable.pe-current .e-btn.social:before,.p-editable.pe-current.social .e-form:before,.p-editable.social .edit-label{display:none}.edit-profile.company .add-info .edit-label,.p-editable.pe-current.social .edit-label{display:block;width:24px;margin-left:-24px;padding-left:5px;padding-top:4px;padding-bottom:4px;background-color:#f60;position:absolute;top:0;left:0;border-radius:3px 0 0 3px}.edit-profile.company .add-info .edit-label .fa,.p-editable.pe-current.social .edit-label .fa{font-size:18px;color:#fff}.edit-profile .editable-wrap .static-value.website{height:27px!important}.edit-profile .editable-wrap .static-value.address{line-height:28px;min-height:27px;display:block}.edit-profile .i-contacts .editable-wrap .static-value{display:block;height:23px}.edit-profile .editable-wrap>p{display:block;margin:0}.edit-profile .i-additional .editable-wrap>p{min-height:23px}.edit-profile .i-additional .editable-wrap .static-value{min-height:27px}.edit-profile .editable-wrap:before{display:none}.add_link_teg .tags,.edit-profile .theme-wrap .input,.edit-profile .theme-wrap .label{display:inline-block}.edit-profile .social .e-form .err:before{margin-right:9px}.edit-profile .add_link_teg .select2-input{line-height:36px!important;font-size:16px!important}.edit-profile .description-text{font-size:14px}.edit-profile .add_link_teg .label{float:none;margin-left:12px}.outer-profile .i-additional{margin-bottom:36px}.outer-profile .i-info .i-title{margin-bottom:14px}.outer-profile .i-contacts .ic-buttons{margin-right:0;padding-left:32px}.outer-profile .i-contacts .ic-buttons .soc-media-buttons{margin-top:0;margin-bottom:16px;padding-left:8px}.outer-profile .i-info .i-contacts{margin-bottom:24px;margin-top:24px}.outer-profile .ic-tel{margin-bottom:14px}.add_link_teg .tags{font-size:12px;margin-top:0}.edit-profile.company .i-additional .e-btn{vertical-align:middle;margin-right:3px}.edit-profile.company .i-additional dl.add-info dd,.edit-profile.company .i-additional dl.add-info dt{min-height:24px;line-height:24px;padding-top:5px;margin-bottom:0}.edit-profile.company .description-text{padding-top:4px}.edit-profile.company .description-text p{line-height:15px;font-size:12px}.edit-profile .theme-wrap .label{font-size:15px;color:#a2a2a2;font-family:dindisplay_pro;font-weight:500;display:inline-block;position:relative;padding-right:6px}.edit-profile .theme-wrap .label p{display:inline}.company-preview .i-info .i-contacts .ic-buttons .soc-media-buttons{margin-top:12px}.company-preview .i-info .brief{font-size:12px;line-height:16px;color:#7e7e7e;font-family:Arial,sans-serif}.message-register-success .message,.message-standart .message{font-family:dindisplay_pro,Arial,sans-serif}.company-preview .i-info .brief p{margin:0}.company-preview .i-info,.company-preview .pw-open{margin-bottom:1em}.company-preview .i-info .i-tags{font-size:12px}.company-preview .soc-media-buttons{margin-top:2px!important}.profile-preview-btn{margin-top:1em;margin-bottom:2em}.company-preview .specialization,.edit-profile .specialization .static-value{font-size:13px;font-weight:400;color:#7D7D7D}.edit-profile .specialization{margin-bottom:1em}.edit-profile .specialization .p-editable{min-height:27px}.edit-profile .theme-form select{opacity:0}.about-page .tab{display:none}.about-page .tab.active{display:block}.about-page .tabs-body{padding-top:20px}.about-page .tabs-opening{margin-bottom:20px}.team_list .stub{display:block;position:absolute;left:0;top:50%;margin-top:-40px;width:89px;height:89px;text-align:center;padding-top:15px}.team_list li .team_list_bg .stub img{display:inline;position:relative;top:0;margin-top:0;width:auto;height:auto}.сallback-modal{width:534px}.сallback-modal .pw-form .pwf-field{width:340px}.сallback-modal .submit:before{display:none}.сallback-modal .submit:after{content:' ';display:inline-block;background:url(../img/sprites.png) -176px 0 no-repeat;margin:-2px 7px 0 6px;width:8px;height:12px}.subscribe-modal .required.err:before,.сallback-modal .required.err:before{margin-top:2px}.subscribe-modal{width:560px;color:#000}.subscribe-modal .pw-form .pwf-field{width:340px}.subscribe-modal .submit{cursor:pointer}.subscribe-modal .pw-title{font-size:26px;font-weight:300}.subscribe-modal .sub-header{margin-top:0}.subscribe-modal .submit-arrow{display:inline-block;margin-left:20px}.subscribe-modal header{padding-bottom:0}.subscribe-modal .gray{color:#8d807f}.subscribe-modal .small{font-size:.9em}.subscribe-modal.lessons .form-side{float:left;width:60%;position:relative;z-index:1;-moz-box-sizing:border-box;box-sizing:border-box;padding-left:14px}.subscribe-modal.lessons .image-side{float:left;width:40%}.subscribe-modal.lessons .image-side img{position:absolute;width:233px;margin-left:-42px;margin-bottom:-19px;z-index:0}.subscribe-modal.lessons .label-header{font-size:18px}.subscribe-modal.lessons .label-header .small{font-size:.8em}.subscribe-modal.lessons .pw-form .pwf-field{width:214px}.subscribe-modal.lessons .pw-form .submit{height:42px;line-height:42px;width:214px}.subscribe-modal.lessons .submit-arrow{position:absolute;right:0;margin-right:-20px}.invite-modal{width:560px;color:#000}.invite-modal .logos{display:table;margin-left:auto;margin-right:auto;margin-bottom:26px}.invite-modal .logos .item{display:inline-block;margin-left:16px}.invite-modal .logos .item:first-child{margin-left:0}.invite-modal .label p{margin:0}.invite-modal .pw-title{font-size:24px;font-weight:400;line-height:25px}.invite-modal .button{height:42px;line-height:42px;padding-top:0;padding-bottom:0;font-size:15px;width:214px;text-align:center}.invite-modal .submit-arrow{display:inline-block;margin-left:20px}.add-event-page .set-sect.not-active .form-wrap{display:none}.add-event-page .w-time .mCSB_inside>.mCSB_container{margin-right:0}.add-event-page .w-time .mCustomScrollBox{overflow:hidden!important}.reg-form .msg-help .error{color:#d80000}.after-register-modal .pw-form .pwf-line{margin-bottom:0}.after-register-modal .pw-form .pwf-field{padding:0}.after-register-modal .pwf-field input[type=text]{line-height:30px;height:30px}.after-register-modal .pw-form .input_top .pwf-field,.after-register-modal .pw-form .pwf-line{display:block!important}.after-register-modal .input_top select{width:100%}.after-register-modal input[type=text]:focus{padding:0 6px}.after-register-modal .required.err:before{margin-right:8px;margin-top:-27px}.after-register-modal .input_bottom .required.err:before{margin-right:8px;margin-top:-7px}.after-register-modal .input_top .required.err:before{margin-right:8px;margin-top:-8px}.thank-registering{font-size:16px}.thank-registering header{padding-bottom:16px!important}.after-register-modal .pwf-line.phone .err-message-box{font-size:13px}.after-register-modal .pwf-line .err-message-box{margin-top:4px}.after-register-modal .pwf-line .hint-box{display:none;width:62px;position:absolute;text-align:center;margin-left:31px;padding:8px 12px;color:#000;background-color:#aaa;opacity:.6;margin-top:-68px;border-radius:4px}.message-register-success,.message-standart{margin-top:40px}.after-register-modal .pwf-line .err+.hint-box{display:none!important}.after-register-modal .pwf-line .hint-box:after{top:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(170,170,170,0);border-top-color:#aaa;border-width:4px;margin-left:-4px}.message-register-success .fa{color:#f60;font-size:80px;margin-bottom:40px}.message-register-success span{display:block;text-align:center}.message-register-success .message{font-size:26px}.message-standart .fa{color:#f60;font-size:40px;vertical-align:bottom;margin-right:9px}.message-standart .message{font-size:18px;line-height:40px;display:inline-block}.address-wrap .i-descr,.event-page .title,.thanks-page .left-part figcaption{font-family:dindisplay_pro,sans-serif}.recovery-page{padding-bottom:2.6em;-moz-box-sizing:border-box;box-sizing:border-box}.recovery-page .label{font-size:18px;margin-bottom:1.5em;margin-top:1.5em}.recovery-page .error-text,.recovery-page .input{display:inline-block}.recovery-page .submit{height:40px;line-height:40px;display:block;margin:2em 0 0 24px}.recovery-page .input input{margin-left:24px;width:340px}.recovery-page .input.err:before{margin-right:12px}.recovery-page .error-text{padding-left:12px;font-size:14px;color:#d80000}.event-page .title{font-size:23px;line-height:24px;margin:0 0 12px}.event-page .title .fa{font-size:.8em}.advertise-window .pwf-msg{color:#f60;padding-top:8px;padding-left:24px}.advertise-window .pwf-field{width:310px!important}.advertise-window header .pw-title{font-weight:400}.advertise-window header{padding-bottom:0}.expo-place-page .i-info .i-descr{height:auto}.expo-place-page .i-descr-readmore{margin-bottom:1em;display:block}.eni-areas.stat .enis-col{text-align:center;display:inline-block;width:auto;padding-right:32px}.eni-areas.stat .eni-title{float:left;margin-left:-130px;display:block;width:110px;margin-right:16px;font-size:20px;line-height:21px;text-align:right;-webkit-transition:color .3s;-o-transition:color .3s;transition:color .3s;color:#f60}.news-filter-block .mf-line.s-subj-tag .mf-field label{margin-bottom:1em}.news-filter-block .select2-container-multi .select2-choices .select2-search-field:first-child input{line-height:36px}.address-wrap .map-wrap{margin-top:1em;margin-bottom:2em}.address-wrap .i-descr{font-size:18px;line-height:21px;color:#464646}.address-wrap .map-wrap .gmap-canvas{height:308px}.address-wrap .map-toggle{display:block;float:right;color:#a2a2a2;text-decoration:none;position:relative;z-index:2}.address-wrap .map-toggle:hover{color:#f60}.address-wrap .map-toggle:hover .label{border:0}.address-wrap .map-toggle .label{font-size:15px;line-height:12px;text-decoration:none;border-bottom:1px dashed}.address-wrap .map-toggle .fa{font-size:1.3em}.paid-partner-link{text-transform:uppercase;padding:15px;text-align:center;display:block;font-weight:700}.paid-partner-block{margin-top:3em}.paid-partner-block .desc{color:#f60;text-align:center;margin-top:6px}.paid-partner-block .partner-title{margin-bottom:4px;text-align:center}.thanks-page .left-part{float:left;position:relative;width:188px;text-align:center;padding-top:12px}.thanks-page .left-part figcaption{position:absolute;top:0;left:50%;margin-top:50px;margin-left:-37px}.error-404 .figure,.error-404 h2{font-family:dindisplay_pro,sans-serif}.thanks-page .left-part figcaption span{display:block;font-weight:700;font-size:32px;line-height:32px}.thanks-page .left-part figcaption span.orange-text{font-size:68px;line-height:30px}.thanks-page .right-part{margin-left:190px}.thanks-page h3{font-size:18px;color:#59666e}.thanks-page .help-block{position:relative}.thanks-page .help-block .item{width:33.333%;float:left}.thanks-page .help-block .figure{display:block;width:60px;height:60px;float:left;margin-right:12px;background:#f60;position:relative}.thanks-page .help-block .figure:after{position:absolute;top:100%;right:0;content:" ";height:0;width:0;pointer-events:none;border-style:solid;border-width:0 10px 10px 0;border-color:transparent #f60 transparent transparent}.thanks-page .help-block .icon{background:url(../img/thanks_sprite.png) no-repeat;margin-left:auto;margin-right:auto}.thanks-page .help-block .list{width:32px;height:37px;margin-top:12px}.thanks-page .help-block .mail{width:42px;height:39px;margin-top:10px;background-position:-32px 0}.thanks-page .help-block .zoom{width:43px;height:39px;margin-top:12px;background-position:-74px 0}.period .pwf-field .error-blob{line-height:18px}.service-page .period .pwf-field.error-field:before{margin-right:13px;margin-top:-8px}.organizer-modal .organizer-name{border-bottom:1px solid #f26c2a}.error-404 .items-list{-webkit-column-count:3;-moz-column-count:3;column-count:3;list-style-type:none;list-style-position:inside;margin:0;display:block}.error-404 .items-list li{margin-bottom:8px;display:block;position:relative}.error-404 .items-list .fa{display:block;float:left;font-size:6px;line-height:16px}.error-404 .items-list a{display:block;margin-left:16px;line-height:1.2em;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s;text-decoration:none;color:#464646}.error-404 .items-list a:hover{color:#f60}.error-404 .title{font-size:16px;padding-top:12px}.error-404 h2{color:#f60;font-size:30px;line-height:30px;font-weight:400}.error-404 .figure{display:block;color:#f60;float:left;font-size:96px;margin-right:22px;line-height:1em} \ No newline at end of file diff --git a/static/client/css_min/vendor.min.css b/static/client/css_min/vendor.min.css new file mode 100644 index 00000000..92f5e8ca --- /dev/null +++ b/static/client/css_min/vendor.min.css @@ -0,0 +1,4 @@ +.fancybox-nav,.select2-results{-webkit-tap-highlight-color:transparent}.swiper-container{margin:0 auto;position:relative;overflow:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-o-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-wrapper{position:relative;width:100%;-webkit-transition-property:-webkit-transform,left,top;-webkit-transition-duration:0s;-webkit-transform:translate3d(0,0,0);-webkit-transition-timing-function:ease;-moz-transition-property:-moz-transform,left,top;-moz-transition-duration:0s;-moz-transform:translate3d(0,0,0);-moz-transition-timing-function:ease;-o-transition-property:-o-transform,left,top;-o-transition-duration:0s;-o-transition-timing-function:ease;-o-transform:translate(0,0);-ms-transition-property:-ms-transform,left,top;-ms-transition-duration:0s;-ms-transform:translate3d(0,0,0);-ms-transition-timing-function:ease;transition-property:transform,left,top;transition-duration:0s;transform:translate3d(0,0,0);transition-timing-function:ease}.swiper-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;-moz-transition-timing-function:ease-out;-ms-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-slide{float:left}.swiper-wp8-horizontal{-ms-touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x}.mCustomScrollbar{-ms-touch-action:none;touch-action:none}.mCustomScrollbar.mCS_no_scrollbar{-ms-touch-action:auto;touch-action:auto}.mCustomScrollBox{position:relative;height:100%;max-width:100%;outline:0;direction:ltr}.mCSB_container{width:auto;height:auto}.mCSB_inside>.mCSB_container{margin-right:30px}.mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{margin-right:0}.mCS-dir-rtl>.mCSB_inside>.mCSB_container{margin-right:0;margin-left:30px}.mCS-dir-rtl>.mCSB_inside>.mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{margin-left:0}.mCSB_scrollTools{position:absolute;width:16px;height:auto;left:auto;top:0;right:0;bottom:0;opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_outside+.mCSB_scrollTools{right:-26px}.mCS-dir-rtl>.mCSB_inside>.mCSB_scrollTools,.mCS-dir-rtl>.mCSB_outside+.mCSB_scrollTools{right:auto;left:0}.mCS-dir-rtl>.mCSB_outside+.mCSB_scrollTools{left:-26px}.mCSB_scrollTools .mCSB_draggerContainer{position:absolute;top:0;left:0;bottom:0;right:0;height:auto}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:20px 0}.mCSB_scrollTools .mCSB_draggerRail{width:2px;height:100%;margin:0 auto;-webkit-border-radius:16px;-moz-border-radius:16px;border-radius:16px}.mCSB_scrollTools .mCSB_dragger{cursor:pointer;width:100%;height:30px;z-index:1}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{position:relative;width:4px;height:100%;margin:0 auto;-webkit-border-radius:16px;-moz-border-radius:16px;border-radius:16px;text-align:center}.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar,.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{width:12px}.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded+.mCSB_draggerRail,.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{width:8px}.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonUp{display:block;position:absolute;height:20px;width:100%;overflow:hidden;margin:0 auto;cursor:pointer}.mCSB_scrollTools .mCSB_buttonDown{bottom:0}.mCSB_horizontal.mCSB_inside>.mCSB_container{margin-right:0;margin-bottom:30px}.mCSB_horizontal.mCSB_outside>.mCSB_container{min-height:100%}.mCSB_horizontal>.mCSB_container.mCS_no_scrollbar_x.mCS_x_hidden{margin-bottom:0}.mCSB_scrollTools.mCSB_scrollTools_horizontal{width:auto;height:16px;top:auto;right:0;bottom:0;left:0}.mCustomScrollBox+.mCSB_scrollTools+.mCSB_scrollTools.mCSB_scrollTools_horizontal,.mCustomScrollBox+.mCSB_scrollTools.mCSB_scrollTools_horizontal{bottom:-26px}.mCSB_scrollTools.mCSB_scrollTools_horizontal a+.mCSB_draggerContainer{margin:0 20px}.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_draggerRail{width:100%;height:2px;margin:7px 0}.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger{width:30px;height:100%;left:0}.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{width:100%;height:4px;margin:6px auto}.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar,.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{height:12px;margin:2px auto}.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded+.mCSB_draggerRail,.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{height:8px;margin:4px 0}.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft,.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight{display:block;position:absolute;width:20px;height:100%;overflow:hidden;margin:0 auto;cursor:pointer}.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft{left:0}.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight{right:0}.mCSB_container_wrapper{position:absolute;height:auto;width:auto;overflow:hidden;top:0;left:0;right:0;bottom:0;margin-right:30px;margin-bottom:30px}.mCSB_container_wrapper>.mCSB_container{padding-right:30px;padding-bottom:30px}.mCSB_vertical_horizontal>.mCSB_scrollTools.mCSB_scrollTools_vertical{bottom:20px}.mCSB_vertical_horizontal>.mCSB_scrollTools.mCSB_scrollTools_horizontal{right:20px}.mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden+.mCSB_scrollTools.mCSB_scrollTools_vertical{bottom:0}.mCS-dir-rtl>.mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside>.mCSB_scrollTools.mCSB_scrollTools_horizontal,.mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden+.mCSB_scrollTools~.mCSB_scrollTools.mCSB_scrollTools_horizontal{right:0}.mCS-dir-rtl>.mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside>.mCSB_scrollTools.mCSB_scrollTools_horizontal{left:20px}.mCS-dir-rtl>.mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside>.mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden+.mCSB_scrollTools~.mCSB_scrollTools.mCSB_scrollTools_horizontal{left:0}.mCS-dir-rtl>.mCSB_inside>.mCSB_container_wrapper{margin-right:0;margin-left:30px}.mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden>.mCSB_container{padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden>.mCSB_container{padding-bottom:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside>.mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden{margin-right:0;margin-left:0}.mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside>.mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden{margin-bottom:0}.mCSB_scrollTools,.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_scrollTools .mCSB_buttonRight,.mCSB_scrollTools .mCSB_buttonUp,.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{-webkit-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;-moz-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;-o-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;transition:opacity .2s ease-in-out,background-color .2s ease-in-out}.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail,.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar,.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail,.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar{-webkit-transition:width .2s ease-out .2s,height .2s ease-out .2s,margin-left .2s ease-out .2s,margin-right .2s ease-out .2s,margin-top .2s ease-out .2s,margin-bottom .2s ease-out .2s,opacity .2s ease-in-out,background-color .2s ease-in-out;-moz-transition:width .2s ease-out .2s,height .2s ease-out .2s,margin-left .2s ease-out .2s,margin-right .2s ease-out .2s,margin-top .2s ease-out .2s,margin-bottom .2s ease-out .2s,opacity .2s ease-in-out,background-color .2s ease-in-out;-o-transition:width .2s ease-out .2s,height .2s ease-out .2s,margin-left .2s ease-out .2s,margin-right .2s ease-out .2s,margin-top .2s ease-out .2s,margin-bottom .2s ease-out .2s,opacity .2s ease-in-out,background-color .2s ease-in-out;transition:width .2s ease-out .2s,height .2s ease-out .2s,margin-left .2s ease-out .2s,margin-right .2s ease-out .2s,margin-top .2s ease-out .2s,margin-bottom .2s ease-out .2s,opacity .2s ease-in-out,background-color .2s ease-in-out}.mCS-autoHide>.mCustomScrollBox>.mCSB_scrollTools,.mCS-autoHide>.mCustomScrollBox~.mCSB_scrollTools{opacity:0;filter:"alpha(opacity=0)";-ms-filter:"alpha(opacity=0)"}.mCS-autoHide:hover>.mCustomScrollBox>.mCSB_scrollTools,.mCS-autoHide:hover>.mCustomScrollBox~.mCSB_scrollTools,.mCustomScrollBox:hover>.mCSB_scrollTools,.mCustomScrollBox:hover~.mCSB_scrollTools,.mCustomScrollbar>.mCustomScrollBox>.mCSB_scrollTools.mCSB_scrollTools_onDrag,.mCustomScrollbar>.mCustomScrollBox~.mCSB_scrollTools.mCSB_scrollTools_onDrag{opacity:1;filter:"alpha(opacity=100)";-ms-filter:"alpha(opacity=100)"}.mCSB_scrollTools .mCSB_draggerRail{background-color:#000;background-color:rgba(0,0,0,.4);filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.75);filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.85);filter:"alpha(opacity=85)";-ms-filter:"alpha(opacity=85)"}.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.9);filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCSB_scrollTools .mCSB_buttonDown,.mCSB_scrollTools .mCSB_buttonLeft,.mCSB_scrollTools .mCSB_buttonRight,.mCSB_scrollTools .mCSB_buttonUp{background-image:url(mCSB_buttons.png);background-repeat:no-repeat;opacity:.4;filter:"alpha(opacity=40)";-ms-filter:"alpha(opacity=40)"}.mCSB_scrollTools .mCSB_buttonUp{background-position:0 0}.mCSB_scrollTools .mCSB_buttonDown{background-position:0 -20px}.mCSB_scrollTools .mCSB_buttonLeft{background-position:0 -40px}.mCSB_scrollTools .mCSB_buttonRight{background-position:0 -56px}.mCSB_scrollTools .mCSB_buttonDown:hover,.mCSB_scrollTools .mCSB_buttonLeft:hover,.mCSB_scrollTools .mCSB_buttonRight:hover,.mCSB_scrollTools .mCSB_buttonUp:hover{opacity:.75;filter:"alpha(opacity=75)";-ms-filter:"alpha(opacity=75)"}.mCSB_scrollTools .mCSB_buttonDown:active,.mCSB_scrollTools .mCSB_buttonLeft:active,.mCSB_scrollTools .mCSB_buttonRight:active,.mCSB_scrollTools .mCSB_buttonUp:active{opacity:.9;filter:"alpha(opacity=90)";-ms-filter:"alpha(opacity=90)"}.mCS-dark.mCSB_scrollTools .mCSB_draggerRail{background-color:#000;background-color:rgba(0,0,0,.15)}.mCS-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.75)}.mCS-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:rgba(0,0,0,.85)}.mCS-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:rgba(0,0,0,.9)}.mCS-dark.mCSB_scrollTools .mCSB_buttonUp{background-position:-80px 0}.mCS-dark.mCSB_scrollTools .mCSB_buttonDown{background-position:-80px -20px}.mCS-dark.mCSB_scrollTools .mCSB_buttonLeft{background-position:-80px -40px}.mCS-dark.mCSB_scrollTools .mCSB_buttonRight{background-position:-80px -56px}.mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail,.mCS-light-2.mCSB_scrollTools .mCSB_draggerRail{width:4px;background-color:#fff;background-color:rgba(255,255,255,.1);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-light-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:4px;background-color:#fff;background-color:rgba(255,255,255,.75);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-light-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-light-2.mCSB_scrollTools_horizontal .mCSB_draggerRail{width:100%;height:4px;margin:6px auto}.mCS-light-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.85)}.mCS-light-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-light-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.9)}.mCS-light-2.mCSB_scrollTools .mCSB_buttonUp{background-position:-32px 0}.mCS-light-2.mCSB_scrollTools .mCSB_buttonDown{background-position:-32px -20px}.mCS-light-2.mCSB_scrollTools .mCSB_buttonLeft{background-position:-40px -40px}.mCS-light-2.mCSB_scrollTools .mCSB_buttonRight{background-position:-40px -56px}.mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail{background-color:#000;background-color:rgba(0,0,0,.1);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.75);-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px}.mCS-dark-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.85)}.mCS-dark-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.9)}.mCS-dark-2.mCSB_scrollTools .mCSB_buttonUp{background-position:-112px 0}.mCS-dark-2.mCSB_scrollTools .mCSB_buttonDown{background-position:-112px -20px}.mCS-dark-2.mCSB_scrollTools .mCSB_buttonLeft{background-position:-120px -40px}.mCS-dark-2.mCSB_scrollTools .mCSB_buttonRight{background-position:-120px -56px}.mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail,.mCS-light-thick.mCSB_scrollTools .mCSB_draggerRail{width:4px;background-color:#fff;background-color:rgba(255,255,255,.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-light-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:6px;background-color:#fff;background-color:rgba(255,255,255,.75);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail{width:100%;height:4px;margin:6px 0}.mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{width:100%;height:6px;margin:5px auto}.mCS-light-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.85)}.mCS-light-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-light-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.9)}.mCS-light-thick.mCSB_scrollTools .mCSB_buttonUp{background-position:-16px 0}.mCS-light-thick.mCSB_scrollTools .mCSB_buttonDown{background-position:-16px -20px}.mCS-light-thick.mCSB_scrollTools .mCSB_buttonLeft{background-position:-20px -40px}.mCS-light-thick.mCSB_scrollTools .mCSB_buttonRight{background-position:-20px -56px}.mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail{background-color:#000;background-color:rgba(0,0,0,.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.75);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.85)}.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.9)}.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonUp{background-position:-96px 0}.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonDown{background-position:-96px -20px}.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonLeft{background-position:-100px -40px}.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonRight{background-position:-100px -56px}.mCS-light-thin.mCSB_scrollTools .mCSB_draggerRail{background-color:#fff;background-color:rgba(255,255,255,.1)}.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-light-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px}.mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail{width:100%}.mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{width:100%;height:2px;margin:7px auto}.mCS-dark-thin.mCSB_scrollTools .mCSB_draggerRail{background-color:#000;background-color:rgba(0,0,0,.15)}.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.75)}.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.85)}.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.9)}.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonUp{background-position:-80px 0}.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonDown{background-position:-80px -20px}.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonLeft{background-position:-80px -40px}.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonRight{background-position:-80px -56px}.mCS-rounded.mCSB_scrollTools .mCSB_draggerRail{background-color:#fff;background-color:rgba(255,255,255,.15)}.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger,.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger,.mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger,.mCS-rounded.mCSB_scrollTools .mCSB_dragger{height:14px}.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-rounded.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:14px;margin:0 1px}.mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger,.mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger,.mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger,.mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger{width:14px}.mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{height:14px;margin:1px 0}.mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar,.mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar,.mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar,.mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{width:16px;height:16px;margin:-1px 0}.mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded+.mCSB_draggerRail,.mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail,.mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded+.mCSB_draggerRail,.mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{width:4px}.mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar,.mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar,.mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar,.mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{height:16px;width:16px;margin:0 -1px}.mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded+.mCSB_draggerRail,.mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail,.mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded+.mCSB_draggerRail,.mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{height:4px;margin:6px 0}.mCS-rounded.mCSB_scrollTools .mCSB_buttonUp{background-position:0 -72px}.mCS-rounded.mCSB_scrollTools .mCSB_buttonDown{background-position:0 -92px}.mCS-rounded.mCSB_scrollTools .mCSB_buttonLeft{background-position:0 -112px}.mCS-rounded.mCSB_scrollTools .mCSB_buttonRight{background-position:0 -128px}.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.75)}.mCS-rounded-dark.mCSB_scrollTools .mCSB_draggerRail{background-color:#000;background-color:rgba(0,0,0,.15)}.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar,.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.85)}.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar,.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.9)}.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonUp{background-position:-80px -72px}.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonDown{background-position:-80px -92px}.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonLeft{background-position:-80px -112px}.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonRight{background-position:-80px -128px}.mCS-rounded-dots-dark.mCSB_scrollTools_vertical .mCSB_draggerRail,.mCS-rounded-dots.mCSB_scrollTools_vertical .mCSB_draggerRail{width:4px}.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail,.mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail{background-color:transparent;background-position:center}.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAANElEQVQYV2NkIAAYiVbw//9/Y6DiM1ANJoyMjGdBbLgJQAX/kU0DKgDLkaQAvxW4HEvQFwCRcxIJK1XznAAAAABJRU5ErkJggg==);background-repeat:repeat-y;opacity:.3;filter:"alpha(opacity=30)";-ms-filter:"alpha(opacity=30)"}.mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail{height:4px;margin:6px 0;background-repeat:repeat-x}.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonUp{background-position:-16px -72px}.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonDown{background-position:-16px -92px}.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonLeft{background-position:-20px -112px}.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonRight{background-position:-20px -128px}.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYV2NkIAAYSVFgDFR8BqrBBEifBbGRTfiPZhpYjiQFBK3A6l6CvgAAE9kGCd1mvgEAAAAASUVORK5CYII=)}.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonUp{background-position:-96px -72px}.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonDown{background-position:-96px -92px}.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonLeft{background-position:-100px -112px}.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonRight{background-position:-100px -128px}.mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-repeat:repeat-y;background-image:-moz-linear-gradient(left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%);background-image:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(255,255,255,.5)),color-stop(100%,rgba(255,255,255,0)));background-image:-webkit-linear-gradient(left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%);background-image:-o-linear-gradient(left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%);background-image:-ms-linear-gradient(left,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%);background-image:linear-gradient(to right,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{background-repeat:repeat-x;background-image:-moz-linear-gradient(top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%);background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(255,255,255,.5)),color-stop(100%,rgba(255,255,255,0)));background-image:-webkit-linear-gradient(top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%);background-image:-o-linear-gradient(top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%);background-image:-ms-linear-gradient(top,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%);background-image:linear-gradient(to bottom,rgba(255,255,255,.5) 0,rgba(255,255,255,0) 100%)}.mCS-3d-dark.mCSB_scrollTools_vertical .mCSB_dragger,.mCS-3d.mCSB_scrollTools_vertical .mCSB_dragger{height:70px}.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger,.mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger{width:70px}.mCS-3d-dark.mCSB_scrollTools,.mCS-3d.mCSB_scrollTools{opacity:1;filter:"alpha(opacity=30)";-ms-filter:"alpha(opacity=30)"}.mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-3d.mCSB_scrollTools .mCSB_draggerRail{-webkit-border-radius:16px;-moz-border-radius:16px;border-radius:16px}.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-3d.mCSB_scrollTools .mCSB_draggerRail{width:8px;background-color:#000;background-color:rgba(0,0,0,.2);box-shadow:inset 1px 0 1px rgba(0,0,0,.5),inset -1px 0 1px rgba(255,255,255,.2)}.mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-3d-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar,.mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar,.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-3d.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-3d.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar,.mCS-3d.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#555}.mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:8px}.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-3d.mCSB_scrollTools_horizontal .mCSB_draggerRail{width:100%;height:8px;margin:4px 0;box-shadow:inset 0 1px 1px rgba(0,0,0,.5),inset 0 -1px 1px rgba(255,255,255,.2)}.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{width:100%;height:8px;margin:4px auto}.mCS-3d.mCSB_scrollTools .mCSB_buttonUp{background-position:-32px -72px}.mCS-3d.mCSB_scrollTools .mCSB_buttonDown{background-position:-32px -92px}.mCS-3d.mCSB_scrollTools .mCSB_buttonLeft{background-position:-40px -112px}.mCS-3d.mCSB_scrollTools .mCSB_buttonRight{background-position:-40px -128px}.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail{background-color:#000;background-color:rgba(0,0,0,.1);box-shadow:inset 1px 0 1px rgba(0,0,0,.1)}.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail{box-shadow:inset 0 1px 1px rgba(0,0,0,.1)}.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonUp{background-position:-112px -72px}.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonDown{background-position:-112px -92px}.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonLeft{background-position:-120px -112px}.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonRight{background-position:-120px -128px}.mCS-3d-thick-dark.mCSB_scrollTools,.mCS-3d-thick.mCSB_scrollTools{opacity:1;filter:"alpha(opacity=30)";-ms-filter:"alpha(opacity=30)"}.mCS-3d-thick-dark.mCSB_scrollTools,.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer,.mCS-3d-thick.mCSB_scrollTools,.mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer{-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.mCSB_inside+.mCS-3d-thick-dark.mCSB_scrollTools_vertical,.mCSB_inside+.mCS-3d-thick.mCSB_scrollTools_vertical{right:1px}.mCS-3d-thick-dark.mCSB_scrollTools_vertical,.mCS-3d-thick.mCSB_scrollTools_vertical{box-shadow:inset 1px 0 1px rgba(0,0,0,.1),inset 0 0 14px rgba(0,0,0,.5)}.mCS-3d-thick-dark.mCSB_scrollTools_horizontal,.mCS-3d-thick.mCSB_scrollTools_horizontal{bottom:1px;box-shadow:inset 0 1px 1px rgba(0,0,0,.1),inset 0 0 14px rgba(0,0,0,.5)}.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;box-shadow:inset 1px 0 0 rgba(255,255,255,.4);width:12px;margin:2px;position:absolute;height:auto;top:0;bottom:0;left:0;right:0}.mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{box-shadow:inset 0 1px 0 rgba(255,255,255,.4);height:12px;width:auto}.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar,.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#555}.mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer{background-color:#000;background-color:rgba(0,0,0,.05);box-shadow:inset 1px 1px 16px rgba(0,0,0,.1)}.mCS-3d-thick.mCSB_scrollTools .mCSB_draggerRail{background-color:transparent}.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonUp{background-position:-32px -72px}.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonDown{background-position:-32px -92px}.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonLeft{background-position:-40px -112px}.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonRight{background-position:-40px -128px}.mCS-3d-thick-dark.mCSB_scrollTools{box-shadow:inset 0 0 14px rgba(0,0,0,.2)}.mCS-3d-thick-dark.mCSB_scrollTools_horizontal{box-shadow:inset 0 1px 1px rgba(0,0,0,.1),inset 0 0 14px rgba(0,0,0,.2)}.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{box-shadow:inset 1px 0 0 rgba(255,255,255,.4),inset -1px 0 0 rgba(0,0,0,.2)}.mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{box-shadow:inset 0 1px 0 rgba(255,255,255,.4),inset 0 -1px 0 rgba(0,0,0,.2)}.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar,.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#777}.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer{background-color:#fff;background-color:rgba(0,0,0,.05);box-shadow:inset 1px 1px 16px rgba(0,0,0,.1)}.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-minimal-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-minimal.mCSB_scrollTools .mCSB_draggerRail{background-color:transparent}.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonUp{background-position:-112px -72px}.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonDown{background-position:-112px -92px}.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonLeft{background-position:-120px -112px}.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonRight{background-position:-120px -128px}.mCSB_outside+.mCS-minimal-dark.mCSB_scrollTools_vertical,.mCSB_outside+.mCS-minimal.mCSB_scrollTools_vertical{right:0;margin:12px 0}.mCustomScrollBox.mCS-minimal+.mCSB_scrollTools+.mCSB_scrollTools.mCSB_scrollTools_horizontal,.mCustomScrollBox.mCS-minimal+.mCSB_scrollTools.mCSB_scrollTools_horizontal,.mCustomScrollBox.mCS-minimal-dark+.mCSB_scrollTools+.mCSB_scrollTools.mCSB_scrollTools_horizontal,.mCustomScrollBox.mCS-minimal-dark+.mCSB_scrollTools.mCSB_scrollTools_horizontal{bottom:0;margin:0 12px}.mCS-dir-rtl>.mCSB_outside+.mCS-minimal-dark.mCSB_scrollTools_vertical,.mCS-dir-rtl>.mCSB_outside+.mCS-minimal.mCSB_scrollTools_vertical{left:0;right:auto}.mCS-minimal-dark.mCSB_scrollTools_vertical .mCSB_dragger,.mCS-minimal.mCSB_scrollTools_vertical .mCSB_dragger{height:50px}.mCS-minimal-dark.mCSB_scrollTools_horizontal .mCSB_dragger,.mCS-minimal.mCSB_scrollTools_horizontal .mCSB_dragger{width:50px}.mCS-minimal.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.2);filter:"alpha(opacity=20)";-ms-filter:"alpha(opacity=20)"}.mCS-minimal.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-minimal.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.5);filter:"alpha(opacity=50)";-ms-filter:"alpha(opacity=50)"}.mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.2);filter:"alpha(opacity=20)";-ms-filter:"alpha(opacity=20)"}.mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.5);filter:"alpha(opacity=50)";-ms-filter:"alpha(opacity=50)"}.mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail,.mCS-light-3.mCSB_scrollTools .mCSB_draggerRail{width:6px;background-color:#000;background-color:rgba(0,0,0,.2)}.mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-light-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:6px}.mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-light-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-light-3.mCSB_scrollTools_horizontal .mCSB_draggerRail{width:100%;height:6px;margin:5px 0}.mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded+.mCSB_draggerRail,.mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail,.mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded+.mCSB_draggerRail,.mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{width:12px}.mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded+.mCSB_draggerRail,.mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail,.mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded+.mCSB_draggerRail,.mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{height:12px;margin:2px 0}.mCS-light-3.mCSB_scrollTools .mCSB_buttonUp{background-position:-32px -72px}.mCS-light-3.mCSB_scrollTools .mCSB_buttonDown{background-position:-32px -92px}.mCS-light-3.mCSB_scrollTools .mCSB_buttonLeft{background-position:-40px -112px}.mCS-light-3.mCSB_scrollTools .mCSB_buttonRight{background-position:-40px -128px}.mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.75)}.mCS-dark-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.85)}.mCS-dark-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-dark-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.9)}.mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail{background-color:#000;background-color:rgba(0,0,0,.1)}.mCS-dark-3.mCSB_scrollTools .mCSB_buttonUp{background-position:-112px -72px}.mCS-dark-3.mCSB_scrollTools .mCSB_buttonDown{background-position:-112px -92px}.mCS-dark-3.mCSB_scrollTools .mCSB_buttonLeft{background-position:-120px -112px}.mCS-dark-3.mCSB_scrollTools .mCSB_buttonRight{background-position:-120px -128px}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail,.mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-inset.mCSB_scrollTools .mCSB_draggerRail{width:12px;background-color:#000;background-color:rgba(0,0,0,.2)}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-inset-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-inset.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:6px;margin:3px 5px;position:absolute;height:auto;top:0;bottom:0;left:0;right:0}.mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar,.mCS-inset.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{height:6px;margin:5px 3px;position:absolute;width:auto;top:0;bottom:0;left:0;right:0}.mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail,.mCS-inset.mCSB_scrollTools_horizontal .mCSB_draggerRail{width:100%;height:12px;margin:2px 0}.mCS-inset-2.mCSB_scrollTools .mCSB_buttonUp,.mCS-inset-3.mCSB_scrollTools .mCSB_buttonUp,.mCS-inset.mCSB_scrollTools .mCSB_buttonUp{background-position:-32px -72px}.mCS-inset-2.mCSB_scrollTools .mCSB_buttonDown,.mCS-inset-3.mCSB_scrollTools .mCSB_buttonDown,.mCS-inset.mCSB_scrollTools .mCSB_buttonDown{background-position:-32px -92px}.mCS-inset-2.mCSB_scrollTools .mCSB_buttonLeft,.mCS-inset-3.mCSB_scrollTools .mCSB_buttonLeft,.mCS-inset.mCSB_scrollTools .mCSB_buttonLeft{background-position:-40px -112px}.mCS-inset-2.mCSB_scrollTools .mCSB_buttonRight,.mCS-inset-3.mCSB_scrollTools .mCSB_buttonRight,.mCS-inset.mCSB_scrollTools .mCSB_buttonRight{background-position:-40px -128px}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar,.mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.75)}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar,.mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.85)}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar,.mCS-inset-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.9)}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail{background-color:#000;background-color:rgba(0,0,0,.1)}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonUp,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonUp,.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonUp{background-position:-112px -72px}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonDown,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonDown,.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonDown{background-position:-112px -92px}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonLeft,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonLeft,.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonLeft{background-position:-120px -112px}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonRight,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonRight,.mCS-inset-dark.mCSB_scrollTools .mCSB_buttonRight{background-position:-120px -128px}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail{background-color:transparent;border-width:1px;border-style:solid;border-color:#fff;border-color:rgba(255,255,255,.2);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail{border-color:#000;border-color:rgba(0,0,0,.2)}.mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail{background-color:#fff;background-color:rgba(255,255,255,.6)}.mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail{background-color:#000;background-color:rgba(0,0,0,.6)}.mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.75)}.mCS-inset-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.85)}.mCS-inset-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-inset-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#000;background-color:rgba(0,0,0,.9)}.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.75)}.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.85)}.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar,.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar{background-color:#fff;background-color:rgba(255,255,255,.9)}/*! jQuery UI - v1.10.3 - 2013-11-24 +* http://jqueryui.com +* Includes: jquery.ui.core.css, jquery.ui.autocomplete.css, jquery.ui.menu.css +* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset,.ui-menu{margin:0;list-style:none;outline:0}.ui-helper-reset{padding:0;border:0;line-height:1.3;text-decoration:none;font-size:100%}.ui-helper-clearfix:after,.ui-helper-clearfix:before{content:"";display:table;border-collapse:collapse}.taghover:before,.tg-close:before{content:''}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{padding:2px;display:block}.ui-menu .ui-menu{margin-top:-3px;position:absolute}.ui-menu .ui-menu-item{margin:0;padding:0;width:100%;list-style-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.ui-menu .ui-menu-divider{margin:5px -2px;height:0;font-size:0;line-height:0;border-width:1px 0 0}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:2px .4em;line-height:1.5;min-height:0;font-weight:400}.ui-menu .ui-menu-item a.ui-state-active,.ui-menu .ui-menu-item a.ui-state-focus{font-weight:400;margin:-1px}.ui-menu .ui-state-disabled{font-weight:400}.ui-menu .ui-state-disabled a{cursor:default}/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */.fancybox-image,.fancybox-inner,.fancybox-nav,.fancybox-nav span,.fancybox-outer,.fancybox-skin,.fancybox-tmp,.fancybox-wrap,.fancybox-wrap iframe,.fancybox-wrap object{padding:0;margin:0;border:0;outline:0;vertical-align:top}.fancybox-wrap{position:absolute;top:0;left:0;z-index:8020}.fancybox-inner,.fancybox-outer,.fancybox-skin{position:relative}.fancybox-skin{background:#f9f9f9;color:#444;text-shadow:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.fancybox-opened{z-index:8030}.fancybox-opened .fancybox-skin{-webkit-box-shadow:0 10px 25px rgba(0,0,0,.5);-moz-box-shadow:0 10px 25px rgba(0,0,0,.5);box-shadow:0 10px 25px rgba(0,0,0,.5)}.fancybox-inner{overflow:hidden}.fancybox-type-iframe .fancybox-inner{-webkit-overflow-scrolling:touch}.fancybox-error{color:#444;font:14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;margin:0;padding:15px;white-space:nowrap}.fancybox-iframe,.fancybox-image{display:block;width:100%;height:100%}.fancybox-image{max-width:100%;max-height:100%}#fancybox-loading,.fancybox-close,.fancybox-next span,.fancybox-prev span{background-image:url(fancybox_sprite.png)}#fancybox-loading{position:fixed;top:50%;left:50%;margin-top:-22px;margin-left:-22px;background-position:0 -108px;opacity:.8;cursor:pointer;z-index:8060}.fancybox-close,.fancybox-nav,.fancybox-nav span{cursor:pointer;z-index:8040;position:absolute}#fancybox-loading div{width:44px;height:44px;background:url(fancybox_loading.gif) center center no-repeat}.fancybox-close{top:-18px;right:-18px;width:36px;height:36px}.fancybox-nav{top:0;width:40%;height:100%;text-decoration:none;background:url(blank.gif)}.fancybox-prev{left:0}.fancybox-next{right:0}.fancybox-nav span{top:50%;width:36px;height:34px;margin-top:-18px;visibility:hidden}.fancybox-prev span{left:10px;background-position:0 -36px}.fancybox-next span{right:10px;background-position:0 -72px}.fancybox-nav:hover span{visibility:visible}.fancybox-tmp{position:absolute;top:-99999px;left:-99999px;visibility:hidden;max-width:99999px;max-height:99999px;overflow:visible!important}.fancybox-lock,.fancybox-lock body{overflow:hidden!important}.fancybox-lock{width:auto}.fancybox-lock-test{overflow-y:hidden!important}.fancybox-overlay{position:absolute;top:0;left:0;overflow:hidden;display:none;z-index:8010;background:url(../lib/fancybox/fancybox_overlay.png)}.fancybox-overlay-fixed{position:fixed;bottom:0;right:0}.fancybox-lock .fancybox-overlay{overflow:auto;overflow-y:scroll}#expoNewTagForm,.photoTag-tag,.photoTag-wrap{overflow:hidden}.fancybox-title{visibility:hidden;font:400 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;position:relative;text-shadow:none;z-index:8050}.fancybox-opened .fancybox-title{visibility:visible}.fancybox-title-float-wrap{position:absolute;bottom:0;right:50%;margin-bottom:-35px;z-index:8050;text-align:center}.fancybox-title-float-wrap .child{display:inline-block;margin-right:-100%;padding:2px 20px;background:0 0;background:rgba(0,0,0,.8);-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;text-shadow:0 1px 2px #222;color:#FFF;font-weight:700;line-height:24px;white-space:nowrap}.fancybox-title-outside-wrap{position:relative;margin-top:10px;color:#fff}.fancybox-title-inside-wrap{padding-top:10px}.fancybox-title-over-wrap{position:absolute;bottom:0;left:0;color:#fff;padding:10px;background:#000;background:rgba(0,0,0,.8)}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min--moz-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5){#fancybox-loading,.fancybox-close,.fancybox-next span,.fancybox-prev span{background-image:url(fancybox_sprite@2x.png);background-size:44px 152px}#fancybox-loading div{background-image:url(fancybox_loading@2x.gif);background-size:24px 24px}}.ui-resizable-e,.ui-resizable-n,.ui-resizable-s{height:9px;background:rgba(255,255,255,.5)}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;z-index:99999;display:block}.ui-resizable-autohide .ui-resizable-handle,.ui-resizable-disabled .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;width:9px;top:-5px;left:50%;margin-left:-4px}.ui-resizable-e,.ui-resizable-w{width:9px;top:50%;margin-top:-4px}.ui-resizable-s{cursor:s-resize;width:9px;bottom:-5px;left:50%;margin-left:-4px}.ui-resizable-e{cursor:e-resize;right:-5px}.ui-resizable-w{cursor:w-resize;left:-5px;height:9px;background:rgba(255,255,255,.5)}.ui-resizable-ne,.ui-resizable-nw{width:9px;height:9px;top:-5px;background:rgba(255,255,255,.5)}.ui-resizable-se{cursor:se-resize;width:9px;height:9px;right:-5px;bottom:-5px;background:rgba(255,255,255,.5)}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px;background:rgba(255,255,255,.5)}.ui-resizable-nw{cursor:nw-resize;left:-5px}.ui-resizable-ne{cursor:ne-resize;right:-5px}.photoTag-taglist{list-style:none;padding:0}.photoTag-taglist li{margin-left:0;display:inline;padding:0}.taghover:before,.tg-close,.tg-close:before{display:block;position:absolute}.tg-close{right:0;top:0;width:32px;height:32px;cursor:pointer;z-index:100}.tg-close:before{width:10px;height:10px;background:url(../img/sprites.png) -227px -149px no-repeat;left:50%;top:50%;margin:-5px 0 0 -5px}.taghover:before{width:100%;height:100%;left:0;top:0}.taghover .tg-close{width:18px;height:18px}.taghover .tg-close:before{background:url(static/img/x.png) no-repeat;left:8px;top:9px}.taghover .tg-close:hover:before{background-position:0 -32px}.tg-close:hover:before{background-position:-227px -160px}.photoTag-taglist a.tg-close{display:inline;margin:0;padding:0 5px 0 3px;text-decoration:none;position:relative}.utag-left,.utag-right{width:2000px;background:rgba(0,0,0,.5);position:absolute;top:0}.utag-left{left:-2000px}.utag-bot,.utag-top{width:4000px;background:rgba(0,0,0,.5);position:absolute;height:2000px;left:-2000px}.utag-top{top:-2000px}.taghover{width:100%;height:100%;position:absolute;top:0;left:0;z-index:3014;background-color:rgba(255,255,255,.01)}#expoNewTagForm{background-color:#FFF;padding:10px;position:absolute;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;line-height:100%;z-index:1039}#expoNewTagForm button{padding:0 27px;margin:10px 0 0}.ptListHolder ul{position:relative;display:block;min-height:24px;width:120px;background:#fff}.ptListHolder ul li{padding:0;margin:0;border-bottom:1px solid #DDD}.ptListHolder ul li a{padding:10px 5px!important;text-align:left;display:block!important}.photoTag-tag{border:1px solid rgba(255,255,255,.7);background-color:transparent;z-index:1021}#photoTag-tag_expo{overflow:visible}.photoTag-tag .photoTag-delete{background:url(/x2.png) no-repeat;width:25px;height:29px;display:inline;z-index:3200;position:absolute;right:-22px;cursor:pointer;opacity:.8}#expoNewTagForm input{display:block}#expoNewTagForm input[type=text]{padding:0 5px;font-size:14px;height:36px}#expoNewTagForm label{width:auto;float:left;color:#F60;text-align:left;line-height:21px}#expoNewTagForm .inputSubmit{color:#F60;background-color:#fff;border:1px solid #fff;-moz-border-radius-topleft:5px;-moz-border-radius-topright:5px;-moz-border-radius-bottomleft:5px;-moz-border-radius-bottomright:5px;-webkit-border-radius:5px;float:right;margin:5px 0 0;padding:5px}#expoNewTagForm .inputCancel{border:0}.innerTag{float:left;background-color:#F60;padding:3px;height:14px;position:relative;line-height:100%;top:-23px;left:0;font-size:12px;color:#fff;-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px}.c-select-box.places .csb-title ul.ui-autocomplete{background:#FFF;border:1px solid #CCC;margin-left:0;z-index:1020}.c-select-box.places .csb-title ul.ui-autocomplete li{margin-bottom:5px}.places-list ul li a:before,.topics-list ul li a:before{content:"";display:block;height:8px;left:-12px;position:absolute;top:50%;margin-top:-4px;width:8px;z-index:1;background:url(../img/sprites.png) -83px -16px no-repeat}.level2.active>a:before,.places-list>ul>li.active>a:before,.topics-list>ul>li.active>a:before{content:"";display:block;height:8px;left:-12px;position:absolute;top:3px;width:8px;z-index:1;background:url(../img/sprites.png) -86px -24px no-repeat;margin-top:2px}.c-select-box-wrap .custom-radio-check.active:before,.c-select-box-wrap .custom-radio-check:before{content:'';height:13px;display:block;top:50%;z-index:1;position:absolute}.c-select-box-wrap .custom-radio-check:before{width:13px;margin-top:-5px;left:-16px;background:url(../img/sprites.png) -345px -135px no-repeat}.c-select-box-wrap .custom-radio-check.active:before{width:13px;margin-top:-6px;left:-17px;background:url(../img/sprites.png) -46px -16px no-repeat}.ac-custom-message{background:#FFF;border:1px solid #CCCCDC;border-radius:5px;padding:5px 10px 5px 25px;position:absolute;z-index:1415;display:none}.ac-custom-message span:before{background:url(../img/sprites.png) -106px -16px no-repeat #FFF;content:"";display:block;height:10px;left:7px;position:absolute;top:19px;width:13px;z-index:1416}.select2-container{position:relative;display:inline-block;vertical-align:middle;margin:0;word-spacing:normal}.mf-field .select2-container{width:100%}.select2-container ul,.select2-drop ul{margin:0;padding:0;list-style:none}.select2-container,.select2-drop,.select2-search,.select2-search input{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.select2-container .select2-choice,.select2-container .select2-choices{position:relative;display:block;border:1px solid #bdbdbd;background:#fff;width:100%;padding-right:30px;font-family:dindisplay_pro,sans-serif;font-size:15px;line-height:19px;text-decoration:none;overflow:hidden;white-space:nowrap;color:#464646;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 2px 2px -2px #aaa;-moz-box-shadow:inset 0 2px 2px -2px #aaa;box-shadow:inset 0 2px 2px -2px #aaa;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.select2-container .select2-choices{height:auto;min-height:40px;cursor:text}.select2-container-active .select2-choice,.select2-container-active .select2-choices{outline:0;padding-right:29px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-radius:4px}.select2-dropdown-open .select2-choice,.select2-dropdown-open .select2-choices{border:2px solid #f60;padding-right:29px;border-bottom:none;-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0}.select2-dropdown-open.select2-drop-above .select2-choice,.select2-dropdown-open.select2-drop-above .select2-choices{padding:6px 26px 1px 2px;border-bottom:2px solid #f60;border-top:none;-webkit-border-radius:0 0 3px 3px;-moz-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px}.select2-container-multi .select2-choices:after{content:" ";display:block;width:8px;height:5px;overflow:hidden;background:url(../img/sprites.png) -86px -27px no-repeat;position:absolute;right:12px;top:17px}.select2-container-multi.select2-container-active .select2-choices:after{right:11px;top:16px}.select2-dropdown-open.select2-drop-above .select2-choices:after{right:11px;top:18px}.select2-container-multi.select2-container-disabled .select2-choices{background:#fff;cursor:default}.select2-container.select2-allowclear .select2-choice .select2-chosen{margin-right:30px}.select2-container .select2-choice>.select2-chosen{display:block;padding:7px 0 6px 16px;margin-right:0;line-height:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;float:none;width:auto}.select2-search-choice-close{display:block;position:absolute;right:0;top:0;width:25px;height:0;padding-top:26px;overflow:hidden;background:0 0;outline:0}.select2-container-multi .select2-search-choice-close{left:auto}.select2-search-choice-close:before{content:'';display:inline-block;width:8px;height:8px;background:url(../img/sprites.png) -134px -16px no-repeat;position:absolute;left:50%;top:50%;margin:-3px 0 0 -4px}.select2-container .select2-choice abbr{display:none;width:30px;height:38px;padding-top:0;position:absolute;right:30px;top:0;font-size:1px;text-decoration:none;border:0;background:0 0;cursor:pointer;outline:0}.select2-container.select2-allowclear .select2-choice abbr{display:block}.select2-container.select2-container-active.select2-allowclear .select2-choice abbr{right:29px}.select2-dropdown-open.select2-drop-above.select2-allowclear .select2-choice abbr{margin-top:2px}.select2-container.select2-allowclear .select2-choice abbr:before{background-position:-74px -160px}.select2-container .select2-choice abbr:hover:before{background-position:-134px -16px}.select2-container .select2-choice .select2-arrow{display:block;width:29px;height:100%;position:absolute;right:0;top:0;-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.select2-container.select2-container-active .select2-choice .select2-arrow{width:28px}.select2-container .select2-choice .select2-arrow b{display:block;width:8px;height:5px;overflow:hidden;background:url(../img/sprites.png) -86px -27px no-repeat;position:absolute;right:12px;top:50%;margin-top:-2px}.select2-container.select2-dropdown-open.select2-drop-above .select2-choice .select2-arrow b{top:18px}.select2-container.select2-container-active .select2-choice .select2-arrow b{right:11px;top:16px}.select2-drop-mask{position:fixed;left:0;top:0;z-index:9998;height:auto;width:auto;min-height:100%;min-width:100%;border:0;margin:0;padding:0;background-color:#fff;opacity:0;filter:alpha(opacity=0)}.select2-drop{position:absolute;top:100%;z-index:9999;width:100%;padding:0 10px 10px;background:#fff;color:#000;border:2px solid #f60;border-top:none;font-family:dindisplay_pro,sans-serif;font-size:15px;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.select2-drop.select2-drop-above{padding:10px 10px 0;border-top:2px solid #f60;border-bottom:0;border-radius:4px 4px 0 0}.select2-drop-active{border-color:#f60}.select2-drop-auto-width{border-top:1px solid #aaa;width:auto}.select2-drop-auto-width .select2-search{padding-top:4px}.select2-drop-active:before{content:'';display:block;border-top:1px dotted #ccc;margin:4px 0 5px}.select2-drop.select2-drop-above.select2-drop-active:before{content:none}.select2-drop.select2-drop-above.select2-drop-active:after,.select2-search:after{content:'';display:block;border-bottom:1px dotted #ccc}.select2-drop.select2-drop-above.select2-drop-active:after{margin:10px 0 4px}.select2-search{display:block;width:100%;min-height:26px;margin:0;padding:0 10px 10px;position:relative;z-index:10000;white-space:nowrap}.select2-search:after{width:100%;padding:0 10px;margin:5px -10px 0}.select2-search input[type=text]{position:relative;width:100%;height:26px;border:none;padding:0;margin:0;outline:0;font-family:dindisplay_pro,sans-serif;font-size:15px;line-height:26px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:url(../img/select2/select2.png) 100% -22px no-repeat #fff}.select2-search input:focus{border:none}.select2-search input.select2-active{background:url(../img/select2/select2-spinner.gif) 100% no-repeat #fff}.select2-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.select2-default{color:#a2a2a2!important}.select2-results{max-height:200px;padding:0 0 0 5px;margin:5px 5px 5px 0;position:relative;overflow-x:hidden;overflow-y:auto}html[dir=rtl] .select2-results{padding:0 5px 0 0;margin:5px 0 5px 5px}.select2-results ul.select2-result-sub{margin:0;padding-left:0}.select2-results li{list-style:none;display:list-item;background-image:none}.select2-results li.select2-result-with-children>.select2-result-label{font-weight:700}.select2-results .select2-result-label{padding:3px 7px 4px;margin:0;cursor:pointer;min-height:1em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.select2-results-dept-1 .select2-result-label{padding-left:20px}.select2-results-dept-2 .select2-result-label{padding-left:40px}.select2-results-dept-3 .select2-result-label{padding-left:60px}.select2-results-dept-4 .select2-result-label{padding-left:80px}.select2-results-dept-5 .select2-result-label{padding-left:100px}.select2-results-dept-6 .select2-result-label{padding-left:110px}.select2-results-dept-7 .select2-result-label{padding-left:120px}.select2-results .select2-highlighted{background:0 0;color:#f60}.select2-results li em{background:#feffde;font-style:normal}.select2-results .select2-highlighted em{background:0 0}.select2-results .select2-highlighted ul{background:#fff;color:#000}.select2-results .select2-ajax-error,.select2-results .select2-no-results,.select2-results .select2-searching,.select2-results .select2-selection-limit{background:#f4f4f4;display:list-item;padding-left:5px}.select2-results .select2-disabled.select2-highlighted{color:#666;background:#f4f4f4;display:list-item;cursor:default}.select2-results .select2-disabled{background:#f4f4f4;display:list-item;cursor:default}.select2-results .select2-selected{display:none}.select2-more-results.select2-active{background:url(../img/select2/select2-spinner.gif) 100% no-repeat #f4f4f4}.select2-results .select2-ajax-error{background:rgba(255,50,50,.2)}.select2-more-results{background:#f4f4f4;display:list-item}.select2-container.select2-container-disabled .select2-choice abbr,.select2-display-none{display:none}.select2-container.select2-container-disabled .select2-choice{background:#fff;cursor:default}.select2-container.select2-container-disabled .select2-choice .select2-arrow{background:0 0;border-left:0}.select2-container-multi .select2-choices .select2-search-choice{position:relative;padding:6px 25px 5px 15px;margin:0 3px 3px 0;border:1px solid #f60;line-height:15px;color:#f60;cursor:default;background:#fff;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.select2-locked{padding:3px 5px!important}.select2-container-multi .select2-choices li{float:left;list-style:none}html[dir=rtl] .select2-container-multi .select2-choices li{float:right}.select2-container-multi .select2-choices .select2-search-field{margin:0;padding:0;white-space:nowrap}.select2-container-multi .select2-choices .select2-search-field input{background:0 0!important;border:none;outline:0;color:#666;margin:0;padding:0 5px;height:29px;font-family:dindisplay_pro,sans-serif;line-height:27px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.select2-container-multi .select2-choices .select2-search-field:first-child input{padding:0 20px}.select2-result-selectable .select2-match,.select2-result-unselectable .select2-match{text-decoration:underline}.select2-offscreen,.select2-offscreen:focus{clip:rect(0 0 0 0)!important;width:1px!important;height:1px!important;border:0!important;margin:0!important;padding:0!important;overflow:hidden!important;position:absolute!important;outline:0!important;left:0!important;top:0!important}.select2-measure-scrollbar{position:absolute;top:-10000px;left:-10000px;width:100px;height:100px;overflow:scroll} \ No newline at end of file diff --git a/static/client/fonts/pfdindisplaypro-bold-webfont.eot b/static/client/fonts/pfdindisplaypro-bold-webfont.eot new file mode 100644 index 00000000..46ffd226 Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-bold-webfont.eot differ diff --git a/static/client/fonts/pfdindisplaypro-bold-webfont.svg b/static/client/fonts/pfdindisplaypro-bold-webfont.svg new file mode 100644 index 00000000..fd159114 --- /dev/null +++ b/static/client/fonts/pfdindisplaypro-bold-webfont.svg @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/client/fonts/pfdindisplaypro-bold-webfont.ttf b/static/client/fonts/pfdindisplaypro-bold-webfont.ttf new file mode 100644 index 00000000..a6d138bc Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-bold-webfont.ttf differ diff --git a/static/client/fonts/pfdindisplaypro-bold-webfont.woff b/static/client/fonts/pfdindisplaypro-bold-webfont.woff new file mode 100644 index 00000000..863dc136 Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-bold-webfont.woff differ diff --git a/static/client/fonts/pfdindisplaypro-italic-webfont.eot b/static/client/fonts/pfdindisplaypro-italic-webfont.eot new file mode 100644 index 00000000..f3a38bff Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-italic-webfont.eot differ diff --git a/static/client/fonts/pfdindisplaypro-italic-webfont.svg b/static/client/fonts/pfdindisplaypro-italic-webfont.svg new file mode 100644 index 00000000..7255184d --- /dev/null +++ b/static/client/fonts/pfdindisplaypro-italic-webfont.svg @@ -0,0 +1,547 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/client/fonts/pfdindisplaypro-italic-webfont.ttf b/static/client/fonts/pfdindisplaypro-italic-webfont.ttf new file mode 100644 index 00000000..e16b06f4 Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-italic-webfont.ttf differ diff --git a/static/client/fonts/pfdindisplaypro-italic-webfont.woff b/static/client/fonts/pfdindisplaypro-italic-webfont.woff new file mode 100644 index 00000000..da4ddbe4 Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-italic-webfont.woff differ diff --git a/static/client/fonts/pfdindisplaypro-light-webfont.eot b/static/client/fonts/pfdindisplaypro-light-webfont.eot new file mode 100644 index 00000000..19652b94 Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-light-webfont.eot differ diff --git a/static/client/fonts/pfdindisplaypro-light-webfont.svg b/static/client/fonts/pfdindisplaypro-light-webfont.svg new file mode 100644 index 00000000..50fb8b98 --- /dev/null +++ b/static/client/fonts/pfdindisplaypro-light-webfont.svg @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/client/fonts/pfdindisplaypro-light-webfont.ttf b/static/client/fonts/pfdindisplaypro-light-webfont.ttf new file mode 100644 index 00000000..b5b714ba Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-light-webfont.ttf differ diff --git a/static/client/fonts/pfdindisplaypro-light-webfont.woff b/static/client/fonts/pfdindisplaypro-light-webfont.woff new file mode 100644 index 00000000..44946da4 Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-light-webfont.woff differ diff --git a/static/client/fonts/pfdindisplaypro-med-webfont.eot b/static/client/fonts/pfdindisplaypro-med-webfont.eot new file mode 100644 index 00000000..7864480e Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-med-webfont.eot differ diff --git a/static/client/fonts/pfdindisplaypro-med-webfont.svg b/static/client/fonts/pfdindisplaypro-med-webfont.svg new file mode 100644 index 00000000..730367b8 --- /dev/null +++ b/static/client/fonts/pfdindisplaypro-med-webfont.svg @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/client/fonts/pfdindisplaypro-med-webfont.ttf b/static/client/fonts/pfdindisplaypro-med-webfont.ttf new file mode 100644 index 00000000..6aa79354 Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-med-webfont.ttf differ diff --git a/static/client/fonts/pfdindisplaypro-med-webfont.woff b/static/client/fonts/pfdindisplaypro-med-webfont.woff new file mode 100644 index 00000000..d97bb73d Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-med-webfont.woff differ diff --git a/static/client/fonts/pfdindisplaypro-reg-webfont.eot b/static/client/fonts/pfdindisplaypro-reg-webfont.eot new file mode 100644 index 00000000..cbe8845a Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-reg-webfont.eot differ diff --git a/static/client/fonts/pfdindisplaypro-reg-webfont.svg b/static/client/fonts/pfdindisplaypro-reg-webfont.svg new file mode 100644 index 00000000..7b9e43ab --- /dev/null +++ b/static/client/fonts/pfdindisplaypro-reg-webfont.svg @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/client/fonts/pfdindisplaypro-reg-webfont.ttf b/static/client/fonts/pfdindisplaypro-reg-webfont.ttf new file mode 100644 index 00000000..8788f069 Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-reg-webfont.ttf differ diff --git a/static/client/fonts/pfdindisplaypro-reg-webfont.woff b/static/client/fonts/pfdindisplaypro-reg-webfont.woff new file mode 100644 index 00000000..0d50dc09 Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-reg-webfont.woff differ diff --git a/static/client/fonts/pfdindisplaypro-thin-webfont.eot b/static/client/fonts/pfdindisplaypro-thin-webfont.eot new file mode 100644 index 00000000..28370ec8 Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-thin-webfont.eot differ diff --git a/static/client/fonts/pfdindisplaypro-thin-webfont.svg b/static/client/fonts/pfdindisplaypro-thin-webfont.svg new file mode 100644 index 00000000..3e11c93b --- /dev/null +++ b/static/client/fonts/pfdindisplaypro-thin-webfont.svg @@ -0,0 +1,530 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/client/fonts/pfdindisplaypro-thin-webfont.ttf b/static/client/fonts/pfdindisplaypro-thin-webfont.ttf new file mode 100644 index 00000000..11ca262b Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-thin-webfont.ttf differ diff --git a/static/client/fonts/pfdindisplaypro-thin-webfont.woff b/static/client/fonts/pfdindisplaypro-thin-webfont.woff new file mode 100644 index 00000000..a426ebf3 Binary files /dev/null and b/static/client/fonts/pfdindisplaypro-thin-webfont.woff differ diff --git a/static/client/fonts/pts55f-webfont.eot b/static/client/fonts/pts55f-webfont.eot new file mode 100644 index 00000000..65a0e182 Binary files /dev/null and b/static/client/fonts/pts55f-webfont.eot differ diff --git a/static/client/fonts/pts55f-webfont.ttf b/static/client/fonts/pts55f-webfont.ttf new file mode 100644 index 00000000..12e75469 Binary files /dev/null and b/static/client/fonts/pts55f-webfont.ttf differ diff --git a/static/client/fonts/pts55f-webfont.woff b/static/client/fonts/pts55f-webfont.woff new file mode 100644 index 00000000..2f3e2212 Binary files /dev/null and b/static/client/fonts/pts55f-webfont.woff differ diff --git a/static/client/fonts/pts75f-webfont.eot b/static/client/fonts/pts75f-webfont.eot new file mode 100644 index 00000000..9bd86f36 Binary files /dev/null and b/static/client/fonts/pts75f-webfont.eot differ diff --git a/static/client/fonts/pts75f-webfont.ttf b/static/client/fonts/pts75f-webfont.ttf new file mode 100644 index 00000000..51b55b9e Binary files /dev/null and b/static/client/fonts/pts75f-webfont.ttf differ diff --git a/static/client/fonts/pts75f-webfont.woff b/static/client/fonts/pts75f-webfont.woff new file mode 100644 index 00000000..61318ed2 Binary files /dev/null and b/static/client/fonts/pts75f-webfont.woff differ diff --git a/static/client/html-cut/confirmation_mail.html b/static/client/html-cut/confirmation_mail.html new file mode 100644 index 00000000..dacda309 --- /dev/null +++ b/static/client/html-cut/confirmation_mail.html @@ -0,0 +1,118 @@ + + + + + + + + + + + +
+ + + + + + +
+ + + + +
    +
  • RSS
  • +
  • Facebook
  • +
  • LinkedIn
  • +
  • В контакте
  • +
  • Twitter
  • +
+
+ + + + + + + + +

Ваша регистрация на портале Expomap

+ + + + + + + + + + + + + + + + + + + +
+

Добрый день, Михаил!

+
+

Благодарим за регистрацию! Остался 1 шаг - подтвердить Ваш электронный адрес, нажав на кнопку:

+
+ подтвердить регистрацию +
+

Ваш логин: 144@expomap.ru

+

Ваш пароль: Rem1shie

+
+ В личном кабинете вам доступен собственный профиль, персональная лента событий,свое расписание, сообщения и многое другое. +
+ + + +
+ + + + + + +
+ + + +
+ + + + + +
+ Чтобы отписаться от этой рассылки, перейдите по ссылке + + © 2018 — 2013 Expomap.ru +
+ +
+ + \ No newline at end of file diff --git a/static/client/html-cut/events_feed.html b/static/client/html-cut/events_feed.html new file mode 100644 index 00000000..8e473a64 --- /dev/null +++ b/static/client/html-cut/events_feed.html @@ -0,0 +1,3962 @@ + + + + + + + + + Expomap — выставки, конференции, семинары + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+ + +
+
+ + +
+ + +
+
+
ПОИСК СОБЫТИЙ
+
+
+
+
+ + +
+
+
+
+ +
+
+ +
+
+
+ + +
+
+
+
+ +
+
+
+
+ +
+
+
+ +
Тематика: + + Не важно + +
+ + +
Место: + + Не важно + +
+ + +
Период: + + + Не важно + + +
+ +
+
+
+
+
+
+ + + + + + + + + + +
+ +
+
+ +
+ +
+ + + + + + +
+ + + + + +
+ + +
+

Моя лента событий:

+
+ + +
+ + +
+
+ Фильтрация ленты + + +
+
+

Тематика: (Изменить):

+
+
+
+
Авиакосмическая + промышленность
+ x +
+
+
Анализ, измерение и + контроль
+ x +
+
+
Вино, алкоголь, + табак
+ x +
+
+
+
+
+

Место проведения: (Изменить):

+ +
+
+
+
Северная Америка
+ x +
+
+
Азия
+ x +
+
+
Карибы
+ x +
+
+
Европа
+ x +
+
+
Африка
+ x +
+
+
+
+
+
+ + + + + + + + + +
+ + +
+

Выставки 2013-2014

+ +

Выставки - один из наиболее популярных инструментов среди маркетологов. Это + объясняется тем, что специализированные выставки предоставляют отличную + возможность быстро и в одном месте найти новых партнеров и клиентов, узнать о новых трендах + своей отрасли, послушать насыщенную деловую программу. Поэтому мы создали + Expomap.Ru именно в помощь специалистам отделов маркетинга и собственникам + бизнеса, предоставляя легкий и удобный поиск выставок, практические кейсы о + том, как правильно выбрать выставку, как организовать ее посещение за рубежом + или участие со стендом. Вы легко можете связаться с нашими + онлайн-консультантами через Skype или позвонив по тел. +7 499 999 12 07, и + получить бесплатную информацию об интересующей Вас выставке или рекомендации по + тем или иным вопросам.

+ +

Сейчас в нашем каталоге представлены международные + выставки 2013 года, а также уже прошедшие мероприятия, начиная с 2008 года – со + всех стран и уголков мира. С помощью рубрикатора (левый блок "Каталог выставок") + или панели поиска (строка для ввода или расширенный поиск) Вы всегда сможете найти календарь выставок по интересующим Вас тематикам: строительные выставки, медицинские выставки, выставки недвижимости и другие. + Кроме тематик, рубрикатор дает возможность сортировать события: по алфавиту, по странам, по + городам, по датам. Объединить все эти критерии Вы можете, используя расширенный поиск. Итоговое + расписание выставок по Вашим критериям будет построено удобным + образом, начиная с ближайших событий.

+ +
+ + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/client/html-cut/mail.html b/static/client/html-cut/mail.html new file mode 100644 index 00000000..5f35c917 --- /dev/null +++ b/static/client/html-cut/mail.html @@ -0,0 +1,311 @@ + + + + + + + + + + + +
+ + + + + + +
+ + + + +
    +
  • RSS
  • +
  • Facebook
  • +
  • LinkedIn
  • +
  • В контакте
  • +
  • Twitter
  • +
+
+ + + + + + + + + +
Выставки в Москве по тематике: Мебель, Дизайн интерьеров
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+

Foire de Pau 2013

+

Международная ярмарка потребительских товаров

+ добавить в расписание +
Россия, Москва, ЦВК «Экспоцентр»
+
+ с 5 по 20 октября +
+ + + + +
+
+

Foire de Pau 2013

+

Международная ярмарка потребительских товаров

+ добавить в расписание +
Россия, Москва, ЦВК «Экспоцентр»
+
+ с 5 по 20 октября +
+ + + + +
+
+

Foire de Pau 2013

+

Международная ярмарка потребительских товаров

+ добавить в расписание +
Россия, Москва, ЦВК «Экспоцентр»
+
+ с 5 по 20 октября +
+ + + +
+ + + + + + + + + + +
Новости событий
+ + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + + +

Foire de Pau 2013

05.10.2013
+ +

VII Международный форум «АтомЭко 2013» пройдет 30-31 октября в Москве под знаком нулевого ущерба для экологии. Главная тема VIIМеждународного Форума «АтомЭко 2013»: «Атомная энергетика – стратегия нулевого ущерба», где будут обсуждаться вопросы по обращению с радиоактивными отходами (РАО) и отработавшим ...

+ +
+ + + + +
+
+ + + + + +

Foire de Pau 2013

05.10.2013
+ +

VII Международный форум «АтомЭко 2013» пройдет 30-31 октября в Москве под знаком нулевого ущерба для экологии. Главная тема VIIМеждународного Форума «АтомЭко 2013»: «Атомная энергетика – стратегия нулевого ущерба», где будут обсуждаться вопросы по обращению с радиоактивными отходами (РАО) и отработавшим ...

+ +
+ + + + +
+
+ + + + + +

Foire de Pau 2013

05.10.2013
+ +

VII Международный форум «АтомЭко 2013» пройдет 30-31 октября в Москве под знаком нулевого ущерба для экологии. Главная тема VIIМеждународного Форума «АтомЭко 2013»: «Атомная энергетика – стратегия нулевого ущерба», где будут обсуждаться вопросы по обращению с радиоактивными отходами (РАО) и отработавшим ...

+ +
+ + + +
+ + + + + + + + + +
Фоторепортаж: Международный форум «АтомЭко 2013»
+ + + + + + + +
+ + + + + + + + + +
+ +

Идея Russian Affiliate Congress and Expo возникла в ответ на необходимость развития бизнеса России и стран СНГ в соответствии с мировыми тенденциями. Партнерские программы — один из наиболее эффективных и широко применяемых на западе инструментов интернет маркетинга, доля которого на рынке интернет продвижения развитых стран около 40 %, для сравнения в России и странах СНГ на этот сегмент приходится около 10%. Разница очевидна.

+ +
+ + + +
+ + + + + +
+ + + + + + + + +
Аналитика для профессионалов
+ + + + + + + + +
+ + + + +
+
+ +

Древние славянские практики для оздоровления души и тела презентуют на красноярской Ярмарке здоровья

+

VII Международный форум «АтомЭко 2013» пройдет 30-31 октября в Москве под знаком нулевого ущерба для экологии. Главная тема VIIМеждународного Форума «АтомЭко 2013»: «Атомная энергетика – стратегия нулевого ущерба», где будут обсуждаться вопросы по обращению с радиоактивными отходами (РАО) и отработавшим ...

+ +
+ +
+ + + + + + +
+ + + +
+ + + + + + +
+ Чтобы отписаться от этой рассылки, перейдите по ссылке + + © 2018 — 2013 Expomap.ru +
+ +
+ + \ No newline at end of file diff --git a/static/client/html-cut/paid_exposition.html b/static/client/html-cut/paid_exposition.html new file mode 100644 index 00000000..9eb2d08e --- /dev/null +++ b/static/client/html-cut/paid_exposition.html @@ -0,0 +1,2633 @@ + + + + + + + + + + + + + Water Expo China 2014 - расписание, участники, билеты на Expomap.ru + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + +
+
+ + +
+ + + + + + + + + + + + +
+ + +
+ + + + + +
+ + + + + + + +
+
+ + +
+
+

+ + Китайская международная выставка технологий водоподготовки, очистки сточных вод и управления водными ресурсами Water Expo China 2014 + +

+
+ +
+ + + + + + + + + + + + + с + + 1 по Дек. 3, 2014 + + + + + + + +
+ +
+
+
+ No.7 Tianchen East Road, Chaoyang District, Beijing, 100105, China +
+ +
+ + +
+ +
+ +
+ +
+
+ + + + + + +
+
Посетить/участвовать в выставке
+ +
+ + + +
+

Дополнительная информация

+ +
+ +
Организатор:
+
+ + + CHES (Chinese Hydraulic Engineering Society)
+ + NürnbergMesse China Co., Ltd
+ + Messe Frankfurt (Shanghai) Co Ltd.
+ + +
+ + +
Веб-сайт:
+
+ http://www.waterexpo.cn +
+ + + +
Аудитория:
+
+ Специалисты +
+ + + +
Периодичность:
+
Ежегодно
+ + + +
Экспонируемые продукты:
+
Автоматические системы управления
Арматура и клапаны
Водоочистка, водоподача и водоподготовка
Газовые горелки и котлы
Контрольно-измерительные приборы
Насосное оборудование
Санитарно-техническое оборудование
Технологии водоснабжения и сточных вод
Системы отопления
Трубы и трубопроводы
Фитинги и клапаны
Бани, сауны, бассейны; Вихревые, массажные ванны
Оборудование для аквапарков, саун и СПА
Очистители воды
Химические компоненты для бассейнов
Системы водосбережения
Энергоэффективность
+ + + + +
+ +
+
+
+
+ + + +
+

Участники

+

Привлекайте целевых посетителей на стенд

+

Рекламировать участника

+
+ + +
+ +
+ +
+

Посетители

+
+
    + + +
+ + + +

Пока никто не отметился на событии.

+ + + + + + + + + Я планирую посетить + + + + +
+
+ + +
+ + +

 Статистика

+ + + +
+ + + +
+ + +
450 участников
+ + +
24311 посетителей
+ + +
Основано в 1989 году
+ +
+
+ + + + +
+ + + + + + + +
+ +
+

Ближайшие выставки по тематике «Экология, очистка, утилизация»

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + diff --git a/static/client/html-cut/password_recovery.html b/static/client/html-cut/password_recovery.html new file mode 100644 index 00000000..6bf125cd --- /dev/null +++ b/static/client/html-cut/password_recovery.html @@ -0,0 +1,117 @@ + + + + + + + + + + + +
+ + + + + + +
+ + + + +
    +
  • RSS
  • +
  • Facebook
  • +
  • LinkedIn
  • +
  • В контакте
  • +
  • Twitter
  • +
+
+ + + + + + + + +

Ваша регистрация на портале Expomap

+ + + + + + + + + + + + + + + + + + + +
+

Добрый день, Михаил!

+
+ Вы или кто-то еще сделал запрос на сброс пароля на сайте expomap.ru +
+ Вы можете восстановить доступ, нажав на кнопку ниже и указав новый пароль: +
+ подтвердить регистрацию +
+ Если вы не хотите сбрасывать пароль, просто проигнорируйте это сообщение +
+ + + +
+ + + + + + +
+ + + +
+ + + + + +
+ Чтобы отписаться от этой рассылки, перейдите по ссылке + + © 2018 — 2013 Expomap.ru +
+ +
+ + \ No newline at end of file diff --git a/static/client/html-cut/subscribe.html b/static/client/html-cut/subscribe.html new file mode 100644 index 00000000..ca605e9a --- /dev/null +++ b/static/client/html-cut/subscribe.html @@ -0,0 +1,1214 @@ + + + + + + + + + + + Expomap — выставки, конференции, семинары + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+ +
+ +
+ +
+ +
+
+
+
+
+ + +
+ +
+
Посетить конференцию
+
    +
  • +
    Зарегистрируйтесь на событие
    + + Регистрация + +
  • +
  • +
    Забронируйте отель по лучшей цене
    + booking.com +
  • +
  • +
    Купите авиабилеты по лучшему тарифу
    + aviasales.ru +
  • +
+
+
+

О конференции Bitcoin Сonference Kiev 2015

+
+

+

Bitcoin Сonference Kiev – площадка, на которой встретятся лучшие специалисты в сфере криптовалют со всего мира, чтобы поделиться опытом и знаниями о том, как работает Bitcoin и почему эта виртуальная «монета» имеет все шансы стать валютой №1 в мире.

Темы обсуждения:

Что такое Bitcoin?

Как это работает: принципы и закономерности

Бизнес с Bitcoin: увеличение доходности вашего бизнеса

Безопасность – как и где хранить Bitcoin

Правовой статуc Bitcoin и криптовалют в Украине

Презентации Стартапов – лучшие проекты для работы с Bitcoin

Кто посетитель?

+

+

+

Каждый, кто заинтересован в Bitcoin и других криптовалютах, в том числе:

Разработчики

Предприниматели

Специалисты финансовой области

Инвесторы, фонды прямых инвестиций, ангелы и венчурные капиталы

Банки и финансовые структуры

Представители малого и среднего бизнеса

Финансовые консультанты

Представители платежных систем

Юристы

Поставщики Security Solution.

+

+
+
+
+
+

Дополнительная информация

+
    +
+
+
+
+
+
+
+
+

Спикеры

+

Разместите информацию о ключевых спикерах

+

Рекламировать спикера

+
+
+
+
+

Посетители

+
+
    +
+ +

Пока никто не отметился на событии.

+ Я планирую посетить + +
+
+
+
+ +
+
+

Ближайшие выставки по тематике «Бизнес, инвестиции, финансы»

+ +
+ + + + +
+
+
+
+ +
+
+ + + + + + + + + + + + + + + +
+ + + + +подписка модальное окно 1 (expo 191)
+подписка модальное окно 2 (expo 192)
+приглашение для логиста(expo 193)
+приглашение для всех(expo 193)
+ + + diff --git a/static/client/img/1.png b/static/client/img/1.png new file mode 100644 index 00000000..b4d8164f Binary files /dev/null and b/static/client/img/1.png differ diff --git a/static/client/img/2.png b/static/client/img/2.png new file mode 100644 index 00000000..42786c85 Binary files /dev/null and b/static/client/img/2.png differ diff --git a/static/client/img/_del-temp/banner-2.gif b/static/client/img/_del-temp/banner-2.gif new file mode 100644 index 00000000..aab265fe Binary files /dev/null and b/static/client/img/_del-temp/banner-2.gif differ diff --git a/static/client/img/_del-temp/banner.gif b/static/client/img/_del-temp/banner.gif new file mode 100644 index 00000000..3fdd6d3e Binary files /dev/null and b/static/client/img/_del-temp/banner.gif differ diff --git a/static/client/img/_del-temp/bnrs-2.jpg b/static/client/img/_del-temp/bnrs-2.jpg new file mode 100644 index 00000000..6fdafe8f Binary files /dev/null and b/static/client/img/_del-temp/bnrs-2.jpg differ diff --git a/static/client/img/_del-temp/bnrs.jpg b/static/client/img/_del-temp/bnrs.jpg new file mode 100644 index 00000000..184f2331 Binary files /dev/null and b/static/client/img/_del-temp/bnrs.jpg differ diff --git a/static/client/img/_del-temp/cl-logo-1.png b/static/client/img/_del-temp/cl-logo-1.png new file mode 100644 index 00000000..7eaaab33 Binary files /dev/null and b/static/client/img/_del-temp/cl-logo-1.png differ diff --git a/static/client/img/_del-temp/cl-logo-2.png b/static/client/img/_del-temp/cl-logo-2.png new file mode 100644 index 00000000..4a64c4dc Binary files /dev/null and b/static/client/img/_del-temp/cl-logo-2.png differ diff --git a/static/client/img/_del-temp/cl-logo-3.png b/static/client/img/_del-temp/cl-logo-3.png new file mode 100644 index 00000000..3783a0d7 Binary files /dev/null and b/static/client/img/_del-temp/cl-logo-3.png differ diff --git a/static/client/img/_del-temp/counter-1.gif b/static/client/img/_del-temp/counter-1.gif new file mode 100644 index 00000000..48702e6d Binary files /dev/null and b/static/client/img/_del-temp/counter-1.gif differ diff --git a/static/client/img/_del-temp/counter-2.gif b/static/client/img/_del-temp/counter-2.gif new file mode 100644 index 00000000..ccc3d5cc Binary files /dev/null and b/static/client/img/_del-temp/counter-2.gif differ diff --git a/static/client/img/_del-temp/counter-3.gif b/static/client/img/_del-temp/counter-3.gif new file mode 100644 index 00000000..cfa15b9d Binary files /dev/null and b/static/client/img/_del-temp/counter-3.gif differ diff --git a/static/client/img/_del-temp/editor.png b/static/client/img/_del-temp/editor.png new file mode 100644 index 00000000..0d7d5aa3 Binary files /dev/null and b/static/client/img/_del-temp/editor.png differ diff --git a/static/client/img/_del-temp/event-photo-1.jpg b/static/client/img/_del-temp/event-photo-1.jpg new file mode 100644 index 00000000..587327fd Binary files /dev/null and b/static/client/img/_del-temp/event-photo-1.jpg differ diff --git a/static/client/img/_del-temp/expo-bn-1.jpg b/static/client/img/_del-temp/expo-bn-1.jpg new file mode 100644 index 00000000..13005067 Binary files /dev/null and b/static/client/img/_del-temp/expo-bn-1.jpg differ diff --git a/static/client/img/_del-temp/expo-bn-2-s.jpg b/static/client/img/_del-temp/expo-bn-2-s.jpg new file mode 100644 index 00000000..08cfd6c0 Binary files /dev/null and b/static/client/img/_del-temp/expo-bn-2-s.jpg differ diff --git a/static/client/img/_del-temp/glr-1.jpg b/static/client/img/_del-temp/glr-1.jpg new file mode 100644 index 00000000..003ba99c Binary files /dev/null and b/static/client/img/_del-temp/glr-1.jpg differ diff --git a/static/client/img/_del-temp/hotel-1.jpg b/static/client/img/_del-temp/hotel-1.jpg new file mode 100644 index 00000000..767c7328 Binary files /dev/null and b/static/client/img/_del-temp/hotel-1.jpg differ diff --git a/static/client/img/_del-temp/mail-banner.jpg b/static/client/img/_del-temp/mail-banner.jpg new file mode 100644 index 00000000..2d7edc22 Binary files /dev/null and b/static/client/img/_del-temp/mail-banner.jpg differ diff --git a/static/client/img/_del-temp/mp-phg-1.jpg b/static/client/img/_del-temp/mp-phg-1.jpg new file mode 100644 index 00000000..e973e508 Binary files /dev/null and b/static/client/img/_del-temp/mp-phg-1.jpg differ diff --git a/static/client/img/_del-temp/mp-phg-1.png b/static/client/img/_del-temp/mp-phg-1.png new file mode 100644 index 00000000..65ec7a82 Binary files /dev/null and b/static/client/img/_del-temp/mp-phg-1.png differ diff --git a/static/client/img/_del-temp/news-1.jpg b/static/client/img/_del-temp/news-1.jpg new file mode 100644 index 00000000..4535c4cb Binary files /dev/null and b/static/client/img/_del-temp/news-1.jpg differ diff --git a/static/client/img/_del-temp/news-s-1.jpg b/static/client/img/_del-temp/news-s-1.jpg new file mode 100644 index 00000000..0d09da1c Binary files /dev/null and b/static/client/img/_del-temp/news-s-1.jpg differ diff --git a/static/client/img/_del-temp/part-logo-1.png b/static/client/img/_del-temp/part-logo-1.png new file mode 100644 index 00000000..3a088d2b Binary files /dev/null and b/static/client/img/_del-temp/part-logo-1.png differ diff --git a/static/client/img/_del-temp/part-logo-2.png b/static/client/img/_del-temp/part-logo-2.png new file mode 100644 index 00000000..7a8165ff Binary files /dev/null and b/static/client/img/_del-temp/part-logo-2.png differ diff --git a/static/client/img/_del-temp/part-logo-3.png b/static/client/img/_del-temp/part-logo-3.png new file mode 100644 index 00000000..accc6783 Binary files /dev/null and b/static/client/img/_del-temp/part-logo-3.png differ diff --git a/static/client/img/_del-temp/pg-1.jpg b/static/client/img/_del-temp/pg-1.jpg new file mode 100644 index 00000000..b300d294 Binary files /dev/null and b/static/client/img/_del-temp/pg-1.jpg differ diff --git a/static/client/img/_del-temp/pg-2.jpg b/static/client/img/_del-temp/pg-2.jpg new file mode 100644 index 00000000..db257f38 Binary files /dev/null and b/static/client/img/_del-temp/pg-2.jpg differ diff --git a/static/client/img/_del-temp/pg-3.jpg b/static/client/img/_del-temp/pg-3.jpg new file mode 100644 index 00000000..380343f4 Binary files /dev/null and b/static/client/img/_del-temp/pg-3.jpg differ diff --git a/static/client/img/_del-temp/pg-4.jpg b/static/client/img/_del-temp/pg-4.jpg new file mode 100644 index 00000000..2a01344c Binary files /dev/null and b/static/client/img/_del-temp/pg-4.jpg differ diff --git a/static/client/img/_del-temp/phr-1.jpg b/static/client/img/_del-temp/phr-1.jpg new file mode 100644 index 00000000..9cd9fb1b Binary files /dev/null and b/static/client/img/_del-temp/phr-1.jpg differ diff --git a/static/client/img/_del-temp/phr-2.jpg b/static/client/img/_del-temp/phr-2.jpg new file mode 100644 index 00000000..671b6f26 Binary files /dev/null and b/static/client/img/_del-temp/phr-2.jpg differ diff --git a/static/client/img/_del-temp/phr-3.jpg b/static/client/img/_del-temp/phr-3.jpg new file mode 100644 index 00000000..cd6ba7ee Binary files /dev/null and b/static/client/img/_del-temp/phr-3.jpg differ diff --git a/static/client/img/_del-temp/phr-4.jpg b/static/client/img/_del-temp/phr-4.jpg new file mode 100644 index 00000000..42458c20 Binary files /dev/null and b/static/client/img/_del-temp/phr-4.jpg differ diff --git a/static/client/img/_del-temp/pl-logo-1.png b/static/client/img/_del-temp/pl-logo-1.png new file mode 100644 index 00000000..61c999c4 Binary files /dev/null and b/static/client/img/_del-temp/pl-logo-1.png differ diff --git a/static/client/img/_del-temp/pl-logo-2.png b/static/client/img/_del-temp/pl-logo-2.png new file mode 100644 index 00000000..54e6eb53 Binary files /dev/null and b/static/client/img/_del-temp/pl-logo-2.png differ diff --git a/static/client/img/_del-temp/place-photo-1.jpg b/static/client/img/_del-temp/place-photo-1.jpg new file mode 100644 index 00000000..57e2b707 Binary files /dev/null and b/static/client/img/_del-temp/place-photo-1.jpg differ diff --git a/static/client/img/_del-temp/plan.jpg b/static/client/img/_del-temp/plan.jpg new file mode 100644 index 00000000..3b0de806 Binary files /dev/null and b/static/client/img/_del-temp/plan.jpg differ diff --git a/static/client/img/_del-temp/pt-logo-1.png b/static/client/img/_del-temp/pt-logo-1.png new file mode 100644 index 00000000..5a31e18e Binary files /dev/null and b/static/client/img/_del-temp/pt-logo-1.png differ diff --git a/static/client/img/_del-temp/pt-logo-2.png b/static/client/img/_del-temp/pt-logo-2.png new file mode 100644 index 00000000..10bdacc4 Binary files /dev/null and b/static/client/img/_del-temp/pt-logo-2.png differ diff --git a/static/client/img/_del-temp/pt-logo-3.png b/static/client/img/_del-temp/pt-logo-3.png new file mode 100644 index 00000000..68273076 Binary files /dev/null and b/static/client/img/_del-temp/pt-logo-3.png differ diff --git a/static/client/img/_del-temp/pt-logo-4.png b/static/client/img/_del-temp/pt-logo-4.png new file mode 100644 index 00000000..c98f206b Binary files /dev/null and b/static/client/img/_del-temp/pt-logo-4.png differ diff --git a/static/client/img/_del-temp/pt-logo-5.png b/static/client/img/_del-temp/pt-logo-5.png new file mode 100644 index 00000000..efd18dc7 Binary files /dev/null and b/static/client/img/_del-temp/pt-logo-5.png differ diff --git a/static/client/img/_del-temp/pt-logo-6.png b/static/client/img/_del-temp/pt-logo-6.png new file mode 100644 index 00000000..6b90b3c4 Binary files /dev/null and b/static/client/img/_del-temp/pt-logo-6.png differ diff --git a/static/client/img/_del-temp/request-catalog.png b/static/client/img/_del-temp/request-catalog.png new file mode 100644 index 00000000..81afeb66 Binary files /dev/null and b/static/client/img/_del-temp/request-catalog.png differ diff --git a/static/client/img/_del-temp/request-participation.png b/static/client/img/_del-temp/request-participation.png new file mode 100644 index 00000000..bc702cd2 Binary files /dev/null and b/static/client/img/_del-temp/request-participation.png differ diff --git a/static/client/img/_del-temp/request-remotely.png b/static/client/img/_del-temp/request-remotely.png new file mode 100644 index 00000000..8796a5c8 Binary files /dev/null and b/static/client/img/_del-temp/request-remotely.png differ diff --git a/static/client/img/_del-temp/request-tickets.png b/static/client/img/_del-temp/request-tickets.png new file mode 100644 index 00000000..81bb1fae Binary files /dev/null and b/static/client/img/_del-temp/request-tickets.png differ diff --git a/static/client/img/_del-temp/request-tour.png b/static/client/img/_del-temp/request-tour.png new file mode 100644 index 00000000..101db69d Binary files /dev/null and b/static/client/img/_del-temp/request-tour.png differ diff --git a/static/client/img/_del-temp/request-translator.png b/static/client/img/_del-temp/request-translator.png new file mode 100644 index 00000000..4f220825 Binary files /dev/null and b/static/client/img/_del-temp/request-translator.png differ diff --git a/static/client/img/_del-temp/review-1.jpg b/static/client/img/_del-temp/review-1.jpg new file mode 100644 index 00000000..77a23d26 Binary files /dev/null and b/static/client/img/_del-temp/review-1.jpg differ diff --git a/static/client/img/_del-temp/review-2.jpg b/static/client/img/_del-temp/review-2.jpg new file mode 100644 index 00000000..d70f2526 Binary files /dev/null and b/static/client/img/_del-temp/review-2.jpg differ diff --git a/static/client/img/_del-temp/s-map.jpg b/static/client/img/_del-temp/s-map.jpg new file mode 100644 index 00000000..70bda50a Binary files /dev/null and b/static/client/img/_del-temp/s-map.jpg differ diff --git a/static/client/img/_del-temp/usr-1.jpg b/static/client/img/_del-temp/usr-1.jpg new file mode 100644 index 00000000..110643c3 Binary files /dev/null and b/static/client/img/_del-temp/usr-1.jpg differ diff --git a/static/client/img/_del-temp/usr-2.jpg b/static/client/img/_del-temp/usr-2.jpg new file mode 100644 index 00000000..3d57e6e4 Binary files /dev/null and b/static/client/img/_del-temp/usr-2.jpg differ diff --git a/static/client/img/_del-temp/video.jpg b/static/client/img/_del-temp/video.jpg new file mode 100644 index 00000000..1632b0b9 Binary files /dev/null and b/static/client/img/_del-temp/video.jpg differ diff --git a/static/client/img/_del-temp/vk-widget.jpg b/static/client/img/_del-temp/vk-widget.jpg new file mode 100644 index 00000000..0550ee8e Binary files /dev/null and b/static/client/img/_del-temp/vk-widget.jpg differ diff --git a/static/client/img/_del-temp/yad.jpg b/static/client/img/_del-temp/yad.jpg new file mode 100644 index 00000000..2600e99b Binary files /dev/null and b/static/client/img/_del-temp/yad.jpg differ diff --git a/static/client/img/about_pic.png b/static/client/img/about_pic.png new file mode 100644 index 00000000..913bd16f Binary files /dev/null and b/static/client/img/about_pic.png differ diff --git a/static/client/img/ad-themes/adt-1.png b/static/client/img/ad-themes/adt-1.png new file mode 100644 index 00000000..e672d56b Binary files /dev/null and b/static/client/img/ad-themes/adt-1.png differ diff --git a/static/client/img/ad-themes/adt-2.png b/static/client/img/ad-themes/adt-2.png new file mode 100644 index 00000000..473bc938 Binary files /dev/null and b/static/client/img/ad-themes/adt-2.png differ diff --git a/static/client/img/ad-themes/adt-3.png b/static/client/img/ad-themes/adt-3.png new file mode 100644 index 00000000..56844291 Binary files /dev/null and b/static/client/img/ad-themes/adt-3.png differ diff --git a/static/client/img/add_link_text.png b/static/client/img/add_link_text.png new file mode 100644 index 00000000..74974dd2 Binary files /dev/null and b/static/client/img/add_link_text.png differ diff --git a/static/client/img/add_pic_block_bg.png b/static/client/img/add_pic_block_bg.png new file mode 100644 index 00000000..64a30668 Binary files /dev/null and b/static/client/img/add_pic_block_bg.png differ diff --git a/static/client/img/add_pic_block_bg1.png b/static/client/img/add_pic_block_bg1.png new file mode 100644 index 00000000..74debc37 Binary files /dev/null and b/static/client/img/add_pic_block_bg1.png differ diff --git a/static/client/img/add_pic_block_bg2.png b/static/client/img/add_pic_block_bg2.png new file mode 100644 index 00000000..e515e3b1 Binary files /dev/null and b/static/client/img/add_pic_block_bg2.png differ diff --git a/static/client/img/ag-bg.png b/static/client/img/ag-bg.png new file mode 100644 index 00000000..c64dc99e Binary files /dev/null and b/static/client/img/ag-bg.png differ diff --git a/static/client/img/ajax-loader.gif b/static/client/img/ajax-loader.gif new file mode 100644 index 00000000..67d23f3c Binary files /dev/null and b/static/client/img/ajax-loader.gif differ diff --git a/static/client/img/announce-letter.png b/static/client/img/announce-letter.png new file mode 100644 index 00000000..df548884 Binary files /dev/null and b/static/client/img/announce-letter.png differ diff --git a/static/client/img/approved-logo.png b/static/client/img/approved-logo.png new file mode 100644 index 00000000..6f28d68d Binary files /dev/null and b/static/client/img/approved-logo.png differ diff --git a/static/client/img/arrow.png b/static/client/img/arrow.png new file mode 100644 index 00000000..ad35df73 Binary files /dev/null and b/static/client/img/arrow.png differ diff --git a/static/client/img/blog_pic.jpg b/static/client/img/blog_pic.jpg new file mode 100644 index 00000000..3368faaa Binary files /dev/null and b/static/client/img/blog_pic.jpg differ diff --git a/static/client/img/blog_pic1.jpg b/static/client/img/blog_pic1.jpg new file mode 100644 index 00000000..c29c191c Binary files /dev/null and b/static/client/img/blog_pic1.jpg differ diff --git a/static/client/img/blog_pic2.jpg b/static/client/img/blog_pic2.jpg new file mode 100644 index 00000000..edbc04b7 Binary files /dev/null and b/static/client/img/blog_pic2.jpg differ diff --git a/static/client/img/clock.png b/static/client/img/clock.png new file mode 100644 index 00000000..5620e403 Binary files /dev/null and b/static/client/img/clock.png differ diff --git a/static/client/img/comments/1.png b/static/client/img/comments/1.png new file mode 100644 index 00000000..3783bf41 Binary files /dev/null and b/static/client/img/comments/1.png differ diff --git a/static/client/img/comments/2.gif b/static/client/img/comments/2.gif new file mode 100644 index 00000000..93ad0e60 Binary files /dev/null and b/static/client/img/comments/2.gif differ diff --git a/static/client/img/comments/3.png b/static/client/img/comments/3.png new file mode 100644 index 00000000..d15fa96b Binary files /dev/null and b/static/client/img/comments/3.png differ diff --git a/static/client/img/comments/4.png b/static/client/img/comments/4.png new file mode 100644 index 00000000..f8d250f1 Binary files /dev/null and b/static/client/img/comments/4.png differ diff --git a/static/client/img/comments/5.jpg b/static/client/img/comments/5.jpg new file mode 100644 index 00000000..eee3573d Binary files /dev/null and b/static/client/img/comments/5.jpg differ diff --git a/static/client/img/comments/PROPHOTOS.png b/static/client/img/comments/PROPHOTOS.png new file mode 100644 index 00000000..81a7fe2f Binary files /dev/null and b/static/client/img/comments/PROPHOTOS.png differ diff --git a/static/client/img/comments/RS Balance.png b/static/client/img/comments/RS Balance.png new file mode 100644 index 00000000..edb4924f Binary files /dev/null and b/static/client/img/comments/RS Balance.png differ diff --git a/static/client/img/comments/Revival RMC.jpg b/static/client/img/comments/Revival RMC.jpg new file mode 100644 index 00000000..f53467cb Binary files /dev/null and b/static/client/img/comments/Revival RMC.jpg differ diff --git a/static/client/img/comments/Sail First.png b/static/client/img/comments/Sail First.png new file mode 100644 index 00000000..0ed3009a Binary files /dev/null and b/static/client/img/comments/Sail First.png differ diff --git a/static/client/img/comments/VEZDEVOZ.png b/static/client/img/comments/VEZDEVOZ.png new file mode 100644 index 00000000..072459c5 Binary files /dev/null and b/static/client/img/comments/VEZDEVOZ.png differ diff --git a/static/client/img/expo_b/cemat15.gif b/static/client/img/expo_b/cemat15.gif new file mode 100644 index 00000000..9493a63b Binary files /dev/null and b/static/client/img/expo_b/cemat15.gif differ diff --git a/static/client/img/expo_b/cemat15_v2.gif b/static/client/img/expo_b/cemat15_v2.gif new file mode 100644 index 00000000..6434be8f Binary files /dev/null and b/static/client/img/expo_b/cemat15_v2.gif differ diff --git a/static/client/img/expo_b/cemat_modal1.png b/static/client/img/expo_b/cemat_modal1.png new file mode 100644 index 00000000..ec9f86b3 Binary files /dev/null and b/static/client/img/expo_b/cemat_modal1.png differ diff --git a/static/client/img/expo_b/cemat_modal2.png b/static/client/img/expo_b/cemat_modal2.png new file mode 100644 index 00000000..76ded781 Binary files /dev/null and b/static/client/img/expo_b/cemat_modal2.png differ diff --git a/static/client/img/expo_b/mims.png b/static/client/img/expo_b/mims.png new file mode 100644 index 00000000..b3c3929b Binary files /dev/null and b/static/client/img/expo_b/mims.png differ diff --git a/static/client/img/expo_b/mims15.gif b/static/client/img/expo_b/mims15.gif new file mode 100644 index 00000000..7557051e Binary files /dev/null and b/static/client/img/expo_b/mims15.gif differ diff --git a/static/client/img/expob/cemat15.gif b/static/client/img/expob/cemat15.gif new file mode 100644 index 00000000..9493a63b Binary files /dev/null and b/static/client/img/expob/cemat15.gif differ diff --git a/static/client/img/expob/cemat15_v2.gif b/static/client/img/expob/cemat15_v2.gif new file mode 100644 index 00000000..6434be8f Binary files /dev/null and b/static/client/img/expob/cemat15_v2.gif differ diff --git a/static/client/img/expob/mims15.gif b/static/client/img/expob/mims15.gif new file mode 100644 index 00000000..7557051e Binary files /dev/null and b/static/client/img/expob/mims15.gif differ diff --git a/static/client/img/exporating_logo.png b/static/client/img/exporating_logo.png new file mode 100644 index 00000000..9169d1de Binary files /dev/null and b/static/client/img/exporating_logo.png differ diff --git a/static/client/img/fancybox/blank.gif b/static/client/img/fancybox/blank.gif new file mode 100644 index 00000000..35d42e80 Binary files /dev/null and b/static/client/img/fancybox/blank.gif differ diff --git a/static/client/img/fancybox/fancybox_loading.gif b/static/client/img/fancybox/fancybox_loading.gif new file mode 100644 index 00000000..a03a40c0 Binary files /dev/null and b/static/client/img/fancybox/fancybox_loading.gif differ diff --git a/static/client/img/fancybox/fancybox_loading@2x.gif b/static/client/img/fancybox/fancybox_loading@2x.gif new file mode 100644 index 00000000..9205aeb0 Binary files /dev/null and b/static/client/img/fancybox/fancybox_loading@2x.gif differ diff --git a/static/client/img/fancybox/fancybox_overlay.png b/static/client/img/fancybox/fancybox_overlay.png new file mode 100644 index 00000000..a4391396 Binary files /dev/null and b/static/client/img/fancybox/fancybox_overlay.png differ diff --git a/static/client/img/fancybox/fancybox_sprite.png b/static/client/img/fancybox/fancybox_sprite.png new file mode 100644 index 00000000..fd8d5ca5 Binary files /dev/null and b/static/client/img/fancybox/fancybox_sprite.png differ diff --git a/static/client/img/fancybox/fancybox_sprite@2x.png b/static/client/img/fancybox/fancybox_sprite@2x.png new file mode 100644 index 00000000..d0e4779f Binary files /dev/null and b/static/client/img/fancybox/fancybox_sprite@2x.png differ diff --git a/static/client/img/favicon.ico b/static/client/img/favicon.ico new file mode 100644 index 00000000..f7678f9c Binary files /dev/null and b/static/client/img/favicon.ico differ diff --git a/static/client/img/female.png b/static/client/img/female.png new file mode 100644 index 00000000..2ae0db82 Binary files /dev/null and b/static/client/img/female.png differ diff --git a/static/client/img/libk_bg.png b/static/client/img/libk_bg.png new file mode 100644 index 00000000..15b34716 Binary files /dev/null and b/static/client/img/libk_bg.png differ diff --git a/static/client/img/logo.png b/static/client/img/logo.png new file mode 100644 index 00000000..fce2e4a8 Binary files /dev/null and b/static/client/img/logo.png differ diff --git a/static/client/img/logo_beta.png b/static/client/img/logo_beta.png new file mode 100644 index 00000000..ac47efaa Binary files /dev/null and b/static/client/img/logo_beta.png differ diff --git a/static/client/img/mail-logo-2.jpg b/static/client/img/mail-logo-2.jpg new file mode 100644 index 00000000..39f9d896 Binary files /dev/null and b/static/client/img/mail-logo-2.jpg differ diff --git a/static/client/img/mail/cl-logo-1.png b/static/client/img/mail/cl-logo-1.png new file mode 100644 index 00000000..7eaaab33 Binary files /dev/null and b/static/client/img/mail/cl-logo-1.png differ diff --git a/static/client/img/mail/cl-logo-2.png b/static/client/img/mail/cl-logo-2.png new file mode 100644 index 00000000..4a64c4dc Binary files /dev/null and b/static/client/img/mail/cl-logo-2.png differ diff --git a/static/client/img/mail/cl-logo-3.png b/static/client/img/mail/cl-logo-3.png new file mode 100644 index 00000000..3783a0d7 Binary files /dev/null and b/static/client/img/mail/cl-logo-3.png differ diff --git a/static/client/img/mail/mail-banner.jpg b/static/client/img/mail/mail-banner.jpg new file mode 100644 index 00000000..2d7edc22 Binary files /dev/null and b/static/client/img/mail/mail-banner.jpg differ diff --git a/static/client/img/mail/news-1.jpg b/static/client/img/mail/news-1.jpg new file mode 100644 index 00000000..4535c4cb Binary files /dev/null and b/static/client/img/mail/news-1.jpg differ diff --git a/static/client/img/mail/phr-1.jpg b/static/client/img/mail/phr-1.jpg new file mode 100644 index 00000000..9cd9fb1b Binary files /dev/null and b/static/client/img/mail/phr-1.jpg differ diff --git a/static/client/img/mail/phr-2.jpg b/static/client/img/mail/phr-2.jpg new file mode 100644 index 00000000..671b6f26 Binary files /dev/null and b/static/client/img/mail/phr-2.jpg differ diff --git a/static/client/img/mail/phr-3.jpg b/static/client/img/mail/phr-3.jpg new file mode 100644 index 00000000..cd6ba7ee Binary files /dev/null and b/static/client/img/mail/phr-3.jpg differ diff --git a/static/client/img/mail/phr-4.jpg b/static/client/img/mail/phr-4.jpg new file mode 100644 index 00000000..42458c20 Binary files /dev/null and b/static/client/img/mail/phr-4.jpg differ diff --git a/static/client/img/male.png b/static/client/img/male.png new file mode 100644 index 00000000..42f3832b Binary files /dev/null and b/static/client/img/male.png differ diff --git a/static/client/img/map.png b/static/client/img/map.png new file mode 100644 index 00000000..e006e14c Binary files /dev/null and b/static/client/img/map.png differ diff --git a/static/client/img/no-logo.jpg b/static/client/img/no-logo.jpg new file mode 100644 index 00000000..af5abc3c Binary files /dev/null and b/static/client/img/no-logo.jpg differ diff --git a/static/client/img/no-logo.png b/static/client/img/no-logo.png new file mode 100644 index 00000000..a29836ad Binary files /dev/null and b/static/client/img/no-logo.png differ diff --git a/static/client/img/no-userpic-big.gif b/static/client/img/no-userpic-big.gif new file mode 100644 index 00000000..48af80ce Binary files /dev/null and b/static/client/img/no-userpic-big.gif differ diff --git a/static/client/img/partners/IPSA-pict.png b/static/client/img/partners/IPSA-pict.png new file mode 100644 index 00000000..aaa02882 Binary files /dev/null and b/static/client/img/partners/IPSA-pict.png differ diff --git a/static/client/img/partners/IPSA_2015_web_900x130.gif b/static/client/img/partners/IPSA_2015_web_900x130.gif new file mode 100644 index 00000000..be3db8bf Binary files /dev/null and b/static/client/img/partners/IPSA_2015_web_900x130.gif differ diff --git a/static/client/img/partners/Rosupack.png b/static/client/img/partners/Rosupack.png new file mode 100644 index 00000000..03b93ac7 Binary files /dev/null and b/static/client/img/partners/Rosupack.png differ diff --git a/static/client/img/partners/beach.png b/static/client/img/partners/beach.png new file mode 100644 index 00000000..b5a3037a Binary files /dev/null and b/static/client/img/partners/beach.png differ diff --git a/static/client/img/partners/cemat15_900x130_bilet.gif b/static/client/img/partners/cemat15_900x130_bilet.gif new file mode 100644 index 00000000..86d89378 Binary files /dev/null and b/static/client/img/partners/cemat15_900x130_bilet.gif differ diff --git a/static/client/img/partners/congress_office.png b/static/client/img/partners/congress_office.png new file mode 100644 index 00000000..45397404 Binary files /dev/null and b/static/client/img/partners/congress_office.png differ diff --git a/static/client/img/partners/deutsche-messe-2.png b/static/client/img/partners/deutsche-messe-2.png new file mode 100644 index 00000000..6e014c30 Binary files /dev/null and b/static/client/img/partners/deutsche-messe-2.png differ diff --git a/static/client/img/partners/deutsche-messe.png b/static/client/img/partners/deutsche-messe.png new file mode 100644 index 00000000..aca1b1b3 Binary files /dev/null and b/static/client/img/partners/deutsche-messe.png differ diff --git a/static/client/img/partners/expocentr.png b/static/client/img/partners/expocentr.png new file mode 100644 index 00000000..b72ce004 Binary files /dev/null and b/static/client/img/partners/expocentr.png differ diff --git a/static/client/img/partners/expoforum.png b/static/client/img/partners/expoforum.png new file mode 100644 index 00000000..eab7b29c Binary files /dev/null and b/static/client/img/partners/expoforum.png differ diff --git a/static/client/img/partners/expomap-seminars-01.jpg b/static/client/img/partners/expomap-seminars-01.jpg new file mode 100644 index 00000000..82b41d92 Binary files /dev/null and b/static/client/img/partners/expomap-seminars-01.jpg differ diff --git a/static/client/img/partners/expomap-seminars-02.gif b/static/client/img/partners/expomap-seminars-02.gif new file mode 100644 index 00000000..eec115c4 Binary files /dev/null and b/static/client/img/partners/expomap-seminars-02.gif differ diff --git a/static/client/img/partners/expomap-seminars-03.gif b/static/client/img/partners/expomap-seminars-03.gif new file mode 100644 index 00000000..d1f4ca6d Binary files /dev/null and b/static/client/img/partners/expomap-seminars-03.gif differ diff --git a/static/client/img/partners/imgo.jpg b/static/client/img/partners/imgo.jpg new file mode 100644 index 00000000..d7370090 Binary files /dev/null and b/static/client/img/partners/imgo.jpg differ diff --git a/static/client/img/partners/ipsa_.gif b/static/client/img/partners/ipsa_.gif new file mode 100644 index 00000000..9bd2c05d Binary files /dev/null and b/static/client/img/partners/ipsa_.gif differ diff --git a/static/client/img/partners/ite.png b/static/client/img/partners/ite.png new file mode 100644 index 00000000..e1806dc8 Binary files /dev/null and b/static/client/img/partners/ite.png differ diff --git a/static/client/img/partners/messe-dusseldorf.png b/static/client/img/partners/messe-dusseldorf.png new file mode 100644 index 00000000..0093ddae Binary files /dev/null and b/static/client/img/partners/messe-dusseldorf.png differ diff --git a/static/client/img/partners/messe-frankfurt.png b/static/client/img/partners/messe-frankfurt.png new file mode 100644 index 00000000..9e272767 Binary files /dev/null and b/static/client/img/partners/messe-frankfurt.png differ diff --git a/static/client/img/partners/mims15_900x130_bilet.gif b/static/client/img/partners/mims15_900x130_bilet.gif new file mode 100644 index 00000000..ae8a1c46 Binary files /dev/null and b/static/client/img/partners/mims15_900x130_bilet.gif differ diff --git a/static/client/img/partners/new/Bologna Fiere.jpg b/static/client/img/partners/new/Bologna Fiere.jpg new file mode 100644 index 00000000..35658695 Binary files /dev/null and b/static/client/img/partners/new/Bologna Fiere.jpg differ diff --git a/static/client/img/partners/new/Expoforum.gif b/static/client/img/partners/new/Expoforum.gif new file mode 100644 index 00000000..0d73e3ef Binary files /dev/null and b/static/client/img/partners/new/Expoforum.gif differ diff --git a/static/client/img/partners/new/Fiera Milano.png b/static/client/img/partners/new/Fiera Milano.png new file mode 100644 index 00000000..c8681073 Binary files /dev/null and b/static/client/img/partners/new/Fiera Milano.png differ diff --git a/static/client/img/partners/new/ITE_Logo.png b/static/client/img/partners/new/ITE_Logo.png new file mode 100644 index 00000000..5ef7202e Binary files /dev/null and b/static/client/img/partners/new/ITE_Logo.png differ diff --git a/static/client/img/partners/new/Lippman Connects.jpg b/static/client/img/partners/new/Lippman Connects.jpg new file mode 100644 index 00000000..b728fd02 Binary files /dev/null and b/static/client/img/partners/new/Lippman Connects.jpg differ diff --git a/static/client/img/partners/new/Messe Duesseldorf.png b/static/client/img/partners/new/Messe Duesseldorf.png new file mode 100644 index 00000000..e0ee9d7a Binary files /dev/null and b/static/client/img/partners/new/Messe Duesseldorf.png differ diff --git a/static/client/img/partners/new/Messe Dusseldorf.jpg b/static/client/img/partners/new/Messe Dusseldorf.jpg new file mode 100644 index 00000000..c1a3aafc Binary files /dev/null and b/static/client/img/partners/new/Messe Dusseldorf.jpg differ diff --git a/static/client/img/partners/new/Restec.jpg b/static/client/img/partners/new/Restec.jpg new file mode 100644 index 00000000..09b72dab Binary files /dev/null and b/static/client/img/partners/new/Restec.jpg differ diff --git a/static/client/img/partners/new/VDNH.jpg b/static/client/img/partners/new/VDNH.jpg new file mode 100644 index 00000000..1bb9f726 Binary files /dev/null and b/static/client/img/partners/new/VDNH.jpg differ diff --git a/static/client/img/partners/new/cnr expo.png b/static/client/img/partners/new/cnr expo.png new file mode 100644 index 00000000..1b36dc5f Binary files /dev/null and b/static/client/img/partners/new/cnr expo.png differ diff --git a/static/client/img/partners/new/crocus_expo.png b/static/client/img/partners/new/crocus_expo.png new file mode 100644 index 00000000..421b572c Binary files /dev/null and b/static/client/img/partners/new/crocus_expo.png differ diff --git a/static/client/img/partners/new/deutsche-messe-ag-logo.jpg b/static/client/img/partners/new/deutsche-messe-ag-logo.jpg new file mode 100644 index 00000000..145f4a76 Binary files /dev/null and b/static/client/img/partners/new/deutsche-messe-ag-logo.jpg differ diff --git a/static/client/img/partners/new/evroexpo.jpg b/static/client/img/partners/new/evroexpo.jpg new file mode 100644 index 00000000..8b1b351e Binary files /dev/null and b/static/client/img/partners/new/evroexpo.jpg differ diff --git a/static/client/img/partners/new/expocentr_logo.gif b/static/client/img/partners/new/expocentr_logo.gif new file mode 100644 index 00000000..74dd19e5 Binary files /dev/null and b/static/client/img/partners/new/expocentr_logo.gif differ diff --git a/static/client/img/partners/new/imgo.jpg b/static/client/img/partners/new/imgo.jpg new file mode 100644 index 00000000..687425ca Binary files /dev/null and b/static/client/img/partners/new/imgo.jpg differ diff --git a/static/client/img/partners/new/koelnmesse_logo.png b/static/client/img/partners/new/koelnmesse_logo.png new file mode 100644 index 00000000..e08d834d Binary files /dev/null and b/static/client/img/partners/new/koelnmesse_logo.png differ diff --git a/static/client/img/partners/new/logo_VDNH.gif b/static/client/img/partners/new/logo_VDNH.gif new file mode 100644 index 00000000..fac768b8 Binary files /dev/null and b/static/client/img/partners/new/logo_VDNH.gif differ diff --git a/static/client/img/partners/new/reed exhibition.png b/static/client/img/partners/new/reed exhibition.png new file mode 100644 index 00000000..dd137447 Binary files /dev/null and b/static/client/img/partners/new/reed exhibition.png differ diff --git a/static/client/img/partners/new/ubm-plc.jpg b/static/client/img/partners/new/ubm-plc.jpg new file mode 100644 index 00000000..9e52058a Binary files /dev/null and b/static/client/img/partners/new/ubm-plc.jpg differ diff --git a/static/client/img/partners/new/РАЭК.jpg b/static/client/img/partners/new/РАЭК.jpg new file mode 100644 index 00000000..39f1c157 Binary files /dev/null and b/static/client/img/partners/new/РАЭК.jpg differ diff --git a/static/client/img/partners/nurnberg-messe.png b/static/client/img/partners/nurnberg-messe.png new file mode 100644 index 00000000..9bc91b0d Binary files /dev/null and b/static/client/img/partners/nurnberg-messe.png differ diff --git a/static/client/img/partners/reed-exhibitions.png b/static/client/img/partners/reed-exhibitions.png new file mode 100644 index 00000000..a8af91dc Binary files /dev/null and b/static/client/img/partners/reed-exhibitions.png differ diff --git a/static/client/img/partners/unnamed.gif b/static/client/img/partners/unnamed.gif new file mode 100644 index 00000000..7572ea55 Binary files /dev/null and b/static/client/img/partners/unnamed.gif differ diff --git a/static/client/img/partners/unnamed_1.gif b/static/client/img/partners/unnamed_1.gif new file mode 100644 index 00000000..5bc89957 Binary files /dev/null and b/static/client/img/partners/unnamed_1.gif differ diff --git a/static/client/img/partners/unnamed_2.gif b/static/client/img/partners/unnamed_2.gif new file mode 100644 index 00000000..b6d64b40 Binary files /dev/null and b/static/client/img/partners/unnamed_2.gif differ diff --git a/static/client/img/partners/wire_760x70.gif b/static/client/img/partners/wire_760x70.gif new file mode 100644 index 00000000..124520e9 Binary files /dev/null and b/static/client/img/partners/wire_760x70.gif differ diff --git a/static/client/img/pic1.jpg b/static/client/img/pic1.jpg new file mode 100644 index 00000000..c016064d Binary files /dev/null and b/static/client/img/pic1.jpg differ diff --git a/static/client/img/pic10.jpg b/static/client/img/pic10.jpg new file mode 100644 index 00000000..d9e0ee87 Binary files /dev/null and b/static/client/img/pic10.jpg differ diff --git a/static/client/img/pic11.jpg b/static/client/img/pic11.jpg new file mode 100644 index 00000000..ba3e75c3 Binary files /dev/null and b/static/client/img/pic11.jpg differ diff --git a/static/client/img/pic12.png b/static/client/img/pic12.png new file mode 100644 index 00000000..6fe246bb Binary files /dev/null and b/static/client/img/pic12.png differ diff --git a/static/client/img/pic13.jpg b/static/client/img/pic13.jpg new file mode 100644 index 00000000..ca44f19a Binary files /dev/null and b/static/client/img/pic13.jpg differ diff --git a/static/client/img/pic14.jpg b/static/client/img/pic14.jpg new file mode 100644 index 00000000..61f2456a Binary files /dev/null and b/static/client/img/pic14.jpg differ diff --git a/static/client/img/pic15.jpg b/static/client/img/pic15.jpg new file mode 100644 index 00000000..8e3e85fe Binary files /dev/null and b/static/client/img/pic15.jpg differ diff --git a/static/client/img/pic16.jpg b/static/client/img/pic16.jpg new file mode 100644 index 00000000..a0c2420e Binary files /dev/null and b/static/client/img/pic16.jpg differ diff --git a/static/client/img/pic2.jpg b/static/client/img/pic2.jpg new file mode 100644 index 00000000..0012dcc5 Binary files /dev/null and b/static/client/img/pic2.jpg differ diff --git a/static/client/img/pic3.jpg b/static/client/img/pic3.jpg new file mode 100644 index 00000000..6963b2fa Binary files /dev/null and b/static/client/img/pic3.jpg differ diff --git a/static/client/img/pic4.jpg b/static/client/img/pic4.jpg new file mode 100644 index 00000000..c9870741 Binary files /dev/null and b/static/client/img/pic4.jpg differ diff --git a/static/client/img/pic5.jpg b/static/client/img/pic5.jpg new file mode 100644 index 00000000..8fafa1a0 Binary files /dev/null and b/static/client/img/pic5.jpg differ diff --git a/static/client/img/pic6.jpg b/static/client/img/pic6.jpg new file mode 100644 index 00000000..3259b33b Binary files /dev/null and b/static/client/img/pic6.jpg differ diff --git a/static/client/img/pic7.jpg b/static/client/img/pic7.jpg new file mode 100644 index 00000000..a494ce73 Binary files /dev/null and b/static/client/img/pic7.jpg differ diff --git a/static/client/img/pic8.jpg b/static/client/img/pic8.jpg new file mode 100644 index 00000000..8f41ae64 Binary files /dev/null and b/static/client/img/pic8.jpg differ diff --git a/static/client/img/pic8.png b/static/client/img/pic8.png new file mode 100644 index 00000000..6fc26cb7 Binary files /dev/null and b/static/client/img/pic8.png differ diff --git a/static/client/img/pic9.jpg b/static/client/img/pic9.jpg new file mode 100644 index 00000000..cfaa2219 Binary files /dev/null and b/static/client/img/pic9.jpg differ diff --git a/static/client/img/pin.png b/static/client/img/pin.png new file mode 100644 index 00000000..b0dba26d Binary files /dev/null and b/static/client/img/pin.png differ diff --git a/static/client/img/rsva.jpg b/static/client/img/rsva.jpg new file mode 100644 index 00000000..7088941e Binary files /dev/null and b/static/client/img/rsva.jpg differ diff --git a/static/client/img/search-bg.jpg b/static/client/img/search-bg.jpg new file mode 100644 index 00000000..6c1828d1 Binary files /dev/null and b/static/client/img/search-bg.jpg differ diff --git a/static/client/img/select.png b/static/client/img/select.png new file mode 100644 index 00000000..bcda1db4 Binary files /dev/null and b/static/client/img/select.png differ diff --git a/static/client/img/select2/select2-spinner.gif b/static/client/img/select2/select2-spinner.gif new file mode 100644 index 00000000..5b33f7e5 Binary files /dev/null and b/static/client/img/select2/select2-spinner.gif differ diff --git a/static/client/img/select2/select2.png b/static/client/img/select2/select2.png new file mode 100644 index 00000000..1d804ffb Binary files /dev/null and b/static/client/img/select2/select2.png differ diff --git a/static/client/img/select2/select2x2.png b/static/client/img/select2/select2x2.png new file mode 100644 index 00000000..4bdd5c96 Binary files /dev/null and b/static/client/img/select2/select2x2.png differ diff --git a/static/client/img/semitransparent-ie8.png b/static/client/img/semitransparent-ie8.png new file mode 100644 index 00000000..528d21c0 Binary files /dev/null and b/static/client/img/semitransparent-ie8.png differ diff --git a/static/client/img/signature.png b/static/client/img/signature.png new file mode 100644 index 00000000..60c78cb6 Binary files /dev/null and b/static/client/img/signature.png differ diff --git a/static/client/img/soc-medias/email/gmail.png b/static/client/img/soc-medias/email/gmail.png new file mode 100644 index 00000000..e114204f Binary files /dev/null and b/static/client/img/soc-medias/email/gmail.png differ diff --git a/static/client/img/soc-medias/email/mailru.png b/static/client/img/soc-medias/email/mailru.png new file mode 100644 index 00000000..15bc486f Binary files /dev/null and b/static/client/img/soc-medias/email/mailru.png differ diff --git a/static/client/img/soc-medias/email/rambler.png b/static/client/img/soc-medias/email/rambler.png new file mode 100644 index 00000000..4ae5be5d Binary files /dev/null and b/static/client/img/soc-medias/email/rambler.png differ diff --git a/static/client/img/soc-medias/email/yahoo.png b/static/client/img/soc-medias/email/yahoo.png new file mode 100644 index 00000000..c7d5d747 Binary files /dev/null and b/static/client/img/soc-medias/email/yahoo.png differ diff --git a/static/client/img/soc-medias/email/yandex.png b/static/client/img/soc-medias/email/yandex.png new file mode 100644 index 00000000..eccc96a2 Binary files /dev/null and b/static/client/img/soc-medias/email/yandex.png differ diff --git a/static/client/img/soc-medias/icon-fb.png b/static/client/img/soc-medias/icon-fb.png new file mode 100644 index 00000000..2edee29b Binary files /dev/null and b/static/client/img/soc-medias/icon-fb.png differ diff --git a/static/client/img/soc-medias/icon-fb_hover.png b/static/client/img/soc-medias/icon-fb_hover.png new file mode 100644 index 00000000..ab5d6798 Binary files /dev/null and b/static/client/img/soc-medias/icon-fb_hover.png differ diff --git a/static/client/img/soc-medias/icon-goog.png b/static/client/img/soc-medias/icon-goog.png new file mode 100644 index 00000000..4c7048de Binary files /dev/null and b/static/client/img/soc-medias/icon-goog.png differ diff --git a/static/client/img/soc-medias/icon-lin.png b/static/client/img/soc-medias/icon-lin.png new file mode 100644 index 00000000..99e8ab6d Binary files /dev/null and b/static/client/img/soc-medias/icon-lin.png differ diff --git a/static/client/img/soc-medias/icon-lin_hover.png b/static/client/img/soc-medias/icon-lin_hover.png new file mode 100644 index 00000000..c33719f4 Binary files /dev/null and b/static/client/img/soc-medias/icon-lin_hover.png differ diff --git a/static/client/img/soc-medias/icon-mailr.png b/static/client/img/soc-medias/icon-mailr.png new file mode 100644 index 00000000..1bfee0c3 Binary files /dev/null and b/static/client/img/soc-medias/icon-mailr.png differ diff --git a/static/client/img/soc-medias/icon-ok.png b/static/client/img/soc-medias/icon-ok.png new file mode 100644 index 00000000..e77a9a42 Binary files /dev/null and b/static/client/img/soc-medias/icon-ok.png differ diff --git a/static/client/img/soc-medias/icon-twit.png b/static/client/img/soc-medias/icon-twit.png new file mode 100644 index 00000000..e4dc8c9d Binary files /dev/null and b/static/client/img/soc-medias/icon-twit.png differ diff --git a/static/client/img/soc-medias/icon-vk.png b/static/client/img/soc-medias/icon-vk.png new file mode 100644 index 00000000..b151ec5a Binary files /dev/null and b/static/client/img/soc-medias/icon-vk.png differ diff --git a/static/client/img/soc-medias/icon-yand.png b/static/client/img/soc-medias/icon-yand.png new file mode 100644 index 00000000..6ce829fe Binary files /dev/null and b/static/client/img/soc-medias/icon-yand.png differ diff --git a/static/client/img/soc-medias/sm-icon-fb-w.png b/static/client/img/soc-medias/sm-icon-fb-w.png new file mode 100644 index 00000000..9b5314d7 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-fb-w.png differ diff --git a/static/client/img/soc-medias/sm-icon-fb.png b/static/client/img/soc-medias/sm-icon-fb.png new file mode 100644 index 00000000..bd286046 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-fb.png differ diff --git a/static/client/img/soc-medias/sm-icon-fb_hover.png b/static/client/img/soc-medias/sm-icon-fb_hover.png new file mode 100644 index 00000000..ab5d6798 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-fb_hover.png differ diff --git a/static/client/img/soc-medias/sm-icon-inst.png b/static/client/img/soc-medias/sm-icon-inst.png new file mode 100644 index 00000000..a0f5c0c9 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-inst.png differ diff --git a/static/client/img/soc-medias/sm-icon-lin-w.png b/static/client/img/soc-medias/sm-icon-lin-w.png new file mode 100644 index 00000000..19b88726 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-lin-w.png differ diff --git a/static/client/img/soc-medias/sm-icon-lin.png b/static/client/img/soc-medias/sm-icon-lin.png new file mode 100644 index 00000000..6783ffd7 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-lin.png differ diff --git a/static/client/img/soc-medias/sm-icon-lin_hover.png b/static/client/img/soc-medias/sm-icon-lin_hover.png new file mode 100644 index 00000000..c33719f4 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-lin_hover.png differ diff --git a/static/client/img/soc-medias/sm-icon-rss.png b/static/client/img/soc-medias/sm-icon-rss.png new file mode 100644 index 00000000..e1aaf8e5 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-rss.png differ diff --git a/static/client/img/soc-medias/sm-icon-twit-w.png b/static/client/img/soc-medias/sm-icon-twit-w.png new file mode 100644 index 00000000..0aa71157 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-twit-w.png differ diff --git a/static/client/img/soc-medias/sm-icon-twit.png b/static/client/img/soc-medias/sm-icon-twit.png new file mode 100644 index 00000000..642d994a Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-twit.png differ diff --git a/static/client/img/soc-medias/sm-icon-twit_hover.png b/static/client/img/soc-medias/sm-icon-twit_hover.png new file mode 100644 index 00000000..7b5b587d Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-twit_hover.png differ diff --git a/static/client/img/soc-medias/sm-icon-vk-w.png b/static/client/img/soc-medias/sm-icon-vk-w.png new file mode 100644 index 00000000..34dc48a1 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-vk-w.png differ diff --git a/static/client/img/soc-medias/sm-icon-vk.png b/static/client/img/soc-medias/sm-icon-vk.png new file mode 100644 index 00000000..99b581c9 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-vk.png differ diff --git a/static/client/img/soc-medias/sm-icon-vk_hover.png b/static/client/img/soc-medias/sm-icon-vk_hover.png new file mode 100644 index 00000000..c94aee90 Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-vk_hover.png differ diff --git a/static/client/img/soc-medias/sm-icon-youtube.png b/static/client/img/soc-medias/sm-icon-youtube.png new file mode 100644 index 00000000..a4305f8c Binary files /dev/null and b/static/client/img/soc-medias/sm-icon-youtube.png differ diff --git a/static/client/img/soc.png b/static/client/img/soc.png new file mode 100644 index 00000000..59fc664b Binary files /dev/null and b/static/client/img/soc.png differ diff --git a/static/client/img/space.png b/static/client/img/space.png new file mode 100644 index 00000000..ff8d2b18 Binary files /dev/null and b/static/client/img/space.png differ diff --git a/static/client/img/spacer.gif b/static/client/img/spacer.gif new file mode 100644 index 00000000..dd027da0 Binary files /dev/null and b/static/client/img/spacer.gif differ diff --git a/static/client/img/sprites.png b/static/client/img/sprites.png new file mode 100644 index 00000000..f6568e7c Binary files /dev/null and b/static/client/img/sprites.png differ diff --git a/static/client/img/subjects_list.png b/static/client/img/subjects_list.png new file mode 100644 index 00000000..023f4afd Binary files /dev/null and b/static/client/img/subjects_list.png differ diff --git a/static/client/img/team/pic1.jpg b/static/client/img/team/pic1.jpg new file mode 100644 index 00000000..c016064d Binary files /dev/null and b/static/client/img/team/pic1.jpg differ diff --git a/static/client/img/team/pic2.jpg b/static/client/img/team/pic2.jpg new file mode 100644 index 00000000..0012dcc5 Binary files /dev/null and b/static/client/img/team/pic2.jpg differ diff --git a/static/client/img/team/pic3.jpg b/static/client/img/team/pic3.jpg new file mode 100644 index 00000000..6963b2fa Binary files /dev/null and b/static/client/img/team/pic3.jpg differ diff --git a/static/client/img/team/pic4.jpg b/static/client/img/team/pic4.jpg new file mode 100644 index 00000000..c9870741 Binary files /dev/null and b/static/client/img/team/pic4.jpg differ diff --git a/static/client/img/team/pic5.jpg b/static/client/img/team/pic5.jpg new file mode 100644 index 00000000..8fafa1a0 Binary files /dev/null and b/static/client/img/team/pic5.jpg differ diff --git a/static/client/img/team/pic6.jpg b/static/client/img/team/pic6.jpg new file mode 100644 index 00000000..3259b33b Binary files /dev/null and b/static/client/img/team/pic6.jpg differ diff --git a/static/client/img/thanks-aim.png b/static/client/img/thanks-aim.png new file mode 100644 index 00000000..b9129f9c Binary files /dev/null and b/static/client/img/thanks-aim.png differ diff --git a/static/client/img/thanks_sprite.png b/static/client/img/thanks_sprite.png new file mode 100644 index 00000000..0d85f659 Binary files /dev/null and b/static/client/img/thanks_sprite.png differ diff --git a/static/client/img/themes/expo-1.png b/static/client/img/themes/expo-1.png new file mode 100644 index 00000000..e672d56b Binary files /dev/null and b/static/client/img/themes/expo-1.png differ diff --git a/static/client/img/themes/expo-2.png b/static/client/img/themes/expo-2.png new file mode 100644 index 00000000..473bc938 Binary files /dev/null and b/static/client/img/themes/expo-2.png differ diff --git a/static/client/img/themes/expo-3.png b/static/client/img/themes/expo-3.png new file mode 100644 index 00000000..56844291 Binary files /dev/null and b/static/client/img/themes/expo-3.png differ diff --git a/static/client/img/wait.gif b/static/client/img/wait.gif new file mode 100644 index 00000000..b4d4ff8d Binary files /dev/null and b/static/client/img/wait.gif differ diff --git a/static/client/img/wether.png b/static/client/img/wether.png new file mode 100644 index 00000000..3737c197 Binary files /dev/null and b/static/client/img/wether.png differ diff --git a/static/client/img/x2.png b/static/client/img/x2.png new file mode 100644 index 00000000..22c3c78e Binary files /dev/null and b/static/client/img/x2.png differ diff --git a/static/client/js/Base64.js b/static/client/js/Base64.js new file mode 100644 index 00000000..a4ec5d22 --- /dev/null +++ b/static/client/js/Base64.js @@ -0,0 +1,134 @@ +var Base64 = { + + // private property + _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", + + // public method for encoding + encode : function (input) { + var output = ""; + var chr1, chr2, chr3, enc1, enc2, enc3, enc4; + var i = 0; + + input = Base64._utf8_encode(input); + + while (i < input.length) { + + chr1 = input.charCodeAt(i++); + chr2 = input.charCodeAt(i++); + chr3 = input.charCodeAt(i++); + + enc1 = chr1 >> 2; + enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); + enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); + enc4 = chr3 & 63; + + if (isNaN(chr2)) { + enc3 = enc4 = 64; + } else if (isNaN(chr3)) { + enc4 = 64; + } + + output = output + + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4); + + } + + return output; + }, + + // public method for decoding + decode : function (input) { + var output = ""; + var chr1, chr2, chr3; + var enc1, enc2, enc3, enc4; + var i = 0; + + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); + + while (i < input.length) { + + enc1 = this._keyStr.indexOf(input.charAt(i++)); + enc2 = this._keyStr.indexOf(input.charAt(i++)); + enc3 = this._keyStr.indexOf(input.charAt(i++)); + enc4 = this._keyStr.indexOf(input.charAt(i++)); + + chr1 = (enc1 << 2) | (enc2 >> 4); + chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); + chr3 = ((enc3 & 3) << 6) | enc4; + + output = output + String.fromCharCode(chr1); + + if (enc3 != 64) { + output = output + String.fromCharCode(chr2); + } + if (enc4 != 64) { + output = output + String.fromCharCode(chr3); + } + + } + + output = Base64._utf8_decode(output); + + return output; + + }, + + // private method for UTF-8 encoding + _utf8_encode : function (string) { + string = string.replace(/\r\n/g,"\n"); + var utftext = ""; + + for (var n = 0; n < string.length; n++) { + + var c = string.charCodeAt(n); + + if (c < 128) { + utftext += String.fromCharCode(c); + } + else if((c > 127) && (c < 2048)) { + utftext += String.fromCharCode((c >> 6) | 192); + utftext += String.fromCharCode((c & 63) | 128); + } + else { + utftext += String.fromCharCode((c >> 12) | 224); + utftext += String.fromCharCode(((c >> 6) & 63) | 128); + utftext += String.fromCharCode((c & 63) | 128); + } + + } + + return utftext; + }, + + // private method for UTF-8 decoding + _utf8_decode : function (utftext) { + var string = ""; + var i = 0; + var c = c1 = c2 = 0; + + while ( i < utftext.length ) { + + c = utftext.charCodeAt(i); + + if (c < 128) { + string += String.fromCharCode(c); + i++; + } + else if((c > 191) && (c < 224)) { + c2 = utftext.charCodeAt(i+1); + string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); + i += 2; + } + else { + c2 = utftext.charCodeAt(i+1); + c3 = utftext.charCodeAt(i+2); + string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); + i += 3; + } + + } + + return string; + } +} \ No newline at end of file diff --git a/static/client/js/_modules/block.common.js b/static/client/js/_modules/block.common.js new file mode 100644 index 00000000..2ff34586 --- /dev/null +++ b/static/client/js/_modules/block.common.js @@ -0,0 +1,737 @@ +var EXPO = EXPO || {}; //isolated namespace +//общий для всех страниц модуль Функционал общий для всех страниц +if (EXPO.common){ + console.warn('WARNING: EXPO.common is already defined!'); +}else { + + EXPO.common = (function () { + /** + * private (visible inside this module only) variables + */ + /** + * @type {Object} - module API interafce realization + */ + var that = {}; + /** + * helper for this.children + * @param {HTMLElement} el + * @param selector + * @returns {*} + */ + var matches = function(el, selector) { + return (el.matches || el.matchesSelector || el.msMatchesSelector || el.mozMatchesSelector || el.webkitMatchesSelector || el.oMatchesSelector).call(el, selector); + }, + $waiter; + /** + * @type {Object} default setting + */ + that.opt = {}; //свойства по умолчанию + + + /** + * registration and enter login Form validation mechanism + * @param {*|jQuery|HTMLElement} obj - particualr form + * @constructor + */ + var Validation = function(obj){ + //поля над которыми проводится валидация + this.fields = []; + //флаг которые опдвтерждает отправку формы. если true то ошибок нет + this.allIsClear = false; + this.ajaxUrl = obj.getAttribute('action'); + this.DOM = obj; + this._initFields(); + this._eventController(); + + + }; + Validation.prototype = { + //связывает данные объекта с html кодом + _eventController: function () { + var self = this; + if(this.DOM.addEventListener){ + this.DOM.addEventListener("submit", function (event) { + self.validate(); + event.preventDefault(); + return false; + }, false); //Modern browsers + }else if(this.DOM.attachEvent){ + this.DOM.attachEvent('onsubmit', function (event) { + self.validate(); + event.preventDefault(); + return false; + }); //Old IE + } + }, + //берет все поля с классом required + _initFields: function () { + //this.fields = this.DOM.querySelectorAll('.required input'); + + }, + //проводит валидацию, выводит сообщение об ошибках + validate: function () { + var self = this, + formData = $(self.DOM).serialize(), + responseData, + inputObj ={}, + errBoxClass = 'err-message-box', + DOMerrBox = self.DOM.querySelector('.'+errBoxClass), + errBoxText = DOMerrBox.innerHTML, + handler = function (data){ + var $succesRegisterModal, + mailVal; + responseData = data; + self.unHighlightFields(); + if(responseData.success){ + if(DOMerrBox){ + EXPO.common.removeClass(DOMerrBox, 'active'); + } + if($(self.DOM).attr('id') == EXPO.common.opt.registerFormId){ + $succesRegisterModal = $('#'+EXPO.common.opt.successRegisterId); + mailVal = $.trim($('#id_email',self.DOM).val()); + $('.'+EXPO.common.opt.resendLetterClass,$succesRegisterModal).attr('data-email',mailVal); + $.fancybox.close(true); + $.fancybox('#'+EXPO.common.opt.successRegisterId); + }else{ + if($(self.DOM).attr('id') == 'log_form'){ + dataLayer.push({'event': 'logform'}); + } + if($(self.DOM).attr('id') == 'end-reg-form'){ + dataLayer.push({'event': 'endregform'}); + } + window.location.reload(); + } + }else{ + EXPO.common.removeClass(DOMerrBox, 'active'); + inputObj ={}; + self.fields = []; + for(var prop in responseData.errors) { + if (!responseData.errors.hasOwnProperty(prop)) continue; + if(prop != '__all__'){ + inputObj ={'name':prop, 'id':'id_'+prop, 'errorText':responseData.errors[prop]}; + //inputObj.name = prop; + //inputObj.id = 'id_'+prop; + //inputObj.errorText = responseData.errors[prop]; + self.fields.push(inputObj); + }else{ + if(DOMerrBox){ + EXPO.common.addClass(DOMerrBox, 'active'); + if(errBoxText.indexOf(responseData.errors[prop]) < 0) { + DOMerrBox.insertAdjacentHTML('beforeend', responseData.errors[prop]+' '); + + } + + } + + } + + + } + self.highliteFields(); + } + $waiter.hide(); + + + }; + self.unHighlightFields(); + $waiter.show(); + + EXPO.common.postRequest(formData, self.ajaxUrl,handler); + + }, + //подсвечивает неправильно введенные поля, + highliteFields: function () { + var DOMfield, + DOMfieldWrap; + for(var i = 0; i < this.fields.length; i++){ + DOMfield = this.DOM.querySelector('#'+ this.fields[i].id); + DOMfieldWrap = DOMfield.parentNode; + EXPO.common.addClass(DOMfieldWrap,'required'); + EXPO.common.addClass(DOMfieldWrap,'err'); + + } + + }, + unHighlightFields: function () { + var DOMfield, + DOMfieldWrap; + for(var i = 0; i < this.fields.length; i++){ + DOMfield = this.DOM.querySelector('#'+ this.fields[i].id); + DOMfieldWrap = DOMfield.parentNode; + EXPO.common.removeClass(DOMfieldWrap,'required'); + EXPO.common.removeClass(DOMfieldWrap,'err'); + } + }, + submit: function () { + + } + + }, + subscriptionInput = function (width) { + $('#id_subscription_country, #id_subscription_theme') + .select2({ + placeholder: $(this).attr('placeholder'), + width: width + }); + + $('#id_subscription_city').select2({ + placeholder: $(this).attr('placeholder'), + multiple: true, + width: width, + ajax: { + + url: "/city/get-city/", + dataType: "json", + quietMillis: 200, + + data: function(term, page){ + return {term: term, + page: page}; + }, + + results: function (data) { + var results = []; + $.each(data, function(index, item){ + results.push({ + id: item.id, + text: item.label + }); + }); + return {results: results}; + } + }, + initSelection : function(element, callback) { + var id= $(element).val(); + var text = $(element).attr('data-init-text'); + callback({id: id, text:text}); + } + + }); + }; +//dependences + that.forms = []; + $(function () { + /** + * registration and login form validation + */ + subscriptionInput('100%'); + $('form.validate').each(function () { + that.forms.push(new Validation(this)); + }); + /** + * simple validation for all type of forms. + * require that input is covered by tag + */ + $('form.simple-validate').on('submit', function(e){ + e.preventDefault(); + var $form = $(this), + url = $form.attr('action'), + id = $form.attr('id'), + formData = $(this).serialize(), + method = $form.attr("method"), + callback = function (data) { + if (data.success){ + if (id == "advertise-form"){ + dataLayer.push({'event': 'advertisingform'}); + } + if (id == "callback-form"){ + dataLayer.push({'event': 'callbackform'}); + } + $.fancybox.close(); + + + $(".error", $form).remove(); + $(".required.err", $form).removeClass("required err"); + $("input:text", $form).val(''); + + } + else{ + // delete previous error messages + $(".error", $form).remove(); + $(".required.err", $form).removeClass("required err"); + + $.each(data.errors, function (index, value) { + var $input = $("#id_"+index, $form), + $error = $("
").attr("class", "error").append(value); + $input.parent().addClass('required err').prepend($error); + }) + } + }; + if(method == "post"){ + $.post(url, formData, callback); + }else{ + $.get(url, formData, callback); + } + }); + /** + * registration form requires a special form of error messages + */ + $('form.simple-validate-register').on('submit', function(e){ + e.preventDefault(); + var $form = $(this), + url = $form.attr('action'), + formData = $(this).serialize(), + method = $form.attr("method"), + $succesRegisterModal = $("#pw-reg-complete"), + $resend = $(".resend-letter", $succesRegisterModal), + mailVal = $.trim($('#id_email',$form).val()), + + callback = function (data) { + if (data.success){ + dataLayer.push({'event': 'regform'}); + + $(".error", $form).remove(); + $(".required.err", $form).removeClass("required err"); + $("input:text", $form).val(''); + $(".pwf-line .msg-help",$form).each(function () { + var $this = $(this), + defaultT = $this.attr("data-default"); + if($.trim(defaultT) != ''){ + $this.html('').text(defaultT); + } + }); + + $resend.attr('data-email',mailVal); + $.fancybox.close(true); + $.fancybox('#pw-reg-complete'); + + } + else{ + // delete previous error messages + $(".error", $form).remove(); + $(".required.err", $form).removeClass("required err"); + $(".pwf-line .msg-help",$form).each(function () { + var $this = $(this), + defaultT = $this.attr("data-default"); + if($.trim(defaultT) != ''){ + $this.html('').text(defaultT); + } + }); + + $.each(data.errors, function (index, value) { + var $input = $("#id_"+index, $form), + $error = $("
").attr("class", "error").append(value), + $msg = $input.closest(".pwf-line").find(".msg-help"); + $input.parent().addClass('required err'); + $msg.attr("data-default", $msg.text()); + $msg.text('').prepend($error); + }); + + } + }; + if(method == "post"){ + $.post(url, formData, callback); + }else{ + $.get(url, formData, callback); + } + }); + + }); +//private + $(function () { + /** + * $.fancybox bug fix, caused because fancybox is loading near body tag end + */ + $.fancybox.helpers.overlay.overlay = $('
').appendTo('body'); + /* Нестандартное оформление для поля checkbox */ + $.fn.customRadioCheck = function () { + return $(this).each(function () { + var $el = $(this); + var type = $el.attr("type"); + var $label = $el.closest("label"); + var $customCheckbox = $el.wrap("").parent(); + $label.addClass("custom-radio-check"); + function setState () { + if (type == 'radio') { + var name = $el.attr('name'); + var $radios = $('input[type="radio"]').filter('[name="' + name + '"]'); + $radios.each(function () { + var $container = $(this).closest('.custom-radio'); + $container.removeClass('checked'); + if ($(this).is(':checked')) { + $container.addClass('checked'); + } + }); + } else { + if ($el.prop("checked")) { + $customCheckbox.addClass("checked"); + } else { + $customCheckbox.removeClass("checked"); + } + } + $el.trigger('blur'); + } + setState(); + $el.on("change", setState); + }); + }; + + + $("input[type='checkbox'], input[type='radio']").customRadioCheck(); + // add to calendar button click event functional + //$.fancybox('#pw-reg-complete'); + + + }); + /** + * very simple (probably in much need of improvement) Jquery plugin I've thrown together that will get you the value of an inline style property + */ + (function ($) { + $.fn.inlineStyle = function (prop) { + var styles = this.attr("style"), + value; + styles && styles.split(";").forEach(function (e) { + var style = e.split(":"); + if ($.trim(style[0]) === prop) { + value = style[1]; + } + }); + return value; + }; + }(jQuery)); + /** + * current module general initialization + * @param {Object} options - options recieved from web page view + */ + that.init = function (options) { + $.extend(this.opt, options); + var self = this, + addClass = this.opt.addCalendarClass, + remClass = this.opt.removeCalendarClass, + addText = this.opt.addCalendarText, + remText = this.opt.removeCalendarText, + validErrorClass = self.opt.staticValidation.errorClass, + validContainerClass = self.opt.staticValidation.containerClass, + $staticFields, + blobClass = self.opt.staticValidation.blobClass; + + $(function () { + $staticFields = $('.'+validErrorClass); + $waiter = $('#wait-ajax:not(.absolute)').css({'z-index': '8031'}); + + $('body').on('click', '.' + addClass + ', .' + remClass, function(event) { + addText = self.opt.addCalendarText; + remText = self.opt.removeCalendarText; + event.preventDefault(); + var $this = $(this); + var url = $this.attr('href'); + $.get(url, function(data){ + if (data.not_authorized){ + $.fancybox.open('#'+self.opt.loginModalId); + } + else{ + if(data.success){ + if(data.in){ + $this.removeClass(addClass).addClass(remClass).text(remText); + } + else{ + $this.removeClass(remClass).addClass(addClass).text(addText); + + } + } + } + }); + + + }); + /** + * static validation (non Ajax) on form fields + */ + if($staticFields.length){ + $staticFields.find('input:text').on('keyup', function () { + if($.trim($(this).val()) != ''){ + $(this).closest('.'+validErrorClass).removeClass(validErrorClass); + }else{ + $(this).closest('.'+validContainerClass).addClass(validErrorClass); + } + }) + } + /** + * "http://" placeholder for social profiles form on user and company "edit profiles" pages + */ + for(var i = 0; i < self.opt.httpFormIds.length; i++){ + var $instance = $('#'+self.opt.httpFormIds[i]); + + if($instance.length){ + + $('input:text', $instance).on('focus', function () { + var $this = $(this), + placeholder = self.opt.socialInputMask; + + if($.trim($this.val()) == ''){ + $this.val(placeholder[0]); + } + }); + $('input:text', $instance).on('keypress', function () { + var $this = $(this), + placeholder = self.opt.socialInputMask; + + if($.trim($this.val()) == ''){ + $this.val(placeholder[0]); + } + }); + $('input:text', $instance).on('blur', function () { + var $this = $(this), + placeholder = self.opt.socialInputMask; + for(var i =0; i< placeholder.length; i++){ + if($.trim($this.val()) == placeholder[i]){ + $this.val(''); + } + } + }); + } + } + // seohide + + + /** + * setup SEOhide params + */ + $('.'+self.opt.seoLinksClass).each(function () { + var hash = $(this).attr('data-hash'), + url = $(this).attr('data-url'); + + EXPO.common.SEOhide.seoHrefs[hash] = url; + }); + /** + * launch algorithm + */ + EXPO.common.SEOhide.decode(self.opt.dataKey); + /** + * resend a letter button controller + */ + $('.'+self.opt.resendLetterClass).on('click', function () { + var email = $(this).attr('data-email'), + url = self.opt.resendLetterUrl; + $waiter.show(); + EXPO.common.getRequest({'email':email},url, function (data) { + $waiter.hide(); + }); + return false; + }); + /** + * hide error icon on validated field when it is focused + */ + $('#'+self.opt.socialFormId).on('focus','.'+self.opt.requiredClass+'.'+self.opt.errorClass+' input:text',function () { + $(this).closest('.'+self.opt.errorClass).addClass('disable-inner'); + }); + $('#'+self.opt.socialFormId).on('blur','.'+self.opt.requiredClass+'.'+self.opt.errorClass+' input:text',function () { + $(this).closest('.'+self.opt.errorClass).removeClass('disable-inner'); + }); + + }); + //$(window).load(function () { + // $waiter.detach().appendTo('body'); + //}); + + + }; + that.hasClass = function (DOM, className) { + if (DOM.classList) + return DOM.classList.contains(className); + else + return new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className); + }; + that.addClass = function (DOM, className) { + if (!that.hasClass(DOM, className)) { + if (DOM.classList) + DOM.classList.add(className); + else + DOM.className += ' ' + className; + } + return DOM; + }; + that.removeClass = function (DOM, className) { + var newClass = ' ' + DOM.className.replace(/[\t\r\n]/g, ' ') + ' '; + if (that.hasClass(DOM, className)) { + if (DOM.classList){ + DOM.classList.remove(className); + }else{ + while (newClass.indexOf( ' ' + className + ' ') >= 0) { + newClass = newClass.replace(' ' + className + ' ', ' '); + } + DOM.className = newClass.replace(/^\s+|\s+$/g, ' '); + } + } + return DOM; + }; + //Jquery .closest analog for pure js + that.closest = function(el, className) { + var fn = function(className){ + return that.hasClass(el, className); + }; + while (el) { + if (fn(className)) return el; + el = el.parentNode; + } + }; + //JQUERY .children alternative ie 9+ + that.children = function (elm, sel){ + var ret = [], i = 0, l = elm.childNodes.length; + for (var i; i < l; ++i){ + if (matches(elm.childNodes[i], sel)){ + ret.push(elm.childNodes[i]); + } + } + return ret; + }; + // MEtHOD for make ajax GET Jquery.ajax.request and launch handler if exist or return data + that.postRequest = function (dataToSend,url,handler) { + if(!dataToSend){ + dataToSend = ''; + } + $.ajax({ + type: 'POST', + url: url, + data:dataToSend, + success: function(data) { + if(typeof handler == 'function'){ + console.log('data recieved:'); + console.log(data); + console.log(JSON.stringify(data)); + + handler(data); + } else{ + return data; + } + } + }); + + }; + that.getRequest = function (dataToSend,url,handler) { + if(!dataToSend){ + dataToSend = ''; + } + $.ajax({ + type: 'GET', + url: url, + data:dataToSend, + success: function(data) { + if(typeof handler == 'function'){ + console.log('data recieved:'); + console.log(data); + console.log(JSON.stringify(data)); + + handler(data); + } else{ + return data; + } + } + }); + + }; + /** + * prototype of a modal window - general for all + * @param options + * @constructor + */ + + that.Modal = function (options) { + var self = this; + this.id; + this.opt = options; + this.DOMwrap = document.getElementById(options.id); + this.DOM = this.DOMwrap.querySelector('.'+ options.wrapClass); + + $('.modal-close',this.DOM).on('click', function () { + self.close(); + }); + $('.modals > *').on('click', function (ev) { + if($(ev.target.parentNode).find(self.DOMwrap).length){ + self.close(); + + } + }); + + }; + + that.Modal.prototype = { + /** + * @param {string} selector + * @public + */ + pullData: function (selector) { + this.id = selector.substr(1); + $(selector).show().siblings().hide(); + this.refresh(); + + }, + /** + * open and show modal + * @public + */ + open: function () { + $(this.DOMwrap).fadeIn(); + + that.addClass(document.body, 'ov-hidden'); + }, + /** + * close and hide modal window + * @public + */ + close: function () { + $(this.DOMwrap).fadeOut(); + that.removeClass(document.body, 'ov-hidden'); + }, + /** + * initialize modal window + * @public + */ + refresh: function () { + var self = this; + self.DOM.style.width = self.opt.size[self.id].width +'px'; + self.DOM.style.minHeight = self.opt.size[self.id].height +'px'; + self.DOM.style.marginLeft = -(self.opt.size[self.id].width/2)+'px'; + self.DOM.style.marginTop = -(self.opt.size[self.id].height/2)+'px'; + } + }; + /** + * implementation of well known algorithm SEOhie.js (http://goo.gl/MyuQl9) + * hides external links or text from search engines + * depends on Base64.js (http://goo.gl/iblGuK) + * @public + * @type {{seoContent: {}, seoHrefs: {}, decode: Function}} + * @prop {object} seoContent - hashes to find proper content to hide + * @prop {object} seoHrefs - hashes to find proper links to hide on page + * @method decode - decode bas64-code to html + */ + + that.SEOhide = { + seoContent:{}, + seoHrefs:{}, + + /** + * @param dataKey - key to find hashes + */ + decode: function (dataKey) { + var $elements = $('['+dataKey+']'); + for(var i = 0, count = $elements.length; i < count; i++) { + var $element = $elements.eq(i); + var key = $element.attr("data-hash"); + switch($element.data("type")) { + case "href": + $element.attr("href", Base64.decode(this.seoHrefs[key])); + break; + case "content": + $element.replaceWith(Base64.decode(this.seoContent[key])); + break; + } + } + } + + }; + /** + * format raw text (for example textarea input data), replaces newline by tag
+ * @param {String} str string value to process + * @param {Boolean} is_xhtml if true than use xhtml notation for tag
+ * @returns {string} formateed string + */ + that.nl2br = function (str, is_xhtml) { + + var breakTag = (is_xhtml || typeof is_xhtml === 'undefined') ? '
' : '
'; // Adjust comment to avoid issue on phpjs.org display + + return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2'); + }; + return that; + }()); +} diff --git a/static/client/js/_modules/block.exposition.list.js b/static/client/js/_modules/block.exposition.list.js new file mode 100644 index 00000000..b659578a --- /dev/null +++ b/static/client/js/_modules/block.exposition.list.js @@ -0,0 +1,78 @@ +var EXPO = EXPO || {}; //isolated namespace +EXPO.exposition = EXPO.exposition || {}; +if (EXPO.exposition.list){ + console.warn('WARNING: EXPO.place.object is already defined!'); +}else { + + EXPO.exposition.list = (function () { +// dependencies + var com = EXPO.common; + +// variables + var that = {}, + Note = function (it, opt) { + this.opt = opt; + this.DOMthis = it; + this.DOMbutton = it.querySelector('.'+opt.buttonClass); + this.DOMinput = it.querySelector('.'+opt.inputClass); + this.inputName = this.DOMinput.getAttribute('name'); + this.url = this.DOMbutton.getAttribute('href'); + this._controller(); + }; + Note.prototype = { + _init: function () { + + }, + _controller: function () { + var self = this; + $(this.DOMinput).on('blur', function () { + self.send(); + }); + $(this.DOMbutton).on('click', function () { + return false; + }); + }, + send: function () { + var data = {}, + response, + self = this, + handler = function (data) { + if (data.success) { + console.log('ok'); + $(self.DOMbutton).addClass('active'); + } else { + console.log('data not send'); + } + + }; + data[this.inputName] = this.DOMinput.value; + response = com.getRequest(data,this.url,handler); + } + }; + + that.opt = {}; //свойства по умолчанию +//private + $(function () { + }); + +// methods + //инициализация общих свойств + that.init = function (options) { + $.extend(this.opt, options); + this.notes = []; + var self = this; + + $('.'+this.opt.note.wrapClass).each(function () { + var note = new Note(this,self.opt.note); + self.notes.push(note); + }); + $('.'+this.opt.note.wrapDisabledClass).on('click', function () { + $.fancybox.open('#pw-login'); + return false; + }); + com.opt.addCalendarText = this.opt.addCalendarText; + com.opt.removeCalendarText = this.opt.removeCalendarText; + }; + return that; + }()); +} diff --git a/static/client/js/_modules/block.newsFilter.js b/static/client/js/_modules/block.newsFilter.js new file mode 100644 index 00000000..50b974e7 --- /dev/null +++ b/static/client/js/_modules/block.newsFilter.js @@ -0,0 +1,109 @@ +var EXPO = EXPO || {}; //isolated namespace +if (EXPO.newsFilter) { + console.warn('WARNING: EXPO.newsFilter is already defined!'); +} else { + EXPO.newsFilter = (function () { + /** + * private (visible inside this module only) variables + */ + /** + * @type {Object} - module API interafce realization + */ + var that = {}; + /** + * @type {Object} default setting + */ + that.opt = {}; + /** + * dependencies.Place where you can switch on dependencies for module + * @type {EXPO.common|*} - mostly used in project functions and data (block.common.js) + */ + var com = EXPO.common; + + /** + * current module general initialization + * @param {Object} options - options recieved from web page view + */ + + + that.init = function (options) { + // settings extending + $.extend(this.opt, options); + // begin of initialization + var self = this; + + $(function () { + var $page = $(".news-filter-block"), + $theme = $('.custom-select.theme select', $page), + $tags = $(".custom-select.tags input", $page), + $form = $page.children("form"); + $theme.attr("multiple","multiple"); + $theme.select2({ + placeholder: self.opt.theme.placeholder, + width: '368px', + maximumSelectionSize: 3 + + + + }); + $tags.val('0'); + $tags.select2({ + placeholder: self.opt.tags.placeholder, + width: '368px', + multiple: true, + maximumSelectionSize: 5, + ajax: { + + url: self.opt.tags.url, + dataType: "json", + quietMillis: 200, + + data: function(term, page){ + var themes = $theme.val(); + if(!themes){ + themes = []; + } + return {term: term, + page: page, + themes: themes}; + }, + + results: function (data) { + var results = []; + + $.each(data, function(index, item){ + results.push({ + id: item.id, + text: item.label + }); + }); + return {results: results}; + } + }, + initSelection : function(element, callback) { + var data = [], + dataObjArr; + element.val(''); + if($.trim(element.attr('data-predifined')) != '' && $.trim(element.attr('data-predifined')) != '[]'){ + dataObjArr = JSON.parse(element.attr('data-predifined')); + callback(dataObjArr); + }else{ + $(" .custom-select.tags .select2-input").width(336).addClass('select2-default').val(self.opt.tags.placeholder); + + } + + } + + }); + $tags.on('change', function (e) { + $form.submit(); + }); + $theme.on('change', function (e) { + $form.submit(); + }); + }); + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/block.registration.completion.js b/static/client/js/_modules/block.registration.completion.js new file mode 100644 index 00000000..dc1c5931 --- /dev/null +++ b/static/client/js/_modules/block.registration.completion.js @@ -0,0 +1,171 @@ +var EXPO = EXPO || {}; //isolated namespace +EXPO.registration = EXPO.registration || {}; +if (EXPO.registration.completion) { + console.warn('WARNING: EXPO.registration..completion is already defined!'); +} else { + EXPO.registration.completion = (function () { + /** + * private (visible inside this module only) variables + */ + /** + * @type {Object} - module API interafce realization + */ + var that = {}, + /** + * fires when data is sended and response recieved + * @param {Object} data - data recieved from server + */ + registrationSuccess = function (data) { + var $item, + $popup = $('#end-reg'), + lineClass = 'pwf-line', + activeClass = EXPO.common.opt.activeClass, + phoneClass = 'phone', + labelClass = 'label', + errClass = EXPO.common.opt.errMessageClass; + $('.'+errClass,$popup).removeClass(activeClass); + if (data.success) { + location = data.redirect; + } + else { + console.log(data); + for (var property in data.errors) { + if (data.errors.hasOwnProperty(property)) { + $itemWrap = $('#id_'+property).closest('.'+lineClass); + $('.'+errClass,$itemWrap).addClass(activeClass).text(data.errors[property][0]); + if($itemWrap.hasClass(phoneClass)){ + $('.'+labelClass,$itemWrap).hide(); + }; + } + } + // err-message-box + } + }, + placeInput = function (width) { + $('#id_country') + .val('159') + .select2({ + placeholder: "Ваша страна", + width: width + }) + /** + * change phone code when country is selected by user + */ + .on("change", function () { + var phoneCode = $('option:selected', this).attr("data-phone-code"); + if($.trim(phoneCode) !=''){ + $('#id_code_country').select2("val",phoneCode); + }else{ + $('#id_code_country').select2("val",''); + + } + }); + + $('#id_city').select2({ + placeholder: "Ваш город", + width: width, + ajax: { + + url: "/city/get-city/", + dataType: "json", + quietMillis: 200, + + data: function(term, page, country){ + var country = $('#id_country').val(); + return {term: term, + page: page, + country: country}; + }, + + results: function (data) { + var results = []; + $.each(data, function(index, item){ + results.push({ + id: item.id, + text: item.label + }); + }); + return {results: results}; + } + }, + initSelection : function(element, callback) { + var id= $(element).val(); + var text = $(element).attr('data-init-text'); + callback({id: id, text:text}); + + } + + }); + }; + /** + * @type {Object} default setting + */ + that.opt = {}; + /** + * dependencies.Place where you can switch on dependencies for module + * @type {EXPO.common|*} - mostly used in project functions and data (block.common.js) + */ + var com = EXPO.common; + + $(function () { + var $form = $('#end-reg-form'); + $('body').addClass('body-fixed'); + placeInput('100%'); + $('#id_code_country').val('7').select2({ + width: '95px' + }); + + + + $.fancybox.open([ + { + href: '#end-reg' + } + ], { + closeBtn: false, // hide close button + closeClick: false, // prevents closing when clicking INSIDE fancybox + modal: true, + scrolling: 'no', + helpers: { + // prevents closing when clicking OUTSIDE fancybox + overlay: {closeClick: false}, + locked : true + }, + keys: { + // prevents closing when press ESC button + close: null + } + + }); + + + $form.on('submit', function (e) { + e.preventDefault(); + var url = $(this).attr('action'); + var formData = $(this).serialize(); + $.post(url, formData, registrationSuccess) + }); + $(".url-field:not(.err) input",$form).focusin(function () { + $(this).parent().siblings(".hint-box").fadeIn(); + }); + $(".url-field:not(err) input",$form).focusout(function () { + $(this).parent().siblings(".hint-box").fadeOut(); + }); + + + + }); + + /** + * current module general initialization + * @param {Object} options - options recieved from web page view + */ + that.init = function (options) { + // settings extending + $.extend(this.opt, options); + // begin of initialization + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/block.search.js b/static/client/js/_modules/block.search.js new file mode 100644 index 00000000..be6e78e4 --- /dev/null +++ b/static/client/js/_modules/block.search.js @@ -0,0 +1,2397 @@ +var EXPO = EXPO || {}; //isolated namespace + +// module requires JQuery library, dna.js template engine (http://dnajs.org/) +// protection against duplication of a module code +if (EXPO.searchBlock){ + console.warn('WARNING: EXPO.searchBlock is already defined!'); +}else{ + + EXPO.searchBlock = (function() { + + // variables + + var that = {}; + /** + * default module setting + * @type {{place: {id: string, selectedItemTemplate: string, ajaxUrl: string}, subject: {id: string, ajaxUrl: string}}} + */ + that.settings = { + place:{ + id:'pw-place', + selectedItemTemplate:'csb-selected', + ajaxUrl:'http://hit.expomap.ru/search-form/' + }, + subject:{ + id:'pw-subj', + ajaxUrl:'http://hit.expomap.ru/search-form/' + } + }; + that.lang ={}; + //dependence's + // module require dna.js tiny templating engine + var common = EXPO.common; + //private + + var Json2URI = function (jsonObj) { + var str = Object.keys(jsonObj).map(function(key){ + return encodeURIComponent(key) + '=' + encodeURIComponent(jsonObj[key]); + }).join('&'); + return ('?'+str); + }, + /** + * make ajax GET request and launch handler if exist or return data + * @param {Object|string} dataToSend + * @param {string} url + * @param {function} handler - function to execute when task is ready + */ + getRequest = function (dataToSend,url,handler) { + if(!dataToSend){ + dataToSend = ''; + } + $.ajax({ + type: 'GET', + url: url, + data:dataToSend, + success: function(data) { + if(typeof handler == 'function'){ + handler(data); + } else{ + return data; + } + } + }); + }, + /** + * rename name of property of an object/ Check for the old property name to avoid a ReferenceError in strict mode. + * @param {Object} obj object to rename its properties + * @param {string} oldName + * @param {string} newName + * @returns {renameProperty} + */ + renameProperty = function (obj,oldName, newName) { + if (obj.hasOwnProperty(oldName)) { + obj[newName] = obj[oldName]; + + } + return this; + }, + /** + * analogue of Array.length but for object + * @param {Object} obj - Object to count its method + * @returns {number} + */ + getObjectLength = function (obj) { + var size = 0, key; + for (key in obj) { + if (obj.hasOwnProperty(key)) size++; + } + return size; + }, + /** + * getSelectedToString returns string that contains selected values in both modal windows. values separated by ',' + * @param {string} container + * @param {number} cutLength - length to cut off string + * @returns {string} string that is cutted off + */ + getSelectedToString = function(container, cutLength){ + var $container = $('#'+container), + index = 0, + stringToReturn = '', + closingSymbol = '...', + closerText = EXPO.searchBlock.settings.closerText, + closerTextSingle = EXPO.searchBlock.settings.closerTextSingle, + dividerSymbol = ''; + $element = $container.find('.csbs-text'); + if($element.length > 2){ + if($element.eq(0).text().length < cutLength){ + dividerSymbol = ', '; + stringToReturn += $element.eq(0).text() + dividerSymbol + $element.eq(1).text() + closerText.replace('_',$element.length-2); + }else{ + stringToReturn += $element.eq(0).text() + closerText.replace('_',$element.length-1); + } + + } else if($element.length == 2){ + if(($element.eq(0).text().length+$element.eq(1).text().length) < cutLength){ + dividerSymbol = ', '; + // если даже 2 первых слова вместе меньше чем порог, то не указывать количество позиций + stringToReturn += $element.eq(0).text() + dividerSymbol + $element.eq(1).text()+' '; + + } else if($element.eq(0).text().length < cutLength){ + dividerSymbol = ', '; + stringToReturn += $element.eq(0).text() + dividerSymbol + $element.eq(1).text()+' '; + }else{ + stringToReturn += $element.eq(0).text() + closerTextSingle.replace('_',$element.length-1); + } + }else if($element.length){ + stringToReturn += $element.eq(0).text()+' '; + }else{ + stringToReturn = false; + } + return stringToReturn; + }, + /** + * ajax pending process indicator + * @type {*|jQuery|HTMLElement} индикатор загрузки диалоговых окон + */ + $waiter = $('.wait-ajax.absolute'); + + /** + * Constructor for modal window 'select subject' + * @param {Object} options + * @constructor + */ + var SubjectModal = function(options){ + /** + * options init + * @type {Object} + */ + this.opt = options; + var self = this, index = 0, + $subjWrap = $('#'+self.opt.subjectTriggerWrapId), + $topicBox, + modalId = self.opt.id, + $modal = $('#'+modalId), + $checkBox = $('.csb-menu-input', $modal), + $selectedItemsWrap = $('.csb-selected-items',$modal), + setDefault = self.opt.defaultOn, + applyBtnClass = self.opt.applyBtnClass, + $modalTrigger = $('#'+self.opt.modalTrigger), + /** + * executed after render of modal Window + * @function + */ + afterRenderHandler = function () { + $waiter.hide(); + + }, + /** + * fill text beneth search field + * @function triggerSetText + */ + triggerSetText = function () { + var selectedString, + cutLength = 16; + if($(window).width() < 1086){ + cutLength = 12; + } + + selectedString = getSelectedToString(self.opt.selectedItemsContainer,cutLength); + if(selectedString && selectedString != '~~text~~' && selectedString != '~~text~~...'){ + $modalTrigger.text(selectedString); + $modalTrigger.siblings('.'+self.opt.clearAllButtonClass).addClass('active'); + }else{ + $modalTrigger.text($modalTrigger.data('default')); + $modalTrigger.siblings('.'+self.opt.clearAllButtonClass).removeClass('active'); + } + }; + + /** + * this modal window DOM Instance + * @type {*|jQuery|HTMLElement} + */ + this.$modalInst = $('#'+modalId); + + /** + * clones of tags for selected(checked) subject (powered by dna.js objects: see http://dnajs.org/) + * @type {Object} + */ + this.itemsSelected = {}; + /** + * clones of sublist of selected(checked) subject (powered by dna.js objects: see http://dnajs.org/) + * @type {Object} + */ + this.sublist= {}; + /** + * Jquery object of filtering input (autocomplete input) + * @type {*|jQuery|HTMLElement} + */ + this.$inputFilter = $('#'+self.opt.filterInputId); + this.$selectedItemsWrap = $selectedItemsWrap; + /** + * flag for management of turn of asynchronous requests + * @type {boolean} + */ + this.isReceived = true; + + $(function () { + // topic checkbox selected event + $('.topicChecks', $subjWrap).on('change', function () { + + if($(this).prop('checked')){ + self._setVisible($(this).val()); + + }else{ + self._setUnvisible($(this).val()); + } + }); + // selected topic by default self.opt.defaultOn[] + for(index = 0; index < setDefault.length; index++){ + $topicBox = $('#'+setDefault[index]) + $topicBox.prop('checked',true); + $topicBox.trigger('change'); + + + } + //modal list and sublist behavior + $modal.on('click', 'a.trigger', function () { + var name = $(this).attr('data-name'), + id = $(this).attr('data-id'), + tmplId = $(this).attr('data-template-id'), + $sublist = $(this).siblings('.dna-container'); + // no more than once execution + if($(this).attr('data-sub') == 'true'){ + if($(this).parent().hasClass('level1')){ + + if(!$sublist.children().length){ + $waiter.show(); + self._renderSublist({name:name,id:id}, tmplId, afterRenderHandler); + $(this).parent().addClass('active'); + }else{ + //slideUp & Down stuff + self._slideToggle($sublist, $(this).parent()); + } + } + } + return false; + }); + /** + * + */ + // modal theme checkbox change behavior + $checkBox.on('change', function (event, param) { + var checkboxId = $(this).attr('id'), + $label = $(this).closest('.custom-radio-check'), + $parent = $(this).closest('.level'), + $parentCheckBox = $parent.parent().closest('.level').children('.custom-radio-check').find('.csb-menu-input'), + $sublist = $parent.children('.sublist'); + if(!param){ + + if(this.checked){ + $label.addClass('active'); + var text = $(this).closest('.level').find('.trigger').first().text(), + tplObj = {'text':text,'id':checkboxId}; + + //tags field logic + if(!$selectedItemsWrap.hasClass('visible')){ + $selectedItemsWrap.addClass('visible'); + } + self._addTag(checkboxId, tplObj); + + // proper selection and selection group logic + if($sublist.length){ + $('.csb-menu-input',$sublist).each(function () { + var thisId = this.getAttribute('id'), + tagText = $(this).closest('.level').find('.trigger').first().text(), + DOMlabel = common.closest(this,'custom-radio-check'); + + this.checked = true; + self._destroyTag(thisId); + common.addClass(DOMlabel,'active'); + }); + + }else{ + $parent = $parent.parent().closest('.level') + // if checked items count equals all items count then parent item is checked and tags for children - deleted + if ( $('.csb-menu-input',$parent.find('.sublist')).length == $('.csb-menu-input:checked',$parent.find('.sublist')).length){ + var parentId = $parentCheckBox[0].getAttribute('id'), + parentText = $parentCheckBox.closest('.level').find('.trigger').first().text(), + DOMlabel =common.closest(this,'custom-radio-check'), + DOMParentLabel = common.closest(DOMlabel.parentNode.parentNode,'level'), + parentObj = {'text':parentText,'id':parentId}; + $('.csb-menu-input:checked',$parent.find('.sublist')).each(function () { + + self._destroyTag(this.getAttribute('id')); + }); + $parentCheckBox.prop('checked', true); + common.addClass($(DOMParentLabel).find('.custom-radio-check')[0],'active'); + + //$parentCheckBox.trigger('change',['true']); + self._addTag(parentId,parentObj); + } + } + + //!uncheck event + }else { + $label.removeClass('active'); + self._destroyTag(checkboxId); + if(!$selectedItemsWrap.children('.dna-clone').length){ + $selectedItemsWrap.removeClass('visible'); + + } + //uncheck all sublist items while parent item is unchecked + if($sublist.length){ + //destroy all tags for sublist items + $('.csb-menu-input',$sublist).each(function () { + var thisId = $(this).attr('id'), + DOMlabel = common.closest(this,'custom-radio-check'); + this.checked = false; + + common.removeClass(DOMlabel, 'active'); + self._destroyTag(thisId); + }); + }else{ + // parent item is unchecked and tags for every children item are made + if($parentCheckBox.length && $parentCheckBox[0].checked){ + var DOMlabel = common.closest($parentCheckBox[0],'custom-radio-check'), + DOMParentItem = common.closest(DOMlabel,'level'), + DOMSublist = DOMParentItem.querySelector('.sublist'); + $parentCheckBox.prop('checked', false); + common.removeClass(DOMlabel, 'active'); + self._destroyTag($parentCheckBox.attr('id')); + // checks children items + + $('.csb-menu-input:checked',DOMSublist).each(function () { + var id = this.getAttribute('id'), + tagText = common.closest(this, 'level').querySelector('.trigger').textContent, + tagObj = {'text':tagText,'id':id}; + self._addTag(id,tagObj); + }); + } + } + + } + triggerSetText(); + } + }); + //delete tag behavior + $('.csbs-del', $selectedItemsWrap).on('click', function () { + var checkboxId = $(this).attr('data-checkbox-id'), + $uncheckBoxes = $('#'+checkboxId); + $uncheckBoxes.prop('checked', false); + $uncheckBoxes.trigger('change'); + dna.destroy(self.itemsSelected[checkboxId]); + if(!$selectedItemsWrap.children('.dna-clone').length){ + $selectedItemsWrap.removeClass('visible'); + } + return false; + }); + $('.modal-clear', $modal).on('click', function () { + self.resetList(); + return false; + }); + self._autocompleteInit(); + $('.'+applyBtnClass, $modal).on('click', function () { + self.applyHandler(this); + return false; + }); + // кнопка "очистить параметры" + $modalTrigger.siblings('.'+self.opt.clearAllButtonClass).on('click', function () { + self.resetList(); + EXPO.searchBlock.exhibitionField.clearValue(); + + }); + }); + }; + /** + * methods + * @type {{_getAjax: Function, _setVisible: Function, _setUnvisible: Function, _checkCheckBox: Function, check: Function, _autocompleteInit: Function, _renderSublist: Function, _loadParentTree: Function, _destroyTag: Function, _addTag: Function, _slideToggle: Function, resetList: Function, applyHandler: Function}} + */ + SubjectModal.prototype = { + /** + * get ajax response when want sublists + * @param {Object|sting} dataToSend + * @param {function} handler - fires after request is complete + * @private + */ + _getAjax: function (dataToSend, handler) { + var self = this; + if(!dataToSend){ + dataToSend = ''; + } + $waiter.css({display:'block'}); + $.ajax({ + type: 'GET', + url: self.opt.ajaxUrl, + data:dataToSend, + success: function(data) { + if(typeof handler == 'function'){ + $waiter.hide(); + handler(data); + } else{ + return data; + + } + } + }); + }, + /** + * filter list accordingly to checked checkbox in 'select type' part of modal + * @param {string} type + * @private + */ + _setVisible:function(type){ + var self = this; + $('.'+type, self.$modalInst).addClass('visible'); + }, + /** + * filter list accordingly to checked checkbox in 'select type' part of modal + * @param {string} type + * @private + */ + _setUnvisible: function (type) { + var self = this, + $li = $('.'+type, self.$modalInst); + $li.find('input[type="checkbox"]').each(function () { + var $this = $(this); + if($this.prop('checked')){ + $this.prop('checked', false); + $this.trigger('change'); + } + }); + $li.find('.dna-container').each(function () { + if($(this).children().length){ + $(this).addClass('hidden'); + } + }); + $li.removeClass('visible'); + + }, + /** + * check particular checkbox input + * @param {string} id + * @param {string} name + * @param {boolean} strict - if true then select particular checkbox without 'popping' to parent category + * @private + */ + _checkCheckBox: function (id,name) { + var self = this, + $chckBox; + + if(name == 'th'){ + $chckBox = $('#tid_'+id, self.$modalInst); + }else if(name == 'tg'){ + $chckBox = $('#tgid_'+id, self.$modalInst); + } + if($chckBox.length && !$chckBox.prop('checked')){ + $chckBox.prop('checked',true); + $chckBox.trigger('change'); + } + + }, + /** + * check particular checkbox input + * @param {string} id + * @param {string} name + * @public + */ + check: function (id,name) { + var self = this, + $chckBox; + if(name == 'th'){ + $chckBox = $('#tid_'+id, self.$modalInst); + }else if(name == 'tg'){ + $chckBox = $('#tgid_'+id, self.$modalInst); + } + if($chckBox.length){ + $chckBox.prop('checked',true); + $chckBox.trigger('change'); + $chckBox.parent().addClass('active'); + } + + }, + /** + * initiliazing and setup autocomplete field for subject list + * @private + */ + _autocompleteInit : function () { + var self = this, dataObj, text , form = self.$inputFilter.attr('data-form'),index, + $completeWrap = $('#'+self.opt.autoCompleteId), + firstComplete = true, + selectTag = function (event, ui) { + //check of repeating execution + $waiter.show(); + var firstTime = true; + for (var prop in self.sublist) { + for (var prop2 in self.sublist[prop]) { + if (prop2 == ui.item.value){ + if($('#tid_'+ui.item.value+'[name="'+ui.item.name+'"]:checked').length){ + firstTime = false; + } + } + + } + } + if($('#tid_'+ui.item.value+'[name="'+ui.item.name+'"]:checked').length){ + firstTime = false; + } + // ban of repeating execution + if (firstTime) { // konec + var $checkbox = $('#tid_' + ui.item.value+'[name="'+ui.item.name+'"]'), + requestObj, requestName, + treeLoadHandler = function (data) { + // make checkboxes selected after loading + if(getObjectLength(data)){ + self._loadParentTree(data, function () { + self._checkCheckBox(ui.item.value,'tg'); + $waiter.hide(); + }); + }else{ + $waiter.hide(); + console.warn() + } + + }; + // load tree related to selected item + if (!$checkbox.length) { + + requestObj = { + id: ui.item.value, + name: ui.item.name + }; + getRequest(requestObj, self.opt.getParentUrl, treeLoadHandler); + } else{ + $waiter.hide(); + $checkbox.prop('checked', true); + $checkbox.trigger('change'); + } + + } + }, + requestHandler = function(data){ + dataObj = data; + for(index = 0; index < dataObj.length; ++index) { + renameProperty(dataObj[index],'text','label'); + } + for(index = 0; index < dataObj.length; ++index) { + renameProperty(dataObj[index],'id','value'); + } + if(!self.$inputFilter.hasClass('ui-autocomplete-input')){ + + self.$inputFilter.placeComplete({ + source:dataObj, + minLength: 0, + appendTo:$completeWrap, + select:function(event, ui){ + self.$inputFilter.val(''); + self.$inputFilter.trigger('keyup'); + selectTag(event, ui); + event.preventDefault(); + // return ui.label; + } + }); + self.$inputFilter.placeComplete('search',""); + firstComplete = false; + }else{ + + self.$inputFilter.placeComplete('search',""); + } + + }; + + /** + * the ID value of the timer that is set + */ + self.timeout; + self.$inputFilter.attr('autocomplete', 'on'); + + self.$inputFilter.on('keyup', function (event) { + text = $(this).val(); + event.stopImmediatePropagation(); + clearTimeout(self.timeout); + + if (text.length > 2 && firstComplete){ + self.timeout = setTimeout(function () { + getRequest({'term':text, 'form':form}, self.opt.autoCompleteUrl, requestHandler); + firstComplete = false; + }, 1000); + + }else if(text.length == 0 && !firstComplete){ + if(self.$inputFilter.hasClass('ui-autocomplete-input')){ + + self.$inputFilter.placeComplete( "destroy" ); + firstComplete = true; + } + } + return false; + }).click(function () { + return false; + }); + + }, + /** + * render first level sublist + * @param {Object} dataObj + * @param {number|string} tmplId + * @param {function} handler + * @private + */ + _renderSublist: function (dataObj, tmplId, handler) { + var self = this, + index = 0, + template = tmplId + '-sub', + ajaxHandler = function (data) { + if(data.length){ + + self.sublist[template] = {}; + + // for dna.clone definition see dnajs.org + for (index ; index < data.length; index++) { + self.sublist[template][data[index].id] = dna.clone(tmplId, data[index]); + + } + handler(data.length); + }else{ + $waiter.hide(); + } + }; + self._getAjax(dataObj, ajaxHandler); + }, + /** + * if there is no children element in list, loads ITS Children sublist + * @param {Object} data - current (children) object data + * @param {number|string} handler + * @param {function} counter + * @private + */ + _loadParentTree: function (data, handler, counter) { + var self = this, + dataObj = data, + optObj, sublistTemplateId, nestedObj,nestedSublistTemplateId, + /** + * makes request in order to recieve children list information fires after request for parent list + * @param {number} length + * @function + */ + handlerParent = function (){ + $waiter.hide(); + counter||counter===0?handler(counter):handler(); + }; + $waiter.show(); + + + optObj = { + name:dataObj.name, + id:dataObj.id + }; + sublistTemplateId = $('#tid_'+dataObj.id).closest('.level').children('.trigger').attr('data-template-id'); + self._renderSublist(optObj,sublistTemplateId,handlerParent); + + + }, + /** + * destroy tag and clear tags block.for dna.clone definition see dnajs.org + * @param {string} checkboxId + * @private + */ + _destroyTag:function(checkboxId){ + var self = this; + if(self.itemsSelected[checkboxId]){ + dna.destroy(self.itemsSelected[checkboxId]); + + } + }, + /** + * for dna.clone definition see dnajs.org + * @param {number} checkboxId + * @param {Object} tplObj + * @private + */ + _addTag: function (checkboxId, tplObj) { + var self = this; + self.itemsSelected[checkboxId] = dna.clone(self.opt.selectedItemTemplate,tplObj); + }, + /** + * hide or show sublists according active selected link + * @param {*|jQuery|HTMLElement} $sublist + * @param {*|jQuery|HTMLElement} $this + * @private + */ + _slideToggle:function ($sublist, $this){ + if($sublist.hasClass('hidden')){ + $sublist.removeClass('hidden'); + $this.addClass('active'); + }else{ + $sublist.addClass('hidden').find('ul').addClass('hidden'); + $this.removeClass('active'); + } + + }, + /** + * reset all selected items, uncheck all selected checkboxes + * @public + */ + resetList: function () { + var self = this; + for (var key in self.itemsSelected) { + if (self.itemsSelected.hasOwnProperty(key)) { + $('#'+key, self.$selfContainer).prop('checked', false).trigger('change'); + + dna.destroy(self.itemsSelected[key]); + + } + } + $('.level.active',self.$modalInst).removeClass('active'); + self.$selectedItemsWrap.removeClass('visible'); + $(this.$modalInst).find('input:checkbox:checked').prop('checked',false); + + }, + // кнопка применить + applyHandler: function (it) { + $waiter.show(); + }, + /** + * select particular item and render its tag and check checkbox + * @param {Object} item + * @public + */ + selectTag:function (item) { + //check of repeating execution + var firstTime = true, + self = this, + waitHandler = function () { + self.isReceived = false; + if(!item.children){ + + for (var prop in self.itemsSelected) { + if (prop == 'tid_'+item.id){ + firstTime = false; + } + + } + if($('#tid_'+item.id+':checked').length){ + firstTime = false; + } + if(firstTime){ + self.check(item.id, item.name); + self.isReceived = true; + }else{ + $('#tid_' + item.id).prop('checked', true); + $('#tid_' + item.id).trigger('change'); + self.isReceived = true; + + } + }else{ + if($('#tgid_'+item.children.id).length){ + firstTime = false; + } + //Если выбран родитель + if($('#tid_'+item.id+':checked').length){ + firstTime = false; + } + if(firstTime) { + + self._loadParentTree({name: item.name, id: item.id}, function () { + self.check(item.children.id, item.children.name); + self.isReceived = true; + + }); + }else if(!$('#tgid_'+item.id+':checked').length){ + + $('#tgid_' + item.children.id).prop('checked', true); + $('#tgid_' + item.children.id).trigger('change'); + self.isReceived = true; + + } + } + + }; + this.wait(waitHandler); + }, + /** + * waits so far the previous request will be executed and execute a method + * @param {function} method + * @param {Object|Array} args + * @public + */ + wait:function(method, args) { + var self = this, + waitImages, + waitHandler = function(self, method, args) { + if (self.isReceived) { + if (args) { + method(args); + } + else{ + method(); + } + clearInterval(waitImages); + } + }; + waitImages = setInterval(function() {waitHandler(self, method, args)}, 100); + } + + + }; + + /** + * Constructor for modal window 'select place' + * @param {Object} options + * @constructor + */ + var PlacesModal = function(options){ + /** + * object properties + * @type {Object} + */ + this.opt = options; + var self = this, + $modal = $('#'+self.opt.id), + $checkBox = $('input[type="checkbox"]', $modal), + $selectedItemsWrap = $('.csb-selected-items',$modal), + DOMTagsWrapper = $('.csb-selected-items',$modal)[0], + $modalTrigger = $('#'+self.opt.modalTrigger), + applyBtnClass = self.opt.applyBtnClass, + idPrefix = 'id_', + /** + * set trigger link text under the search field + * @function + */ + triggerSetText = function () { + var selectedString, + cutLength = 16; + if($(window).width() < 1086){ + cutLength = 6; + } + selectedString = getSelectedToString(self.opt.selectedItemsContainer,cutLength); + if(selectedString && selectedString != '~~text~~' && selectedString != '~~text~~...'){ + $modalTrigger.text(selectedString); + $modalTrigger.siblings('.'+self.opt.clearAllButtonClass).addClass('active'); + + }else{ + $modalTrigger.text($modalTrigger.data('default')); + $modalTrigger.siblings('.'+self.opt.clearAllButtonClass).removeClass('active'); + + } + }; + /** + * current template instances + * @type {Object} + */ + this.curDNA = {}; + /** + * place modal list items that had selected + * @type {Object} + */ + this.itemsSelected = {}; + this.selectedWrap = $selectedItemsWrap; + this.$selfContainer = $modal; + this.$modal = $modal; + this.idPrefix = idPrefix; + /** + * flag for management of turn of asynchronous requests + * @type {boolean} + */ + this.isReceived = true; + + /** + * Jquery object of filtering input (autocomplete input) + * @type {*|jQuery|HTMLElement} + */ + this.$inputFilter = $('#'+self.opt.filterInputId); + $(function () { + self._autocompleteInit(); + $modal.on('click', 'a.trigger', function () { + var name = $(this).attr('data-name'), + id = $(this).attr('data-id'), + that = this, + tmplId = $(this).attr('data-template-id'), + $sublist = $(this).siblings('.dna-container'), + afterRenderHandler = function (elem, data) { + var DOMParent = common.closest(that,'level'), + DOMParentCheckbox = DOMParent.querySelector('.csb-menu-input'); + $('.csb-menu-input', $sublist).each(function () { + var DOMCheckboxWrap = common.closest(this,'custom-radio-check'); + if(!this.checked){ + + if(DOMParentCheckbox.checked){ + this.checked = true; + common.addClass(DOMCheckboxWrap,'active'); + } + }else{ + if(!DOMParentCheckbox.checked){ + + this.checked = false; + common.removeClass(DOMCheckboxWrap,'active'); + } + } + }); + $waiter.hide(); + + }; + // no more than once execution + if($(this).attr('data-sub') == 'true'){ + if($(this).parent().hasClass('level1')){ + + if(!$sublist.children().length){ + $waiter.show(); + self._renderSublist({name:name,id:id}, tmplId, afterRenderHandler); + }else{ + //slideUp & Down stuff + self._slideToggle($sublist, $(this).parent()); + } + }else if($(this).parent().hasClass('level2')){ + if(!$sublist.children().length){ + self._renderNested({name:name,id:id}, afterRenderHandler, tmplId, id); + $(this).parent().addClass('active'); + } + else{ + //slideUp & Down stuff + self._slideToggle($sublist, $(this).parent()); + } + } + } + return false; + }); + + $checkBox.on('change', function (event, param) { + + var id = this.getAttribute('id'), + fakeCheckboxClass = 'custom-radio-check', + fakeCheckbox = common.closest(this, fakeCheckboxClass), + itemClass = 'level', + activeClass = 'active', + sublistClass = 'sublist', + checkboxClass = 'csb-menu-input', + highestItemClass = 'level1', + tagClass = 'csb-selected', + tagButtonClass = 'csbs-del', + triggerClass = 'trigger', + tagIdAttribute = 'data-checkbox-id', + + DOMParentRow = common.closest(this, itemClass), + + DOMParentItem = common.hasClass(DOMParentRow, highestItemClass) == false?common.closest(DOMParentRow.parentNode, itemClass):DOMParentRow, + DOMParentCheckbox = DOMParentItem.querySelector('.'+checkboxClass), + DOMSublist = DOMParentItem.querySelector('.'+sublistClass), + DOMSublistInner = DOMParentRow.querySelector('.'+sublistClass), + DOMHighestItem = common.closest(this, highestItemClass), + DOMHighestCheckbox = DOMHighestItem.querySelector('.'+checkboxClass), + DOMHighestSublist = DOMHighestItem.querySelector('.'+sublistClass), + + selectSublist = function (it) { + var DOMParentItem = common.closest(it, itemClass) || this, + DOMSublist = DOMParentItem.querySelector('.'+sublistClass); + $('.'+checkboxClass, DOMSublist).each(function () { + selectItem(this); + }); + + }, + unSelectSublist = function (it) { + var DOMParentItem = common.closest(it, itemClass) || this, + DOMSublist = DOMParentItem.querySelector('.'+sublistClass); + $('.'+checkboxClass, DOMSublist).each(function () { + unSelectItem(this); + + }); + + }, + selectParent = function (it) { + var DOMParentRow = common.closest(it, itemClass), + DOMParentItem; + if(common.hasClass(DOMParentRow,'level1')){ + DOMParentItem = DOMParentRow; + }else{ + DOMParentItem = common.closest(DOMParentRow.parentNode, itemClass); + } + + common.addClass(DOMParentItem.querySelector('.'+fakeCheckboxClass), activeClass); + DOMParentItem.querySelector('.'+checkboxClass).checked = true; + + //it.selected = true; + + }, + unSelectParent = function (it) { + var DOMParentRow = common.closest(it, itemClass), + DOMParentItem = common.closest(DOMParentRow.parentNode, itemClass) || DOMParentRow; + + common.removeClass(DOMParentItem.querySelector('.'+fakeCheckboxClass), activeClass); + DOMParentItem.querySelector('.'+checkboxClass).checked = false; + //it.checked = false; + + }, + selectItem = function (it) { + var itFakeCheckbox = common.closest(it, fakeCheckboxClass); + common.addClass(itFakeCheckbox, activeClass); + it.checked = true; + common.addClass(DOMParentItem,activeClass); + common.removeClass(DOMSublist,'hidden'); + + }, + unSelectItem = function (it) { + var itFakeCheckbox = common.closest(it, fakeCheckboxClass), + DOMitem = common.closest(it, itemClass); + common.removeClass(itFakeCheckbox, activeClass); + it.checked = false; + // if there is children items + if(DOMitem.querySelector('.'+sublistClass) && !common.hasClass(DOMitem,highestItemClass)){ + unSelectSublist(it); + } + }, + allChildrenSelected = function () { + //var DOMselected = DOMSublist.querySelectorAll('.'+checkboxClass+':checked'), + var DOMSublistParent = common.closest(DOMSublist,sublistClass), + $selected = $(DOMSublist).children('li').children('.'+fakeCheckboxClass).find('.'+checkboxClass+':checked'), + selectedCount = $selected.length, + //allCount = DOMSublist.querySelectorAll('.'+checkboxClass).length; + allCount = $(DOMSublist).children('li').children('.'+fakeCheckboxClass).find('.'+checkboxClass).length; + + if(allCount == selectedCount && selectedCount != 0){ + return true; + } else{ + return false; + } + }, + allHighestSelected = function () { + //var DOMselected = DOMSublist.querySelectorAll('.'+checkboxClass+':checked'), + var $selected = $(DOMHighestSublist).children('li').children('.'+fakeCheckboxClass).find('.'+checkboxClass+':checked'), + selectedCount = $selected.length, + allCount = $(DOMHighestSublist).children('li').children('.'+fakeCheckboxClass).find('.'+checkboxClass).length; + + if(allCount == selectedCount && selectedCount != 0){ + return true; + } else{ + return false; + } + }, + parentSelected = function () { + var parentCheckbox = DOMParentItem.querySelector('.'+checkboxClass); + if(parentCheckbox.checked){ + return true; + }else{ + return false; + } + + }, + // Функционал добавления тегов: если есть в панели выбранный элемент либо его дочерние то удалить эти эдементы; + refreshTags = function (it) { + var DOMSublist = common.closest(it,sublistClass); + var DOMItem = common.closest(it,itemClass); + var DOMSublistInner = DOMItem.querySelector('.'+sublistClass); + var DOMAllTags = DOMTagsWrapper.querySelectorAll('.'+tagClass); + var ARRsublist; + var ARRsublistChildren = DOMSublist.querySelector('.'+sublistClass)?$('.'+checkboxClass+':checked',DOMSublist.querySelector('.'+sublistClass)):null; + var ARRsublistChildrenLength = ARRsublistChildren?ARRsublistChildren.length:null; + var ARRSublistIds = []; + var ARRAllTagsIds = []; + var allTagsLength = 0; + var sublistIdsLength = 0; + var itId = it.getAttribute('id'); + var i = 0, j= 0, t= 0, tmp, k = 0; + var tagId; + var tagText = DOMParentRow.querySelector('.'+triggerClass).innerHTML; + + // если есть дочерние элементы + if(DOMSublistInner){ + ARRsublist = $(DOMSublistInner).children('li').children('.'+fakeCheckboxClass).find('.'+checkboxClass+':checked') + //получаем массив id жлементовЮ для которых есть тег + for(k; k < ARRsublist.length; k++){ + tmp = ARRsublist[k].getAttribute('id'); + ARRSublistIds.push(tmp); + } + //очистк + for(t; t 2 && firstComplete){ + self.timeout = setTimeout(function () { + getRequest({'term':text, 'form':form}, self.opt.autoCompleteUrl, requestHandler); + firstComplete = false; + }, 1000); + + }else if(text.length == 0 && !firstComplete){ + if(self.$inputFilter.hasClass('ui-autocomplete-input')){ + + self.$inputFilter.autocomplete( "destroy" ); + firstComplete = true; + } + } + return false; + }).click(function () { + return false; + }); + + }, + /** + * loads and shows list tree related to selected id + * @param {Object} data - is JSON object with information about parent elements.({text: "Германия", id: 47, parent: {text: "Европа", id: 4, name: "area"}, name: "co"}) + * @param {function} handler - callback function + * @param {number} counter + * @private + */ + _loadParentTree: function (data, handler, counter) { + var self = this, + dataObj = data, + optObj, sublistTemplateId, nestedObj,nestedSublistTemplateId, + $midleLevelCheckbox = $('#id_'+dataObj.id), + /** + * makes request in order to recieve children list information fires after request for parent list + * @param {number} length - the number of received elements + * @function + */ + handlerNested = function (length) { + var $checkbox = $('#id_'+dataObj.id), + index = 0, + afterAll = function (number) { + $waiter.hide(); + index++ + if(index == number){ + + counter||counter===0?handler(counter):handler(); + } + }; + $waiter.hide(); + if($checkbox.length && getObjectLength(self.curDNA[sublistTemplateId+'-sub']) == length){ + + nestedObj = { + name:dataObj.name, + id:dataObj.id + }; + $waiter.show(); + nestedSublistTemplateId = $('#id_'+dataObj.id).closest('.level').children('.trigger').attr('data-template-id'); + self._renderNested(nestedObj, afterAll, nestedSublistTemplateId, dataObj.id); + } + + }, + /** + * @function + */ + handlerParent = function (){ + $waiter.hide(); + counter||counter===0?handler(counter):handler(); + }; + $waiter.show(); + //if element has parent element + if(dataObj.hasOwnProperty('parent')){ + //if checbox is existed + if($midleLevelCheckbox.length){ + nestedObj = { + name:dataObj.name, + id:dataObj.id + }; + nestedSublistTemplateId = $midleLevelCheckbox.closest('.level').children('.trigger').attr('data-template-id'); + self._renderNested(nestedObj, function(){$waiter.hide();handler();}, nestedSublistTemplateId, dataObj.id); + }else{ + + optObj = { + name:dataObj.parent.name, + id:dataObj.parent.id + }; + sublistTemplateId = $('#id_'+dataObj.parent.id).closest('.level').children('.trigger').attr('data-template-id'); + self._renderSublist(optObj,sublistTemplateId,handlerNested); + } + + + }else{ + optObj = { + name:dataObj.name, + id:dataObj.id + }; + sublistTemplateId = $('#id_'+dataObj.id).closest('.level').children('.trigger').attr('data-template-id'); + self._renderSublist(optObj,sublistTemplateId,handlerParent); + } + + }, + /** + * @param it + * @public + */ + applyHandler: function (it) { + console.log(this); + + }, + _refreshText: function () { + var selectedString, + $modalTrigger = $('#'+this.opt.modalTrigger), + cutLength = 16; + selectedString = getSelectedToString(this.opt.selectedItemsContainer,cutLength); + if(selectedString && selectedString != '~~text~~' && selectedString != '~~text~~...'){ + $modalTrigger.text(selectedString); + $modalTrigger.siblings('.'+this.opt.clearAllButtonClass).addClass('active'); + + }else{ + $modalTrigger.text($modalTrigger.data('default')); + $modalTrigger.siblings('.'+this.opt.clearAllButtonClass).removeClass('active'); + + } + } + }; + + /** + * period selector modal window + * @param {Object} options + * @constructor + */ + var PeriodModal = function (options) { + this.opt = options; + var self = this, + $dateFrom = $('#'+self.opt.dateFrom), + $dateTo = $('#'+self.opt.dateTo), + $modal = $('#'+self.opt.id), + $modalTrigger = $('#'+self.opt.modalTrigger), + applyBtnClass = self.opt.applyBtnClass, + $activeField, + /** + * make string from input:text values + * @returns {string} + * @function + */ + inputsTostring = function(){ + var self = this, + stringToReturn = '', + toChar = $modalTrigger.data('lng-to'), + fromChar = $modalTrigger.data('lng-from'), + toVal = $.trim($dateTo.val()), + fromVal = $.trim($dateFrom.val()); + if(toVal != ''&& fromVal != ''){ + if($(window).width() < 1086){ + stringToReturn = fromChar+': '+fromVal+'
'+toChar+': '+toVal+'.'; + }else{ + stringToReturn = fromChar+': '+fromVal+' '+toChar+': '+toVal+'.'; + } + } else if (toVal != ''&& fromVal == ''){ + stringToReturn = toChar+': '+toVal+'.'; + } else if (toVal == ''&& fromVal != ''){ + stringToReturn = fromChar+': '+fromVal+'.'; + } + return stringToReturn; + + }, + /** + * set trigger link text + * @param {string} selectedString + * @function + */ + triggerSetText = function (selectedString) { + var cutLength = 24; + if($(window).width() < 1086){ + cutLength = 6; + } + + if(selectedString != ''){ + $modalTrigger.html(selectedString).siblings('.trigger-label').addClass('hidden'); + $modalTrigger.siblings('.'+self.opt.clearAllButtonClass).addClass('active'); + + + }else{ + $modalTrigger.html($modalTrigger.data('default')).siblings('.trigger-label').removeClass('hidden'); + $modalTrigger.siblings('.'+self.opt.clearAllButtonClass).removeClass('active'); + } + }, + /** + * checks and corrects value of fields of a modal and corrects values so that in the field from always there was a date "to" (less) date in the field "on" + * @param it + * @function + */ + checkInterval = function (it) { + var itId = it.getAttribute('id'), + itVal = it.value, + itValInt = Date.parse(itVal), + thatId, + thatVal, + thatValInt, + bfr; + + /** + * check if it is a valid date + */ + if (self.validate()){ + $(it).parent('.pwf-field').removeClass('err'); + if(itId == self.opt.dateFrom){ + thatId = $dateTo[0].getAttribute('id'); + thatVal = $dateTo[0].value; + }else { + thatId = $dateFrom[0].getAttribute('id'); + thatVal = $dateFrom[0].value; + } + thatValInt = Date.parse(thatVal); + /** + * swap values between date fields + */ + if(itValInt > thatValInt && itId == self.opt.dateFrom){ + bfr = document.getElementById(itId).value; + document.getElementById(itId).value = document.getElementById(thatId).value; + document.getElementById(thatId).value = bfr; + }else if(itValInt < thatValInt && itId == self.opt.dateTo){ + bfr = document.getElementById(thatId).value; + document.getElementById(thatId).value = document.getElementById(itId).value; + document.getElementById(itId).value = bfr; + } + } + + }; + this.$dateFrom = $dateFrom; + this.$dateTo = $dateTo; + this.$modalTrigger = $modalTrigger; + + $(function () { + $.datepicker.setDefaults($.datepicker.regional["ru"]); + + $dateFrom.datepicker({ + dateFormat: 'dd.mm.yy', + showOn: 'button', + showOtherMonths: true, + constrainInput: true, + onClose: function( selectedDate ) { + $dateTo.datepicker( "option", "minDate", selectedDate ); + } + }).inputmask("99.99.9999",{ + showMaskOnHover:false, + insertMode:false, + 'oncomplete': function () { + $activeField = this; + } + }); + $dateTo.datepicker({ + dateFormat: 'dd.mm.yy', + showOn: 'button', + showOtherMonths: true, + constrainInput: true, + onClose: function( selectedDate ) { + $dateFrom.datepicker( "option", "maxDate", selectedDate ); + } + }).inputmask("99.99.9999",{ + showMaskOnHover:false, + insertMode:false, + 'oncomplete': function () { + $activeField = this; + } + }); + $('input[type="text"]',$modal).on('change', function () { + var stringToset = inputsTostring(); + if (self.validate()){ + triggerSetText(stringToset); + } + + }); + $('.'+applyBtnClass, $modal).on('click', function () { + if($activeField){ + checkInterval($activeField); + } + self.applyHandler(this); + return false; + }); + $modalTrigger.siblings('.'+self.opt.clearAllButtonClass).on('click', function () { + $(this).removeClass('active'); + self.resetList(); + }); + }); + + }; + /** + * methods + * @type {{resetList: Function, applyHandler: Function}} + */ + PeriodModal.prototype = { + /** + * clear all input fields of modal window + * @public + */ + resetList: function () { + this.$dateFrom.val(''); + this.$dateTo.val(''); + this.$modalTrigger.text(this.$modalTrigger.attr('data-default')); + + }, + /** + * checks input fields to have valid date values, if not - adds err class to its container + * @returns {boolean} + */ + validate: function () { + var toVal = this.$dateTo.val(), + fromVal = this.$dateFrom.val(), + toValArr = toVal.split('.'), + fromValArr = fromVal.split('.'), + timestamps =[], + validationResult = true; + timestamps[0] = Date.parse(toValArr[1]+'.'+toValArr[0]+'.'+toValArr[2]); + timestamps[1] = Date.parse(fromValArr[1]+'.'+fromValArr[0]+'.'+fromValArr[2]); + + if (!timestamps[0] && $.trim(toVal) != ''){ + this.$dateTo.parent('.pwf-field').addClass('err'); + validationResult = false; + }else{ + this.$dateTo.parent('.pwf-field').removeClass('err'); + } + + if (!timestamps[1] && $.trim(fromVal) != ''){ + this.$dateFrom.parent('.pwf-field').addClass('err'); + validationResult = false; + }else{ + this.$dateFrom.parent('.pwf-field').removeClass('err'); + + } + return validationResult; + + }, + applyHandler: function (it) { + } + }; + /** + * constructor for main searchfield + * @param {Object} options + * @constructor + */ + var MainField = function (options) { + this.opt = options; + this.opt.anyChar = false; + var self = this, + firstComplete = true; + this.$field = $('#'+self.opt.id); + /** + * much faster than JQuery + * @type {HTMLElement} + */ + this.DOMcompleteWrap = document.getElementById(self.opt.autoCompleteWrapId); + this.afterClear; + /** + * data from ajax response + * @type {{items: Array, set: Function, get: Function, _rawDataChange: Function}} + */ + this.rawData = { + items:[], + /** + * setter + * @param data + * @public + */ + set:function (data) { + this.items = data; + this._rawDataChange(); + }, + /** + * get data + * @returns {*} + * @public + */ + get: function () { + return this.items; + }, + /** + * executes when this.rawData changes + * @param {Object} e + * @private + */ + _rawDataChange: function (e) { + var self = this, index; + for(index = 0; index < self.items.length; index++) { + renameProperty(self.items[index],'text','label') + renameProperty(self.items[index],'id','value') + } + } + }; + this.completeName = 'autocomplete'; + this.firstComplete = true; + this.$field.attr('autocomplete','off'); + + /** + * the ID value of the timer that is set + */ + this.timeout; + //autocomplete behaviour + self.$field.on('keyup', function (event) { + var reqObj; + text = $(this).val(); + event.stopImmediatePropagation(); + clearTimeout(self.timeout); + if(self.dataForm){ + reqObj = { + 'term':text, + 'form':self.dataForm + } + }else{ + reqObj = { + 'term':text + } + } + if(self.opt.anyChar){ + if (text.length > 2){ + self.timeout = setTimeout(function () { + getRequest(reqObj, self.opt.autoCompleteUrl, function (data) { + if(self.$field.hasClass('ui-autocomplete-input')){ + self.$field[self.completeName]( "destroy" ); + + } + self.rawData.set(data); + self._initAutoComplete(); + self.showList(''); + }); + }, 1000); + + } else if(text.length === 0){ + if(self.$field.hasClass('ui-autocomplete-input')){ + self.$field[self.completeName]( "destroy" ); + common.removeClass(self.DOMcompleteWrap,'full-visible'); + self._resetmodals(self.afterClear); + } + } + }else{ + if (text.length > 2 && firstComplete){ + self.timeout = setTimeout(function () { + getRequest(reqObj, self.opt.autoCompleteUrl, function (data) { + self.rawData.set(data); + self._initAutoComplete(); + self.showList(''); + }); + firstComplete = false; + }, 1000); + + }else if(text.length == 0 && !firstComplete){ + if(self.$field.hasClass('ui-autocomplete-input')){ + + self.$field[self.completeName]( "destroy" ); + common.removeClass(self.DOMcompleteWrap,'full-visible'); + self._resetmodals(self.afterClear); + firstComplete = true; + } + }else{ + if(self.$field.hasClass('ui-autocomplete-input')){ + self.showList(text); + + } + } + + } + //for autocomplete on each keypress + //for normal flow autocomplete + return false; + }).click(function () { + return false; + }); + + + + }; + /** + * methods + * @type {{_initAutoComplete: Function, _afterSelect: Function, _resetmodals: Function, selectHandler: Function, newRender: Function, selectCheckBoxes: Function, showList: Function, pullData: Function}} + */ + MainField.prototype = { + /** + * Jquery autocomplete initialization and autocomplete functionality on this.$field + * @private + */ + _initAutoComplete: function () { + var self = this; + self.$field[self.completeName]({ + source:self.rawData.get(), + minLength: 0, + appendTo:self.DOMcompleteWrap, + select:function(event, ui){ + self._afterSelect(event, ui); + }, + close: function () { + common.removeClass(self.DOMcompleteWrap,'full-visible'); + + + }, + open: function () { + common.addClass(self.DOMcompleteWrap,'full-visible'); + } + }); + + }, + /** + * fires after autocomplete is done and user selects item in it + * @param {Object} event + * @param {Object} ui + * @private + */ + _afterSelect: function (event, ui) { + var self = this; + event.preventDefault(); + // much faster than jquery + if(ui.item.url){ + window.location = ui.item.url; + } else if(ui.item.label.length){ + self.$field[0].value = ui.item.label; + self.selectCheckBoxes(ui.item.id, ui.item.name); + } + + }, + /** + * method fires callback when field is cleared + * @param {function} callback + * @returns {number} + * @private + */ + _resetmodals: function (callback) { + if(callback){ + callback(); + }else{ + return 0; + } + + }, + /** + * public property for redefine _afterSelect + * @public + */ + selectHandler: function () { + + }, + /** + * this property must be redefined for each individual instances of MainField Object + * select checkboxes if there is coincidence with search result and modal subject modal window + * @param {number} id + * @param {string} name + * @public + */ + selectCheckBoxes: function (id, name) { + + }, + /** + * simple shows out autocomplete list + * @param {string} text + */ + showList: function (text) { + self = this; + this.$field[self.completeName]('search',text); + + }, + /** + * brings data from server and transfer it to handler function + * @param {function} handler + */ + pullData: function (handler) { + + }, + clearValue: function () { + this.$field.val(''); + } + + }; + + /** + * whole module initialization + * @param {Object} options + * @public + */ + that.init = function(options) { + // settings extending + $.extend(this.lang, options.lang); + options.lang = null; + $.extend(this.settings, options); + // begin of initialization + var self = this, + submitHandler = function () { + $(self.DOMform).find('input[name="~~name~~"]').remove(); + }; + if(this.settings.searchData != 'None' && this.settings.searchData){ + this.previousSearch = JSON.parse(this.settings.searchData) + + } + this.DOMform = document.getElementById(this.settings.formId); + + $(this.DOMform).on('submit', function () { + submitHandler(); + }); + + // custom autocomplete realization for exibition input + $.widget( "custom.exibitionComplete", $.ui.autocomplete,{ + _renderMenu: function( ul, items ) { + var that = this, + currentCategory = ""; + $.each( items, function( index, item ) { + if ( item.cat != currentCategory && item.cat) { + ul.append( "
  • " + item.cat + "
  • " ); + currentCategory = item.cat; + } + that._renderItemData( ul, item ); + }); + } + }); + $.widget( "custom.exibitionComplete", $.ui.autocomplete,{ + _renderMenu: function( ul, items ) { + var that = this, + currentCategory = ""; + $.each( items, function( index, item ) { + if ( item.cat != currentCategory && item.cat) { + ul.append( "
  • " + item.cat + "
  • " ); + currentCategory = item.cat; + } + that._renderItemData( ul, item ); + }); + } + }); + $.widget( "custom.placeComplete", $.ui.autocomplete,{ + _renderItem: function( ul, item ) { + return $( "
  • " ) + .append( $( "" ).text( item.label) ) + .append(' ('+item.cat+')') + .appendTo( ul ); + } + }); + this.exhibitionField = new MainField(self.settings.firstField); + this.exhibitionField.completeName = 'exibitionComplete'; + + this.exhibitionField.opt.anyChar = true; + + + //modal windows + this.placesModal = new PlacesModal(self.settings.place); + this.subjModal = new SubjectModal(self.settings.subject); + this.periodModal = new PeriodModal(self.settings.period); + this.exhibitionField.selectCheckBoxes = function (id, name) { + var self = this, + DOMCheckboxes, + nestedObj, + iName = name; + if(name == 'th'){ + DOMCheckboxes = document.getElementById(self.opt.prefix+id); + + }else if(name == 'tg'){ + DOMCheckboxes = document.getElementById(self.opt.prefixInner+id); + iName = 'th'; + + } + $waiter.show(); + // load tree related to selected item + if (!DOMCheckboxes) { + nestedObj = { + name:name, + id:id + }; + EXPO.searchBlock.subjModal.resetList(); + getRequest(nestedObj, EXPO.searchBlock.subjModal.opt.getParentUrl, function (data) { + + EXPO.searchBlock.subjModal._loadParentTree(data, function(){ + + EXPO.searchBlock.subjModal._checkCheckBox(id, name); + }); + }); + } else{ + $waiter.hide(); + EXPO.searchBlock.subjModal.resetList(); + $(DOMCheckboxes).prop('checked', true); + $(DOMCheckboxes).trigger('change'); + } + }; + + this.placesField = new MainField(self.settings.placeField); + this.placesField.dataForm = EXPO.searchBlock.placesModal.$inputFilter.attr('data-form'); + this.placesField.selectCheckBoxes = function(id,name){ + var self = this, + DOMCheckboxes, + nestedObj; + DOMCheckboxes = document.getElementById(self.opt.prefix+id); + if (!DOMCheckboxes) { + nestedObj = { + name:name, + id:id + }; + EXPO.searchBlock.placesModal.resetList(); + getRequest(nestedObj, EXPO.searchBlock.placesModal.opt.getParentUrl, function (data) { + + EXPO.searchBlock.placesModal._loadParentTree(data, function(){ + + EXPO.searchBlock.placesModal._checkCheckBox(id, true); + }); + }); + } else{ + $waiter.hide(); + EXPO.searchBlock.placesModal.resetList(); + + $(DOMCheckboxes).prop('checked', true); + $(DOMCheckboxes).trigger('change'); + } + }; + + // uncheck all checboxes in modal and clear label beneath searchfield + this.exhibitionField.afterClear = function () { + self.subjModal.resetList(); + }; + this.placesField.afterClear = function () { + self.placesModal.resetList(); + }; + //модальное окно + this.modalWindow = new common.Modal(self.settings.modal); + + this.periodModal.applyHandler = function () { + if(this.validate()){ + $waiter.show(); + $(self.DOMform).submit(); + } + + }; + this.placesModal.applyHandler = function () { + $waiter.show(); + $(self.DOMform).submit(); + }; + this.subjModal.applyHandler = function () { + $waiter.show(); + $(self.DOMform).submit(); + }; + + // + // modal window calling + $('.'+self.settings.modalTriggerClass).on('click', function (event) { + event.preventDefault(); + self.modalWindow.pullData(this.getAttribute('href')); + self.modalWindow.open(); + return false; + }); + + // заполнение полей предыдущими значениями + $(function () { + if(self.previousSearch){ + for (var i = 0; i < self.previousSearch.inputs.length; i++) { + // окно выбора тематики + if (self.previousSearch.inputs[i].name == 'th'){ + self.subjModal.selectTag(self.previousSearch.inputs[i]); + + // окно выбора мест + } else if (self.previousSearch.inputs[i].name == 'area'){ + + if(self.previousSearch.inputs[i].children && self.previousSearch.inputs[i].children.children){ + self.placesModal.selectTag(self.previousSearch.inputs[i].children.children); + + }else if (self.previousSearch.inputs[i].children){ + self.placesModal.selectTag(self.previousSearch.inputs[i].children); + + + } else if(self.previousSearch.inputs[i]){ + self.placesModal.selectTag(self.previousSearch.inputs[i]); + } + } + } + + } + }); + + + }; + + return that; + }()); +} \ No newline at end of file diff --git a/static/client/js/_modules/page.about.js b/static/client/js/_modules/page.about.js new file mode 100644 index 00000000..4e04497a --- /dev/null +++ b/static/client/js/_modules/page.about.js @@ -0,0 +1,96 @@ +var EXPO = EXPO || {}; //isolated namespace +if (EXPO.about) { + console.warn('WARNING: EXPO.about is already defined!'); +} else { + EXPO.about = (function () { + /** + * private (visible inside this module only) variables + */ + /** + * @type {Object} - module API interafce realization + */ + var that = {}; + /** + * @type {Object} default setting + */ + that.opt = {}; + /** + * dependencies.Place where you can switch on dependencies for module + * @type {EXPO.common|*} - mostly used in project functions and data (block.common.js) + */ + var com = EXPO.common; + + /** + * tabs object constructor + * @param options - options (id's and classes to specifie HTML elements) + * @constructor + */ + var Tabs = function (options) { + this.opt = options; + var self = this, + opt = this.opt, + tabClass = opt.tabClass, + activeClass = opt.activeClass; + /** + * tabs navigation menu + * @type {*|jQuery|HTMLElement} + * @public + */ + this.$tabsList = $('#'+opt.listId); + /** + * tabs body container + * @type {*|jQuery|HTMLElement} + * @public + */ + this.$tabs = $('#'+opt.tabsId); + /** + * short peview for content of each tabs + * @type {*|jQuery|HTMLElement} + * @public + */ + this.$tabsOpenings = $('#'+opt.tabsOpeningId); + + $('a',this.$tabsList).on('click', function () { + $(this).parent('li').addClass(activeClass).siblings().removeClass(activeClass); + var tabId = $(this).attr('href'); + tabId = tabId.replace('#',''); + self.setActive(tabId); + return false; + }); + + + }; + Tabs.prototype = { + /** + * make specified tab visible + * @param tabId - tab DOM id pararmeter + * @public + */ + setActive: function (tabId) { + var activeClass = this.opt.activeClass, + tabClass = this.opt.tabClass, + postfix = this.opt.postfix; + this.$tabs.children('.'+tabClass).hide().removeClass(activeClass); + this.$tabs.children('#'+tabId).fadeIn(function () { + $(this).addClass(activeClass) + }); + this.$tabsOpenings.children('.'+tabClass).removeClass(activeClass); + this.$tabsOpenings.children('#'+tabId+postfix).addClass(activeClass); + + } + }; + /** + * current module general initialization + * @param {Object} options - options recieved from web page view + */ + that.init = function (options) { + // settings extending + $.extend(this.opt, options); + // begin of initialization + var self = this; + this.tabs = new Tabs(this.opt.tabs); + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.advertising.js b/static/client/js/_modules/page.advertising.js new file mode 100644 index 00000000..3345c72a --- /dev/null +++ b/static/client/js/_modules/page.advertising.js @@ -0,0 +1,51 @@ +var EXPO = EXPO || {}; //isolated namespace +if (EXPO.advertising) { + console.warn('WARNING: EXPO.advertising is already defined!'); +} else { + EXPO.advertising = (function () { + /** + * private (visible inside this module only) variables + */ + /** + * @type {Object} - module API interafce realization + */ + var that = {}; + /** + * @type {Object} default setting + */ + that.opt = {}; + /** + * dependencies.Place where you can switch on dependencies for module + * @type {EXPO.common|*} - mostly used in project functions and data (block.common.js) + */ + var com = EXPO.common; + + /** + * current module general initialization + * @param {Object} options - options recieved from web page view + */ + that.init = function (options) { + /** + * default module options + * @type {Object} + */ + this.opt = { + linkClass:"advert-modal", + inputId:"id_type" + + }; + // settings extending + $.extend(this.opt, options); + // begin of initialization + var self = this, + opt = this.opt; + + $('.'+opt.linkClass).on("mousedown", function () { + $(document.getElementById(opt.inputId)).val($(this).attr("data-type-title")); + }); + + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.company.js b/static/client/js/_modules/page.company.js new file mode 100644 index 00000000..62440714 --- /dev/null +++ b/static/client/js/_modules/page.company.js @@ -0,0 +1,1052 @@ +var EXPO = EXPO || {}; //isolated namespace +//общий для всех страниц модуль Функционал общий для всех страниц +// module requires JQuery library +// protection against duplication of a module code +if (EXPO.company){ + console.warn('WARNING: EXPO.company is already defined!'); +}else{ + + EXPO.company = (function() { + // variables + var that = {}; + that.opt = { + updateFormClass:'update-profile-form' + }; //default module setting + that.lang ={}; + //dependences + var $waiter, + com = EXPO.common; + //private + /** + * Rating functional. Object stores data, HTML Instance of rating field, and can refresh its value + * @param {Object} opt - options for rating instance, like HTML Id and other + * @constructor + */ + function Rating(opt){ + this.opt = opt; + this.$inst = $('#'+opt.id); + this.value = this.$inst.text; + } + Rating.prototype = { + /** + * refreshes value of HTML instance with new. + * @param {number} newRating - new profile rating value + */ + refresh: function (newRating) { + this.value = newRating; + this.$inst.text(this.value); + } + }; + // factory for on page form objects + function Forms(){} + // methods to perform ajax responses to send and receive data from the server + Forms.prototype = { + // ajax request realization + submit: function (dataToSend) { + var self = this; + if(!dataToSend){ + dataToSend = new FormData(this.$form[0]); + } + $.ajax({ + type: 'POST', + url: self.ajaxPath, + data:dataToSend, + processData: false, + contentType: false, + success: function(data) { + self.afterSubmit(data); + if(data.success){ + EXPO.company.rating.refresh(data.rating); + } + $('#wait-ajax').fadeOut(); + } + }); + + }, + // check if there exists custom data manipulation handler and evaluate it + beforeSubmit: function (data, formName) { + var handler = this.beforeSubmitHandler, + formData = data; + if(typeof formData != "string"){ + this.formData =formData; + }else{ + this.formData = JSON.parse('{"' + decodeURI(formData).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g,'":"') + '"}'); + } + this.formId = formName; + + if(typeof handler == 'function'){ + // if particular data change required + this.formData = handler(data, formName); + this.submit(data); + $('#wait-ajax').show(); + } else{ + this.submit(data); + $('#wait-ajax').show(); + } + + }, + afterSubmit: function (data) { + var handler = this.afterSubmitHandler; + if(typeof handler == 'function'){ + handler(data); + } else{ + throw{ + name: 'Error', + message: " handler function for processing response after form submit not defined, please define it!" + }; + } + + }, + /** + * refreshes form state: if value was entered by user, then there will be label with rhis value + * or there will be prompt to enter value + * @function + * @public + */ + refreshHTML: function () { + var pureText = $.trim( this.$staticValue.text()).replace(/[^0-9a-zA-Zа-я\s]/g,'').replace( /(\d)\s/, '' ).replace(/\s+/g,''); + if(($.trim( this.$staticValue.text()) == '' || pureText == 'NoneNone') && this.$wrapper.length && this.refrashable){ + this.$editable.addClass('hidden'); + this.$editable.removeClass(EXPO.company.opt.formCurrentClass); + this.$description.removeClass('hidden'); + + }else if(this.$wrapper.length && this.refrashable){ + this.$editable.removeClass('hidden'); + this.$description.addClass('hidden'); + } + } + }; + /** + * factory object directly + * @param {String} type - type of fabricated object + * @param {String} ajaxpath - attribute action from each form html element + */ + Forms.factory = function (type, ajaxpath) { + var constr = type, + newForm; + if (typeof Forms[constr] !== 'function'){ + throw{ + name: 'Error', + message: constr + "doesen't exist" + }; + } + if(typeof Forms[constr].prototype.beforeSubmit !== "function"){ + Forms[constr].prototype = new Forms(); + } + newForm = new Forms[constr](ajaxpath); + return newForm; + }; + /** + * set of child objects that will override the factory default + */ + + Forms.name_form = function (path) { + var self = this; + this.afterSubmitHandler = function (data) { + if (data.success){ + $('#static-name-value').text($('#id_name').val()); + $('.p-editable').removeClass('pe-current'); + self.refreshHTML(); + + }else{ + this.$editable.addClass('err'); + } + }; + this.ajaxPath = path; + + }; + Forms.spec_form = function (path) { + var self = this; + this.afterSubmitHandler = function (data) { + if (data.success){ + $('#static-spec-value').html(com.nl2br($('#id_specialization').val())); + $('.p-editable').removeClass('pe-current'); + self.refreshHTML(); + + }else{ + this.$editable.addClass('err'); + } + }; + this.ajaxPath = path; + + }; + Forms.address_form = function (path) { + var self = this; + + this.afterSubmitHandler = function (data) { + if (data.success){ + $('#static-address-value').text($('#id_address_inf').val()); + $('.p-editable').removeClass('pe-current'); + self.refreshHTML(); + + }else{ + this.$editable.addClass('err'); + } + }; + this.ajaxPath = path; + + }; + Forms.social_form = function (path) { + var self = this, + $img, imgSrc, $input, inputValue,item; + this.afterSubmitHandler = function (data) { + if (data.success){ + + for (item in self.formData) { + $input = $('#id_'+item); + $input.parent('.required').removeClass('err'); + if($.trim(self.formData[item]) != '' && $input.length){ + $img = $('#img-'+item); + if($img.length){ + inputValue = $.trim($input.val()); + if ($img.parent('a').length){ + $img.parent('a').attr('href',inputValue); + imgSrc = $img.attr('src').replace('_hover',''); + $img.attr('src',imgSrc); + }else { + imgSrc = $img.attr('src').replace('_hover',''); + $img.attr('src',imgSrc); + $img.wrap(''); + } + } + }else if($input.length){ + $img = $('#img-'+item); + if ($img.parent('a').length){ + imgSrc = $img.attr('src').replace('.png','_hover.png'); + $img.attr('src',imgSrc); + $img.unwrap(); + } + + } + + } + $('.p-editable').removeClass('pe-current'); + + }else { + for (item in data.errors) { + $input = $('#id_' + item); + $input.parent('.required').addClass('err'); + $input.blur(function () { + $input.parent('.required').removeClass('err'); + self.$form.submit(); + }); + } + } + self.refreshHTML(); + + }; + this.beforeSubmitHandler = function (data, formName){ + var formData = $('#'+formName).serialize(); + + return JSON.parse('{"' + decodeURI(formData).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g,'":"') + '"}'); + + + + + }; + this.refreshHTML = function () { + console.log(this); + var fullComplete = true; + $('input:text',this.$form).each(function () { + if($.trim($(this).val()) == ''){ + fullComplete = false; + } + }); + if(fullComplete){ + $('.full-complete',this.$description).removeClass('hidden'); + $('.not-complete',this.$description).addClass('hidden'); + }else{ + $('.full-complete',this.$description).addClass('hidden'); + $('.not-complete',this.$description).removeClass('hidden'); + } + }; + this.ajaxPath = path; + + }; + Forms.phone_form = function (path) { + var self = this; + + this.afterSubmitHandler = function (data) { + if (data.success){ + $('#static-phone-value').text($('#id_phone')[0].value); + $('.p-editable').removeClass('pe-current'); + self.refreshHTML(); + } + }; + this.ajaxPath = path; + + }; + Forms.email_form = function (path) { + var mailValue; + var self = this; + + this.afterSubmitHandler = function (data) { + if (data.success){ + mailValue = $('#id_email').val(); + $('#static-email-value').attr('href', 'mailto:'+mailValue).text(mailValue); + $('.p-editable').removeClass('pe-current'); + self.refreshHTML(); + }else{ + this.$editable.addClass('err'); + } + }; + this.ajaxPath = path; + + }; + Forms.web_page_form = function (path) { + var userLink; + var self = this; + + this.afterSubmitHandler = function (data) { + if (data.success){ + userLink = $('#id_web_page').val(); + $('#static-web-page-value').attr('href',userLink).text(userLink); + $('.p-editable').removeClass('pe-current'); + self.refreshHTML(); + + } + }; + + this.ajaxPath = path; + + }; + Forms.home_form = function (path) { + var self = this; + + this.afterSubmitHandler = function (data) { + if (data.success){ + var country = $('#s2id_id_country').find('.select2-chosen').text(), + city = $('#s2id_id_city').find('.select2-chosen').text(); + $('#static-home-country').text(country); + $('#static-home-city').text(city); + $('.p-editable').removeClass('pe-current'); + self.refreshHTML(); + + } + }; + this.ajaxPath = path; + + }; + Forms.found_form = function (path) { + var currValue, + $input; + var self = this; + + this.afterSubmitHandler = function (data) { + if (data.success){ + var $fullComplete = $('.full-complete',this.$staticValue); + + $input = $('#id_foundation'); + currValue = $.trim($input.val()); + + $fullComplete.text(currValue); + + $('.p-editable').removeClass('pe-current'); + self.refreshHTML(); + + } + }; + + this.ajaxPath = path; + this.refreshHTML = function () { + var $fullComplete = $('.full-complete',this.$staticValue), + $notComplete = $('.not-complete',this.$staticValue); + if($.trim($fullComplete.text()) == ''){ + $fullComplete.addClass('hidden'); + $notComplete.removeClass('hidden'); + + }else{ + $fullComplete.removeClass('hidden'); + $notComplete.addClass('hidden'); + } + return false; + } + + }; + Forms.staff_form = function (path) { + var currValue, + $input; + var self = this; + + this.afterSubmitHandler = function (data) { + if (data.success){ + var $fullComplete = $('.full-complete',this.$staticValue); + $input = $('#id_staff_number'); + currValue = $.trim($input.val()); + $fullComplete.text(currValue); + $('.p-editable').removeClass('pe-current'); + self.refreshHTML(); + } + }; + + this.ajaxPath = path; + this.refreshHTML = function () { + var $fullComplete = $('.full-complete',this.$staticValue), + $notComplete = $('.not-complete',this.$staticValue); + if($.trim($fullComplete.text()) == ''){ + $fullComplete.addClass('hidden'); + $notComplete.removeClass('hidden'); + + }else{ + $fullComplete.removeClass('hidden'); + $notComplete.addClass('hidden'); + } + return false; + } + + }; + Forms.description_form = function (path) { + var currValue, + $input = $('#id_description'); + var self = this; + + this.afterSubmitHandler = function (data) { + if (data.success){ + var $fullComplete = $('.full-complete',this.$staticValue); + + currValue = $.trim($input.val()); + $fullComplete.html(com.nl2br(currValue)); + + $('.p-editable').removeClass('pe-current'); + self.refreshHTML(); + } + }; + + this.ajaxPath = path; + this.refreshHTML = function () { + var $fullComplete = $('.full-complete',this.$staticValue), + $notComplete = $('.not-complete',this.$staticValue); + if($.trim($fullComplete.text()) == ''){ + $fullComplete.addClass('hidden'); + $notComplete.removeClass('hidden'); + + }else{ + $fullComplete.removeClass('hidden'); + $notComplete.addClass('hidden'); + } + return false; + } + + }; + Forms.avatar_form = function (path) { + var self = this, + $input = $('#id_avatar'), + $editPhoto = $('#pic-edit-photo'), + $pickBlock = $('#pick-block'), + $form, + $avatar = $('img',$pickBlock); + /** + * callback after successful request to the server + * @param data -data object recieved from server + */ + this.afterSubmitHandler = function (data) { + if (data.success){ + + if($avatar.length){ + $avatar.attr('src', data.url); + self.refreshHTML(); + } + + + } + }; + this.beforeSubmitHandsler = function(data){ + if(typeof data != 'string'){ + self.submit(data); + $('#wait-ajax').show(); + }else{ + $form = $('#'+self.formId); + $form.off('submit'); + $form.trigger('submit'); + } + }; + $input.on('change', function () { + $(this).parents('form').submit(); + }); + + this.ajaxPath = path; + this.refreshHTML = function () { + if($.trim(this.$image.attr('src')) == this.noImageSrc){ + this.$editable.addClass('hidden'); + this.$description.removeClass('hidden'); + }else{ + this.$editable.removeClass('hidden'); + this.$description.addClass('hidden'); + } + + } + }; + Forms.tag_form = function (path) { + var self = this; + + /** + * callback after successful request to the server + * @param data -data object recieved from server + */ + this.afterSubmitHandler = function (data) { + var divider =', '; + if (data.success){ + + this.$staticValue.html(''); + for(var i=0; i < data.tags.length; i++){ + this.$staticValue.append($(""+data.tags[i].text+"")); + if(i != data.tags.length-1) { + this.$staticValue.append($(divider)); + } + } + self.refreshHTML(); + } + }; + + this.ajaxPath = path; + this.$input = $('#id_tag'); + + + this.refreshHTML = function () { + this.$label = $('.label', this.$editable); + this.$initial = $(".initial-position",this.$wrapper); + this.formId = this.$form.attr("id"); + if( $.trim(this.$input.val()) == ''){ + + //this.$form.detach().appendTo(this.$initial); + //this.$label.detach().appendTo(this.$initial); + this.$form.detach().appendTo(this.$editable); + this.$label.detach().appendTo(this.$editable); + + this.$initial.removeClass("hidden"); + this.$description.addClass("hidden"); + + }else{ + if($('#'+this.formId, this.$editable).length < 0){ + this.$form.detach().appendTo(this.$editable); + this.$label.detach().appendTo(this.$editable); + + } + this.$editable.addClass("hidden"); + this.$initial.addClass("hidden"); + this.$description.removeClass("hidden"); + } + + } + + }; + + var Map = function (opt) { + this.opt = opt; + var self = this, + canvasId = this.opt.canvasId, + initGooglemap = function () { + var mapHolder = document.getElementById(self.opt.canvasId), + input = document.getElementById(self.opt.autocompleteId); + + self.mapOptions = { + /** + * default zoom for country + */ + zoom: self.opt.zoom.country + }; + self.map = new google.maps.Map(mapHolder, self.mapOptions); + /** + * address to cordinates converter + * @type {google.maps.Geocoder} + */ + self.geocoder = new google.maps.Geocoder(); + /** + * refresh map with new data + */ + self.refresh(); + /** + * autocomplete for adress bar input + * @type {HTMLElement} + */ + var autocomplete = new google.maps.places.Autocomplete(input); + autocomplete.bindTo('bounds', self.map); + /** + * autocomplete item selected event + */ + google.maps.event.addListener(autocomplete, 'place_changed', function() { + if(!self.status.visible){ + + var place = autocomplete.getPlace(); + if (!place.geometry) { + return; + } + + /** + * If the place has a geometry, then present it on a map. + */ + if (place.geometry.viewport) { + self.map.fitBounds(place.geometry.viewport); + } else { + self.map.setCenter(place.geometry.location); + self.map.setZoom(14); + } + + self.marker.setPosition(place.geometry.location); + EXPO.company.forms.address_form.submit(); + } + + + }); + + + }; + /** + * initialize map when body loads + */ + google.maps.event.addDomListener(window, 'load', initGooglemap); + /** + * container with map itself and address static text + * @type {*|jQuery|HTMLElement} + */ + this.$wrapper= $(document.getElementById(this.opt.blockId)); + /** + * show and hide map button + * @type {*|jQuery|HTMLElement} + */ + this.$toggle = $(".map-toggle",this.$wrapper); + /** + * container with map to hide and show + * @type {*|jQuery|HTMLElement} + */ + this.$container = $(".map-wrap", this.$wrapper); + + this.status ={ + /** + * when container with map is hidden pararmeter visible = false + */ + visible:false + }; + this.$toggle.on("click", function () { + if($(this).hasClass("active")){ + self.hideMap(); + }else{ + self.showMap(); + /** + * just refresh the map drawing + */ + google.maps.event.trigger(self.map, 'resize'); + self.refresh(); + + } + return false; + }); + + + + + + }; + /** + * methods + * @type {{showMap: Function, hideMap: Function, refresh: Function}} + */ + Map.prototype = { + /** + * just show map container html tag + */ + showMap: function () { + this.$toggle.addClass("active").children(".label").text(this.$toggle.attr("data-hide-text")); + this.status.visible = true; + this.$container.removeClass("hidden"); + }, + /** + * just hide map container html tag + */ + hideMap: function () { + this.$toggle.removeClass("active").children(".label").text(this.$toggle.attr("data-show-text")); + this.status.visible = false; + this.$container.addClass("hidden"); + }, + /** + * collects dependent data and force map to refresh with that new data + */ + refresh: function () { + var self = this, + country =$("#id_country option:selected").text(), + city = $(document.getElementById("id_city")).attr("data-init-text"), + address = $.trim(document.getElementById(self.opt.autocompleteId).value), + fullAddress; + if( $.trim(country) != ''){ + this.status.visible = true; + this.$toggle.removeClass("hidden"); + if($.trim(city) == ''){ + fullAddress = country; + self.map.set("zoom",self.opt.zoom.country); + }else{ + if($.trim(address) == ''){ + fullAddress = country + ' '+city; + self.map.set("zoom",self.opt.zoom.city); + + }else{ + fullAddress = country + ' '+city+ ' '+ address; + self.map.set("zoom",self.opt.zoom.street); + + } + } + /** + * convert text adress data to lat/Ling coordinates with help of google api + */ + this.geocoder.geocode({"address":fullAddress}, function (results, status) { + if (status == google.maps.GeocoderStatus.OK){ + self.map.setCenter(results[0].geometry.location); + /** + * refresh marker position + */ + if(!self.marker){ + self.marker = new google.maps.Marker({ + map: self.map, + position: results[0].geometry.location + }); + }else{ + self.marker.set("position",results[0].geometry.location); + } + }else{ + console.log("!ERORR: Geocode was not successful for the following reason: " + status); + } + }); + }else{ + this.$toggle.addClass("hidden") + this.status.visible = false; + } + } + }; + + // module methods + //инициализация общих свойств + that.init = function(options) { + + $.extend(this.lang, options.lang); + options.lang = null; + $.extend(this.opt, options); + var self = this, + initMaskedInput = function (inputId) { + var maskList = $.masksSort($.masksLoad("/static/client/js/plugins/inputmask/phone-codes.json"), ['#'], /[0-9]|#/, "mask"), + maskOpts = { + inputmask: { + definitions: { + '#': { + validator: "[0-9]", + cardinality: 1 + } + }, + showMaskOnHover: false, + insertMode:false, + autoUnmask: true + }, + match: /[0-9]/, + insertMode:false, + replace: '#', + list: maskList, + listKey: "mask", + onMaskChange: function() { + $(this).attr("placeholder", '+_(___)___-__-__'); + } + }, + selector = '#'+inputId; + + $(selector).inputmasks(maskOpts); + + }; + this.rating = new Rating(this.opt.rating); + + this.forms = {}; + + $(function () { + var $editables = $('.'+self.opt.editableClass), + $country = $('#'+self.opt.selectBox[0].id), + $city = $('#'+self.opt.selectBox[1].id), + $theme = $('#'+self.opt.selectBox[3].id), + $address = $("#id_address_inf"); + //start of document.ready + $waiter = $('#wait-ajax').css({'z-index': '8012'}); + /** + * google map + */ + self.map = new Map(self.opt.map); + + + /** + * styling with 3-rd party libs + */ + /** + * company theme multiple select + */ + $theme.select2({ + width: 'element', + placeholder: self.opt.selectBox[3].placeHolder, + maximumSelectionSize: 3 + }); + $theme.on("change", function () { + var $theme = $('#theme_form'), + url = $theme.attr("action"), + //toSendObj = new FormData(toSendObj); + toSendObj = $theme.serialize(); + com.postRequest(toSendObj,url); + }); + /** + * select country + */ + $country.select2({ + width: 'element', + placeholder:self.opt.selectBox[0].placeholder + }); + + + $country.on("change", function () { + $city.val(0); + $city.select2("val", ""); + }); + $city.on("change", function () { + var chosen = $(this).closest(".epf-field").find(".select2-chosen").text(); + $(this).attr("data-init-text",chosen); + self.forms.address_form.$form.find("input:text").val(""); + self.forms.address_form.$staticValue.text(""); + self.forms.address_form.refreshHTML(); + self.forms.home_form.submit(); + self.forms.address_form.submit(); + //$("#id_address_inf").val('').closest(".address-wrap").find(".static-value").text(' '); + self.map.refresh(); + }); + /** + * enable city if country is not chosen + */ + if($country.val() == 0 || $country.val() == ''){ + $city.prop('disabled', true); + } + + $city.select2({ + placeholder: self.opt.selectBox[1].placeHolder, + width: 'element', + ajax: { + + url: self.opt.selectBox[1].path, + dataType: "json", + quietMillis: 200, + + data: function(term, page, country){ + var country = $('#'+self.opt.selectBox[0].id).val(); + return {term: term, + page: page, + country: country}; + }, + + results: function (data) { + var results = []; + $.each(data, function(index, item){ + results.push({ + id: item.id, + text: item.label + }); + }); + return {results: results}; + } + }, + initSelection : function(element, callback) { + var id= $.trim($(element).val()); + var text = $(element).attr('data-init-text'); + callback({id: id, text:text}); + } + + }); + + /** + * tags + */ + $('#'+self.opt.selectBox[2].id).val('0'); + $('#'+self.opt.selectBox[2].id).select2({ + placeholder: self.opt.selectBox[2].placeholder, + width: '368px', + multiple: true, + maximumSelectionSize: 5, + ajax: { + + url: self.opt.selectBox[2].path, + dataType: "json", + quietMillis: 200, + + data: function(term, page, country){ + var themes = $('#theme-inf').attr('data-theme'); + themes = themes.split(','); + themes.pop(); + + return {term: term, + page: page, + themes: themes}; + }, + + results: function (data) { + var results = []; + + $.each(data, function(index, item){ + results.push({ + id: item.id, + text: item.label + }); + }); + return {results: results}; + } + }, + initSelection : function(element, callback) { + var data = [], + dataObjArr; + element.val(''); + if($.trim(element.attr('data-predifined')) != '' && $.trim(element.attr('data-predifined')) != '[]'){ + dataObjArr = JSON.parse(element.attr('data-predifined')); + callback(dataObjArr); + }else{ + $('#tag_form .select2-input').width(336).addClass('select2-default').val(self.opt.selectBox[2].placeholder); + + } + + } + + }); + $('#'+self.opt.selectBox[2].id).on('change', function (e) { + var $form = $('#tag_form'); + $form.submit(); + + }); + + // make mask on phone field input + initMaskedInput(self.opt.phoneBox); + //forms init + $('.'+self.opt.updateFormClass).each(function () { + var formName = $(this).attr('id'), + path = $(this).attr('action'), + inputData, + $wrapper = $(this).closest('.'+self.opt.formWrapperClass), + $staticValue = $('.'+self.opt.staticValueClass, $wrapper), + $description = $('.'+self.opt.descriptionClass, $wrapper), + $editable = $('.'+self.opt.editableClass, $wrapper), + $closeButton = $('.'+self.opt.closeButtonClass, $wrapper), + $image = $('.'+self.opt.avatarImageClass, $wrapper); + + //make and initialize form objects + + self.forms[formName] = Forms.factory(formName,path); + if($('.'+self.opt.editButtonClass, $wrapper).hasClass('no-refresh')){ + self.forms[formName].refrashable = false; + }else{ + self.forms[formName].refrashable = true; + + } + self.forms[formName].$form = $(this); + self.forms[formName].$wrapper = $wrapper; + self.forms[formName].$staticValue = $staticValue; + self.forms[formName].$description = $description; + self.forms[formName].$editable = $editable; + /** + * Send proper information if there is image. mainly for avatar editing + */ + if($image.length){ + + self.forms[formName].$image = $image; + self.forms[formName].noImageSrc = self.opt.noImageSrc; + } + + + // submit events handler + $(this).off('submit'); + $(this).on('submit', function () { + //check if formData is supported + $waiter.show(); + if ( window.FormData && ("upload" in ($.ajaxSettings.xhr())) ){ + inputData = new FormData(this); + self.forms[formName].beforeSubmit(inputData, formName); + } else { + inputData = $(this).serialize(); + self.forms[formName].beforeSubmit(inputData, formName); + } + + return false; + }); + $closeButton.on('click', function() { + $editable.removeClass(self.opt.formCurrentClass); + self.forms[formName].refreshHTML(); + return false; + }); + + if($('.'+self.opt.avatarButtonClass, $wrapper).length){ + /** + * avatar image choose button + */ + $('.'+self.opt.editButtonClass+','+' .'+self.opt.avatarButtonClass, $wrapper).on('click', function () { + var $input = $('#'+self.opt.avatarInputId); + $input.trigger('click'); + return false; + }); + + }else{ + /** + * edit button + */ + $('.'+self.opt.editButtonClass+', .'+self.opt.avatarButtonClass, $wrapper).on('click', function () { + //close other active editable forms + var $wrapper = $(this).closest('.'+self.opt.formWrapperClass), + formId = $wrapper.find('.'+self.opt.updateFormClass).attr('id'), + $description = $wrapper.find('.'+self.opt.descriptionClass), + $editable = $wrapper.find('.'+self.opt.editableClass); + $editables.each(function () { + var $wrapper = $(this).closest('.'+self.opt.formWrapperClass), + formId = $wrapper.find('.'+self.opt.updateFormClass).attr('id'), + $description = $wrapper.find('.'+self.opt.descriptionClass), + $editable = $wrapper.find('.'+self.opt.editableClass); + if($(this).hasClass(self.opt.formCurrentClass)){ + if(self.forms[formId].refrashable){ + + self.forms[formId].refreshHTML(); + $editable.removeClass(EXPO.company.opt.formCurrentClass); + }else{ + $editable.removeClass(self.opt.formCurrentClass); + } + + } + }); + + if(self.forms[formId].refrashable){ + $editable.removeClass('hidden'); + $description.addClass('hidden'); + }else{ + + } + $editable.addClass(self.opt.formCurrentClass); + $(document).on('click.form', function(event) { + var targetObj = $(event.target); + if (targetObj.parents().filter('.e-form').length < 1) { + $editable.removeClass(self.opt.formCurrentClass); + self.forms[formName].refreshHTML(); + $(document).off('click.form'); + } + }); + return false; + + }); + } + + }); + /** + * preview button + */ + $('#'+self.opt.previewBtnId).attr('href',window.location.href+"?logout=1"); + + + + }); + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.events.feed.js b/static/client/js/_modules/page.events.feed.js new file mode 100644 index 00000000..241a7dfc --- /dev/null +++ b/static/client/js/_modules/page.events.feed.js @@ -0,0 +1,1859 @@ +var EXPO = EXPO || {}; //isolated namespace +EXPO.events = EXPO.events || {}; +if (EXPO.events.feed) { + console.warn('WARNING: EXPO.eventsFeed is already defined!'); +} else { + EXPO.events.feed = (function () { + // variables + var that = {}; + + //default module setting + that.opt = {}; + //dependence's + var com = EXPO.common; + //private + var Filter = function (opt) { + this.opt = opt; + this.DOMbody = document.getElementById(opt.bodyId); + + }, + /** + * make ajax GET request and launch handler if exist or return data + * @param {Object|string} dataToSend + * @param {string} url + * @param {function} handler - function to execute when task is ready + */ + getRequest = function (dataToSend,url,handler) { + if(!dataToSend){ + dataToSend = ''; + } + $.ajax({ + type: 'GET', + url: url, + data:dataToSend, + success: function(data) { + if(typeof handler == 'function'){ + handler(data); + } else{ + return data; + } + } + }); + }, + /** + * rename name of property of an object/ Check for the old property name to avoid a ReferenceError in strict mode. + * @param {Object} obj object to rename its properties + * @param {string} oldName + * @param {string} newName + * @returns {renameProperty} + */ + renameProperty = function (obj,oldName, newName) { + if (obj.hasOwnProperty(oldName)) { + obj[newName] = obj[oldName]; + + } + return this; + }, + /** + * analogue of Array.length but for object instance + * @param {Object} obj - Object to count its method + * @returns {number} + */ + getObjectLength = function (obj) { + var size = 0, key; + for (key in obj) { + if (obj.hasOwnProperty(key)) size++; + } + return size; + }, + $waiter = $('.wait-ajax.absolute'), + Json2URI = function (jsonObj) { + var str = Object.keys(jsonObj).map(function(key){ + return encodeURIComponent(key) + '=' + encodeURIComponent(jsonObj[key]); + }).join('&'); + return ('?'+str); + }; + + // methods + Filter.prototype = { + show: function () { + //$(this.DOMbody).show(); + $(this.DOMbody).slideDown(); + }, + hide: function () { + $(this.DOMbody).hide(); + //$(this.DOMbody).slideUp(); + + } + }; + + // places and subject modals + /** + * Constructor for modal window 'select subject' + * @param {Object} options + * @constructor + */ + var SubjectModal = function (options) { + /** + * options init + * @type {Object} + */ + this.opt = options; + var self = this, index = 0, + $subjWrap = $('#' + self.opt.subjectTriggerWrapId), + $topicBox, + modalId = self.opt.id, + $modal = $('#' + modalId), + $checkBox = $('.csb-menu-input', $modal), + $selectedItemsWrap = $('#'+this.opt.selectedItemsContainer, $modal), + setDefault = self.opt.defaultOn, + applyBtnClass = self.opt.applyBtnClass, + $modalTrigger = $('#' + self.opt.modalTrigger), + DOMfilterBox = document.getElementById(self.opt.bodyId), + /** + * executed after render of modal Window + * @function + */ + afterRenderHandler = function () { + $waiter.hide(); + + }, + $waiter = $('.wait-ajax.absolute'); + + /** + * this modal window DOM Instance + * @type {*|jQuery|HTMLElement} + */ + this.$modalInst = $('#' + modalId); + + /** + * clones of tags for selected(checked) subject (powered by dna.js objects: see http://dnajs.org/) + * in modal window + * @type {Object} + */ + this.itemsSelected = {}; + /** + * clones of tags for selected(checked) subject (powered by dna.js objects: see http://dnajs.org/) + * on the page itself + * @type {Object} + */ + this.tagsBoxItems = {}; + /** + * clones of sublist of selected(checked) subject (powered by dna.js objects: see http://dnajs.org/) + * @type {Object} + */ + this.sublist = {}; + /** + * Jquery object of filtering input (autocomplete input) + * @type {*|jQuery|HTMLElement} + */ + this.$inputFilter = $('#' + self.opt.filterInputId); + /** + * label span element that contain short description for active filter + * @type {*|jQuery|HTMLElement} + */ + this.$label = $(document.getElementById(this.opt.labelId)); + + this.$selectedItemsWrap = $selectedItemsWrap; + /** + * flag for management of turn of asynchronous requests + * @type {boolean} + */ + this.isReceived = true; + + $(function () { + // topic checkbox selected event + $('.topicChecks', $subjWrap).on('change', function () { + + if ($(this).prop('checked')) { + self._setVisible($(this).val()); + + } else { + self._setUnvisible($(this).val()); + } + }); + // selected topic by default self.opt.defaultOn[] + for (index = 0; index < setDefault.length; index++) { + $topicBox = $('#' + setDefault[index]) + $topicBox.prop('checked', true); + $topicBox.trigger('change'); + + + } + //modal list and sublist behavior + $modal.on('click', 'a.trigger', function () { + var name = $(this).attr('data-name'), + id = $(this).attr('data-id'), + tmplId = $(this).attr('data-template-id'), + $sublist = $(this).siblings('.dna-container'); + // no more than once execution + if ($(this).attr('data-sub') == 'true') { + if ($(this).parent().hasClass('level1')) { + + if (!$sublist.children().length) { + $waiter.show(); + self._renderSublist({name: name, id: id}, tmplId, afterRenderHandler); + $(this).parent().addClass('active'); + } else { + //slideUp & Down stuff + self._slideToggle($sublist, $(this).parent()); + } + } + } + return false; + }); + // modal theme checkbox change behavior + $checkBox.on('change', function (event, param) { + var checkboxId = $(this).attr('id'), + $label = $(this).closest('.custom-radio-check'), + $parent = $(this).closest('.level'), + $parentCheckBox = $parent.parent().closest('.level').children('.custom-radio-check').find('.csb-menu-input'), + $sublist = $parent.children('.sublist'); + if (!param) { + + if ($label.hasClass('active')) { + $label.removeClass('active'); + } else { + $label.addClass('active'); + } + if (this.checked) { + var text = $(this).closest('.level').find('.trigger').first().text(), + tplObj = {'text': text, 'id': checkboxId}; + + //tags field logic + if (!$selectedItemsWrap.hasClass('visible')) { + $selectedItemsWrap.addClass('visible'); + } + self._addTag(checkboxId, tplObj); + + // proper selection and selection group logic + if ($sublist.length) { + $('.csb-menu-input', $sublist).each(function () { + var thisId = this.getAttribute('id'), + tagText = $(this).closest('.level').find('.trigger').first().text(), + DOMlabel = com.closest(this, 'custom-radio-check'); + + this.checked = true; + self._destroyTag(thisId); + com.addClass(DOMlabel, 'active'); + }); + + } else { + $parent = $parent.parent().closest('.level') + // if checked items count equals all items count then parent item is checked and tags for children - deleted + if ($('.csb-menu-input', $parent.find('.sublist')).length == $('.csb-menu-input:checked', $parent.find('.sublist')).length) { + var parentId = $parentCheckBox[0].getAttribute('id'), + parentText = $parentCheckBox.closest('.level').find('.trigger').first().text(), + DOMlabel = com.closest(this, 'custom-radio-check'), + DOMParentLabel = com.closest(DOMlabel.parentNode.parentNode, 'level'), + parentObj = {'text': parentText, 'id': parentId}; + $('.csb-menu-input:checked', $parent.find('.sublist')).each(function () { + + self._destroyTag(this.getAttribute('id')); + }); + $parentCheckBox.prop('checked', true); + com.addClass($(DOMParentLabel).find('.custom-radio-check')[0], 'active'); + + //$parentCheckBox.trigger('change',['true']); + self._addTag(parentId, parentObj); + } + } + + //!uncheck event + } else { + self._destroyTag(checkboxId); + if (!$selectedItemsWrap.children('.dna-clone').length) { + $selectedItemsWrap.removeClass('visible'); + + } + //uncheck all sublist items while parent item is unchecked + if ($sublist.length) { + //destroy all tags for sublist items + $('.csb-menu-input', $sublist).each(function () { + var thisId = $(this).attr('id'), + DOMlabel = com.closest(this, 'custom-radio-check'); + this.checked = false; + + com.removeClass(DOMlabel, 'active'); + self._destroyTag(thisId); + }); + $sublist.addClass('hidden'); + $parent.removeClass('active'); + } else { + // parent item is unchecked and tags for every children item are made + if ($parentCheckBox.length && $parentCheckBox[0].checked) { + var DOMlabel = com.closest($parentCheckBox[0], 'custom-radio-check'), + DOMParentItem = com.closest(DOMlabel, 'level'), + DOMSublist = DOMParentItem.querySelector('.sublist'); + $parentCheckBox.prop('checked', false); + com.removeClass(DOMlabel, 'active'); + self._destroyTag($parentCheckBox.attr('id')); + // checks children items + + $('.csb-menu-input:checked', DOMSublist).each(function () { + var id = this.getAttribute('id'), + tagText = com.closest(this, 'level').querySelector('.trigger').textContent, + tagObj = {'text': tagText, 'id': id}; + self._addTag(id, tagObj); + }); + } + } + + } + } + }); + //delete tag behavior + $('.' + self.opt.deleteTagClass, $modal).on('click', function (e) { + e.stopPropagation(); + var checkboxId = $(this).attr('data-checkbox-id'), + $uncheckBoxes = $('#' + checkboxId); + $uncheckBoxes.prop('checked', false); + $uncheckBoxes.trigger('change'); + self._refreshLabel(); + if (!$selectedItemsWrap.children('.dna-clone').length) { + $selectedItemsWrap.removeClass('visible'); + } + return false; + }); + $('.del-on-page').on('click',function () { + var dataCheckboxId = $(this).attr('data-checkbox-id'); + $('.' + self.opt.deleteTagClass+'[data-checkbox-id="'+dataCheckboxId+'"]', $modal).trigger('click'); + }); + self._autocompleteInit(); + $('.' + applyBtnClass, $modal).on('click', function () { + self.applyHandler(this); + return false; + }); + // кнопка "очистить параметры" + + $('.'+self.opt.clearAllButtonClass,$modal).on('click', function (e) { + e.preventDefault(); + self.resetList(); + return false; + }); + }); + }; + /** + * methods + * @type {{_getAjax: Function, _setVisible: Function, _setUnvisible: Function, _checkCheckBox: Function, check: Function, _autocompleteInit: Function, _renderSublist: Function, _loadParentTree: Function, _destroyTag: Function, _addTag: Function, _slideToggle: Function, resetList: Function, applyHandler: Function}} + */ + SubjectModal.prototype = { + /** + * get ajax response when want sublists + * @param {Object|sting} dataToSend + * @param {function} handler - fires after request is complete + * @private + */ + _getAjax: function (dataToSend, handler) { + var self = this; + if (!dataToSend) { + dataToSend = ''; + } + $waiter.css({display: 'block'}); + $.ajax({ + type: 'GET', + url: self.opt.ajaxUrl, + data: dataToSend, + success: function (data) { + if (typeof handler == 'function') { + $waiter.hide(); + handler(data); + } else { + return data; + + } + } + }); + }, + /** + * filter list accordingly to checked checkbox in 'select type' part of modal + * @param {string} type + * @private + */ + _setVisible: function (type) { + var self = this; + $('.' + type, self.$modalInst).addClass('visible'); + }, + /** + * filter list accordingly to checked checkbox in 'select type' part of modal + * @param {string} type + * @private + */ + _setUnvisible: function (type) { + var self = this, + $li = $('.' + type, self.$modalInst); + $li.find('input[type="checkbox"]').each(function () { + var $this = $(this); + if ($this.prop('checked')) { + $this.prop('checked', false); + $this.trigger('change'); + } + }); + $li.find('.dna-container').each(function () { + if ($(this).children().length) { + $(this).addClass('hidden'); + } + }); + $li.removeClass('visible'); + + }, + /** + * check particular checkbox input + * @param {string} id + * @param {string} name + * @private + */ + _checkCheckBox: function (id, name) { + var self = this, + $chckBox; + if (name == 'th') { + $chckBox = $('#tid_' + self.opt.prefix + id, self.$modalInst); + } else if (name == 'tg') { + $chckBox = $('#tgid_' + self.opt.prefix + id, self.$modalInst); + } + if ($chckBox.length && !$chckBox.prop('checked')) { + $chckBox.prop('checked', true); + $chckBox.trigger('change'); + } + + }, + /** + * check particular checkbox input + * @param {string} id + * @param {string} name + * @public + */ + check: function (id, name) { + var self = this, + $chckBox; + if (name == 'th') { + + $chckBox = $('#tid_' + self.opt.prefix + id, self.$modalInst); + } else if (name == 'tg') { + $chckBox = $('#tgid_' + self.opt.prefix + id, self.$modalInst); + } + if ($chckBox.length) { + $chckBox.prop('checked', true); + $chckBox.trigger('change'); + $chckBox.parent().addClass('active'); + } + + }, + /** + * initiliazing and setup autocomplete field for subject list + * @private + */ + _autocompleteInit: function () { + var self = this, dataObj, text, form = self.$inputFilter.attr('data-form'), index, + $completeWrap = $('#' + self.opt.autoCompleteId), + firstComplete = true, + selectTag = function (event, ui) { + //check of repeating execution + $waiter.show(); + var firstTime = true; + for (var prop in self.sublist) { + for (var prop2 in self.sublist[prop]) { + if (prop2 == ui.item.value) { + firstTime = false; + } + + + } + } + if ($('#tid_' + self.opt.prefix + ui.item.value + '[name="' + ui.item.name + '"]:checked').length) { + firstTime = false; + } + // ban of repeating execution + if (firstTime) { // konec + var $checkbox = $('#tid_' + self.opt.prefix + ui.item.value + '[name="' + ui.item.name + '"]'), + requestObj, requestName, + treeLoadHandler = function (data) { + // make checkboxes selected after loading + if (getObjectLength(data)) { + self._loadParentTree(data, function () { + self._checkCheckBox(ui.item.value, 'tg'); + $waiter.hide(); + }); + } else { + $waiter.hide(); + console.warn() + } + + }; + // load tree related to selected item + if (!$checkbox.length) { + + requestObj = { + id: ui.item.value, + name: ui.item.name + }; + getRequest(requestObj, self.opt.getParentUrl, treeLoadHandler); + } else { + $waiter.hide(); + $checkbox.prop('checked', true); + $checkbox.trigger('change'); + } + + } + }, + requestHandler = function (data) { + dataObj = data; + for (index = 0; index < dataObj.length; ++index) { + renameProperty(dataObj[index], 'text', 'label'); + } + for (index = 0; index < dataObj.length; ++index) { + renameProperty(dataObj[index], 'id', 'value'); + } + if (!self.$inputFilter.hasClass('ui-autocomplete-input')) { + + self.$inputFilter.placeComplete({ + source: dataObj, + minLength: 0, + appendTo: $completeWrap, + select: function (event, ui) { + self.$inputFilter.val(''); + self.$inputFilter.trigger('keyup'); + selectTag(event, ui); + event.preventDefault(); + // return ui.label; + } + }); + self.$inputFilter.placeComplete('search', ""); + firstComplete = false; + } else { + + self.$inputFilter.placeComplete('search', ""); + } + + }; + // var newData = ['banan','banan2','banan3','banan4','banan5']; + self.$inputFilter.attr('autocomplete', 'on'); + + self.$inputFilter.on('keyup', function (event) { + text = $(this).val(); + event.stopImmediatePropagation(); + + + if (text.length > 2 && firstComplete) { + getRequest({'term': text, 'form': form}, self.opt.autoCompleteUrl, requestHandler); + firstComplete = false; + } else if (text.length == 0 && !firstComplete) { + if (self.$inputFilter.hasClass('ui-autocomplete-input')) { + + self.$inputFilter.placeComplete("destroy"); + firstComplete = true; + } + } + return false; + }).click(function () { + return false; + }); + + }, + /** + * render first level sublist + * @param {Object} dataObj + * @param {number|string} tmplId + * @param {function} handler + * @private + */ + _renderSublist: function (dataObj, tmplId, handler) { + var self = this, + index = 0, + template = tmplId + '-sub', + ajaxHandler = function (data) { + if (data.length) { + + self.sublist[template] = {}; + + // for dna.clone definition see dnajs.org + for (index; index < data.length; index++) { + self.sublist[template][data[index].id] = dna.clone(tmplId, data[index]); + + } + handler(data.length); + } else { + $waiter.hide(); + } + }; + self._getAjax(dataObj, ajaxHandler); + }, + /** + * if there is no children element in list, loads list that is parent to children element + * @param {Object} data + * @param {number|string} handler + * @param {function} counter + * @private + */ + _loadParentTree: function (data, handler, counter) { + var self = this, + dataObj = data, + optObj, sublistTemplateId, nestedObj, nestedSublistTemplateId, + /** + * makes request in order to recieve children list information fires after request for parent list + * @param {number} length + * @function + */ + handlerParent = function () { + $waiter.hide(); + counter || counter === 0 ? handler(counter) : handler(); + }; + $waiter.show(); + + + optObj = { + name: dataObj.name, + id: dataObj.id + }; + sublistTemplateId = $('#tid_' + self.opt.prefix + dataObj.id).closest('.level').children('.trigger').attr('data-template-id'); + self._renderSublist(optObj, sublistTemplateId, handlerParent); + + + }, + /** + * destroy tag and clear tags block.for dna.clone definition see dnajs.org + * @param {string} checkboxId + * @private + */ + _destroyTag: function (checkboxId, outer) { + var self = this; + if (self.itemsSelected[checkboxId]) { + dna.destroy(self.itemsSelected[checkboxId]); + + } + if (self.tagsBoxItems[checkboxId]) { + dna.destroy(self.tagsBoxItems[checkboxId]); + + } + }, + /** + * for dna.clone definition see dnajs.org + * @param {number} checkboxId + * @param {Object} tplObj + * @private + */ + _addTag: function (checkboxId, tplObj) { + var self = this; + self.itemsSelected[checkboxId] = dna.clone(self.opt.selectedItemTemplate, tplObj); + self.tagsBoxItems[checkboxId] = dna.clone(self.opt.tagsBoxId, tplObj); + self._refreshLabel(); + if(getObjectLength(self.itemsSelected)){ + $(EXPO.events.feed.DOMapplyButton).show(); + $(EXPO.events.feed.DOMhint).hide(); + } + }, + /** + * hide or show sublists according active selected link + * @param {*|jQuery|HTMLElement} $sublist + * @param {*|jQuery|HTMLElement} $this + * @private + */ + _slideToggle: function ($sublist, $this) { + if ($sublist.hasClass('hidden')) { + $sublist.removeClass('hidden'); + $this.addClass('active'); + } else { + $sublist.addClass('hidden').find('ul').addClass('hidden'); + $this.removeClass('active'); + } + + }, + /** + * reset all selected items, uncheck all selected checkboxes + * @public + */ + resetList: function () { + var self = this; + for (var key in self.itemsSelected) { + if (self.itemsSelected.hasOwnProperty(key)) { + $('#'+key, self.$selfContainer).prop('checked', false).closest('.custom-radio-check').removeClass('active'); + + dna.destroy(self.itemsSelected[key]); + dna.destroy(self.tagsBoxItems[key]); + + } + } + $('.level.active',this.$modal).removeClass('active'); + this._refreshLabel(); + + this.$selectedItemsWrap.removeClass('visible'); + }, + /** + * render label text, if there is no selected element then text will be default + * @private + */ + _refreshLabel: function () { + var oLength = this.$selectedItemsWrap.children().length; + if (oLength){ + this.$label.text(this.$label.attr('data-selected')); + }else{ + this.$label.text(this.$label.attr('data-default')); + + } + }, + // кнопка применить + applyHandler: function (it) { + EXPO.events.feed.modalWindow.close(); + + }, + /** + * select particular item and render its tag and check checkbox + * @param {Object} item + * @public + */ + selectTag:function (item) { + //check of repeating execution + var firstTime = true, + self = this, + waitHandler = function () { + self.isReceived = false; + if(!item.children){ + + for (var prop in self.itemsSelected) { + if (prop == 'tid_'+ self.opt.prefix+item.id){ + firstTime = false; + } + + } + if($('#tid_'+ self.opt.prefix+item.id+':checked').length){ + firstTime = false; + } + if(firstTime){ + self.check(item.id, item.name); + self.isReceived = true; + }else{ + $('#tid_'+ self.opt.prefix + item.id).prop('checked', true); + $('#tid_'+ self.opt.prefix + item.id).trigger('change'); + self.isReceived = true; + + } + }else{ + if($('#tgid_'+ self.opt.prefix+item.children.id).length){ + firstTime = false; + } + //Если выбран родитель + if($('#tid_'+ self.opt.prefix+item.id+':checked').length){ + firstTime = false; + } + if(firstTime) { + + self._loadParentTree({name: item.name, id: item.id}, function () { + self.check(item.children.id, item.children.name); + self.isReceived = true; + + }); + }else if(!$('#tgid_'+ self.opt.prefix+item.id+':checked').length){ + + $('#tgid_'+ self.opt.prefix + item.children.id).prop('checked', true); + $('#tgid_'+ self.opt.prefix + item.children.id).trigger('change'); + self.isReceived = true; + + } + } + + }; + this.wait(waitHandler); + }, + /** + * waits so far the previous request will be executed and execute a method + * @param {function} method + * @param {Object|Array} args + * @public + */ + wait:function(method, args) { + var self = this, + waitImages, + waitHandler = function(self, method, args) { + if (self.isReceived) { + if (args) { + method(args); + } + else{ + method(); + } + clearInterval(waitImages); + } + }; + waitImages = setInterval(function() {waitHandler(self, method, args)}, 100); + } + + + }; + + /** + * Constructor for modal window 'select place' + * @param {Object} options + * @constructor + */ + var PlacesModal = function (options) { + /** + * object properties + * @type {Object} + */ + this.opt = options; + var self = this, + $modal = $('#' + self.opt.id), + $checkBox = $('input[type="checkbox"]', $modal), + $selectedItemsWrap = $('#'+this.opt.selectedItemsContainer, $modal), + DOMTagsWrapper = $('#'+this.opt.selectedItemsContainer, $modal)[0], + $modalTrigger = $('#' + self.opt.modalTrigger), + applyBtnClass = self.opt.applyBtnClass, + idPrefix = 'id_', + DOMfilterBox = document.getElementById(self.opt.bodyId), + + /** + * set trigger link text under the search field + * @function + */ + triggerSetText = function () { + var selectedString, + cutLength = 16; + }; + /** + * current template instances + * @type {Object} + */ + this.curDNA = {}; + /** + * place modal list items that had selected + * in modal window + * @type {Object} + */ + this.itemsSelected = {}; + /** + * place modal list items that had selected + * on page itself + * @type {Object} + */ + this.tagsBoxItems = {}; + this.selectedWrap = $selectedItemsWrap; + this.$selfContainer = $modal; + this.$modal = $modal; + this.idPrefix = idPrefix; + /** + * flag for management of turn of asynchronous requests + * @type {boolean} + */ + this.isReceived = true; + /** + * label span element that contain short description for active filter + * @type {*|jQuery|HTMLElement} + */ + this.$label = $(document.getElementById(this.opt.labelId)); + + /** + * Jquery object of filtering input (autocomplete input) + * @type {*|jQuery|HTMLElement} + */ + this.$inputFilter = $('#' + self.opt.filterInputId); + $(function () { + self._autocompleteInit(); + $modal.on('click', 'a.trigger', function () { + var name = $(this).attr('data-name'), + id = $(this).attr('data-id'), + that = this, + tmplId = $(this).attr('data-template-id'), + $sublist = $(this).siblings('.dna-container'), + afterRenderHandler = function (elem, data) { + var DOMParent = com.closest(that, 'level'), + DOMParentCheckbox = DOMParent.querySelector('.csb-menu-input'); + $('.csb-menu-input', $sublist).each(function () { + var DOMCheckboxWrap = com.closest(this, 'custom-radio-check'); + if (!this.selected) { + + if (DOMParentCheckbox.checked) { + this.checked = true; + com.addClass(DOMCheckboxWrap, 'active'); + } + } + }); + $waiter.hide(); + + }; + // no more than once execution + if ($(this).attr('data-sub') == 'true') { + if ($(this).parent().hasClass('level1')) { + + if (!$sublist.children().length) { + $waiter.show(); + self._renderSublist({name: name, id: id}, tmplId, afterRenderHandler); + } else { + //slideUp & Down stuff + self._slideToggle($sublist, $(this).parent()); + } + } else if ($(this).parent().hasClass('level2')) { + if (!$sublist.children().length) { + self._renderNested({name: name, id: id}, afterRenderHandler, tmplId, id); + $(this).parent().addClass('active'); + } + else { + //slideUp & Down stuff + self._slideToggle($sublist, $(this).parent()); + } + } + } + return false; + }); + + $checkBox.on('change', function (event, param) { + + var id = this.getAttribute('id'), + fakeCheckboxClass = 'custom-radio-check', + fakeCheckbox = com.closest(this, fakeCheckboxClass), + itemClass = 'level', + activeClass = 'active', + sublistClass = 'sublist', + checkboxClass = 'csb-menu-input', + highestItemClass = 'level1', + tagClass = 'csb-selected', + tagButtonClass = 'csbs-del', + triggerClass = 'trigger', + tagIdAttribute = 'data-checkbox-id', + + DOMParentRow = com.closest(this, itemClass), + + DOMParentItem = com.hasClass(DOMParentRow, highestItemClass) == false?com.closest(DOMParentRow.parentNode, itemClass):DOMParentRow, + DOMParentCheckbox = DOMParentItem.querySelector('.'+checkboxClass), + DOMSublist = DOMParentItem.querySelector('.'+sublistClass), + DOMSublistInner = DOMParentRow.querySelector('.'+sublistClass), + DOMHighestItem = com.closest(this, highestItemClass), + DOMHighestCheckbox = DOMHighestItem.querySelector('.'+checkboxClass), + DOMHighestSublist = DOMHighestItem.querySelector('.'+sublistClass), + + selectSublist = function (it) { + var DOMParentItem = com.closest(it, itemClass) || this, + DOMSublist = DOMParentItem.querySelector('.'+sublistClass); + $('.'+checkboxClass, DOMSublist).each(function () { + selectItem(this); + }); + + }, + unSelectSublist = function (it) { + var DOMParentItem = com.closest(it, itemClass) || this, + DOMSublist = DOMParentItem.querySelector('.'+sublistClass); + $('.'+checkboxClass, DOMSublist).each(function () { + unSelectItem(this); + + }); + + }, + selectParent = function (it) { + var DOMParentRow = com.closest(it, itemClass), + DOMParentItem; + if(com.hasClass(DOMParentRow,'level1')){ + DOMParentItem = DOMParentRow; + }else{ + DOMParentItem = com.closest(DOMParentRow.parentNode, itemClass); + } + + com.addClass(DOMParentItem.querySelector('.'+fakeCheckboxClass), activeClass); + DOMParentItem.querySelector('.'+checkboxClass).checked = true; + + //it.selected = true; + + }, + unSelectParent = function (it) { + var DOMParentRow = com.closest(it, itemClass), + DOMParentItem = com.closest(DOMParentRow.parentNode, itemClass) || DOMParentRow; + + com.removeClass(DOMParentItem.querySelector('.'+fakeCheckboxClass), activeClass); + DOMParentItem.querySelector('.'+checkboxClass).checked = false; + //it.checked = false; + + }, + selectItem = function (it) { + var itFakeCheckbox = com.closest(it, fakeCheckboxClass); + com.addClass(itFakeCheckbox, activeClass); + it.checked = true; + com.addClass(DOMParentItem,activeClass); + com.removeClass(DOMSublist,'hidden'); + + }, + unSelectItem = function (it) { + var itFakeCheckbox = com.closest(it, fakeCheckboxClass), + DOMitem = com.closest(it, itemClass); + com.removeClass(itFakeCheckbox, activeClass); + it.checked = false; + // if there is children items + if(DOMitem.querySelector('.'+sublistClass) && !com.hasClass(DOMitem,highestItemClass)){ + unSelectSublist(it); + } + }, + allChildrenSelected = function () { + //var DOMselected = DOMSublist.querySelectorAll('.'+checkboxClass+':checked'), + var DOMSublistParent = com.closest(DOMSublist,sublistClass), + $selected = $(DOMSublist).children('li').children('.'+fakeCheckboxClass).find('.'+checkboxClass+':checked'), + selectedCount = $selected.length, + //allCount = DOMSublist.querySelectorAll('.'+checkboxClass).length; + allCount = $(DOMSublist).children('li').children('.'+fakeCheckboxClass).find('.'+checkboxClass).length; + + if(allCount == selectedCount && selectedCount != 0){ + return true; + } else{ + return false; + } + }, + allHighestSelected = function () { + //var DOMselected = DOMSublist.querySelectorAll('.'+checkboxClass+':checked'), + var $selected = $(DOMHighestSublist).children('li').children('.'+fakeCheckboxClass).find('.'+checkboxClass+':checked'), + selectedCount = $selected.length, + allCount = $(DOMHighestSublist).children('li').children('.'+fakeCheckboxClass).find('.'+checkboxClass).length; + + if(allCount == selectedCount && selectedCount != 0){ + return true; + } else{ + return false; + } + }, + parentSelected = function () { + var parentCheckbox = DOMParentItem.querySelector('.'+checkboxClass); + if(parentCheckbox.checked){ + return true; + }else{ + return false; + } + + }, + // Функционал добавления тегов: если есть в панели выбранный элемент либо его дочерние то удалить эти эдементы; + refreshTags = function (it) { + var DOMSublist = com.closest(it,sublistClass); + var DOMItem = com.closest(it,itemClass); + var DOMSublistInner = DOMItem.querySelector('.'+sublistClass); + var DOMAllTags = DOMTagsWrapper.querySelectorAll('.'+tagClass); + var ARRsublist; + var ARRsublistChildren = DOMSublist.querySelector('.'+sublistClass)?$('.'+checkboxClass+':checked',DOMSublist.querySelector('.'+sublistClass)):null; + var ARRsublistChildrenLength = ARRsublistChildren?ARRsublistChildren.length:null; + var ARRSublistIds = []; + var ARRAllTagsIds = []; + var allTagsLength = 0; + var sublistIdsLength = 0; + var itId = it.getAttribute('id'); + var i = 0, j= 0, t= 0, tmp, k = 0; + var tagId; + var tagText = DOMParentRow.querySelector('.'+triggerClass).innerHTML; + + // если есть дочерние элементы + if(DOMSublistInner){ + ARRsublist = $(DOMSublistInner).children('li').children('.'+fakeCheckboxClass).find('.'+checkboxClass+':checked') + //получаем массив id жлементовЮ для которых есть тег + for(k; k < ARRsublist.length; k++){ + tmp = ARRsublist[k].getAttribute('id'); + ARRSublistIds.push(tmp); + } + //очистк + for(t; t 2 && firstComplete) { + $waiter.show(); + getRequest({'term': text, 'form': form}, self.opt.autoCompleteUrl, requestHandler); + firstComplete = false; + } else if (text.length == 0 && !firstComplete) { + if (self.$inputFilter.hasClass('ui-autocomplete-input')) { + + self.$inputFilter.autocomplete("destroy"); + firstComplete = true; + } + } + return false; + }).click(function () { + return false; + }); + + }, + /** + * loads and shows list tree related to selected id + * @param {Object} data - is JSON object with information about parent elements. + * @param {function} handler - callback function + * @param {number} counter + * @private + */ + _loadParentTree: function (data, handler, counter) { + var self = this, + dataObj = data, + optObj, sublistTemplateId, nestedObj, nestedSublistTemplateId, + $midleLevelCheckbox = $('#id_' + self.opt.prefix + dataObj.id), + /** + * makes request in order to recieve children list information fires after request for parent list + * @param {number} length + * @function + */ + handlerNested = function (length) { + var $checkbox = $('#id_' + self.opt.prefix + dataObj.id), + index = 0, + afterAll = function (number) { + $waiter.hide(); + index++ + if(index == number){ + + counter||counter===0?handler(counter):handler(); + } + }; + $waiter.hide(); + if ($checkbox.length && getObjectLength(self.curDNA[sublistTemplateId + '-sub']) == length) { + + nestedObj = { + name: dataObj.name, + id: dataObj.id + }; + $waiter.show(); + nestedSublistTemplateId = $('#id_' + self.opt.prefix + dataObj.id).closest('.level').children('.trigger').attr('data-template-id'); + self._renderNested(nestedObj, afterAll, nestedSublistTemplateId, dataObj.id); + } + + }, + /** + * @function + */ + handlerParent = function () { + $waiter.hide(); + counter || counter === 0 ? handler(counter) : handler(); + }; + $waiter.show(); + //if element has parent element + if (dataObj.hasOwnProperty('parent')) { + //if checbox is existed + if ($midleLevelCheckbox.length) { + nestedObj = { + name: dataObj.name, + id: dataObj.id + }; + nestedSublistTemplateId = $midleLevelCheckbox.closest('.level').children('.trigger').attr('data-template-id'); + self._renderNested(nestedObj, function () { + $waiter.hide(); + handler(); + }, nestedSublistTemplateId, dataObj.id); + } else { + + optObj = { + name: dataObj.parent.name, + id: dataObj.parent.id + }; + sublistTemplateId = $('#id_' + self.opt.prefix + dataObj.parent.id).closest('.level').children('.trigger').attr('data-template-id'); + self._renderSublist(optObj, sublistTemplateId, handlerNested); + } + + + } else { + optObj = { + name: dataObj.name, + id: dataObj.id + }; + sublistTemplateId = $('#id_' + self.opt.prefix + dataObj.id).closest('.level').children('.trigger').attr('data-template-id'); + self._renderSublist(optObj, sublistTemplateId, handlerParent); + } + + }, + applyHandler: function (it) { + EXPO.events.feed.modalWindow.close(); + }, + /** + * render label text, if there is no selected element then text will be default + * @private + */ + _refreshLabel: function () { + var oLength = this.selectedWrap.children().length; + + if (oLength){ + this.$label.text(this.$label.attr('data-selected')); + }else{ + this.$label.text(this.$label.attr('data-default')); + + } + } + }; + + /////////////////////////// + //инициализация общих свойств + that.init = function (options) { + // settings extending + $.extend(this.opt, options); + // begin of initialization + var self = this, + submitHandler = function () { + $(self.DOMform).find('input[name="~~name~~"]').remove(); + }; + if(this.opt.searchData != 'None' && this.opt.searchData){ + this.previousSearch = JSON.parse(this.opt.searchData) + + } + this.DOMform = document.getElementById(this.opt.formId); + this.DOMhint = document.getElementById(this.opt.filter.hintId); + $(this.DOMform).on('submit', function () { + submitHandler(); + }); + $.widget( "custom.placeComplete", $.ui.autocomplete,{ + _renderItem: function( ul, item ) { + return $( "
  • " ) + .append( $( "" ).text( item.label) ) + .append(' ('+item.cat+')') + .appendTo( ul ); + } + }); + this.DOMapplyButton = document.getElementById(this.opt.applyButtonId); + this.filterPane = new Filter(this.opt.filter); + $('#' + this.opt.filter.buttonId).on('click', function () { + if (com.hasClass(this, self.opt.activeClass)) { + com.removeClass(this, self.opt.activeClass); + self.filterPane.hide(); + } else { + com.addClass(this, self.opt.activeClass); + self.filterPane.show(); + } + return false; + }); + $('#'+self.opt.bodyId+' .' + self.opt.modalTriggerClass).on('click', function (event) { + event.preventDefault(); + self.modalWindow.pullData(this.getAttribute('href')); + self.modalWindow.open(); + return false; + }); + //кнопка применить + $('#'+self.opt.applyButtonId).on('click', function () { + $(self.DOMform).submit(); + return false; + }); + //modal + //модальное окно + this.modalWindow = new com.Modal(self.opt.modal); + //modal windows + this.placesModal = new PlacesModal(self.opt.place); + this.subjModal = new SubjectModal(self.opt.subject); + + // заполнение полей предыдущими значениями + $(function () { + if(self.previousSearch.inputs.length){ + $(self.DOMhint).hide(); + for (var i = 0; i < self.previousSearch.inputs.length; i++) { + // окно выбора тематики + if (self.previousSearch.inputs[i].name == 'th'){ + self.subjModal.selectTag(self.previousSearch.inputs[i]); + + // окно выбора мест + } else if (self.previousSearch.inputs[i].name == 'area'){ + + if(self.previousSearch.inputs[i].children && self.previousSearch.inputs[i].children.children){ + self.placesModal.selectTag(self.previousSearch.inputs[i].children.children); + + }else if (self.previousSearch.inputs[i].children){ + self.placesModal.selectTag(self.previousSearch.inputs[i].children); + + } else if(self.previousSearch.inputs[i]){ + self.placesModal.selectTag(self.previousSearch.inputs[i]); + + + } + } + } + + }else{ + $(self.DOMhint).fadeIn(); + } + //Если выбраны фильтры то появляется кнопка "применить" + if(getObjectLength(self.placesModal.itemsSelected) || getObjectLength(self.subjModal.itemsSelected) ){ + $(self.DOMapplyButton).show(); + + } + }); + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.exposition.object.js b/static/client/js/_modules/page.exposition.object.js new file mode 100644 index 00000000..bfd2dfed --- /dev/null +++ b/static/client/js/_modules/page.exposition.object.js @@ -0,0 +1,153 @@ +var EXPO = EXPO || {}; //isolated namespace +EXPO.exposition = EXPO.exposition || {}; +if (EXPO.exposition.object){ + console.warn('WARNING: EXPO.exposition.object is already defined!'); +}else { + + EXPO.exposition.object = (function () { +// dependencies + var com = EXPO.common, + $waiter; +// variables + var that = {}, + Note = function (it, opt) { + this.opt = opt; + this.DOMthis = it; + this.DOMbutton = it.querySelector('.'+opt.buttonClass); + this.DOMinput = it.querySelector('.'+opt.inputClass); + this.inputName = this.DOMinput.getAttribute('name'); + this.url = this.DOMbutton.getAttribute('href'); + this._controller(); + }; + Note.prototype = { + _init: function () { + + }, + _controller: function () { + var self = this; + $(this.DOMinput).on('blur', function () { + self.send(); + }); + $(this.DOMbutton).on('click', function () { + return false; + }); + }, + send: function () { + var data = {}, + response, + self = this, + handler = function (data) { + if (data.success){ + console.log('ok'); + $(self.DOMbutton).addClass('active'); + }else{ + console.log('data not send'); + } + + }; + data[this.inputName] = this.DOMinput.value; + response = com.getRequest(data,this.url,handler); + } + }; + that.opt = {}; //свойства по умолчанию +//private + $(function () { + $waiter = $('#wait-ajax:not(.absolute)').css({'z-index': '8031'}); + }); + +// methods + //инициализация общих свойств + that.init = function (options) { + $.extend(this.opt, options); + var self = this, + $visitButtons = $('.'+this.opt.visit.activeClass+', .'+this.opt.visit.passiveClass); + this.notes = []; + + $('.'+this.opt.note.wrapClass).each(function () { + var note = new Note(this,self.opt.note); + self.notes.push(note); + }); + $('.'+this.opt.note.wrapDisabledClass).on('click', function () { + $.fancybox.open('#pw-login'); + return false; + }); + com.opt.addCalendarText = this.opt.addCalendarText; + com.opt.removeCalendarText = this.opt.removeCalendarText; + /** + * visit buttons + */ + $visitButtons.off('click'); + $visitButtons.on('click', function () { + if ($(this).hasClass(self.opt.visit.activeClass)){ + + /** + * I plan to visit + */ + $('.'+self.opt.visit.activeClass).hide().siblings('.'+self.opt.visit.passiveClass).show(); + + $('#'+self.opt.visit.visitorsListId).append(self.opt.visit.currentHtml); + $('#'+self.opt.visit.somebodyId).removeClass("hidden"); + $('#'+self.opt.visit.nobodyId).addClass("hidden"); + + + }else{ + /** + * refuse to visit + */ + $('.'+self.opt.visit.passiveClass).hide().siblings('.'+self.opt.visit.activeClass).show(); + $('#'+self.opt.visit.visitorsListId).children(".current").remove(); + + if($('#'+self.opt.visit.visitorsListId).children().length == 0){ + + $('#'+self.opt.visit.somebodyId).addClass("hidden"); + $('#'+self.opt.visit.nobodyId).removeClass("hidden"); + } + + } + return false; + }); + /** + * advertise form validation + */ + $('#'+this.opt.advertise.id).on("submit", function () { + var formData = $(this).serialize(), + formUrl = $(this).attr("action"), + $form = $(this), + /** + * executes after AJAX get request is complete + * @param data - data recieved from server ex + */ + handler = function (data) { + var clearValue = function () { + $('.err',$form).removeClass("err"); + $('.pwf-msg',$form).text(''); + }; + if (data.success != true){ + clearValue(); + for (var k in data.errors){ + if (data.errors.hasOwnProperty(k)) { + $('input[name="'+k+'"]',$form) + .closest(".required").addClass("err") + .siblings(".pwf-msg").text(data.errors[k]); + } + } + + }else{ + clearValue(); + dataLayer.push({'event': 'advmemberform'}); + $('input:text',$form).val(''); + $.fancybox.close(); + + } + $waiter.hide(); + }; + $waiter.show(); + com.postRequest(formData,formUrl,handler); + return false; + }); + + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.index.js b/static/client/js/_modules/page.index.js new file mode 100644 index 00000000..bc5725a2 --- /dev/null +++ b/static/client/js/_modules/page.index.js @@ -0,0 +1,74 @@ +var EXPO = EXPO || {}; //isolated namespace +if (EXPO.index) { + console.warn('WARNING: EXPO.eventsFeed is already defined!'); +} else { + EXPO.index = (function () { + // variables + var that = {}; + + //default module setting + that.opt = {}; + //dependence's + var com = EXPO.common; + //private + var Note = function (it, opt) { + this.opt = opt; + this.DOMthis = it; + this.DOMbutton = it.querySelector('.'+opt.buttonClass); + this.DOMinput = it.querySelector('.'+opt.inputClass); + this.inputName = this.DOMinput.getAttribute('name'); + this.url = this.DOMbutton.getAttribute('href'); + this._controller(); + }; + Note.prototype = { + _init: function () { + + }, + _controller: function () { + var self = this; + $(this.DOMinput).on('blur', function () { + self.send(); + }); + $(this.DOMbutton).on('click', function () { + return false; + }); + }, + send: function () { + var data = {}, + response, + self = this, + handler = function (data) { + if (data.success){ + console.log('ok'); + $(self.DOMbutton).addClass('active'); + }else{ + console.log('data not send'); + } + + }; + data[this.inputName] = this.DOMinput.value; + response = com.getRequest(data,this.url,handler); + } + }; + + /////////////////////////// + //инициализация общих свойств + that.init = function (options) { + // settings extending + $.extend(this.opt, options); + // begin of initialization + var self = this; + this.notes = []; + $('.'+this.opt.note.wrapClass).each(function () { + var note = new Note(this,self.opt.note); + self.notes.push(note); + }); + $('.'+this.opt.note.wrapDisabledClass).on('click', function () { + $.fancybox.open('#pw-login'); + return false; + }); + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.organizer.add.js b/static/client/js/_modules/page.organizer.add.js new file mode 100644 index 00000000..fc5aef32 --- /dev/null +++ b/static/client/js/_modules/page.organizer.add.js @@ -0,0 +1,86 @@ +var EXPO = EXPO || {}; //isolated namespace +EXPO.organizer = EXPO.organizer || {}; + +if (EXPO.organizer.add) { + console.warn('WARNING: EXPO.eventsFeed is already defined!'); +} else { + EXPO.organizer.add = (function () { + /** + * private (visible inside this module only) variables + */ + /** + * @type {Object} - module API interafce realization + */ + var that = {}; + /** + * @type {Object} default setting + */ + that.opt = {}; + /** + * dependencies.Place where you can switch on dependencies for module + * @type {EXPO.common|*} - mostly used in project functions and data (block.common.js) + */ + var com = EXPO.common; + /** + * current module general initialization + * @param {Object} options - options recieved from web page view + */ + that.init = function (options) { + // settings extending + $.extend(this.opt, options); + // begin of initialization + var self = this; + $(function () { + /* Если на страницах "Добавить событие" не выбран ни один из типов форму делаем неактивной и наоборот */ + $('#'+self.opt.steps[0].id).each(function () { + var $form = $(this); + var $rads = $form.find('.'+self.opt.steps[0] .typeClass+' input[type="radio"]'); + var $formBody = $('.'+self.opt.steps[0].formBodyClass, $form); + + function formState () { + var radsChecked = $rads.filter(':checked').length > 0; + var $inputs = $formBody.find('input, select, textarea, button'); + var $selectBox = $formBody.find('div.c-select-box'); + + if (radsChecked) { + $formBody.removeClass('disabled'); + $selectBox.removeClass('disabled'); + $inputs.prop('disabled', false); + } else { + $formBody.addClass('disabled'); + $selectBox.addClass('disabled'); + $inputs.prop('disabled', true); + } + } + + formState(); + $rads.on('change', formState); + for(var i =0;i< self.opt.steps[0].dateClasses.length; i++){ + $('.'+self.opt.steps[0].dateClasses[i], $form).datepicker({ + dateFormat: 'dd.mm.yy', + showOn: 'button', + showOtherMonths: true, + constrainInput: true, + onClose: function( selectedDate ) { + var $dateInput; + if($(this).hasClass('dateFrom')){ + $dateInput = $(this).closest('.period').find('.'+self.opt.steps[0].dateClasses[1]); + $dateInput.datepicker( "option", "minDate", selectedDate ); + }else if($(this).hasClass('dateTo')){ + $dateInput = $(this).closest('.period').find('.'+self.opt.steps[0].dateClasses[0]); + $dateInput.datepicker( "option", "maxDate", selectedDate ); + }else if($(this).hasClass('dateFromLast')){ + $dateInput = $form.find('.date-to-date').find('.'+self.opt.steps[0].dateClasses[1]); + $dateInput.datepicker( "option", "minDate", selectedDate ); + } + } + }); + } + }); + }); + + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.place.object.js b/static/client/js/_modules/page.place.object.js new file mode 100644 index 00000000..d31891bb --- /dev/null +++ b/static/client/js/_modules/page.place.object.js @@ -0,0 +1,83 @@ +var EXPO = EXPO || {}; //isolated namespace +EXPO.place = EXPO.place || {}; +if (EXPO.place.object){ + console.warn('WARNING: EXPO.place.object is already defined!'); +}else { + + EXPO.place.object = (function () { +// variables + var that = {}, + Article = function (opt, it) { + this.$annotation = $('.'+opt.annotationClass, it); + this.$fullPart = $('.'+opt.fullPartClass, it); + this.$readMore = $('.'+opt.readMoreClass, it); + this.cutLength = opt.cutLength; + this.fullText; + this.init(); + + }; + Article.prototype = { + init: function () { + var self = this, + anText = this.$annotation.text().slice(0,self.cutLength); + this.fullText = this.$annotation.html().trim(); + this._setMoreLess(this.fullText,self.cutLength, 10) + //this.$annotation.html($.trim(anText)); + //this.$fullPart.html($.trim(this.fullText)); + + + + }, + showMore: function () { + this.$readMore.hide(); + this.$annotation.hide(); + this.$fullPart.removeClass('hidden'); + + }, + _cutAnnotation: function () { + }, + _setMoreLess: function (fullHtml, thrLength, tolerance) { + var alltext = fullHtml; + + + if (alltext.length + tolerance < thrLength) { + return; + } + else { + var firstHalf = alltext.substring(0, thrLength); + + var firstHalfSpan = '' + firstHalf + ''; + + this.$annotation.html(firstHalfSpan); + this.$annotation.find("p:last").append("..."); + this.$fullPart.html(alltext); + } + } + }; + that.opt = {}; //свойства по умолчанию +//private + $(function () { + }); + +// methods + //инициализация общих свойств + that.init = function (options) { + $.extend(this.opt, options); + var self = this; + this.articles = []; + //readmore on Articles + $('.'+self.opt.article.class).each(function () { + var article = new Article(self.opt.article, this); + + article.$readMore.on('click', function () { + article.showMore(); + }); + self.articles.push(article); + + }); + + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.place.photo.js b/static/client/js/_modules/page.place.photo.js new file mode 100644 index 00000000..da4fea41 --- /dev/null +++ b/static/client/js/_modules/page.place.photo.js @@ -0,0 +1,204 @@ +var EXPO = EXPO || {}; //isolated namespace + +// module requires JQuery library, dna.js template engine (http://dnajs.org/) +// protection against duplication of a module code +if (EXPO.placePhoto){ + console.warn('WARNING: EXPO.placePhoto is already defined!'); +}else{ + + EXPO.placePhoto = (function() { + // variables + var that = {}; + that.settings = { + + }; //default module setting + that.lang ={}; + //dependence's + + //private + // constructor for popup window on gallery page + var ModalBox = function(modalId, containerId, modalTrigger, ajaxUrl, nextButtonId, prevButtonId, closeModalButtonId, modalContainerId){ + // object properties + var self = this; + this.currentId = undefined; + this.ajaxUrl = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: '') + ajaxUrl; + //modal Window options + this.opt = { + gContainerId:containerId, + mId:modalId, + mTrigger:modalTrigger, + nBtn: nextButtonId, + pBtn: prevButtonId, + cBtn: closeModalButtonId, + mcId: modalContainerId + }; + this.$mWindow = undefined; + + $(function () { + self.$mWindow = $('#'+self.opt.mId); + self.$mtrigger = $('.'+self.opt.mTrigger); + self.$nBtn = $('#'+self.opt.nBtn); + self.$pBtn = $('#'+self.opt.pBtn); + self.$cBtn = $('#'+self.opt.cBtn); + self.$mtrigger.on('click', function () { + var curId; + + try { + curId = $(this).children('img').data('image-id'); + self.currentId = curId; + } + catch(err) { + console.log(err.message); + } + self.show(); + return false; + }); + // next button + self.$nBtn.off('click'); + self.$nBtn.on('click', function () { + self.nextSlide(); + return false; + + }); + // previous button + self.$pBtn.off('click'); + self.$pBtn.on('click', function () { + self.prevSlide(); + return false; + }); + //close modal window + self.$cBtn.off('click'); + self.$cBtn.on('click', function () { + self.close(); + return false; + }); + self.$mWindow .off('click'); + self.$mWindow .on('click', function (event) { + var targetObj = $(event.target); + if (targetObj.parents().filter('#'+self.opt.mcId).length < 1) { + self.close(); + } + return false; + }); + }); + + }; + //methods for ModalBox object + ModalBox.prototype = { + //some kin + _getAjax: function (dataToSend, handler) { + var self = this; + if(!dataToSend){ + dataToSend = ''; + } + $.ajax({ + type: 'GET', + url: self.ajaxUrl, + data:dataToSend, + success: function(data) { + if(typeof handler == 'function'){ + self.rawData = data; + handler(); + } else{ + self.rawData = data; + } + } + }); + }, + // require dna.js template engine + _renderSlide: function (idToRender, handler) { + var self = this; + if(idToRender){ + self.currentId = idToRender; + } + if(handler){ + dna.empty(self.opt.mcId); + dna.load(self.opt.mcId, (self.ajaxUrl + self.currentId + '/'),{ callback:handler()}); + }else{ + + dna.empty(self.opt.mcId); + dna.load(self.opt.mcId, (self.ajaxUrl + self.currentId + '/'),{empty:true}); + } + + }, + _getId: function (parameter) { + var self = this, + nextSlide = function () { + var curId = $('.'+self.opt.mTrigger+' [data-image-id="'+self.currentId+'"]').parents('li').next().find('img').data('image-id'); + if(curId){ + self.currentId = curId; + }else{ + console.log('there is not next slides'); + + } + }, + prevSlide = function () { + var curId = $('.'+self.opt.mTrigger+' [data-image-id="'+self.currentId+'"]').parents('li').prev().find('img').data('image-id'); + if(curId){ + self.currentId = curId; + }else{ + console.log('there is not previous slides'); + + } + }, + defaultAction = function () { + console.log('_getId('+parameter+') RESULTS:'); + console.log(self.currentId); + + }; + switch(parameter) { + case '>': + nextSlide(); + break; + case '<': + prevSlide(); + break; + default: + defaultAction(); + } + }, + //public methods + close: function () { + $('body').removeClass('no-scroll'); + this.$mWindow.hide(); + }, + open: function () { + $('body').addClass('no-scroll'); + this.$mWindow.show(); + }, + nextSlide:function () { + var pastSlide = this.currentId; + this._getId('>'); + + if(pastSlide != this.currentId){ + this._renderSlide(); + } + }, + prevSlide: function () { + var pastSlide = this.currentId; + this._getId('<'); + if(pastSlide != this.currentId){ + this._renderSlide(); + } + }, + // method to get sliderPopup visible and pass to modalBox first initial id and make some init routine + show: function (idToShow) { + var self = this; + this._renderSlide(idToShow, function () {self.open()}); + } + }; + // methods + //инициализация общих свойств + that.init = function(options) { + // settings extending + $.extend(this.lang, options.lang); + options.lang = null; + $.extend(this.settings, options); + // begin of initialization + var self = this; + + this.modal = new ModalBox(self.settings.modalId, self.settings.containerId, self.settings.modalTrigger, self.settings.ajaxUrl, self.settings.nextButtonId, self.settings.prevButtonId, self.settings.closeModalButtonId, self.settings.modalContainerId); + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.profile.calendar.js b/static/client/js/_modules/page.profile.calendar.js new file mode 100644 index 00000000..3a4d4eba --- /dev/null +++ b/static/client/js/_modules/page.profile.calendar.js @@ -0,0 +1,291 @@ +var EXPO = EXPO || {}; //isolated namespace +EXPO.profile = EXPO.profile || {}; +if (EXPO.profile.calendar) { + console.warn('WARNING: EXPO.profile.calendar is already defined!'); +} else { + + EXPO.profile.calendar = (function () { +// dependencies + var com = EXPO.common; + +// variables + var that = {}; + + that.opt = {}; //свойства по умолчанию +//private + $(function () { + /** + * events list below calendar + */ + $('#btn_delete').on('click', function(e){ + e.preventDefault(); + var expos = $("input[name=expo]:checkbox:checked").map(function(){ + return $(this).val(); + }).get(); + var confs = $("input[name=conf]:checkbox:checked").map(function(){ + return $(this).val(); + }).get(); + var seminars = $("input[name=seminar]:checkbox:checked").map(function(){ + return $(this).val(); + }).get(); + var webinars = $("input[name=webinar]:checkbox:checked").map(function(){ + return $(this).val(); + }).get(); + var sendData = {'expo': JSON.stringify(expos), + 'conf':JSON.stringify(confs), + 'seminar':JSON.stringify(seminars), + 'webinar': JSON.stringify(webinars)} + $.get('/profile/calendar/remove/', sendData, function(data){ + if(data.success){ + location.reload(); + } + }) + }); + }); + +// methods + //инициализация общих свойств + that.init = function (options) { + $.extend(this.opt, options); + + /** + * scrolling calendar object + * depend on mCustomScroll Jquery plugin + * @type {*|jQuery|HTMLElement} + */ + var self = this, + $scrollBox = $('#' + this.opt.scrollBoxId), + $calendar = $('#' + this.opt.calenadrId), + currentDayOffset = $calendar.find('td.' + this.opt.currentDayClass).index() * this.opt.cellWidth, + $leftScroll = $('#' + this.opt.scrollLeftId), + $rightScroll = $('#' + this.opt.scrollRightId), + $noEventsField = $('.' + this.opt.noEventsClass), + $calendarToggle = $('.' + this.opt.calendarToggleClass), + scrollStep = this.opt.cellWidth * this.opt.cellsToScroll, + index = 0, + /** + *offset to curent week ( week in which today is) + * @returns {number} - offset in pixels + */ + // + currentWeekOffset = function () { + var offset = 0, + result = 0, + width = self.opt.cellWidth, + $calendar = $('#' + self.opt.calenadrId), + currentDay = $calendar.find('.'+self.opt.daysClass+' td.' + self.opt.currentDayClass).index(), + onestep = self.opt.cellsToScroll, + allDays = $calendar.find('.'+self.opt.daysClass+' td').length, + stepsCount, + currenCount; + + if(currentDay > 0){ + currentDay++; + stepsCount = allDays / onestep; + currenCount = allDays / currentDay; + + result = Math.floor(stepsCount) - Math.floor(currenCount); + + + self.currentDay =currentDay; + if (result) { + result--; + result--; + offset = onestep * result * width; + } else { + + offset = 0; + } + }else{ + self.currentDay = 0; + offset = 0; + } + + + return offset; + + }; + this.$leftScroll = $leftScroll; + this.$rightScroll = $rightScroll; + this.currentOffset = currentWeekOffset(); + //this.currentOffset = 0; + + this.scrollStep = scrollStep; + this.$scrollBox = $scrollBox; + this.$messages = []; + this.stepWidth = self.opt.cellsToScroll*self.opt.cellWidth; + + + $(function () { + /** + * no marked events message + */ + $noEventsField.each(function () { + var parentOffset = parseInt($(this).offset().left, 10), + $message = $('.message',$(this)); + /** + * remove sidebar width + */ + if(parentOffset){ + parentOffset -=312; + }else{ + parentOffset +=312; + } + if (!$(this).attr('colspan') || $(this).attr('colspan') == 1) { + $(this).find('.' + self.opt.eventWrapClass).addClass('small'); + }else if($(this).width() > self.stepWidth){ + $message.width(self.stepWidth) + if(parentOffset <0){ + $message.css({marginLeft:Math.abs(parentOffset+ self.stepWidth)+'px'}); + } + self.$messages.push($message); + } + }); + $('.' + self.opt.eventsClass+":even").addClass('grey'); + }); + + $(window).load(function () { + self.calendarWidth = self.opt.cellWidth* $calendar.find('.'+self.opt.daysClass+' td').length; + $scrollBox.mCustomScrollbar({ + axis: 'y', + horizontalScroll: true, + setLeft:'-'+self.currentOffset+'px', + mouseWheel:{enable:false}, + scrollButtons:{enable:false}, + contentTouchScroll:false, + scrollInertia:1000, + timeout:0, + advanced: { // Advanced options + autoScrollOnFocus: false, + updateOnContentResize: false, // Scrollbar will be updated on content resize + updateOnBrowserResize: false // Scrollbar will be updated on browser resize + }, + keyboard:{ + enable:false + }, + callbacks:{ + onScroll: function(){ + self.$leftScroll.off("click").one('click', function () { + self.scrollLeft(self); + }); + self.$rightScroll.off("click").one('click', function () { + self.scrollRight(self); + }); + + + } + } + }); + self.$leftScroll.one('click', function () { + self.scrollLeft(self); + }); + self.$rightScroll.one('click', function () { + self.scrollRight(self); + }); + }); + + + + $calendarToggle.on('click', function () { + var $switch = $(this); + var $sect = $switch.closest('.ep-sect'); + var $sectBody = $sect.children('div.ep-sect-body'); + + if ($sect.hasClass('eps-opened')) { + $rightScroll.hide(); + $leftScroll.hide(); + $sectBody + .stop() + .animate({ + opacity: 0 + }, 300, function () { + $sect.removeClass('eps-opened'); + }); + } else { + $rightScroll.show(); + $leftScroll.show(); + $sectBody + .stop() + .animate({ + opacity: 1 + }, 300, function () { + $sect.addClass('eps-opened'); + }); + } + + return false; + }); + + }; + /** + * scroll calendar + * @param self + * @returns {boolean} + */ + that.scrollRight = function (self) { + if(!self){ + self = this; + } + if((self.currentOffset + self.stepWidth) < self.calendarWidth){ + + self.currentOffset+= self.scrollStep; + + console.log("!!! right scroll fired!"); + self.$scrollBox.mCustomScrollbar("scrollTo", '-=' + self.scrollStep); + self.offsetMessages(); + }else{ + self.$rightScroll.one('click', function () { + self.scrollRight(self); + }); + } + return false; + }; + /** + * scroll calendar backward + * @param self + * @returns {boolean} + */ + that.scrollLeft = function (self) { + if(!self){ + self = this; + } + if(self.currentOffset >= self.stepWidth){ + self.currentOffset -= self.scrollStep; + console.log("!!! left scroll fired!"); + self.$scrollBox.mCustomScrollbar("scrollTo", '+=' + self.scrollStep); + self.offsetMessages(self); + }else{ + self.$leftScroll.one('click', function () { + self.scrollLeft(self); + }); + } + return false; + }; + /** + * make message "no marked events" visible on current week slide + * @param self - context + */ + that.offsetMessages = function (self) { + if(!self){ + self = this; + } + for (var i =0; i< self.$messages.length; i++){ + var parentWidth = self.$messages[i].parent().width(), + parentOffset = parseInt(self.$messages[i].parent().offset().left, 10) ; + if(parentOffset){ + parentOffset -= 312 + }else{ + parentOffset += 312 + + } + if(parentWidth > self.stepWidth){ + // message block went over the left edge + if(parentOffset <0){ + self.$messages[i].css({marginLeft:Math.abs(parentOffset+ self.stepWidth)+'px'}); + } + } + } + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.profile.js b/static/client/js/_modules/page.profile.js new file mode 100644 index 00000000..0be48deb --- /dev/null +++ b/static/client/js/_modules/page.profile.js @@ -0,0 +1,753 @@ +var EXPO = EXPO || {}; //isolated namespace +//общий для всех страниц модуль Функционал общий для всех страниц +// module requires JQuery library +// protection against duplication of a module code +if (EXPO.profile){ + console.warn('WARNING: EXPO.profile is already defined!'); +}else{ + + EXPO.profile = (function() { + // variables + var that = {}; + that.opt = { + updateFormClass:'update-profile-form' + }; //default module setting + //language object + that.lang ={}; + //dependences + var com = EXPO.common, + $waiter; + + //private + + /** + * Rating functional. Object stores data, HTML Instance of rating field, and can refresh its value + * @param {Object} opt - options for rating instance, like HTML Id and other + * @constructor + */ + function Rating(opt){ + this.opt = opt; + this.$inst = $('#'+opt.id); + this.value = this.$inst.text; + } + Rating.prototype = { + /** + * refreshes value of HTML instance with new. + * @param {number} newRating - new profile rating value + */ + refresh: function (newRating) { + this.value = newRating; + this.$inst.text(this.value); + } + }; + function Forms(){}; + // methods to perform ajax responses to send and receive data from the server + // factory for on page form objects + Forms.prototype = { + // ajax request realization + submit: function (dataToSend) { + var self = this; + if(!dataToSend){ + dataToSend = ''; + } + $.ajax({ + type: 'POST', + url: self.ajaxPath, + data:dataToSend, + processData: false, + contentType: false, + success: function(data) { + self.afterSubmitHandler(data); + if(data.success){ + EXPO.profile.rating.refresh(data.rating); + } + $('#wait-ajax').fadeOut(); + } + }); + + }, + // check if there exists custom data manipulation handler and evaluate it + beforeSubmit: function (data, formName) { + var handler = this.beforeSubmitHandler, + formData = data; + if(typeof formData != "string"){ + this.formData =formData; + }else{ + this.formData = JSON.parse('{"' + decodeURI(formData).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g,'":"') + '"}'); + } + this.formId = formName; + + if(typeof handler == 'function'){ + // if particular data change required + this.formData = handler(data, formName); + this.submit(data); + $('#wait-ajax').show(); + } else{ + this.submit(data); + $('#wait-ajax').show(); + } + + + + + }, + afterSubmit: function (data) { + var handler = this.afterSubmitHandler; + if(typeof handler == 'function'){ + handler(data); + } else{ + throw{ + name: 'Error', + message: " handler function for processing response after form submit not defined, please define it!" + }; + } + + + }, + // method to fulfill edited inputs with new content + fulfillInputs: function () { + var self = this; + for (input in self.formData) { + if($('#id_'+input, $('#'+self.formId)).length > 0){ + $('#id_'+input, $('#'+self.formId)).value(self.formData[input]); + } + if($('#static-'+input).length > 0){ + $('#static-'+input).html(); + } + } + }, + /** + * refreshes form state: if value was entered by user, then there will be label with rhis value + * or there will be prompt to enter value + * @function + * @public + */ + refreshHTML: function () { + var pureText = $.trim( this.$staticValue.text()).replace(/[^0-9a-zA-Zа-я\s]/g,'').replace( /(\d)\s/, '' ).replace(/\s+/g,''); + if(($.trim( this.$staticValue.text()) == '' || pureText == 'NoneNone') && this.$wrapper.length && this.refrashable){ + this.$editable.addClass('hidden'); + this.$editable.removeClass(EXPO.profile.opt.formCurrentClass); + this.$description.removeClass('hidden'); + + }else if(this.$wrapper.length && this.refrashable){ + this.$editable.removeClass('hidden'); + this.$description.addClass('hidden'); + } + + } + }; + Forms.factory = function (type, ajaxpath) { + var constr = type, + newForm; + if (typeof Forms[constr] !== 'function'){ + throw{ + name: 'Error', + message: constr + "doesen't exist" + }; + } + if(typeof Forms[constr].prototype.beforeSubmit !== "function"){ + Forms[constr].prototype = new Forms(); + } + newForm = new Forms[constr](ajaxpath); + return newForm; + }; + + //# constructors for each indivivdual form + // please add functionality for new profile forms here + // beforeSubmitHandler is for ajax to server, pullHandler for ajax from it. Data is the response information from server + // name of each method is equal 'id' attribute of
    element on the page. + + Forms.home_form = function (path) { + var self = this; + /** + * callback after successful request to the server + * @param data -data object recieved from server + */ + this.afterSubmitHandler = function (data) { + if (data.success){ + var country = $('#s2id_id_country').find('.select2-chosen').text(), + city = $('#s2id_id_city').find('.select2-chosen').text(); + $('#static-home-country').text(country); + $('#static-home-city').text(city); + $('.p-editable').removeClass('pe-current'); + this.refreshHTML(); + } + }; + this.ajaxPath = path; + + }; + Forms.name_form = function (path) { + var self = this; + /** + * callback after successful request to the server + * @param data -data object recieved from server + */ + this.afterSubmitHandler = function (data) { + if (data.success){ + $('#static-name-value').text($('#id_last_name').val()+' '+$('#id_first_name').val()); + $('.p-editable').removeClass('pe-current'); + this.refreshHTML(); + + } + }; + this.ajaxPath = path; + + }; + Forms.work_form = function (path) { + var self = this; + /** + * callback after successful request to the server + * @param data -data object recieved from server + */ + this.afterSubmitHandler = function (data) { + var staticText, + work_fieldValue = $.trim($('#s2id_id_company').text()); + if (data.success ){ + staticText = $('#id_position').val(); + if(work_fieldValue != '' && work_fieldValue != "Поиск компании"){ + staticText += ' '+ EXPO.profile.opt.lang.workIn + ' '+work_fieldValue; + } + $('#static-work-value').text(staticText); + $('.p-editable').removeClass('pe-current'); + this.refreshHTML(); + + } + }; + this.ajaxPath = path; + + }; + Forms.phone_form = function (path) { + var self = this; + /** + * callback after successful request to the server + * @param data -data object recieved from server + */ + this.afterSubmitHandler = function (data) { + if (data.success){ + $('#static-phone-value').text($('#id_phone')[0].value); + + $('.p-editable').removeClass('pe-current'); + this.refreshHTML(); + + } + }; + this.ajaxPath = path; + + }; + Forms.web_page_form = function (path) { + var self = this; + /** + * callback after successful request to the server + * @param data -data object recieved from server + */ + this.afterSubmitHandler = function (data) { + if (data.success){ + var userLink = $('#id_web_page').val(); + $('#static-web-page-value').attr('href',userLink).text(userLink); + $('.p-editable').removeClass('pe-current'); + this.refreshHTML(); + + } + }; + + this.ajaxPath = path; + + }; + Forms.about_form = function (path) { + var self = this; + /** + * callback after successful request to the server + * @param data -data object recieved from server + */ + this.afterSubmitHandler = function (data) { + if (data.success){ + $('#static-about-value').html(com.nl2br($('#id_about').val())); + $('.p-editable').removeClass('pe-current'); + this.refreshHTML(); + + } + }; + this.ajaxPath = path; + + }; + Forms.social_form = function (path) { + var self = this, + $img, imgSrc, $input, inputValue; + /** + * callback after successful request to the server + * @param data -data object recieved from server + */ + this.afterSubmitHandler = function (data) { + if (data.success){ + + for (item in self.formData) { + $input = $('#id_'+item); + $input.parent('.required').removeClass('err'); + + if($.trim(self.formData[item]) != '' && $input.length){ + $img = $('#img-'+item); + if($img.length){ + inputValue = $.trim($input.val()); + if ($img.parent('a').length){ + $img.parent('a').attr('href',inputValue); + imgSrc = $img.attr('src').replace('_hover',''); + $img.attr('src',imgSrc); + }else { + imgSrc = $img.attr('src').replace('_hover',''); + $img.attr('src',imgSrc); + $img.wrap(''); + } + } + }else if($input.length){ + $img = $('#img-'+item); + if ($img.parent('a').length){ + imgSrc = $img.attr('src').replace('.png','_hover.png'); + $img.attr('src',imgSrc); + $img.unwrap(); + } + + } + + } + $('.p-editable').removeClass('pe-current'); + this.refreshHTML(); + + }else { + for (item in data.errors) { + $input = $('#id_' + item); + $input.parent('.required').addClass('err'); + $input.blur(function () { + $input.parent('.required').removeClass('err'); + self.$form.submit(); + }); + } + } + }; + this.beforeSubmitHandler = function (data, formName){ + var formData = $('#'+formName).serialize(); + + return JSON.parse('{"' + decodeURI(formData).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g,'":"') + '"}'); + + + + + }; + this.refreshHTML = function () { + console.log(this); + var fullComplete = true; + $('input:text',this.$form).each(function () { + if($.trim($(this).val()) == ''){ + fullComplete = false; + } + }); + if(fullComplete){ + $('.full-complete',this.$description).removeClass('hidden'); + $('.not-complete',this.$description).addClass('hidden'); + }else{ + $('.full-complete',this.$description).addClass('hidden'); + $('.not-complete',this.$description).removeClass('hidden'); + } + }; + this.ajaxPath = path; + + }; + Forms.avatar_form = function (path) { + var self = this, + $input = $('#id_avatar'), + $editPhoto = $('#pic-edit-photo'), + $pickBlock = $('#pick-block'), + $form, + $avatar = $('img',$pickBlock); + /** + * callback after successful request to the server + * @param data -data object recieved from server + */ + this.afterSubmitHandler = function (data) { + if (data.success){ + + if($avatar.length){ + $avatar.attr('src', data.url); + this.refreshHTML(); + } + + + } + }; + this.beforeSubmitHandler = function(data){ + if(typeof data != 'string'){ + self.submit(data); + $('#wait-ajax').show(); + }else{ + $form = $('#'+self.formId); + $form.off('submit'); + $form.trigger('submit'); + } + }; + $input.on('change', function () { + $(this).parents('form').submit(); + }); + + this.ajaxPath = path; + + this.refreshHTML = function () { + if($.trim(this.$image.attr('src')) == this.noImageSrc){ + this.$editable.addClass('hidden'); + this.$description.removeClass('hidden'); + }else{ + this.$editable.removeClass('hidden'); + this.$description.addClass('hidden'); + } + + } + }; + /** + * add new company form init + * @param path + */ + Forms.create_company_form = function (path) { + var self = this, + containerClass = 'pwf-field'; + /** + * callback after successful request to the server + * @param data -data object recieved from server + */ + this.afterSubmitHandler = function (data) { + if (data.success){ + location.reload(); + + }else{ + + for ( var key in data.errors) { + if (data.errors.hasOwnProperty(key)) { + $('input[name="' + key + '"], select[name="' + key + '"]', self.$form).closest('.'+containerClass).addClass('err'); + $waiter.hide(); + } + } + } + + }; + + this.ajaxPath = path; + }; + + + // methods + //инициализация общих свойств + that.init = function(options) { + $.extend(this.lang, options.lang); + //options.lang = null; + $.extend(this.opt, options); + + var self = this, + initMaskedInput = function (inputId) { + var maskList = $.masksSort($.masksLoad("/static/client/js/plugins/inputmask/phone-codes.json"), ['#'], /[0-9]|#/, "mask"), + maskOpts = { + inputmask: { + definitions: { + '#': { + validator: "[0-9]", + cardinality: 1 + } + }, + showMaskOnHover: false, + insertMode:false, + autoUnmask: true + }, + insertMode:false, + match: /[0-9]/, + replace: '#', + list: maskList, + listKey: "mask", + onMaskChange: function(maskObj, determined) { + $(this).attr("placeholder", '+_(___)___-__-__'); + } + }, + selector = '#'+inputId; + + $(selector).inputmasks(maskOpts); + + }; + this.rating = new Rating(this.opt.rating); + this.forms = {}; + $(function () { + var $editables = $('.'+self.opt.editableClass), + $country = $('#'+self.opt.selectBox[0].id), + $city = $('#'+self.opt.selectBox[2].id), + $companyUrl = $("#id_url"); + + $waiter = $('#wait-ajax').css({'z-index': '8012'}); + /** + * styling with 3-rd party libs + */ + /** + * select country + */ + $country.select2({ + width: 'element' + }); + $country.on("change", function () { + $city.val(0); + $city.select2("val", ""); + }); + /** + * select theme + */ + $('#'+self.opt.selectBox[1].id).select2({ + width: 'element', + placeholder: self.opt.selectBox[1].placeholder, + maximumSelectionSize: 3 + }); + /** + * select city + */ + $city.select2({ + placeholder: self.opt.selectBox[2].placeholder, + width: 'element', + ajax: { + + url: self.opt.selectBox[2].path, + dataType: "json", + quietMillis: 200, + + data: function(term, page, country){ + var country = $('#'+self.opt.selectBox[0].id).val(); + return {term: term, + page: page, + country: country}; + }, + + results: function (data) { + var results = []; + $.each(data, function(index, item){ + results.push({ + id: item.id, + text: item.label + }); + }); + return {results: results}; + } + }, + initSelection : function(element, callback) { + var id= $(element).val(); + var text = $(element).attr('data-init-text'); + callback({id: id, text:text}); + + } + + }); + + $('#'+self.opt.selectBox[3].id).select2({ + placeholder: self.opt.selectBox[3].placeholder, + width: '200px', + minimumInputLength: 1, + ajax: { + + url: self.opt.selectBox[3].path, + dataType: "json", + quietMillis: 200, + + data: function(term, page, country){ + return {term: term, + page: page}; + }, + + results: function (data) { + var results = []; + $.each(data, function(index, item){ + results.push({ + id: item.id, + text: item.label + }); + }); + return {results: results}; + } + }, + initSelection : function(element, callback) { + var id= $(element).val(); + var text = $(element).attr('data-init-text'); + callback({id: id, text:text}); + + } + + + }); + + // make mask on phone field input + initMaskedInput(self.opt.phoneBox); + //forms init + $('.'+self.opt.updateFormClass).each(function () { + var formName = $(this).attr('id'), + path = $(this).attr('action'), + inputData, + $wrapper = $(this).closest('.'+self.opt.formWrapperClass), + $staticValue = $('.'+self.opt.staticValueClass, $wrapper), + $description = $('.'+self.opt.descriptionClass, $wrapper), + $editable = $('.'+self.opt.editableClass, $wrapper), + $closeButton = $('.'+self.opt.closeButtonClass, $wrapper), + $image = $('.'+self.opt.avatarImageClass, $wrapper); + + //make and initialize form objects + + self.forms[formName] = Forms.factory(formName,path); + if($('.'+self.opt.editButtonClass, $wrapper).hasClass('no-refresh')){ + self.forms[formName].refrashable = false; + }else{ + self.forms[formName].refrashable = true; + + } + self.forms[formName].$form = $(this); + self.forms[formName].$wrapper = $wrapper; + self.forms[formName].$staticValue = $staticValue; + self.forms[formName].$description = $description; + self.forms[formName].$editable = $editable; + /** + * Send proper information if there is image. mainly for avatar editing + */ + if($image.length){ + + self.forms[formName].$image = $image; + self.forms[formName].noImageSrc = self.opt.noImageSrc; + } + + //self.forms[formName].refreshHTML(); + + // submit events handler + $(this).off('submit'); + $(this).on('submit', function () { + //check if formData is supported + $waiter.show(); + if ( window.FormData && ("upload" in ($.ajaxSettings.xhr())) ){ + inputData = new FormData(this); + self.forms[formName].beforeSubmit(inputData, formName); + } else { + inputData = $(this).serialize(); + self.forms[formName].beforeSubmit(inputData, formName); + } + + return false; + }); + $closeButton.on('click', function() { + $editable.removeClass(self.opt.formCurrentClass); + self.forms[formName].refreshHTML(); + return false; + }); + if($('.'+self.opt.avatarButtonClass, $wrapper).length){ + /** + * avatar image choose button + */ + $('.'+self.opt.editButtonClass+','+' .'+self.opt.avatarButtonClass, $wrapper).on('click', function () { + var $input = $('#'+self.opt.avatarInputId); + $input.trigger('click'); + return false; + }); + + }else{ + /** + * edit button + */ + $('.'+self.opt.editButtonClass+', .'+self.opt.avatarButtonClass, $wrapper).on('click', function () { + //close other active editable forms + var $wrapper = $(this).closest('.'+self.opt.formWrapperClass), + formId = $wrapper.find('.'+self.opt.updateFormClass).attr('id'), + $description = $wrapper.find('.'+self.opt.descriptionClass), + $editable = $wrapper.find('.'+self.opt.editableClass); + $editables.each(function () { + var $wrapper = $(this).closest('.'+self.opt.formWrapperClass), + formId = $wrapper.find('.'+self.opt.updateFormClass).attr('id'), + $description = $wrapper.find('.'+self.opt.descriptionClass), + $editable = $wrapper.find('.'+self.opt.editableClass); + if($(this).hasClass(self.opt.formCurrentClass)){ + if(self.forms[formId].refrashable){ + + self.forms[formId].refreshHTML(); + $editable.removeClass(EXPO.profile.opt.formCurrentClass); + }else{ + $editable.removeClass(self.opt.formCurrentClass); + } + + } + }); + + if(self.forms[formId].refrashable){ + $editable.removeClass('hidden'); + $description.addClass('hidden'); + }else{ + + } + $editable.addClass(self.opt.formCurrentClass); + $(document).on('click.form', function(event) { + var targetObj = $(event.target); + if (targetObj.parents().filter('.e-form').length < 1) { + $editable.removeClass(self.opt.formCurrentClass); + self.forms[formName].refreshHTML(); + $(document).off('click.form'); + } + }); + return false; + + }); + } + + }); + + /** + * add new company modal window trigger + */ + $('#'+self.opt.addCompanyButtonId).on('click', function (event) { + event.preventDefault(); + $.fancybox.open('#'+ self.opt.addCompany.modalId); + return false; + }); + /** + * add company url placeholder + */ + + $companyUrl.on('focus', function () { + var $this = $(this), + placeholder = self.opt.companyAddInputMask; + + if($.trim($this.val()) == ''){ + $this.val(placeholder); + + } + return false; + }); + $companyUrl.on('click', function () { + if (this.setSelectionRange && $.trim($(this).val()) == self.opt.companyAddInputMask){ + var len = $(this).val().length; + this.setSelectionRange(len, len); + } + }); + $companyUrl.on('keypress', function () { + var $this = $(this), + placeholder = self.opt.companyAddInputMask; + + if($.trim($this.val()) == ''){ + $this.val(placeholder); + } + }); + $companyUrl.on('blur', function () { + var $this = $(this), + placeholder = self.opt.companyAddInputMask; + if($.trim($this.val()) == placeholder){ + $this.val(''); + } + }); + /** + * show phone to all checkbox + */ + //$('#id_show_phone').on("change", function () { + // if ($(this).prop("checked")){ + // $(this).closest(".custom-radio-check").addClass("active"); + // }else{ + // $(this).closest(".custom-radio-check").removeClass("active"); + // } + //}); + }); + + + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.tour.js b/static/client/js/_modules/page.tour.js new file mode 100644 index 00000000..a2773950 --- /dev/null +++ b/static/client/js/_modules/page.tour.js @@ -0,0 +1,83 @@ +var EXPO = EXPO || {}; //isolated namespace +if (EXPO.tour) { + console.warn('WARNING: EXPO.tour is already defined!'); +} else { + EXPO.tour = (function () { + /** + * private (visible inside this module only) variables + */ + /** + * @type {Object} - module API interafce realization + */ + var that = {}; + /** + * @type {Object} default setting + */ + that.opt = {}; + /** + * dependencies.Place where you can switch on dependencies for module + * @type {EXPO.common|*} - mostly used in project functions and data (block.common.js) + */ + var com = EXPO.common; + + /** + * current module general initialization + * @param {Object} options - options recieved from web page view + */ + that.init = function (options) { + /** + * default module options + * @type {Object} + */ + this.opt = { + fromDateId:"id_fr", + toDateId:"id_to" + + }; + // settings extending + $.extend(this.opt, options); + // begin of initialization + var self = this, + opt = this.opt, + $dateFrom = $(document.getElementById(opt.fromDateId)), + $dateTo = $(document.getElementById(opt.toDateId)); + $(function () { + $.datepicker.setDefaults($.datepicker.regional["ru"]); + + $dateFrom.datepicker({ + dateFormat: 'dd.mm.yy', + showOn: 'button', + showOtherMonths: true, + constrainInput: true, + onClose: function( selectedDate ) { + $dateTo.datepicker( "option", "minDate", selectedDate ); + } + }).inputmask("99.99.9999",{ + showMaskOnHover:false, + insertMode:false, + 'oncomplete': function () { + $activeField = this; + } + }); + $dateTo.datepicker({ + dateFormat: 'dd.mm.yy', + showOn: 'button', + showOtherMonths: true, + constrainInput: true, + onClose: function( selectedDate ) { + $dateFrom.datepicker( "option", "maxDate", selectedDate ); + } + }).inputmask("99.99.9999",{ + showMaskOnHover:false, + insertMode:false, + 'oncomplete': function () { + $activeField = this; + } + }); + }); + + + }; + return that; + }()); +} diff --git a/static/client/js/_modules/page.translator.js b/static/client/js/_modules/page.translator.js new file mode 100644 index 00000000..75629092 --- /dev/null +++ b/static/client/js/_modules/page.translator.js @@ -0,0 +1,83 @@ +var EXPO = EXPO || {}; //isolated namespace +if (EXPO.translator) { + console.warn('WARNING: EXPO.translator is already defined!'); +} else { + EXPO.translator = (function () { + /** + * private (visible inside this module only) variables + */ + /** + * @type {Object} - module API interafce realization + */ + var that = {}; + /** + * @type {Object} default setting + */ + that.opt = {}; + /** + * dependencies.Place where you can switch on dependencies for module + * @type {EXPO.common|*} - mostly used in project functions and data (block.common.js) + */ + var com = EXPO.common; + + /** + * current module general initialization + * @param {Object} options - options recieved from web page view + */ + that.init = function (options) { + /** + * default module options + * @type {Object} + */ + this.opt = { + fromDateId:"id_fr", + toDateId:"id_to" + + }; + // settings extending + $.extend(this.opt, options); + // begin of initialization + var self = this, + opt = this.opt, + $dateFrom = $(document.getElementById(opt.fromDateId)), + $dateTo = $(document.getElementById(opt.toDateId)); + $(function () { + $.datepicker.setDefaults($.datepicker.regional["ru"]); + + $dateFrom.datepicker({ + dateFormat: 'dd.mm.yy', + showOn: 'button', + showOtherMonths: true, + constrainInput: true, + onClose: function( selectedDate ) { + $dateTo.datepicker( "option", "minDate", selectedDate ); + } + }).inputmask("99.99.9999",{ + showMaskOnHover:false, + insertMode:false, + 'oncomplete': function () { + $activeField = this; + } + }); + $dateTo.datepicker({ + dateFormat: 'dd.mm.yy', + showOn: 'button', + showOtherMonths: true, + constrainInput: true, + onClose: function( selectedDate ) { + $dateFrom.datepicker( "option", "maxDate", selectedDate ); + } + }).inputmask("99.99.9999",{ + showMaskOnHover:false, + insertMode:false, + 'oncomplete': function () { + $activeField = this; + } + }); + }); + + + }; + return that; + }()); +} diff --git a/static/client/js/dna.min.js b/static/client/js/dna.min.js new file mode 100644 index 00000000..0bd547b6 --- /dev/null +++ b/static/client/js/dna.min.js @@ -0,0 +1,2 @@ +//dna.js v0.2.9 ~~ dnajs.org/license.html +var dna={clone:function(a,b,c){var d={fade:!1,top:!1,container:null,empty:!1,html:!1,callback:null};$.extend(d,c);var e=dna.store.getTemplate(a);e.nested&&!d.container&&dna.core.berserk("Container missing for nested template: "+a),d.empty&&dna.empty(a);for(var f=b instanceof Array?b:[b],g=$(),h=0;h0&&c(window,a.split(".")),d}},dna.ui={toElem:function(a,b){return a instanceof jQuery?a:$(a?a.target:b)},deleteElem:function(a){return dna.ui.toElem(a,this).remove()},slideFade:function(a,b,c){function d(){a.css(h)}var e={opacity:0,transition:"opacity 0s ease 0s"},f={opacity:1,transition:"opacity 0.4s ease-in"},g={opacity:0,transition:"opacity 0.4s ease-out"},h={transition:"opacity 0s ease 0s"};return window.setTimeout(d,1e3),c?a.css(e).hide().slideDown({complete:b}).css(f):a.css(g).slideUp({complete:b}),a},slideFadeIn:function(a,b){return dna.ui.slideFade(a,b,!0)},slideFadeOut:function(a,b){return dna.ui.slideFade(a,b,!1)},slideFadeToggle:function(a,b){return dna.ui.slideFade(a,b,a.is(":hidden"))},slideFadeDelete:function(a){return dna.ui.slideFadeOut(a,dna.ui.deleteElem)},slidingFlasher:function(a,b){return a.is(":hidden")?dna.ui.slideFadeIn(a,b):a.hide().fadeIn()}},dna.compile={regexDnaField:/^[\s]*(~~|\{\{).*(~~|\}\})[\s]*$/,regexDnaBasePair:/~~|{{|}}/,regexDnaBasePairs:/~~|\{\{|\}\}/g,setupNucleotide:function(a){return void 0===a.data().dnaRules&&(a.data().dnaRules={}),a.addClass("dna-nucleotide")},isDnaField:function(){var a=$(this)[0].childNodes[0];return a&&a.nodeValue&&a.nodeValue.match(dna.compile.regexDnaField)},field:function(){var a=dna.compile.setupNucleotide($(this));return a.data().dnaRules.text=$.trim(a.text()).replace(dna.compile.regexDnaBasePairs,""),a.empty()},propsAndAttrs:function(){function a(){if(/^data-dna-prop-/.test(this.name))c.push(this.name.replace(/^data-dna-prop-/,""),this.value.replace(dna.compile.regexDnaBasePairs,""));else{if(3!==this.value.split(dna.compile.regexDnaBasePair).length)return;d.push(this.name.replace(/^data-dna-attr-/,""),this.value.split(dna.compile.regexDnaBasePair))}e.push(this.name)}var b=$(this),c=[],d=[],e=[];return $.each(b.get(0).attributes,a),c.length>0&&(dna.compile.setupNucleotide(b).data().dnaRules.props=c),d.length>0&&(dna.compile.setupNucleotide(b).data().dnaRules.attrs=d),b.removeAttr(e.join(" "))},getDataField:function(a,b){return $.trim(a.data("dna-"+b).replace(dna.compile.regexDnaBasePairs,""))},subTemplateName:function(a,b){var c=a instanceof jQuery?dna.getClone(a).data().dnaRules.template:a;return c+"-"+b+"-instance"},rules:function(a,b,c){function d(){var a=dna.compile.setupNucleotide($(this)),d=dna.compile.getDataField(a,b);a.data().dnaRules[b]=c?d.split(","):d}return a.filter("[data-dna-"+b+"]").each(d).removeAttr("data-dna-"+b)},template:function(a){function b(){$(this).data().dnaRules={template:$(this).attr("id")}}var c=$("#"+a);c.length||dna.core.berserk("Template not found: "+a),c.find(".dna-template").addBack().each(b).removeAttr("id");var d=c.find("*").addBack();return d.filter(dna.compile.isDnaField).each(dna.compile.field),dna.compile.rules(d,"array").addClass("dna-array"),dna.compile.rules(d,"class",!0),dna.compile.rules(d,"require"),dna.compile.rules(d,"missing"),dna.compile.rules(d,"truthy"),dna.compile.rules(d,"falsey"),d.each(dna.compile.propsAndAttrs),dna.store.stash(c)}},dna.store={templates:{},stash:function(a){function b(){var a=$(this),b=a.data().dnaRules.template,c={name:b,elem:a,container:a.parent().addClass("dna-container").addClass("dna-contains-"+b),nested:0!==a.parent().closest(".dna-clone").length,index:a.index(),clones:0};dna.store.templates[b]=c,a.removeClass("dna-template").addClass("dna-clone").addClass(b).detach()}function c(){var a=$(this),b=a.data().dnaRules.array,c=dna.compile.subTemplateName(d,b);dna.compile.setupNucleotide(a.parent()).data().dnaRules.loop={name:c,field:b},a.data().dnaRules.template=c}var d=a.data().dnaRules.template;return a.find(".dna-template").addBack().each(b),a.find(".dna-array").each(c).each(b),dna.store.templates[d]},getTemplate:function(a){return dna.store.templates[a]||dna.compile.template(a)}},dna.events={initializers:[],elementSetup:function(a,b){function c(){dna.util.apply($(this).data("dna-setup"),[$(this),b])}var d="[data-dna-setup]",e=a?a.find(d).addBack(d):$(".dna-setup");return e.each(c).addClass("dna-initialized")},runInitializers:function(a,b){function c(){dna.util.apply(this.func,[(this.selector?a.find(this.selector).addBack(this.selector):a).addClass("dna-initialized")].concat(this.params))}return dna.events.elementSetup(a,b),$.each(dna.events.initializers,c),a},runner:function(a,b,c){return a=a.closest("[data-dna-"+b+"]"),dna.util.apply(a.data("dna-"+b),[a,c])},handle:function(a){return dna.events.runner($(a.target),a.type.replace("key","key-"),a)},handleEnterKey:function(a){return 13===a.which?dna.events.runner($(a.target),"enter-key",a):null},setup:function(){$(document).click(dna.events.handle).change(dna.events.handle).keyup(dna.events.handle).keyup(dna.events.handleEnterKey).keydown(dna.events.handle).keypress(dna.events.handle),dna.events.elementSetup()}},$(dna.events.setup),dna.core={inject:function(a,b,c,d){function e(a,e){function f(a){return-1!==$.inArray(typeof a,h)}var g="object"==typeof b?dna.util.value(b,e):"[count]"===e?c:"[value]"===e?b:null,h=["string","number","boolean"];f(g)&&(a=d.html?a.html(g):a.text(g))}function f(a,c){for(var d=0;d1&&(a.toggleClass(c[1],e),c[2]&&a.toggleClass(c[2],!e))}function i(a,c){var d=dna.util.value(b,c.field);d&&dna.clone(c.name,d,{container:a})}function j(){var a=$(this),c=a.data().dnaRules;c.text&&e(a,c.text),c.props&&f(a,c.props),c.attrs&&g(a,c.attrs),c.class&&h(a,c.class),c.require&&a.toggle(void 0!==dna.util.value(b,c.require)),c.missing&&a.toggle(void 0===dna.util.value(b,c.missing)),c.truthy&&a.toggle(dna.util.realTruth(dna.util.value(b,c.truthy))),c.falsey&&a.toggle(!dna.util.realTruth(dna.util.value(b,c.falsey))),c.loop&&i(a,c.loop)}return a.find(".dna-array").remove(),a.find(".dna-nucleotide").addBack(".dna-nucleotide").each(j),a.data("dna-model",b)},replicate:function(a,b,c,d){var e=a.elem.clone(!0,!0);a.clones++,dna.core.inject(e,b,c,d);var f=".dna-contains-"+a.name,g=d.container?d.container.find(f).addBack(f):a.container;return g[d.top?"prepend":"append"](e),dna.events.runInitializers(e,b),d.callback&&d.callback(e,b),d.fade&&dna.ui.slideFadeIn(e),e},unload:function(a,b,c){b.error||dna.clone(a,b,c)},berserk:function(a){throw"dna.js error -> "+a}}; \ No newline at end of file diff --git a/static/client/js/existing-tags.js b/static/client/js/existing-tags.js new file mode 100644 index 00000000..987c1223 --- /dev/null +++ b/static/client/js/existing-tags.js @@ -0,0 +1,40 @@ +{ + "Image" : [ + { + "id":150, + "Tags":[ + { + "id":200, + "text":"John Doe", + "left":250, + "top":50, + "url": "/person.php?id=200", + "isDeleteEnable": true + }, + { + "id":350, + "text":"Michael Smith", + "left":420, + "top":45, + "width":120, + "height":120, + "url": "/person.php?id=350", + "isDeleteEnable": true + }, + { + "id":500, + "text":"Peter Parker", + "left":55, + "top":40, + "url": "/person.php?id=500", + "isDeleteEnable": true + } + ] + } + ], + "options":{ + "tag":{ + "flashAfterCreation": true + } + } +} diff --git a/static/client/js/expo_b.js b/static/client/js/expo_b.js new file mode 100644 index 00000000..4a4b1531 --- /dev/null +++ b/static/client/js/expo_b.js @@ -0,0 +1,7 @@ +/** + * Created by kotzilla on 17/07/15. + */ +$(function () { + + console.log('banners'); +}); \ No newline at end of file diff --git a/static/client/js/gmap.js b/static/client/js/gmap.js new file mode 100644 index 00000000..5238b43d --- /dev/null +++ b/static/client/js/gmap.js @@ -0,0 +1,24 @@ +var map; + +function mapInit() { + var canvas = document.getElementById('map-canvas'); + var coords = canvas.getAttribute('data-coords'); + var commaPos = coords.indexOf(','); + var lat = parseFloat(coords.substring(0, commaPos)); + var lng = parseFloat(coords.substring(commaPos + 1, coords.length)); + var myLatlng = new google.maps.LatLng(lat, lng); + var mapOptions = { + zoom: 15, + center: myLatlng + }; + map = new google.maps.Map(canvas, mapOptions); + + var marker = new google.maps.Marker({ + position: myLatlng, + map: map + }); + +} + +// google.maps.event.addDomListener(window, 'load', mapInit); + diff --git a/static/client/js/idangerous.swiper-2.4.min.js b/static/client/js/idangerous.swiper-2.4.min.js new file mode 100644 index 00000000..c989373c --- /dev/null +++ b/static/client/js/idangerous.swiper-2.4.min.js @@ -0,0 +1,90 @@ +/* + * Swiper 2.4+ - Mobile Touch Slider + * http://www.idangero.us/sliders/swiper/ + * + * Copyright 2012-2013, Vladimir Kharlampidi + * The iDangero.us + * http://www.idangero.us/ + * + * Licensed under GPL & MIT + * + * Updated on: December 6, 2013 +*/ +var Swiper=function(f,b){function h(a,b){return document.querySelectorAll?(b||document).querySelectorAll(a):jQuery(a,b)}function g(){var c=A-m;b.freeMode&&(c=A-m);b.slidesPerView>a.slides.length&&(c=0);0>c&&(c=0);return c}function l(){function c(c){var d=new Image;d.onload=function(){a.imagesLoaded++;a.imagesLoaded==a.imagesToLoad.length&&(a.reInit(),b.onImagesReady&&a.fireCallback(b.onImagesReady,a))};d.src=c}var d=a.h.addEventListener;a.browser.ie10?(d(a.wrapper,a.touchEvents.touchStart,B),d(document, +a.touchEvents.touchMove,C),d(document,a.touchEvents.touchEnd,D)):(a.support.touch&&(d(a.wrapper,"touchstart",B),d(a.wrapper,"touchmove",C),d(a.wrapper,"touchend",D)),b.simulateTouch&&(d(a.wrapper,"mousedown",B),d(document,"mousemove",C),d(document,"mouseup",D)));b.autoResize&&d(window,"resize",a.resizeFix);q();a._wheelEvent=!1;if(b.mousewheelControl){void 0!==document.onmousewheel&&(a._wheelEvent="mousewheel");try{WheelEvent("wheel"),a._wheelEvent="wheel"}catch(e){}a._wheelEvent||(a._wheelEvent="DOMMouseScroll"); +a._wheelEvent&&d(a.container,a._wheelEvent,P)}b.keyboardControl&&d(document,"keydown",Q);if(b.updateOnImagesReady)for(a.imagesToLoad=h("img",a.container),d=0;d=v&&r[0]<=v+h&&r[1]>=g&&r[1]<=g+m&&(e=!0)}if(!e)return}if(k){if(37==b||39==b)c.preventDefault?c.preventDefault(): +c.returnValue=!1;39==b&&a.swipeNext();37==b&&a.swipePrev()}else{if(38==b||40==b)c.preventDefault?c.preventDefault():c.returnValue=!1;40==b&&a.swipeNext();38==b&&a.swipePrev()}}function P(c){var d=a._wheelEvent,e=0;if(c.detail)e=-c.detail;else if("mousewheel"==d)if(k)if(Math.abs(c.wheelDeltaX)>Math.abs(c.wheelDeltaY))e=c.wheelDeltaX;else return;else if(Math.abs(c.wheelDeltaY)>Math.abs(c.wheelDeltaX))e=c.wheelDeltaY;else return;else if("DOMMouseScroll"==d)e=-c.detail;else if("wheel"==d)if(k)if(Math.abs(c.deltaX)> +Math.abs(c.deltaY))e=-c.deltaX;else return;else if(Math.abs(c.deltaY)>Math.abs(c.deltaX))e=-c.deltaY;else return;if(b.freeMode){if(d=a.getWrapperTranslate()+e,0e?a.swipeNext():a.swipePrev()),V=(new Date).getTime();b.autoplay&&a.stopAutoplay(!0);c.preventDefault?c.preventDefault():c.returnValue=!1;return!1}function T(c){a.allowSlideClick&&(W(c), +a.fireCallback(b.onSlideClick,a,c))}function U(c){W(c);a.fireCallback(b.onSlideTouch,a,c)}function W(c){if(c.currentTarget)a.clickedSlide=c.currentTarget;else{c=c.srcElement;do if(-1Math.abs(d-a.touches.startX)));"undefined"!==typeof y||k||(y=!!(y||Math.abs(e-a.touches.startY)c?m/2:a.positions.current*c),a.positions.current<-g()&&(d=(a.touches.current-a.touches.start)*b.touchRatio+(g()+a.positions.start), +c=(m+d)/m,d=a.positions.current-d*(1-c)/2,e=-g()-m/2,a.positions.current=d=c?e:d)),b.resistance&&"100%"==b.resistance&&(0b.moveStartThreshold||N?(N=!0,a.setWrapperTranslate(a.positions.current)):a.positions.current=a.positions.start:a.setWrapperTranslate(a.positions.current), +(b.freeMode||b.watchActiveIndex)&&a.updateActiveSlide(a.positions.current),b.grabCursor&&(a.container.style.cursor="move",a.container.style.cursor="grabbing",a.container.style.cursor="-moz-grabbin",a.container.style.cursor="-webkit-grabbing"),G||(G=a.touches.current),J||(J=(new Date).getTime()),a.velocity=(a.touches.current-G)/((new Date).getTime()-J)/2,2>Math.abs(a.touches.current-G)&&(a.velocity=0),G=a.touches.current,J=(new Date).getTime(),a.callPlugins("onTouchMoveEnd"),b.onTouchMove&&a.fireCallback(b.onTouchMove, +a),!1}}function D(c){y&&a.swipeReset();if(!b.onlyExternal&&a.isTouched){a.isTouched=!1;b.grabCursor&&(a.container.style.cursor="move",a.container.style.cursor="grab",a.container.style.cursor="-moz-grab",a.container.style.cursor="-webkit-grab");a.positions.current||0===a.positions.current||(a.positions.current=a.positions.start);b.followFinger&&a.setWrapperTranslate(a.positions.current);a.times.end=(new Date).getTime();a.touches.diff=a.touches.current-a.touches.start;a.touches.abs=Math.abs(a.touches.diff); +a.positions.diff=a.positions.current-a.positions.start;a.positions.abs=Math.abs(a.positions.diff);var d=a.positions.diff,e=a.positions.abs;c=a.times.end-a.times.start;5>e&&300>c&&!1==a.allowLinks&&(b.freeMode||0==e||a.swipeReset(),b.preventLinks&&(a.allowLinks=!0),b.onSlideClick&&(a.allowSlideClick=!0));setTimeout(function(){b.preventLinks&&(a.allowLinks=!0);b.onSlideClick&&(a.allowSlideClick=!0)},100);var f=g();if(!a.isMoved&&b.freeMode)a.isMoved=!1,b.onTouchEnd&&a.fireCallback(b.onTouchEnd,a);else if(!a.isMoved|| +0n&&(d=n),h=0,I=v=!0):d=0);0!=a.velocity&&(e=Math.abs((d-a.positions.current)/a.velocity));a.setWrapperTranslate(d); +a.setWrapperTransition(e);b.momentumBounce&&v&&a.wrapperTransitionEnd(function(){I&&(b.onMomentumBounce&&a.fireCallback(b.onMomentumBounce,a),a.callPlugins("onMomentumBounce"),a.setWrapperTranslate(h),a.setWrapperTransition(300))});a.updateActiveSlide(d)}(!b.freeModeFluid||300<=c)&&a.updateActiveSlide(a.positions.current);b.onTouchEnd&&a.fireCallback(b.onTouchEnd,a)}else{H=0>d?"toNext":"toPrev";"toNext"==H&&300>=c&&(30>e||!b.shortSwipes?a.swipeReset():a.swipeNext(!0));"toPrev"==H&&300>=c&&(30>e|| +!b.shortSwipes?a.swipeReset():a.swipePrev(!0));f=0;if("auto"==b.slidesPerView){for(var d=Math.abs(a.getWrapperTranslate()),l=v=0;ld){f=n;break}f>m&&(f=m)}else f=s*b.slidesPerView;"toNext"==H&&300=0.5*f?a.swipeNext(!0):a.swipeReset());"toPrev"==H&&300=0.5*f?a.swipePrev(!0):a.swipeReset());if(b.onTouchEnd)b.onTouchEnd(a)}a.callPlugins("onTouchEnd")}}function K(c,d,e){function f(){g+=h;(m="toNext"==k? +g>c:gc?"toNext":"toPrev",m="toNext"==k?g>c:gm){for(w=0;w<=Math.floor(t/(m+a.wrapperLeft));w++)0===w?a.snapGrid.push(n+a.wrapperLeft):a.snapGrid.push(n+a.wrapperLeft+m*w);a.slidesGrid.push(n+a.wrapperLeft)}else a.snapGrid.push(l),a.slidesGrid.push(l);l+=t/2+u/2}else{if(t>m)for(w=0;w<=Math.floor(t/m);w++)a.snapGrid.push(n+m*w);else a.snapGrid.push(n);a.slidesGrid.push(n)}n+=t;g+=f;h+=q}b.calculateHeight&&(a.height=p);k?(A=g+a.wrapperRight+a.wrapperLeft,e.style.width=g+"px",e.style.height=a.height+ +"px"):(A=h+a.wrapperTop+a.wrapperBottom,e.style.width=a.width+"px",e.style.height=h+"px")}else if(b.scrollContainer)e.style.width="",e.style.height="",p=a.slides[0].getWidth(!0),g=a.slides[0].getHeight(!0),A=k?p:g,e.style.width=p+"px",e.style.height=g+"px",s=k?p:g;else{if(b.calculateHeight){g=p=0;k||(a.container.style.height="");e.style.height="";for(r=0;r=a.snapGrid[e]&&-ca.snapGrid[e]&&-c=a.snapGrid[e]&&-c=a.snapGrid[a.snapGrid.length-1]&&(d=-a.snapGrid[a.snapGrid.length-1]);c<=-g()&&(d=-g())}else d=0>c?Math.round(c/d)*d:0;b.scrollContainer&&(d=0>c?c:0);d<-g()&&(d=-g());b.scrollContainer&&m>s&&(d=0);if(d==c)return!1;K(d,"reset");return!0};a.swipeTo=function(c,d,e){c=parseInt(c,10);a.callPlugins("onSwipeTo", +{index:c,speed:d});b.loop&&(c+=a.loopedSlides);var f=a.getWrapperTranslate();if(!(c>a.slides.length-1||0>c)){var h;h="auto"==b.slidesPerView?-a.slidesGrid[c]:-c*s;h<-g()&&(h=-g());if(h==f)return!1;K(h,"to",{index:c,speed:d,runCallbacks:!1===e?!1:!0});return!0}};a._queueStartCallbacks=!1;a._queueEndCallbacks=!1;a.updateActiveSlide=function(c){if(a.initialized&&0!=a.slides.length){a.previousIndex=a.activeIndex;"undefined"==typeof c&&(c=a.getWrapperTranslate());0a.activeIndex){for(var d=0;da.slidesGrid[d]&&-ca.activeIndex&&(a.activeIndex=0);if(a.slides[a.activeIndex]){a.calcVisibleSlides(c);e=RegExp("\\s*"+b.slideActiveClass);f=RegExp("\\s*"+b.slideVisibleClass); +for(d=0;d=a.slides.length-2*d&&(a.activeLoopIndex=a.slides.length-2*d-a.activeLoopIndex),0>a.activeLoopIndex&&(a.activeLoopIndex=a.slides.length-2*d+a.activeLoopIndex)):a.activeLoopIndex= +a.activeIndex;b.pagination&&a.updatePagination(c)}}};a.createPagination=function(c){b.paginationClickable&&a.paginationButtons&&X();a.paginationContainer=b.pagination.nodeType?b.pagination:h(b.pagination)[0];if(b.createPagination){var d="",e=a.slides.length;b.loop&&(e-=2*a.loopedSlides);for(var f=0;f";a.paginationContainer.innerHTML=d}a.paginationButtons=h("."+b.paginationElementClass,a.paginationContainer); +c||a.updatePagination();a.callPlugins("onCreatePagination");if(b.paginationClickable)for(c=a.paginationButtons,d=0;da.slides.length)&&h("."+b.paginationActiveClass,a.paginationContainer)){var d=a.paginationButtons;if(0!=d.length){for(var e=0;eg&&(g=a.slides.length-2*a.loopedSlides+g);b.loop&&g>=a.slides.length-2*a.loopedSlides&&(g=a.slides.length-2*a.loopedSlides-g,g=Math.abs(g));c.push(g)}for(e=0;e=-c&&g<=-c+m&&(n=!0),e<=-c&&g>=-c+m&&(n=!0)):(g>-c&&g<=-c+m&&(n=!0),e>=-c&&e<-c+m&&(n= +!0),e<-c&&g>-c+m&&(n=!0));n&&d.push(a.slides[h])}0==d.length&&(d=[a.slides[a.activeIndex]]);a.visibleSlides=d};var E=void 0;a.startAutoplay=function(){if("undefined"!==typeof E)return!1;b.autoplay&&(a.callPlugins("onAutoplayStart"),O())};a.stopAutoplay=function(c){E&&clearTimeout(E);E=void 0;c&&!b.autoplayDisableOnInteraction&&a.wrapperTransitionEnd(function(){O()});a.callPlugins("onAutoplayStop")};a.loopCreated=!1;a.removeLoopedSlides=function(){if(a.loopCreated)for(var b=0;ba.slides.length&&(a.loopedSlides=a.slides.length);var c="",d="",e,f="",g=a.slides.length,h=Math.floor(a.loopedSlides/g),n=a.loopedSlides%g;for(e=0;e=g&&(k=e-g*Math.floor(e/g));f+=a.slides[k].outerHTML}for(e=0;e=a.slides.length-a.loopedSlides)&&a.slides[e].setData("looped",!0);a.callPlugins("onCreateLoop")}};a.fixLoop=function(){var c;a.activeIndexa.slides.length-2*b.slidesPerView&&(c=-a.slides.length+a.activeIndex+a.loopedSlides,a.swipeTo(c,0,!1))};a.loadSlides=function(){var c= +"";a.activeLoaderIndex=0;for(var d=b.loader.slides,e=b.loader.loadAllSlides?d.length:b.slidesPerView*(1+b.loader.surroundGroups),f=0;f'+d[f]+"");a.wrapper.innerHTML=c;a.calcSlides(!0);b.loader.loadAllSlides||a.wrapperTransitionEnd(a.reloadSlides,!0)};a.reloadSlides=function(){var c=b.loader.slides,d=parseInt(a.activeSlide().data("swiperindex"),10);if(!(0> +d||d>c.length-1)){a.activeLoaderIndex=d;var e=Math.max(0,d-b.slidesPerView*b.loader.surroundGroups),f=Math.min(d+b.slidesPerView*(1+b.loader.surroundGroups)-1,c.length-1);0'+c[d]+"";a.wrapper.innerHTML=g}else{for(var g=1E3,h=0,d= +0;df?a.wrapper.removeChild(a.slides[d]):(g=Math.min(k,g),h=Math.max(k,h))}for(d=e;d<=f;d++)dh&&(e=document.createElement(b.slideElement),e.className=b.slideClass,e.setAttribute("data-swiperindex",d),e.innerHTML=c[d],a.wrapper.appendChild(e))}a.reInit(!0)}};a.calcSlides(); +0f}(),ie10:window.navigator.msPointerEnabled}}; +(window.jQuery||window.Zepto)&&function(f){f.fn.swiper=function(b){b=new Swiper(f(this)[0],b);f(this).data("swiper",b);return b}}(window.jQuery||window.Zepto);"undefined"!==typeof module&&(module.exports=Swiper); \ No newline at end of file diff --git a/static/client/js/jquery-ui-1.10.3.custom.min.js b/static/client/js/jquery-ui-1.10.3.custom.min.js new file mode 100644 index 00000000..a27f8871 --- /dev/null +++ b/static/client/js/jquery-ui-1.10.3.custom.min.js @@ -0,0 +1,7 @@ +/*! jQuery UI - v1.10.3 - 2013-11-24 +* http://jqueryui.com +* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.autocomplete.js, jquery.ui.datepicker.js, jquery.ui.menu.js +* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ + +(function(e,t){function i(t,i){var s,n,r,o=t.nodeName.toLowerCase();return"area"===o?(s=t.parentNode,n=s.name,t.href&&n&&"map"===s.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&a(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&a(t)}function a(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var s=0,n=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(i,a){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),a&&a.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var a,s,n=e(this[0]);n.length&&n[0]!==document;){if(a=n.css("position"),("absolute"===a||"relative"===a||"fixed"===a)&&(s=parseInt(n.css("zIndex"),10),!isNaN(s)&&0!==s))return s;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++s)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,a){return!!e.data(t,a[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var a=e.attr(t,"tabindex"),s=isNaN(a);return(s||a>=0)&&i(t,!s)}}),e("").outerWidth(1).jquery||e.each(["Width","Height"],function(i,a){function s(t,i,a,s){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,a&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===a?["Left","Right"]:["Top","Bottom"],r=a.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+a]=function(i){return i===t?o["inner"+a].call(this):this.each(function(){e(this).css(r,s(this,i)+"px")})},e.fn["outer"+a]=function(t,i){return"number"!=typeof t?o["outer"+a].call(this,t):this.each(function(){e(this).css(r,s(this,t,!0,i)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,a){var s,n=e.ui[t].prototype;for(s in a)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([i,a[s]])},call:function(e,t,i){var a,s=e.plugins[t];if(s&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(a=0;s.length>a;a++)e.options[s[a][0]]&&s[a][1].apply(e.element,i)}},hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var a=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return t[a]>0?!0:(t[a]=1,s=t[a]>0,t[a]=0,s)}})})(jQuery);(function(e,t){var i=0,s=Array.prototype.slice,a=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++)try{e(i).triggerHandler("remove")}catch(n){}a(t)},e.widget=function(i,s,a){var n,r,o,h,l={},u=i.split(".")[0];i=i.split(".")[1],n=u+"-"+i,a||(a=s,s=e.Widget),e.expr[":"][n.toLowerCase()]=function(t){return!!e.data(t,n)},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i)},e.extend(o,r,{version:a.version,_proto:e.extend({},a),_childConstructors:[]}),h=new s,h.options=e.widget.extend({},h.options),e.each(a,function(i,a){return e.isFunction(a)?(l[i]=function(){var e=function(){return s.prototype[i].apply(this,arguments)},t=function(e){return s.prototype[i].apply(this,e)};return function(){var i,s=this._super,n=this._superApply;return this._super=e,this._superApply=t,i=a.apply(this,arguments),this._super=s,this._superApply=n,i}}(),t):(l[i]=a,t)}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:n}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o)},e.widget.extend=function(i){for(var a,n,r=s.call(arguments,1),o=0,h=r.length;h>o;o++)for(a in r[o])n=r[o][a],r[o].hasOwnProperty(a)&&n!==t&&(i[a]=e.isPlainObject(n)?e.isPlainObject(i[a])?e.widget.extend({},i[a],n):e.widget.extend({},n):n);return i},e.widget.bridge=function(i,a){var n=a.prototype.widgetFullName||i;e.fn[i]=function(r){var o="string"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,a=e.data(this,n);return a?e.isFunction(a[r])&&"_"!==r.charAt(0)?(s=a[r].apply(a,h),s!==a&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error("no such method '"+r+"' for "+i+" widget instance"):e.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+r+"'")}):this.each(function(){var t=e.data(this,n);t?t.option(r||{})._init():e.data(this,n,new a(r,this))}),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
    ",options:{disabled:!1,create:null},_createWidget:function(t,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(i,s){var a,n,r,o=i;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof i)if(o={},a=i.split("."),i=a.shift(),a.length){for(n=o[i]=e.widget.extend({},this.options[i]),r=0;a.length-1>r;r++)n[a[r]]=n[a[r]]||{},n=n[a[r]];if(i=a.pop(),s===t)return n[i]===t?null:n[i];n[i]=s}else{if(s===t)return this.options[i]===t?null:this.options[i];o[i]=s}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,s,a){var n,r=this;"boolean"!=typeof i&&(a=s,s=i,i=!1),a?(s=n=e(s),this.bindings=this.bindings.add(s)):(a=s,s=this.element,n=this.widget()),e.each(a,function(a,o){function h(){return i||r.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?r[o]:o).apply(r,arguments):t}"string"!=typeof o&&(h.guid=o.guid=o.guid||h.guid||e.guid++);var l=a.match(/^(\w+)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?n.delegate(c,u,h):s.bind(u,h)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var a,n,r=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],n=i.originalEvent)for(a in n)a in i||(i[a]=n[a]);return this.element.trigger(i,s),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,a,n){"string"==typeof a&&(a={effect:a});var r,o=a?a===!0||"number"==typeof a?i:a.effect||i:t;a=a||{},"number"==typeof a&&(a={duration:a}),r=!e.isEmptyObject(a),a.complete=n,a.delay&&s.delay(a.delay),r&&e.effects&&e.effects.effect[o]?s[t](a):o!==t&&s[o]?s[o](a.duration,a.easing,n):s.queue(function(i){e(this)[t](),n&&n.call(s[0]),i()})}})})(jQuery);(function(e){var t=!1;e(document).mouseup(function(){t=!1}),e.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,a=1===i.which,n="string"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;return a&&!n&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return s._mouseMove(e)},this._mouseUpDelegate=function(e){return s._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);(function(e,t){function i(e,t,i){return[parseFloat(e[0])*(p.test(e[0])?t/100:1),parseFloat(e[1])*(p.test(e[1])?i/100:1)]}function s(t,i){return parseInt(e.css(t,i),10)||0}function a(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var n,r=Math.max,o=Math.abs,h=Math.round,l=/left|center|right/,u=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(n!==t)return n;var i,s,a=e("
    "),r=a.children()[0];return e("body").append(a),i=r.offsetWidth,a.css("overflow","scroll"),s=r.offsetWidth,i===s&&(s=a[0].clientWidth),a.remove(),n=i-s},getScrollInfo:function(t){var i=t.isWindow?"":t.element.css("overflow-x"),s=t.isWindow?"":t.element.css("overflow-y"),a="scroll"===i||"auto"===i&&t.widths?"left":i>0?"right":"center",vertical:0>n?"top":a>0?"bottom":"middle"};c>p&&p>o(i+s)&&(h.horizontal="center"),d>m&&m>o(a+n)&&(h.vertical="middle"),h.important=r(o(i),o(s))>r(o(a),o(n))?"horizontal":"vertical",t.using.call(this,e,h)}),u.offset(e.extend(M,{using:l}))})},e.ui.position={fit:{left:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollLeft:s.offset.left,n=s.width,o=e.left-t.collisionPosition.marginLeft,h=a-o,l=o+t.collisionWidth-n-a;t.collisionWidth>n?h>0&&0>=l?(i=e.left+h+t.collisionWidth-n-a,e.left+=h-i):e.left=l>0&&0>=h?a:h>l?a+n-t.collisionWidth:a:h>0?e.left+=h:l>0?e.left-=l:e.left=r(e.left-o,e.left)},top:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollTop:s.offset.top,n=t.within.height,o=e.top-t.collisionPosition.marginTop,h=a-o,l=o+t.collisionHeight-n-a;t.collisionHeight>n?h>0&&0>=l?(i=e.top+h+t.collisionHeight-n-a,e.top+=h-i):e.top=l>0&&0>=h?a:h>l?a+n-t.collisionHeight:a:h>0?e.top+=h:l>0?e.top-=l:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var i,s,a=t.within,n=a.offset.left+a.scrollLeft,r=a.width,h=a.isWindow?a.scrollLeft:a.offset.left,l=e.left-t.collisionPosition.marginLeft,u=l-h,c=l+t.collisionWidth-r-h,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(i=e.left+d+p+f+t.collisionWidth-r-n,(0>i||o(u)>i)&&(e.left+=d+p+f)):c>0&&(s=e.left-t.collisionPosition.marginLeft+d+p+f-h,(s>0||c>o(s))&&(e.left+=d+p+f))},top:function(e,t){var i,s,a=t.within,n=a.offset.top+a.scrollTop,r=a.height,h=a.isWindow?a.scrollTop:a.offset.top,l=e.top-t.collisionPosition.marginTop,u=l-h,c=l+t.collisionHeight-r-h,d="top"===t.my[1],p=d?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(s=e.top+p+f+m+t.collisionHeight-r-n,e.top+p+f+m>u&&(0>s||o(u)>s)&&(e.top+=p+f+m)):c>0&&(i=e.top-t.collisionPosition.marginTop+p+f+m-h,e.top+p+f+m>c&&(i>0||c>o(i))&&(e.top+=p+f+m))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,s,a,n,r=document.getElementsByTagName("body")[0],o=document.createElement("div");t=document.createElement(r?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&e.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(n in s)t.style[n]=s[n];t.appendChild(o),i=r||document.documentElement,i.insertBefore(t,i.firstChild),o.style.cssText="position: absolute; left: 10.7432222px;",a=e(o).offset().left,e.support.offsetFractions=a>10&&11>a,t.innerHTML="",i.removeChild(t)}()})(jQuery);(function(e){var t=0;e.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var t,i,a,s=this.element[0].nodeName.toLowerCase(),n="textarea"===s,r="input"===s;this.isMultiLine=n?!0:r?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[n||r?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return t=!0,a=!0,i=!0,undefined;t=!1,a=!1,i=!1;var n=e.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:t=!0,this._move("previousPage",s);break;case n.PAGE_DOWN:t=!0,this._move("nextPage",s);break;case n.UP:t=!0,this._keyEvent("previous",s);break;case n.DOWN:t=!0,this._keyEvent("next",s);break;case n.ENTER:case n.NUMPAD_ENTER:this.menu.active&&(t=!0,s.preventDefault(),this.menu.select(s));break;case n.TAB:this.menu.active&&this.menu.select(s);break;case n.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}},keypress:function(a){if(t)return t=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&a.preventDefault(),undefined;if(!i){var s=e.ui.keyCode;switch(a.keyCode){case s.PAGE_UP:this._move("previousPage",a);break;case s.PAGE_DOWN:this._move("nextPage",a);break;case s.UP:this._keyEvent("previous",a);break;case s.DOWN:this._keyEvent("next",a)}}},input:function(e){return a?(a=!1,e.preventDefault(),undefined):(this._searchTimeout(e),undefined)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,undefined):(clearTimeout(this.searching),this.close(e),this._change(e),undefined)}}),this._initSource(),this.menu=e("
      ").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];e(t.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(a){a.target===t.element[0]||a.target===i||e.contains(i,a.target)||t.close()})})},menufocus:function(t,i){if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)}),undefined;var a=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",t,{item:a})?t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(a.value):this.liveRegion.text(a.value)},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),a=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=a,this._delay(function(){this.previous=a,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=e("",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,i,a=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(i,a){a(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,s){a.xhr&&a.xhr.abort(),a.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){s(e)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length").append(e("").text(i.label)).appendTo(t)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this._value(this.term),this.menu.blur(),undefined):(this.menu[e](t),undefined):(this.search(null,t),undefined)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var a=RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return a.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.text(t))}})})(jQuery);(function(e,t){function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.dpDiv=a(e("
      "))}function a(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(i,"mouseout",function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){e.datepicker._isDisabledDatepicker(n.inline?t.parent()[0]:n.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))})}function s(t,i){e.extend(t,i);for(var a in i)null==i[a]&&(t[a]=i[a]);return t}e.extend(e.ui,{datepicker:{version:"1.10.3"}});var n,r="datepicker";e.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return s(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var a,s,n;a=t.nodeName.toLowerCase(),s="div"===a||"span"===a,t.id||(this.uuid+=1,t.id="dp"+this.uuid),n=this._newInst(e(t),s),n.settings=e.extend({},i||{}),"input"===a?this._connectDatepicker(t,n):s&&this._inlineDatepicker(t,n)},_newInst:function(t,i){var s=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:s,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?a(e("
      ")):this.dpDiv}},_connectDatepicker:function(t,i){var a=e(t);i.append=e([]),i.trigger=e([]),a.hasClass(this.markerClassName)||(this._attachments(a,i),a.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),e.data(t,r,i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var a,s,n,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=e(""+r+""),t[o?"before":"after"](i.append)),t.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),a=this._get(i,"showOn"),("focus"===a||"both"===a)&&t.focus(this._showDatepicker),("button"===a||"both"===a)&&(s=this._get(i,"buttonText"),n=this._get(i,"buttonImage"),i.trigger=e(this._get(i,"buttonImageOnly")?e("").addClass(this._triggerClass).attr({src:n,alt:s,title:s}):e("").addClass(this._triggerClass).html(n?e("").attr({src:n,alt:s,title:s}):s)),t[o?"before":"after"](i.trigger),i.trigger.click(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,a,s,n=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(i=0,a=0,s=0;e.length>s;s++)e[s].length>i&&(i=e[s].length,a=s);return a},n.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),n.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-n.getDay())),e.input.attr("size",this._formatDate(e,n).length)}},_inlineDatepicker:function(t,i){var a=e(t);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(i.dpDiv),e.data(t,r,i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,a,n,o){var h,l,u,d,c,p=this._dialogInst;return p||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=e(""),this._dialogInput.keydown(this._doKeyDown),e("body").append(this._dialogInput),p=this._dialogInst=this._newInst(this._dialogInput,!1),p.settings={},e.data(this._dialogInput[0],r,p)),s(p.settings,n||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(l=document.documentElement.clientWidth,u=document.documentElement.clientHeight,d=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+d,u/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],r,p),this},_destroyDatepicker:function(t){var i,a=e(t),s=e.data(t,r);a.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),e.removeData(t,r),"input"===i?(s.append.remove(),s.trigger.remove(),a.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&&a.removeClass(this.markerClassName).empty())},_enableDatepicker:function(t){var i,a,s=e(t),n=e.data(t,r);s.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(a=s.children("."+this._inlineClass),a.children().removeClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,a,s=e(t),n=e.data(t,r);s.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(a=s.children("."+this._inlineClass),a.children().addClass("ui-state-disabled"),a.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;this._disabledInputs.length>t;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,r)}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(i,a,n){var r,o,h,l,u=this._getInst(i);return 2===arguments.length&&"string"==typeof a?"defaults"===a?e.extend({},e.datepicker._defaults):u?"all"===a?e.extend({},u.settings):this._get(u,a):null:(r=a||{},"string"==typeof a&&(r={},r[a]=n),u&&(this._curInst===u&&this._hideDatepicker(),o=this._getDateDatepicker(i,!0),h=this._getMinMaxDate(u,"min"),l=this._getMinMaxDate(u,"max"),s(u.settings,r),null!==h&&r.dateFormat!==t&&r.minDate===t&&(u.settings.minDate=this._formatDate(u,h)),null!==l&&r.dateFormat!==t&&r.maxDate===t&&(u.settings.maxDate=this._formatDate(u,l)),"disabled"in r&&(r.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(e(i),u),this._autoSize(u),this._setDate(u,o),this._updateAlternate(u),this._updateDatepicker(u)),t)},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,a,s,n=e.datepicker._getInst(t.target),r=!0,o=n.dpDiv.is(".ui-datepicker-rtl");if(n._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return s=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",n.dpDiv),s[0]&&e.datepicker._selectDay(t.target,n.selectedMonth,n.selectedYear,s[0]),i=e.datepicker._get(n,"onSelect"),i?(a=e.datepicker._formatDate(n),i.apply(n.input?n.input[0]:null,[a,n])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(n,"stepBigMonths"):-e.datepicker._get(n,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(n,"stepBigMonths"):+e.datepicker._get(n,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(n,"stepBigMonths"):-e.datepicker._get(n,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(n,"stepBigMonths"):+e.datepicker._get(n,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(i){var a,s,n=e.datepicker._getInst(i.target);return e.datepicker._get(n,"constrainInput")?(a=e.datepicker._possibleChars(e.datepicker._get(n,"dateFormat")),s=String.fromCharCode(null==i.charCode?i.keyCode:i.charCode),i.ctrlKey||i.metaKey||" ">s||!a||a.indexOf(s)>-1):t},_doKeyUp:function(t){var i,a=e.datepicker._getInst(t.target);if(a.input.val()!==a.lastVal)try{i=e.datepicker.parseDate(e.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,e.datepicker._getFormatConfig(a)),i&&(e.datepicker._setDateFromField(a),e.datepicker._updateAlternate(a),e.datepicker._updateDatepicker(a))}catch(s){}return!0},_showDatepicker:function(t){if(t=t.target||t,"input"!==t.nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),!e.datepicker._isDisabledDatepicker(t)&&e.datepicker._lastInput!==t){var i,a,n,r,o,h,l;i=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),a=e.datepicker._get(i,"beforeShow"),n=a?a.apply(t,[t,i]):{},n!==!1&&(s(i.settings,n),i.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),r=!1,e(t).parents().each(function(){return r|="fixed"===e(this).css("position"),!r}),o={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),o=e.datepicker._checkOffset(i,o,r),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":r?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),i.inline||(h=e.datepicker._get(i,"showAnim"),l=e.datepicker._get(i,"duration"),i.dpDiv.zIndex(e(t).zIndex()+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[h]?i.dpDiv.show(h,e.datepicker._get(i,"showOptions"),l):i.dpDiv[h||"show"](h?l:null),e.datepicker._shouldFocusInput(i)&&i.input.focus(),e.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4,n=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t),t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,a=this._getNumberOfMonths(t),s=a[1],r=17;t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),s>1&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",r*s+"em"),t.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.focus(),t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),i=t.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,a){var s=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,h=document.documentElement.clientWidth+(a?0:e(document).scrollLeft()),l=document.documentElement.clientHeight+(a?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?s-r:0,i.left-=a&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=a&&i.top===t.input.offset().top+o?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>h&&h>s?Math.abs(i.left+s-h):0),i.top-=Math.min(i.top,i.top+n>l&&l>n?Math.abs(n+o):0),i},_findPos:function(t){for(var i,a=this._getInst(t),s=this._get(a,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return i=e(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var i,a,s,n,o=this._curInst;!o||t&&o!==e.data(t,r)||this._datepickerShowing&&(i=this._get(o,"showAnim"),a=this._get(o,"duration"),s=function(){e.datepicker._tidyDialog(o)},e.effects&&(e.effects.effect[i]||e.effects[i])?o.dpDiv.hide(i,e.datepicker._get(o,"showOptions"),a,s):o.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?a:null,s),i||s(),this._datepickerShowing=!1,n=this._get(o,"onClose"),n&&n.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),a=e.datepicker._getInst(i[0]);(i[0].id!==e.datepicker._mainDivId&&0===i.parents("#"+e.datepicker._mainDivId).length&&!i.hasClass(e.datepicker.markerClassName)&&!i.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&(!e.datepicker._inDialog||!e.blockUI)||i.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==a)&&e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,a){var s=e(t),n=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(n,i+("M"===a?this._get(n,"showCurrentAtPos"):0),a),this._updateDatepicker(n))},_gotoToday:function(t){var i,a=e(t),s=this._getInst(a[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(a)},_selectMonthYear:function(t,i,a){var s=e(t),n=this._getInst(s[0]);n["selected"+("M"===a?"Month":"Year")]=n["draw"+("M"===a?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(n),this._adjustDate(s)},_selectDay:function(t,i,a,s){var n,r=e(t);e(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||(n=this._getInst(r[0]),n.selectedDay=n.currentDay=e("a",s).html(),n.selectedMonth=n.currentMonth=i,n.selectedYear=n.currentYear=a,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var a,s=e(t),n=this._getInst(s[0]);i=null!=i?i:this._formatDate(n),n.input&&n.input.val(i),this._updateAlternate(n),a=this._get(n,"onSelect"),a?a.apply(n.input?n.input[0]:null,[i,n]):n.input&&n.input.trigger("change"),n.inline?this._updateDatepicker(n):(this._hideDatepicker(),this._lastInput=n.input[0],"object"!=typeof n.input[0]&&n.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var i,a,s,n=this._get(t,"altField");n&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),a=this._getDate(t),s=this.formatDate(i,a,this._getFormatConfig(t)),e(n).each(function(){e(this).val(s)}))},noWeekends:function(e){var t=e.getDay();return[t>0&&6>t,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(i,a,s){if(null==i||null==a)throw"Invalid arguments";if(a="object"==typeof a?""+a:a+"",""===a)return null;var n,r,o,h,l=0,u=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,d="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),c=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,p=(s?s.dayNames:null)||this._defaults.dayNames,m=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,f=(s?s.monthNames:null)||this._defaults.monthNames,g=-1,v=-1,y=-1,b=-1,_=!1,k=function(e){var t=i.length>n+1&&i.charAt(n+1)===e;return t&&n++,t},x=function(e){var t=k(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,s=RegExp("^\\d{1,"+i+"}"),n=a.substring(l).match(s);if(!n)throw"Missing number at position "+l;return l+=n[0].length,parseInt(n[0],10)},D=function(i,s,n){var r=-1,o=e.map(k(i)?n:s,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(o,function(e,i){var s=i[1];return a.substr(l,s.length).toLowerCase()===s.toLowerCase()?(r=i[0],l+=s.length,!1):t}),-1!==r)return r+1;throw"Unknown name at position "+l},w=function(){if(a.charAt(l)!==i.charAt(n))throw"Unexpected literal at position "+l;l++};for(n=0;i.length>n;n++)if(_)"'"!==i.charAt(n)||k("'")?w():_=!1;else switch(i.charAt(n)){case"d":y=x("d");break;case"D":D("D",c,p);break;case"o":b=x("o");break;case"m":v=x("m");break;case"M":v=D("M",m,f);break;case"y":g=x("y");break;case"@":h=new Date(x("@")),g=h.getFullYear(),v=h.getMonth()+1,y=h.getDate();break;case"!":h=new Date((x("!")-this._ticksTo1970)/1e4),g=h.getFullYear(),v=h.getMonth()+1,y=h.getDate();break;case"'":k("'")?w():_=!0;break;default:w()}if(a.length>l&&(o=a.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d>=g?0:-100)),b>-1)for(v=1,y=b;;){if(r=this._getDaysInMonth(g,v-1),r>=y)break;v++,y-=r}if(h=this._daylightSavingAdjust(new Date(g,v-1,y)),h.getFullYear()!==g||h.getMonth()+1!==v||h.getDate()!==y)throw"Invalid date";return h},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,t,i){if(!t)return"";var a,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,n=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,h=function(t){var i=e.length>a+1&&e.charAt(a+1)===t;return i&&a++,i},l=function(e,t,i){var a=""+t;if(h(e))for(;i>a.length;)a="0"+a;return a},u=function(e,t,i,a){return h(e)?a[t]:i[t]},d="",c=!1;if(t)for(a=0;e.length>a;a++)if(c)"'"!==e.charAt(a)||h("'")?d+=e.charAt(a):c=!1;else switch(e.charAt(a)){case"d":d+=l("d",t.getDate(),2);break;case"D":d+=u("D",t.getDay(),s,n);break;case"o":d+=l("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=l("m",t.getMonth()+1,2);break;case"M":d+=u("M",t.getMonth(),r,o);break;case"y":d+=h("y")?t.getFullYear():(10>t.getYear()%100?"0":"")+t.getYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":h("'")?d+="'":c=!0;break;default:d+=e.charAt(a)}return d},_possibleChars:function(e){var t,i="",a=!1,s=function(i){var a=e.length>t+1&&e.charAt(t+1)===i;return a&&t++,a};for(t=0;e.length>t;t++)if(a)"'"!==e.charAt(t)||s("'")?i+=e.charAt(t):a=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":a=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,i){return e.settings[i]!==t?e.settings[i]:this._defaults[i]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),a=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),n=s,r=this._getFormatConfig(e);try{n=this.parseDate(i,a,r)||s}catch(o){a=t?"":a}e.selectedDay=n.getDate(),e.drawMonth=e.selectedMonth=n.getMonth(),e.drawYear=e.selectedYear=n.getFullYear(),e.currentDay=a?n.getDate():0,e.currentMonth=a?n.getMonth():0,e.currentYear=a?n.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,a){var s=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},n=function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(a){}for(var s=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,n=s.getFullYear(),r=s.getMonth(),o=s.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"D":o+=parseInt(l[1],10);break;case"w":case"W":o+=7*parseInt(l[1],10);break;case"m":case"M":r+=parseInt(l[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(n,r));break;case"y":case"Y":n+=parseInt(l[1],10),o=Math.min(o,e.datepicker._getDaysInMonth(n,r))}l=h.exec(i)}return new Date(n,r,o)},r=null==i||""===i?a:"string"==typeof i?n(i):"number"==typeof i?isNaN(i)?a:s(i):new Date(i.getTime());return r=r&&"Invalid Date"==""+r?a:r,r&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var a=!t,s=e.selectedMonth,n=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),s===e.selectedMonth&&n===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(a?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),a="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(a,-i,"M")},next:function(){e.datepicker._adjustDate(a,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(a)},selectDay:function(){return e.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(a,this,"Y"),!1}};e(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,i,a,s,n,r,o,h,l,u,d,c,p,m,f,g,v,y,b,_,k,x,D,w,T,M,S,N,C,A,P,I,F,j,H,E,z,L,O,R=new Date,W=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),Y=this._get(e,"isRTL"),J=this._get(e,"showButtonPanel"),$=this._get(e,"hideIfNoPrevNext"),Q=this._get(e,"navigationAsDateFormat"),B=this._getNumberOfMonths(e),K=this._get(e,"showCurrentAtPos"),V=this._get(e,"stepMonths"),U=1!==B[0]||1!==B[1],G=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),q=this._getMinMaxDate(e,"min"),X=this._getMinMaxDate(e,"max"),Z=e.drawMonth-K,et=e.drawYear;if(0>Z&&(Z+=12,et--),X)for(t=this._daylightSavingAdjust(new Date(X.getFullYear(),X.getMonth()-B[0]*B[1]+1,X.getDate())),t=q&&q>t?q:t;this._daylightSavingAdjust(new Date(et,Z,1))>t;)Z--,0>Z&&(Z=11,et--);for(e.drawMonth=Z,e.drawYear=et,i=this._get(e,"prevText"),i=Q?this.formatDate(i,this._daylightSavingAdjust(new Date(et,Z-V,1)),this._getFormatConfig(e)):i,a=this._canAdjustMonth(e,-1,et,Z)?"
      "+i+"":$?"":""+i+"",s=this._get(e,"nextText"),s=Q?this.formatDate(s,this._daylightSavingAdjust(new Date(et,Z+V,1)),this._getFormatConfig(e)):s,n=this._canAdjustMonth(e,1,et,Z)?""+s+"":$?"":""+s+"",r=this._get(e,"currentText"),o=this._get(e,"gotoCurrent")&&e.currentDay?G:W,r=Q?this.formatDate(r,o,this._getFormatConfig(e)):r,h=e.inline?"":"",l=J?"
      "+(Y?h:"")+(this._isInRange(e,o)?"":"")+(Y?"":h)+"
      ":"",u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),c=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),m=this._get(e,"monthNames"),f=this._get(e,"monthNamesShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),_="",x=0;B[0]>x;x++){for(D="",this.maxRows=4,w=0;B[1]>w;w++){if(T=this._daylightSavingAdjust(new Date(et,Z,e.selectedDay)),M=" ui-corner-all",S="",U){if(S+="
      "}for(S+="
      "+(/all|left/.test(M)&&0===x?Y?n:a:"")+(/all|right/.test(M)&&0===x?Y?a:n:"")+this._generateMonthYearHeader(e,Z,et,q,X,x>0||w>0,m,f)+"
      "+"",N=d?"":"",k=0;7>k;k++)C=(k+u)%7,N+="=5?" class='ui-datepicker-week-end'":"")+">"+""+p[C]+"";for(S+=N+"",A=this._getDaysInMonth(et,Z),et===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,A)),P=(this._getFirstDayOfMonth(et,Z)-u+7)%7,I=Math.ceil((P+A)/7),F=U?this.maxRows>I?this.maxRows:I:I,this.maxRows=F,j=this._daylightSavingAdjust(new Date(et,Z,1-P)),H=0;F>H;H++){for(S+="",E=d?"":"",k=0;7>k;k++)z=g?g.apply(e.input?e.input[0]:null,[j]):[!0,""],L=j.getMonth()!==Z,O=L&&!y||!z[0]||q&&q>j||X&&j>X,E+="",j.setDate(j.getDate()+1),j=this._daylightSavingAdjust(j);S+=E+""}Z++,Z>11&&(Z=0,et++),S+="
      "+this._get(e,"weekHeader")+"
      "+this._get(e,"calculateWeek")(j)+""+(L&&!v?" ":O?""+j.getDate()+"":""+j.getDate()+"")+"
      "+(U?"
      "+(B[0]>0&&w===B[1]-1?"
      ":""):""),D+=S}_+=D}return _+=l,e._keyEvent=!1,_},_generateMonthYearHeader:function(e,t,i,a,s,n,r,o){var h,l,u,d,c,p,m,f,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="
      ",_="";if(n||!g)_+=""+r[t]+"";else{for(h=a&&a.getFullYear()===i,l=s&&s.getFullYear()===i,_+=""}if(y||(b+=_+(!n&&g&&v?"":" ")),!e.yearshtml)if(e.yearshtml="",n||!v)b+=""+i+"";else{for(d=this._get(e,"yearRange").split(":"),c=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?c+parseInt(e,10):parseInt(e,10); +return isNaN(t)?c:t},m=p(d[0]),f=Math.max(m,p(d[1]||"")),m=a?Math.max(m,a.getFullYear()):m,f=s?Math.min(f,s.getFullYear()):f,e.yearshtml+="",b+=e.yearshtml,e.yearshtml=null}return b+=this._get(e,"yearSuffix"),y&&(b+=(!n&&g&&v?"":" ")+_),b+="
      "},_adjustInstDate:function(e,t,i){var a=e.drawYear+("Y"===i?t:0),s=e.drawMonth+("M"===i?t:0),n=Math.min(e.selectedDay,this._getDaysInMonth(a,s))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(a,s,n)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),s=i&&i>t?i:t;return a&&s>a?a:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,a){var s=this._getNumberOfMonths(e),n=this._daylightSavingAdjust(new Date(i,a+(0>t?t:s[0]*s[1]),1));return 0>t&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(e,n)},_isInRange:function(e,t){var i,a,s=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),r=null,o=null,h=this._get(e,"yearRange");return h&&(i=h.split(":"),a=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=a),i[1].match(/[+\-].*/)&&(o+=a)),(!s||t.getTime()>=s.getTime())&&(!n||t.getTime()<=n.getTime())&&(!r||t.getFullYear()>=r)&&(!o||o>=t.getFullYear())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,a){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(a,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).mousedown(e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new i,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.10.3"})(jQuery);(function(e){e.widget("ui.menu",{version:"1.10.3",defaultElement:"
        ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,e.proxy(function(e){this.options.disabled&&e.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(e){e.preventDefault()},"click .ui-state-disabled > a":function(e){e.preventDefault()},"click .ui-menu-item:has(a)":function(t){var i=e(t.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(t),i.has(".ui-menu").length?this.expand(t):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var i=e(t.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(t,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.children(".ui-menu-item").eq(0);t||this.focus(e,i)},blur:function(t){this._delay(function(){e.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){e(t.target).closest(".ui-menu").length||this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var s,a,n,r,o,h=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:h=!1,a=this.previousFilter||"",n=String.fromCharCode(t.keyCode),r=!1,clearTimeout(this.filterTimer),n===a?r=!0:n=a+n,o=RegExp("^"+i(n),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())}),s=r&&-1!==s.index(this.active.next())?this.active.nextAll(".ui-menu-item"):s,s.length||(n=String.fromCharCode(t.keyCode),o=RegExp("^"+i(n),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())})),s.length?(this.focus(t,s),s.length>1?(this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}h&&t.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i=this.options.icons.submenu,s=this.element.find(this.options.menus);s.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),s=t.prev("a"),a=e("").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);s.attr("aria-haspopup","true").prepend(a),t.attr("aria-labelledby",s.attr("id"))}),t=s.add(this.element),t.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),t.children(":not(.ui-menu-item)").each(function(){var t=e(this);/[^\-\u2014\u2013\s]/.test(t.text())||t.addClass("ui-widget-content ui-menu-divider")}),t.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){"icons"===e&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),this._super(e,t)},focus:function(e,t){var i,s;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),s=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=t.children(".ui-menu"),i.length&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,s,a,n,r,o;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,a=t.offset().top-this.activeMenu.offset().top-i-s,n=this.activeMenu.scrollTop(),r=this.activeMenu.height(),o=t.height(),0>a?this.activeMenu.scrollTop(n+a):a+o>r&&this.activeMenu.scrollTop(n+a-r+o))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this.activeMenu=s},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,i){var s;this.active&&(s="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.children(".ui-menu-item")[t]()),this.focus(i,s)},nextPage:function(t){var i,s,a;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,a=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=e(this),0>i.offset().top-s-a}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())),undefined):(this.next(t),undefined)},previousPage:function(t){var i,s,a;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,a=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=e(this),i.offset().top-s+a>0}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item").first())),undefined):(this.next(t),undefined)},_hasScroll:function(){return this.element.outerHeight()=0)&&i(t,!s)}}),e("").outerWidth(1).jquery||e.each(["Width","Height"],function(i,n){function s(t,i,n,s){return e.each(a,function(){i-=parseFloat(e.css(t,"padding"+this))||0,n&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var a="Width"===n?["Left","Right"]:["Top","Bottom"],o=n.toLowerCase(),r={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+n]=function(i){return i===t?r["inner"+n].call(this):this.each(function(){e(this).css(o,s(this,i)+"px")})},e.fn["outer"+n]=function(t,i){return"number"!=typeof t?r["outer"+n].call(this,t):this.each(function(){e(this).css(o,s(this,t,!0,i)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,n){var s,a=e.ui[t].prototype;for(s in n)a.plugins[s]=a.plugins[s]||[],a.plugins[s].push([i,n[s]])},call:function(e,t,i){var n,s=e.plugins[t];if(s&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(n=0;s.length>n;n++)e.options[s[n][0]]&&s[n][1].apply(e.element,i)}},hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return t[n]>0?!0:(t[n]=1,s=t[n]>0,t[n]=0,s)}})})(jQuery);(function(t,e){var i=0,s=Array.prototype.slice,n=t.cleanData;t.cleanData=function(e){for(var i,s=0;null!=(i=e[s]);s++)try{t(i).triggerHandler("remove")}catch(o){}n(e)},t.widget=function(i,s,n){var o,a,r,h,l={},c=i.split(".")[0];i=i.split(".")[1],o=c+"-"+i,n||(n=s,s=t.Widget),t.expr[":"][o.toLowerCase()]=function(e){return!!t.data(e,o)},t[c]=t[c]||{},a=t[c][i],r=t[c][i]=function(t,i){return this._createWidget?(arguments.length&&this._createWidget(t,i),e):new r(t,i)},t.extend(r,a,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),h=new s,h.options=t.widget.extend({},h.options),t.each(n,function(i,n){return t.isFunction(n)?(l[i]=function(){var t=function(){return s.prototype[i].apply(this,arguments)},e=function(t){return s.prototype[i].apply(this,t)};return function(){var i,s=this._super,o=this._superApply;return this._super=t,this._superApply=e,i=n.apply(this,arguments),this._super=s,this._superApply=o,i}}(),e):(l[i]=n,e)}),r.prototype=t.widget.extend(h,{widgetEventPrefix:a?h.widgetEventPrefix||i:i},l,{constructor:r,namespace:c,widgetName:i,widgetFullName:o}),a?(t.each(a._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,r,i._proto)}),delete a._childConstructors):s._childConstructors.push(r),t.widget.bridge(i,r)},t.widget.extend=function(i){for(var n,o,a=s.call(arguments,1),r=0,h=a.length;h>r;r++)for(n in a[r])o=a[r][n],a[r].hasOwnProperty(n)&&o!==e&&(i[n]=t.isPlainObject(o)?t.isPlainObject(i[n])?t.widget.extend({},i[n],o):t.widget.extend({},o):o);return i},t.widget.bridge=function(i,n){var o=n.prototype.widgetFullName||i;t.fn[i]=function(a){var r="string"==typeof a,h=s.call(arguments,1),l=this;return a=!r&&h.length?t.widget.extend.apply(null,[a].concat(h)):a,r?this.each(function(){var s,n=t.data(this,o);return n?t.isFunction(n[a])&&"_"!==a.charAt(0)?(s=n[a].apply(n,h),s!==n&&s!==e?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):e):t.error("no such method '"+a+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+a+"'")}):this.each(function(){var e=t.data(this,o);e?e.option(a||{})._init():t.data(this,o,new n(a,this))}),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
        ",options:{disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),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._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,s){var n,o,a,r=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(r={},n=i.split("."),i=n.shift(),n.length){for(o=r[i]=t.widget.extend({},this.options[i]),a=0;n.length-1>a;a++)o[n[a]]=o[n[a]]||{},o=o[n[a]];if(i=n.pop(),1===arguments.length)return o[i]===e?null:o[i];o[i]=s}else{if(1===arguments.length)return this.options[i]===e?null:this.options[i];r[i]=s}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,s,n){var o,a=this;"boolean"!=typeof i&&(n=s,s=i,i=!1),n?(s=o=t(s),this.bindings=this.bindings.add(s)):(n=s,s=this.element,o=this.widget()),t.each(n,function(n,r){function h(){return i||a.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof r?a[r]:r).apply(a,arguments):e}"string"!=typeof r&&(h.guid=r.guid=r.guid||h.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),c=l[1]+a.eventNamespace,u=l[2];u?o.delegate(u,c,h):s.bind(c,h)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_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){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("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()})}})})(jQuery);(function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,n=1===i.which,a="string"==typeof this.options.cancel&&i.target.nodeName?t(i.target).closest(this.options.cancel).length:!1;return n&&!a&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return s._mouseMove(t)},this._mouseUpDelegate=function(t){return s._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0)):!0}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button?this._mouseUp(e):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){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("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)),!1},_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}})})(jQuery);(function(t,e){function i(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function s(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var a,o=Math.max,r=Math.abs,l=Math.round,h=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(a!==e)return a;var i,s,n=t("
        "),o=n.children()[0];return t("body").append(n),i=o.offsetWidth,n.css("overflow","scroll"),s=o.offsetWidth,i===s&&(s=n[0].clientWidth),n.remove(),a=i-s},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.widths?"left":i>0?"right":"center",vertical:0>a?"top":n>0?"bottom":"middle"};u>p&&p>r(i+s)&&(l.horizontal="center"),d>g&&g>r(n+a)&&(l.vertical="middle"),l.important=o(r(i),r(s))>o(r(n),r(a))?"horizontal":"vertical",e.using.call(this,t,l)}),c.offset(t.extend(M,{using:h}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+a-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+a-e.collisionHeight:n:l>0?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,a=n.offset.left+n.scrollLeft,o=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-o-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-o-a,(0>i||r(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-l,(s>0||u>r(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,a=n.offset.top+n.scrollTop,o=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-o-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-o-a,t.top+p+f+g>c&&(0>s||r(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,t.top+p+f+g>u&&(i>0||u>r(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,s,n,a,o=document.getElementsByTagName("body")[0],r=document.createElement("div");e=document.createElement(o?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&&t.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(a in s)e.style[a]=s[a];e.appendChild(r),i=o||document.documentElement,i.insertBefore(e,i.firstChild),r.style.cssText="position: absolute; left: 10.7432222px;",n=t(r).offset().left,t.support.offsetFractions=n>10&&11>n,e.innerHTML="",i.removeChild(e)}()})(jQuery);(function(t){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.4",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||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_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?(t(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){t("
        ").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("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(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),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)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",e,s)===!1)return this._mouseUp({}),!1;this.position=s.position}return 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"),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),"original"!==this.options.helper||t.contains(this.element[0].ownerDocument,this.element[0])?("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):!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),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(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.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.element.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.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;return 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()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],undefined):"document"===n.containment?(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],undefined):n.containment.constructor===Array?(this.containment=n.containment,undefined):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=t(n.containment),s=i[0],s&&(e="hidden"!==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.relative_container=i),undefined):(this.containment=null,undefined)},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:n.scrollTop(),left:n.scrollLeft()}),{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*s}},_generatePosition:function(e){var i,s,n,a,o=this.options,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,h=e.pageY;return this.offset.scroll||(this.offset.scroll={top:r.scrollTop(),left:r.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(s=this.relative_container.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,e.pageX-this.offset.click.lefti[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),o.grid&&(n=o.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/o.grid[1])*o.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-o.grid[1]:n+o.grid[1]:n,a=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-o.grid[0]:a+o.grid[0]:a)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s]),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),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){var s=t(this).data("ui-draggable"),n=s.options,a=t.extend({},i,{item:s.element});s.sortables=[],t(n.connectToSortable).each(function(){var i=t.data(this,"ui-sortable");i&&!i.options.disabled&&(s.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,a))})},stop:function(e,i){var s=t(this).data("ui-draggable"),n=t.extend({},i,{item:s.element});t.each(s.sortables,function(){this.instance.isOver?(this.instance.isOver=0,s.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===s.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,n))})},drag:function(e,i){var s=t(this).data("ui-draggable"),n=this;t.each(s.sortables,function(){var a=!1,o=this;this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(a=!0,t.each(s.sortables,function(){return this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this!==o&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(o.instance.element[0],this.instance.element[0])&&(a=!1),a})),a?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(n).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",e),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),s._trigger("fromSortable",e),s.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&&(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var s=t(i.helper),n=t(this).data("ui-draggable").options;s.css("opacity")&&(n._opacity=s.css("opacity")),s.css("opacity",n.opacity)},stop:function(e,i){var s=t(this).data("ui-draggable").options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&&"HTML"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),s=i.options,n=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY=0;u--)r=p.snapElements[u].left,l=r+p.snapElements[u].width,h=p.snapElements[u].top,c=h+p.snapElements[u].height,r-f>_||m>l+f||h-f>b||v>c+f||!t.contains(p.snapElements[u].item.ownerDocument,p.snapElements[u].item)?(p.snapElements[u].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=!1):("inner"!==g.snapMode&&(s=f>=Math.abs(h-b),n=f>=Math.abs(c-v),a=f>=Math.abs(r-_),o=f>=Math.abs(l-m),s&&(i.position.top=p._convertPositionTo("relative",{top:h-p.helperProportions.height,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:c,left:0}).top-p.margins.top),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r-p.helperProportions.width}).left-p.margins.left),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l}).left-p.margins.left)),d=s||n||a||o,"outer"!==g.snapMode&&(s=f>=Math.abs(h-v),n=f>=Math.abs(c-b),a=f>=Math.abs(r-m),o=f>=Math.abs(l-_),s&&(i.position.top=p._convertPositionTo("relative",{top:h,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:c-p.helperProportions.height,left:0}).top-p.margins.top),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r}).left-p.margins.left),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[u].snapping&&(s||n||a||o||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=s||n||a||o||d)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,s=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});s.length&&(e=parseInt(t(s[0]).css("zIndex"),10)||0,t(s).each(function(i){t(this).css("zIndex",e+i)}),this.css("zIndex",e+s.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var s=t(i.helper),n=t(this).data("ui-draggable").options;s.css("zIndex")&&(n._zIndex=s.css("zIndex")),s.css("zIndex",n.zIndex)},stop:function(e,i){var s=t(this).data("ui-draggable").options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}})})(jQuery);(function(t){function e(t,e,i){return t>e&&e+i>t}t.widget("ui.droppable",{version:"1.10.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!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],undefined):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},t.ui.ddmanager.droppables[i.scope]=t.ui.ddmanager.droppables[i.scope]||[],t.ui.ddmanager.droppables[i.scope].push(this),i.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];i.length>e;e++)i[e]===this&&i.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"===e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),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.options.hoverClass&&this.element.addClass(this.options.hoverClass),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.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current,n=!1;return s&&(s.currentItem||s.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"ui-droppable");return e.options.greedy&&!e.options.disabled&&e.options.scope===s.options.scope&&e.accept.call(e.element[0],s.currentItem||s.element)&&t.ui.intersect(s,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(n=!0,!1):undefined}),n?!1:this.accept.call(this.element[0],s.currentItem||s.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),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}}}),t.ui.intersect=function(t,i,s){if(!i.offset)return!1;var n,a,o=(t.positionAbs||t.position.absolute).left,r=(t.positionAbs||t.position.absolute).top,l=o+t.helperProportions.width,h=r+t.helperProportions.height,c=i.offset.left,u=i.offset.top,d=c+i.proportions().width,p=u+i.proportions().height;switch(s){case"fit":return o>=c&&d>=l&&r>=u&&p>=h;case"intersect":return o+t.helperProportions.width/2>c&&d>l-t.helperProportions.width/2&&r+t.helperProportions.height/2>u&&p>h-t.helperProportions.height/2;case"pointer":return n=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,a=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,e(a,u,i.proportions().height)&&e(n,c,i.proportions().width);case"touch":return(r>=u&&p>=r||h>=u&&p>=h||u>r&&h>p)&&(o>=c&&d>=o||l>=c&&d>=l||c>o&&l>d);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var s,n,a=t.ui.ddmanager.droppables[e.options.scope]||[],o=i?i.type:null,r=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(s=0;a.length>s;s++)if(!(a[s].options.disabled||e&&!a[s].accept.call(a[s].element[0],e.currentItem||e.element))){for(n=0;r.length>n;n++)if(r[n]===a[s].element[0]){a[s].proportions().height=0;continue t}a[s].visible="none"!==a[s].element.css("display"),a[s].visible&&("mousedown"===o&&a[s]._activate.call(a[s],i),a[s].offset=a[s].element.offset(),a[s].proportions({width:a[s].element[0].offsetWidth,height:a[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&&t.ui.intersect(e,this,this.options.tolerance)&&(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").bind("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,n,a,o=t.ui.intersect(e,this,this.options.tolerance),r=!o&&this.isover?"isout":o&&!this.isover?"isover":null;r&&(this.options.greedy&&(n=this.options.scope,a=this.element.parents(":data(ui-droppable)").filter(function(){return t.data(this,"ui-droppable").options.scope===n}),a.length&&(s=t.data(a[0],"ui-droppable"),s.greedyChild="isover"===r)),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&"isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}})(jQuery);(function(t){function e(t){return parseInt(t,10)||0}function i(t){return!isNaN(parseInt(t,10))}t.widget("ui.resizable",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var e,i,s,n,a,o=this,r=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t("
        ").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=r.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;e.length>i;i++)s=t.trim(e[i]),a="ui-resizable-"+s,n=t("
        "),n.css({zIndex:r.zIndex}),"se"===s&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(n);this._renderAxis=function(e){var i,s,n,a;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(s=t(this.handles[i],this.element),a=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,a),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){o.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=n&&n[1]?n[1]:"se")}),r.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){r.disabled||(t(this).removeClass("ui-resizable-autohide"),o._handles.show())}).mouseleave(function(){r.disabled||o.resizing||(t(this).addClass("ui-resizable-autohide"),o._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,s,n=!1;for(i in this.handles)s=t(this.handles[i])[0],(s===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(i){var s,n,a,o=this.options,r=this.element.position(),h=this.element;return this.resizing=!0,/absolute/.test(h.css("position"))?h.css({position:"absolute",top:h.css("top"),left:h.css("left")}):h.is(".ui-draggable")&&h.css({position:"absolute",top:r.top,left:r.left}),this._renderProxy(),s=e(this.helper.css("left")),n=e(this.helper.css("top")),o.containment&&(s+=t(o.containment).scrollLeft()||0,n+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:s,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:h.width(),height:h.height()},this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalPosition={left:s,top:n},this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,a=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===a?this.axis+"-resize":a),h.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(e){var i,s=this.helper,n={},a=this.originalMousePosition,o=this.axis,r=this.position.top,h=this.position.left,l=this.size.width,c=this.size.height,u=e.pageX-a.left||0,d=e.pageY-a.top||0,p=this._change[o];return p?(i=p.apply(this,[e,u,d]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),this.position.top!==r&&(n.top=this.position.top+"px"),this.position.left!==h&&(n.left=this.position.left+"px"),this.size.width!==l&&(n.width=this.size.width+"px"),this.size.height!==c&&(n.height=this.size.height+"px"),s.css(n),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||this._trigger("resize",e,this.ui()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,s,n,a,o,r,h,l=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&t.ui.hasScroll(i[0],"left")?0:c.sizeDiff.height,a=s?0:c.sizeDiff.width,o={width:c.helper.width()-a,height:c.helper.height()-n},r=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,h=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null,l.animate||this.element.css(t.extend(o,{top:h,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,s,n,a,o,r=this.options;o={minWidth:i(r.minWidth)?r.minWidth:0,maxWidth:i(r.maxWidth)?r.maxWidth:1/0,minHeight:i(r.minHeight)?r.minHeight:0,maxHeight:i(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,s=o.maxHeight*this.aspectRatio,a=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),n>o.minHeight&&(o.minHeight=n),o.maxWidth>s&&(o.maxWidth=s),o.maxHeight>a&&(o.maxHeight=a)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),i(t.left)&&(this.position.left=t.left),i(t.top)&&(this.position.top=t.top),i(t.height)&&(this.size.height=t.height),i(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,s=this.size,n=this.axis;return i(t.height)?t.width=t.height*this.aspectRatio:i(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(s.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(s.height-t.height),t.left=e.left+(s.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,s=this.axis,n=i(t.width)&&e.maxWidth&&e.maxWidtht.width,r=i(t.height)&&e.minHeight&&e.minHeight>t.height,h=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,c=/sw|nw|w/.test(s),u=/nw|ne|n/.test(s);return o&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),a&&(t.height=e.maxHeight),o&&c&&(t.left=h-e.minWidth),n&&c&&(t.left=h-e.maxWidth),r&&u&&(t.top=l-e.minHeight),a&&u&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,s,n,a=this.helper||this.element;for(t=0;this._proportionallyResizeElements.length>t;t++){if(n=this._proportionallyResizeElements[t],!this.borderDif)for(this.borderDif=[],i=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],s=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")],e=0;i.length>e;e++)this.borderDif[e]=(parseInt(i[e],10)||0)+(parseInt(s[e],10)||0);n.css({height:a.height()-this.borderDif[0]-this.borderDif[2]||0,width:a.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("
        "),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,s=this.originalPosition;return{left:s.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).data("ui-resizable"),s=i.options,n=i._proportionallyResizeElements,a=n.length&&/textarea/i.test(n[0].nodeName),o=a&&t.ui.hasScroll(n[0],"left")?0:i.sizeDiff.height,r=a?0:i.sizeDiff.width,h={width:i.size.width-r,height:i.size.height-o},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,c=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(h,c&&l?{top:c,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};n&&n.length&&t(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var i,s,n,a,o,r,h,l=t(this).data("ui-resizable"),c=l.options,u=l.element,d=c.containment,p=d instanceof t?d.get(0):/parent/.test(d)?u.parent().get(0):d;p&&(l.containerElement=t(p),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(i=t(p),s=[],t(["Top","Right","Left","Bottom"]).each(function(t,n){s[t]=e(i.css("padding"+n))}),l.containerOffset=i.offset(),l.containerPosition=i.position(),l.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},n=l.containerOffset,a=l.containerSize.height,o=l.containerSize.width,r=t.ui.hasScroll(p,"left")?p.scrollWidth:o,h=t.ui.hasScroll(p)?p.scrollHeight:a,l.parentData={element:p,left:n.left,top:n.top,width:r,height:h}))},resize:function(e){var i,s,n,a,o=t(this).data("ui-resizable"),r=o.options,h=o.containerOffset,l=o.position,c=o._aspectRatio||e.shiftKey,u={top:0,left:0},d=o.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(u=h),l.left<(o._helper?h.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-h.left:o.position.left-u.left),c&&(o.size.height=o.size.width/o.aspectRatio),o.position.left=r.helper?h.left:0),l.top<(o._helper?h.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-h.top:o.position.top),c&&(o.size.width=o.size.height*o.aspectRatio),o.position.top=o._helper?h.top:0),o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top,i=Math.abs((o._helper?o.offset.left-u.left:o.offset.left-u.left)+o.sizeDiff.width),s=Math.abs((o._helper?o.offset.top-u.top:o.offset.top-h.top)+o.sizeDiff.height),n=o.containerElement.get(0)===o.element.parent().get(0),a=/relative|absolute/.test(o.containerElement.css("position")),n&&a&&(i-=Math.abs(o.parentData.left)),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,c&&(o.size.height=o.size.width/o.aspectRatio)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,c&&(o.size.width=o.size.height*o.aspectRatio))},stop:function(){var e=t(this).data("ui-resizable"),i=e.options,s=e.containerOffset,n=e.containerPosition,a=e.containerElement,o=t(e.helper),r=o.offset(),h=o.outerWidth()-e.sizeDiff.width,l=o.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(a.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l}),e._helper&&!i.animate&&/static/.test(a.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,s=function(e){t(e).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?s(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],s(i.alsoResize)):t.each(i.alsoResize,function(t){s(t)})},resize:function(e,i){var s=t(this).data("ui-resizable"),n=s.options,a=s.originalSize,o=s.originalPosition,r={height:s.size.height-a.height||0,width:s.size.width-a.width||0,top:s.position.top-o.top||0,left:s.position.left-o.left||0},h=function(e,s){t(e).each(function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),a={},o=s&&s.length?s:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(n[e]||0)+(r[e]||0);i&&i>=0&&(a[e]=i||null)}),e.css(a)})};"object"!=typeof n.alsoResize||n.alsoResize.nodeType?h(n.alsoResize):t.each(n.alsoResize,function(t,e){h(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,s=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data("ui-resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data("ui-resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e=t(this).data("ui-resizable"),i=e.options,s=e.size,n=e.originalSize,a=e.originalPosition,o=e.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,h=r[0]||1,l=r[1]||1,c=Math.round((s.width-n.width)/h)*h,u=Math.round((s.height-n.height)/l)*l,d=n.width+c,p=n.height+u,f=i.maxWidth&&d>i.maxWidth,g=i.maxHeight&&p>i.maxHeight,m=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=r,m&&(d+=h),v&&(p+=l),f&&(d-=h),g&&(p-=l),/^(se|s|e)$/.test(o)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(o)?(e.size.width=d,e.size.height=p,e.position.top=a.top-u):/^(sw)$/.test(o)?(e.size.width=d,e.size.height=p,e.position.left=a.left-c):(p-l>0?(e.size.height=p,e.position.top=a.top-u):(e.size.height=l,e.position.top=a.top+n.height-l),d-h>0?(e.size.width=d,e.position.left=a.left-c):(e.size.width=h,e.position.left=a.left+n.width-h))}})})(jQuery);(function(t){t.widget("ui.selectable",t.ui.mouse,{version:"1.10.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e=t(i.options.filter,i.element[0]),e.addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("
        ")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,s=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(s.filter,this.element[0]),this._trigger("start",e),t(s.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=t.data(this,"selectable-item");s.startselected=!0,e.metaKey||e.ctrlKey||(s.$element.removeClass("ui-selected"),s.selected=!1,s.$element.addClass("ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",e,{unselecting:s.element}))}),t(e.target).parents().addBack().each(function(){var s,n=t.data(this,"selectable-item");return n?(s=!e.metaKey&&!e.ctrlKey||!n.$element.hasClass("ui-selected"),n.$element.removeClass(s?"ui-unselecting":"ui-selected").addClass(s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",e,{selecting:n.element}):i._trigger("unselecting",e,{unselecting:n.element}),!1):undefined}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.options,a=this.opos[0],o=this.opos[1],r=e.pageX,l=e.pageY;return a>r&&(i=r,r=a,a=i),o>l&&(i=l,l=o,o=i),this.helper.css({left:a,top:o,width:r-a,height:l-o}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),h=!1;i&&i.element!==s.element[0]&&("touch"===n.tolerance?h=!(i.left>r||a>i.right||i.top>l||o>i.bottom):"fit"===n.tolerance&&(h=i.left>a&&r>i.right&&i.top>o&&l>i.bottom),h?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,s._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");s.$element.removeClass("ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",e,{unselected:s.element})}),t(".ui-selecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");s.$element.removeClass("ui-selecting").addClass("ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",e,{selected:s.element})}),this._trigger("stop",e),this.helper.remove(),!1}})})(jQuery);(function(t){function e(t,e,i){return t>e&&e+i>t}function i(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.4",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},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?"x"===t.axis||i(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_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):undefined}),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("").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]!==document&&"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.helper.addClass("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]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=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]===document.body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.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({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("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,h=r+t.height,l=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||s+l>r&&h>s+l,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&&h>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var i="x"===this.options.axis||e(this.positionAbs.top+this.offset.click.top,t.top,t.height),s="y"===this.options.axis||e(this.positionAbs.left+this.offset.click.left,t.left,t.width),n=i&&s,o=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return n?this.floating?a&&"right"===a||"down"===o?2:1:o&&("down"===o?2:1):!1},_intersectsWithSides:function(t){var i=e(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),s=e(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&s||"left"===o&&!s:n&&("down"===n&&i||"up"===n&&!i)},_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.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=[],h=[],l=this._connectWith();if(l&&e)for(s=l.length-1;s>=0;s--)for(o=t(l[s]),n=o.length-1;n>=0;n--)a=t.data(o[n],this.widgetFullName),a&&a!==this&&!a.options.disabled&&h.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(h.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=h.length-1;s>=0;s--)h[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,h,l,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]),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,l=r.length;l>s;s++)h=t(r[s]),h.data(this.widgetName+"-item",a),c.push({item:h,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){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]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===s?e.currentItem.children().each(function(){t(" ",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(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)},_contactContainers:function(s){var n,o,a,r,h,l,c,u,d,p,f=null,g=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(f&&t.contains(this.containers[n].element[0],f.element[0]))continue;f=this.containers[n],g=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",s,this._uiHash(this)),this.containers[n].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[g].containerCache.over||(this.containers[g]._trigger("over",s,this._uiHash(this)),this.containers[g].containerCache.over=1);else{for(a=1e4,r=null,p=f.floating||i(this.currentItem),h=p?"left":"top",l=p?"width":"height",c=this.positionAbs[h]+this.offset.click[h],o=this.items.length-1;o>=0;o--)t.contains(this.containers[g].element[0],this.items[o].item[0])&&this.items[o].item[0]!==this.currentItem[0]&&(!p||e(this.positionAbs.top+this.offset.click.top,this.items[o].top,this.items[o].height))&&(u=this.items[o].item.offset()[h],d=!1,Math.abs(u-c)>Math.abs(u+this.items[o][l]-c)&&(d=!0,u+=this.items[o][l]),a>Math.abs(u-c)&&(a=Math.abs(u-c),r=this.items[o],this.direction=d?"up":"down"));if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[g])return;r?this._rearrange(s,r,null,!0):this._rearrange(s,null,this.containers[g].element,!0),this._trigger("change",s,this._uiHash()),this.containers[g]._trigger("change",s,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger("over",s,this._uiHash(this)),this.containers[g].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]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.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,t("document"===n.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===n.containment?document:window).height()||document.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]!==document&&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]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.leftthis.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():h?0:r.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?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).removeClass("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,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),s=0;n.length>s;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),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,!0},_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}}})})(jQuery);(function(e){e.widget("ui.autocomplete",{version:"1.10.4",defaultElement:"",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,i,s,n=this.element[0].nodeName.toLowerCase(),a="textarea"===n,o="input"===n;this.isMultiLine=a?!0:o?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[a||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return t=!0,s=!0,i=!0,undefined;t=!1,s=!1,i=!1;var a=e.ui.keyCode;switch(n.keyCode){case a.PAGE_UP:t=!0,this._move("previousPage",n);break;case a.PAGE_DOWN:t=!0,this._move("nextPage",n);break;case a.UP:t=!0,this._keyEvent("previous",n);break;case a.DOWN:t=!0,this._keyEvent("next",n);break;case a.ENTER:case a.NUMPAD_ENTER:this.menu.active&&(t=!0,n.preventDefault(),this.menu.select(n));break;case a.TAB:this.menu.active&&this.menu.select(n);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(t)return t=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),undefined;if(!i){var n=e.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(e){return s?(s=!1,e.preventDefault(),undefined):(this._searchTimeout(e),undefined)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){return this.cancelBlur?(delete this.cancelBlur,undefined):(clearTimeout(this.searching),this.close(e),this._change(e),undefined)}}),this._initSource(),this.menu=e("
        ',image:'',iframe:'",error:'

        The requested content cannot be loaded.
        Please try again later.

        ',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0, +openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1, +isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k, +c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&& +k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current|| +b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer= +setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d= +a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")), +b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('
        ').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(), +y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement; +if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0, +{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1, +mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio= +!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href"); +"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload= +this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href); +f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload, +e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin, +outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("
        ").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('
        ').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}", +g);break;case "swf":e='',h="",f.each(a.swf,function(a,b){e+='';h+=" "+a+'="'+b+'"'}),e+='"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll": +"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside? +h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth|| +h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),cz||y>r)&&(c>m&&j>u)&&!(19n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&jz||y>r)&&c>m&&j>u;c=h.aspectRatio?cu&&j
        ').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive? +b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth), +p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"=== +f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d= +b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('
        '+e+"
        ");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner(''),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d, +e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+ +":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('
        ').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('
        ').appendTo("body");var e=20=== +d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("").appendTo("head")})})(window,document,jQuery); \ No newline at end of file diff --git a/static/client/js/jquery.mCustomScrollbar.concat.min.js b/static/client/js/jquery.mCustomScrollbar.concat.min.js new file mode 100644 index 00000000..1bd79b1b --- /dev/null +++ b/static/client/js/jquery.mCustomScrollbar.concat.min.js @@ -0,0 +1,4 @@ +/* == jquery mousewheel plugin == Version: 3.1.11, License: MIT License (MIT) */ +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.11",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b)["offsetParent"in a.fn?"offsetParent":"parent"]();return c.length||(c=a("body")),parseInt(c.css("fontSize"),10)},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}); +/* == malihu jquery custom scrollbar plugin == Version: 3.0.4, License: MIT License (MIT) */ +(function(b,a,c){(function(d){d(jQuery)}(function(j){var g="mCustomScrollbar",d="mCS",m=".mCustomScrollbar",h={setWidth:false,setHeight:false,setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:true,autoHideScrollbar:false,autoExpandScrollbar:false,alwaysShowScrollbar:0,snapAmount:null,snapOffset:0,mouseWheel:{enable:true,scrollAmount:"auto",axis:"y",preventDefault:false,deltaFactor:"auto",normalizeDelta:false,invert:false,disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{enable:false,scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:true,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoExpandHorizontalScroll:false,autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:true,updateOnImageLoad:true,updateOnSelectorChange:false},theme:"light",callbacks:{onScrollStart:false,onScroll:false,onTotalScroll:false,onTotalScrollBack:false,whileScrolling:false,onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:true,onOverflowY:false,onOverflowX:false,onOverflowYNone:false,onOverflowXNone:false},live:false,liveSelector:null},l=0,o={},f=function(p){if(o[p]){clearTimeout(o[p]);i._delete.call(null,o[p])}},k=(b.attachEvent&&!b.addEventListener)?1:0,n=false,e={init:function(q){var q=j.extend(true,{},h,q),p=i._selector.call(this);if(q.live){var s=q.liveSelector||this.selector||m,r=j(s);if(q.live==="off"){f(s);return}o[s]=setTimeout(function(){r.mCustomScrollbar(q);if(q.live==="once"&&r.length){f(s)}},500)}else{f(s)}q.setWidth=(q.set_width)?q.set_width:q.setWidth;q.setHeight=(q.set_height)?q.set_height:q.setHeight;q.axis=(q.horizontalScroll)?"x":i._findAxis.call(null,q.axis);q.scrollInertia=q.scrollInertia>0&&q.scrollInertia<17?17:q.scrollInertia;if(typeof q.mouseWheel!=="object"&&q.mouseWheel==true){q.mouseWheel={enable:true,scrollAmount:"auto",axis:"y",preventDefault:false,deltaFactor:"auto",normalizeDelta:false,invert:false}}q.mouseWheel.scrollAmount=!q.mouseWheelPixels?q.mouseWheel.scrollAmount:q.mouseWheelPixels;q.mouseWheel.normalizeDelta=!q.advanced.normalizeMouseWheelDelta?q.mouseWheel.normalizeDelta:q.advanced.normalizeMouseWheelDelta;q.scrollButtons.scrollType=i._findScrollButtonsType.call(null,q.scrollButtons.scrollType);i._theme.call(null,q);return j(p).each(function(){var u=j(this);if(!u.data(d)){u.data(d,{idx:++l,opt:q,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:false,tweenRunning:false,sequential:{},langDir:u.css("direction"),cbOffsets:null,trigger:null});var w=u.data(d).opt,v=u.data("mcs-axis"),t=u.data("mcs-scrollbar-position"),x=u.data("mcs-theme");if(v){w.axis=v}if(t){w.scrollbarPosition=t}if(x){w.theme=x;i._theme.call(null,w)}i._pluginMarkup.call(this);e.update.call(null,u)}})},update:function(q){var p=q||i._selector.call(this);return j(p).each(function(){var t=j(this);if(t.data(d)){var v=t.data(d),u=v.opt,r=j("#mCSB_"+v.idx+"_container"),s=[j("#mCSB_"+v.idx+"_dragger_vertical"),j("#mCSB_"+v.idx+"_dragger_horizontal")];if(!r.length){return}if(v.tweenRunning){i._stop.call(null,t)}if(t.hasClass("mCS_disabled")){t.removeClass("mCS_disabled")}if(t.hasClass("mCS_destroyed")){t.removeClass("mCS_destroyed")}i._maxHeight.call(this);i._expandContentHorizontally.call(this);if(u.axis!=="y"&&!u.advanced.autoExpandHorizontalScroll){r.css("width",i._contentWidth(r.children()))}v.overflowed=i._overflowed.call(this);i._scrollbarVisibility.call(this);if(u.autoDraggerLength){i._setDraggerLength.call(this)}i._scrollRatio.call(this);i._bindEvents.call(this);var w=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];if(u.axis!=="x"){if(!v.overflowed[0]){i._resetContentPosition.call(this);if(u.axis==="y"){i._unbindEvents.call(this)}else{if(u.axis==="yx"&&v.overflowed[1]){i._scrollTo.call(this,t,w[1].toString(),{dir:"x",dur:0,overwrite:"none"})}}}else{if(s[0].height()>s[0].parent().height()){i._resetContentPosition.call(this)}else{i._scrollTo.call(this,t,w[0].toString(),{dir:"y",dur:0,overwrite:"none"});v.contentReset.y=null}}}if(u.axis!=="y"){if(!v.overflowed[1]){i._resetContentPosition.call(this);if(u.axis==="x"){i._unbindEvents.call(this)}else{if(u.axis==="yx"&&v.overflowed[0]){i._scrollTo.call(this,t,w[0].toString(),{dir:"y",dur:0,overwrite:"none"})}}}else{if(s[1].width()>s[1].parent().width()){i._resetContentPosition.call(this)}else{i._scrollTo.call(this,t,w[1].toString(),{dir:"x",dur:0,overwrite:"none"});v.contentReset.x=null}}}i._autoUpdate.call(this)}})},scrollTo:function(r,q){if(typeof r=="undefined"||r==null){return}var p=i._selector.call(this);return j(p).each(function(){var u=j(this);if(u.data(d)){var x=u.data(d),w=x.opt,v={trigger:"external",scrollInertia:w.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:false,timeout:60,callbacks:true,onStart:true,onUpdate:true,onComplete:true},s=j.extend(true,{},v,q),y=i._arr.call(this,r),t=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;y[0]=i._to.call(this,y[0],"y");y[1]=i._to.call(this,y[1],"x");if(s.moveDragger){y[0]*=x.scrollRatio.y;y[1]*=x.scrollRatio.x}s.dur=t;setTimeout(function(){if(y[0]!==null&&typeof y[0]!=="undefined"&&w.axis!=="x"&&x.overflowed[0]){s.dir="y";s.overwrite="all";i._scrollTo.call(this,u,y[0].toString(),s)}if(y[1]!==null&&typeof y[1]!=="undefined"&&w.axis!=="y"&&x.overflowed[1]){s.dir="x";s.overwrite="none";i._scrollTo.call(this,u,y[1].toString(),s)}},s.timeout)}})},stop:function(){var p=i._selector.call(this);return j(p).each(function(){var q=j(this);if(q.data(d)){i._stop.call(null,q)}})},disable:function(q){var p=i._selector.call(this);return j(p).each(function(){var r=j(this);if(r.data(d)){var t=r.data(d),s=t.opt;i._autoUpdate.call(this,"remove");i._unbindEvents.call(this);if(q){i._resetContentPosition.call(this)}i._scrollbarVisibility.call(this,true);r.addClass("mCS_disabled")}})},destroy:function(){var p=i._selector.call(this);return j(p).each(function(){var s=j(this);if(s.data(d)){var u=s.data(d),t=u.opt,q=j("#mCSB_"+u.idx),r=j("#mCSB_"+u.idx+"_container"),v=j(".mCSB_"+u.idx+"_scrollbar");if(t.live){f(p)}i._autoUpdate.call(this,"remove");i._unbindEvents.call(this);i._resetContentPosition.call(this);s.removeData(d);i._delete.call(null,this.mcs);v.remove();q.replaceWith(r.contents());s.removeClass(g+" _"+d+"_"+u.idx+" mCS-autoHide mCS-dir-rtl mCS_no_scrollbar mCS_disabled").addClass("mCS_destroyed")}})}},i={_selector:function(){return(typeof j(this)!=="object"||j(this).length<1)?m:this},_theme:function(s){var r=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],q=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],p=["minimal","minimal-dark"],u=["minimal","minimal-dark"],t=["minimal","minimal-dark"];s.autoDraggerLength=j.inArray(s.theme,r)>-1?false:s.autoDraggerLength;s.autoExpandScrollbar=j.inArray(s.theme,q)>-1?false:s.autoExpandScrollbar;s.scrollButtons.enable=j.inArray(s.theme,p)>-1?false:s.scrollButtons.enable;s.autoHideScrollbar=j.inArray(s.theme,u)>-1?true:s.autoHideScrollbar;s.scrollbarPosition=j.inArray(s.theme,t)>-1?"outside":s.scrollbarPosition},_findAxis:function(p){return(p==="yx"||p==="xy"||p==="auto")?"yx":(p==="x"||p==="horizontal")?"x":"y"},_findScrollButtonsType:function(p){return(p==="stepped"||p==="pixels"||p==="step"||p==="click")?"stepped":"stepless"},_pluginMarkup:function(){var y=j(this),x=y.data(d),r=x.opt,t=r.autoExpandScrollbar?" mCSB_scrollTools_onDrag_expand":"",B=["
        ","
        "],u=r.axis==="yx"?"mCSB_vertical_horizontal":r.axis==="x"?"mCSB_horizontal":"mCSB_vertical",w=r.axis==="yx"?B[0]+B[1]:r.axis==="x"?B[1]:B[0],v=r.axis==="yx"?"
        ":"",s=r.autoHideScrollbar?" mCS-autoHide":"",p=(r.axis!=="x"&&x.langDir==="rtl")?" mCS-dir-rtl":"";if(r.setWidth){y.css("width",r.setWidth)}if(r.setHeight){y.css("height",r.setHeight)}r.setLeft=(r.axis!=="y"&&x.langDir==="rtl")?"989999px":r.setLeft;y.addClass(g+" _"+d+"_"+x.idx+s+p).wrapInner("
        ");var q=j("#mCSB_"+x.idx),z=j("#mCSB_"+x.idx+"_container");if(r.axis!=="y"&&!r.advanced.autoExpandHorizontalScroll){z.css("width",i._contentWidth(z.children()))}if(r.scrollbarPosition==="outside"){if(y.css("position")==="static"){y.css("position","relative")}y.css("overflow","visible");q.addClass("mCSB_outside").after(w)}else{q.addClass("mCSB_inside").append(w);z.wrap(v)}i._scrollButtons.call(this);var A=[j("#mCSB_"+x.idx+"_dragger_vertical"),j("#mCSB_"+x.idx+"_dragger_horizontal")];A[0].css("min-height",A[0].height());A[1].css("min-width",A[1].width())},_contentWidth:function(p){return Math.max.apply(Math,p.map(function(){return j(this).outerWidth(true)}).get())},_expandContentHorizontally:function(){var q=j(this),s=q.data(d),r=s.opt,p=j("#mCSB_"+s.idx+"_container");if(r.advanced.autoExpandHorizontalScroll&&r.axis!=="y"){p.css({position:"absolute",width:"auto"}).wrap("
        ").css({width:(Math.ceil(p[0].getBoundingClientRect().right+0.4)-Math.floor(p[0].getBoundingClientRect().left)),position:"relative"}).unwrap()}},_scrollButtons:function(){var s=j(this),u=s.data(d),t=u.opt,q=j(".mCSB_"+u.idx+"_scrollbar:first"),r=["","","",""],p=[(t.axis==="x"?r[2]:r[0]),(t.axis==="x"?r[3]:r[1]),r[2],r[3]];if(t.scrollButtons.enable){q.prepend(p[0]).append(p[1]).next(".mCSB_scrollTools").prepend(p[2]).append(p[3])}},_maxHeight:function(){var t=j(this),w=t.data(d),v=w.opt,r=j("#mCSB_"+w.idx),q=t.css("max-height"),s=q.indexOf("%")!==-1,p=t.css("box-sizing");if(q!=="none"){var u=s?t.parent().height()*parseInt(q)/100:parseInt(q);if(p==="border-box"){u-=((t.innerHeight()-t.height())+(t.outerHeight()-t.innerHeight()))}r.css("max-height",Math.round(u))}},_setDraggerLength:function(){var u=j(this),s=u.data(d),p=j("#mCSB_"+s.idx),v=j("#mCSB_"+s.idx+"_container"),y=[j("#mCSB_"+s.idx+"_dragger_vertical"),j("#mCSB_"+s.idx+"_dragger_horizontal")],t=[p.height()/v.outerHeight(false),p.width()/v.outerWidth(false)],q=[parseInt(y[0].css("min-height")),Math.round(t[0]*y[0].parent().height()),parseInt(y[1].css("min-width")),Math.round(t[1]*y[1].parent().width())],r=k&&(q[1]q.height(),p>q.width()]},_resetContentPosition:function(){var t=j(this),v=t.data(d),u=v.opt,q=j("#mCSB_"+v.idx),r=j("#mCSB_"+v.idx+"_container"),s=[j("#mCSB_"+v.idx+"_dragger_vertical"),j("#mCSB_"+v.idx+"_dragger_horizontal")];i._stop(t);if((u.axis!=="x"&&!v.overflowed[0])||(u.axis==="y"&&v.overflowed[0])){s[0].add(r).css("top",0);i._scrollTo(t,"_resetY")}if((u.axis!=="y"&&!v.overflowed[1])||(u.axis==="x"&&v.overflowed[1])){var p=dx=0;if(v.langDir==="rtl"){p=q.width()-r.outerWidth(false);dx=Math.abs(p/v.scrollRatio.x)}r.css("left",p);s[1].css("left",dx);i._scrollTo(t,"_resetX")}},_bindEvents:function(){var r=j(this),t=r.data(d),s=t.opt;if(!t.bindEvents){i._draggable.call(this);if(s.contentTouchScroll){i._contentDraggable.call(this)}if(s.mouseWheel.enable){function q(){p=setTimeout(function(){if(!j.event.special.mousewheel){q()}else{clearTimeout(p);i._mousewheel.call(r[0])}},1000)}var p;q()}i._draggerRail.call(this);i._wrapperScroll.call(this);if(s.advanced.autoScrollOnFocus){i._focus.call(this)}if(s.scrollButtons.enable){i._buttons.call(this)}if(s.keyboard.enable){i._keyboard.call(this)}t.bindEvents=true}},_unbindEvents:function(){var s=j(this),t=s.data(d),p=d+"_"+t.idx,u=".mCSB_"+t.idx+"_scrollbar",r=j("#mCSB_"+t.idx+",#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,"+u+" .mCSB_draggerContainer,#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal,"+u+">a"),q=j("#mCSB_"+t.idx+"_container");if(t.bindEvents){j(a).unbind("."+p);r.each(function(){j(this).unbind("."+p)});clearTimeout(s[0]._focusTimeout);i._delete.call(null,s[0]._focusTimeout);clearTimeout(t.sequential.step);i._delete.call(null,t.sequential.step);clearTimeout(q[0].onCompleteTimeout);i._delete.call(null,q[0].onCompleteTimeout);t.bindEvents=false}},_scrollbarVisibility:function(q){var t=j(this),v=t.data(d),u=v.opt,p=j("#mCSB_"+v.idx+"_container_wrapper"),r=p.length?p:j("#mCSB_"+v.idx+"_container"),w=[j("#mCSB_"+v.idx+"_scrollbar_vertical"),j("#mCSB_"+v.idx+"_scrollbar_horizontal")],s=[w[0].find(".mCSB_dragger"),w[1].find(".mCSB_dragger")];if(u.axis!=="x"){if(v.overflowed[0]&&!q){w[0].add(s[0]).add(w[0].children("a")).css("display","block");r.removeClass("mCS_no_scrollbar_y mCS_y_hidden")}else{if(u.alwaysShowScrollbar){if(u.alwaysShowScrollbar!==2){s[0].add(w[0].children("a")).css("display","none")}r.removeClass("mCS_y_hidden")}else{w[0].css("display","none");r.addClass("mCS_y_hidden")}r.addClass("mCS_no_scrollbar_y")}}if(u.axis!=="y"){if(v.overflowed[1]&&!q){w[1].add(s[1]).add(w[1].children("a")).css("display","block");r.removeClass("mCS_no_scrollbar_x mCS_x_hidden")}else{if(u.alwaysShowScrollbar){if(u.alwaysShowScrollbar!==2){s[1].add(w[1].children("a")).css("display","none")}r.removeClass("mCS_x_hidden")}else{w[1].css("display","none");r.addClass("mCS_x_hidden")}r.addClass("mCS_no_scrollbar_x")}}if(!v.overflowed[0]&&!v.overflowed[1]){t.addClass("mCS_no_scrollbar")}else{t.removeClass("mCS_no_scrollbar")}},_coordinates:function(q){var p=q.type;switch(p){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return[q.originalEvent.pageY,q.originalEvent.pageX];break;case"touchstart":case"touchmove":case"touchend":var r=q.originalEvent.touches[0]||q.originalEvent.changedTouches[0];return[r.pageY,r.pageX];break;default:return[q.pageY,q.pageX]}},_draggable:function(){var u=j(this),s=u.data(d),p=s.opt,r=d+"_"+s.idx,t=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],v=j("#mCSB_"+s.idx+"_container"),w=j("#"+t[0]+",#"+t[1]),A,y,z;w.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(E){E.stopImmediatePropagation();E.preventDefault();if(!i._mouseBtnLeft(E)){return}n=true;if(k){a.onselectstart=function(){return false}}x(false);i._stop(u);A=j(this);var F=A.offset(),G=i._coordinates(E)[0]-F.top,B=i._coordinates(E)[1]-F.left,D=A.height()+F.top,C=A.width()+F.left;if(G0&&B0){y=G;z=B}i._onDragClasses(A,"active",p.autoExpandScrollbar)}).bind("touchmove."+r,function(C){C.stopImmediatePropagation();C.preventDefault();var D=A.offset(),E=i._coordinates(C)[0]-D.top,B=i._coordinates(C)[1]-D.left;q(y,z,E,B)});j(a).bind("mousemove."+r+" pointermove."+r+" MSPointerMove."+r,function(C){if(A){var D=A.offset(),E=i._coordinates(C)[0]-D.top,B=i._coordinates(C)[1]-D.left;if(y===E){return}q(y,z,E,B)}}).add(w).bind("mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(B){if(A){i._onDragClasses(A,"active",p.autoExpandScrollbar);A=null}n=false;if(k){a.onselectstart=null}x(true)});function x(B){var C=v.find("iframe");if(!C.length){return}var D=!B?"none":"auto";C.css("pointer-events",D)}function q(D,E,G,B){v[0].idleTimer=p.scrollInertia<233?250:0;if(A.attr("id")===t[1]){var C="x",F=((A[0].offsetLeft-E)+B)*s.scrollRatio.x}else{var C="y",F=((A[0].offsetTop-D)+G)*s.scrollRatio.y}i._scrollTo(u,F.toString(),{dir:C,drag:true})}},_contentDraggable:function(){var y=j(this),K=y.data(d),I=K.opt,F=d+"_"+K.idx,v=j("#mCSB_"+K.idx),z=j("#mCSB_"+K.idx+"_container"),w=[j("#mCSB_"+K.idx+"_dragger_vertical"),j("#mCSB_"+K.idx+"_dragger_horizontal")],E,G,L,M,C=[],D=[],H,A,u,t,J,x,r=0,q,s=I.axis==="yx"?"none":"all";z.bind("touchstart."+F+" pointerdown."+F+" MSPointerDown."+F,function(N){if(!i._pointerTouch(N)||n){return}var O=z.offset();E=i._coordinates(N)[0]-O.top;G=i._coordinates(N)[1]-O.left}).bind("touchmove."+F+" pointermove."+F+" MSPointerMove."+F,function(Q){if(!i._pointerTouch(Q)||n){return}Q.stopImmediatePropagation();A=i._getTime();var P=v.offset(),S=i._coordinates(Q)[0]-P.top,U=i._coordinates(Q)[1]-P.left,R="mcsLinearOut";C.push(S);D.push(U);if(K.overflowed[0]){var O=w[0].parent().height()-w[0].height(),T=((E-S)>0&&(S-E)>-(O*K.scrollRatio.y))}if(K.overflowed[1]){var N=w[1].parent().width()-w[1].width(),V=((G-U)>0&&(U-G)>-(N*K.scrollRatio.x))}if(T||V){Q.preventDefault()}x=I.axis==="yx"?[(E-S),(G-U)]:I.axis==="x"?[null,(G-U)]:[(E-S),null];z[0].idleTimer=250;if(K.overflowed[0]){B(x[0],r,R,"y","all",true)}if(K.overflowed[1]){B(x[1],r,R,"x",s,true)}});v.bind("touchstart."+F+" pointerdown."+F+" MSPointerDown."+F,function(N){if(!i._pointerTouch(N)||n){return}N.stopImmediatePropagation();i._stop(y);H=i._getTime();var O=v.offset();L=i._coordinates(N)[0]-O.top;M=i._coordinates(N)[1]-O.left;C=[];D=[]}).bind("touchend."+F+" pointerup."+F+" MSPointerUp."+F,function(P){if(!i._pointerTouch(P)||n){return}P.stopImmediatePropagation();u=i._getTime();var N=v.offset(),T=i._coordinates(P)[0]-N.top,V=i._coordinates(P)[1]-N.left;if((u-A)>30){return}J=1000/(u-H);var Q="mcsEaseOut",R=J<2.5,W=R?[C[C.length-2],D[D.length-2]]:[0,0];t=R?[(T-W[0]),(V-W[1])]:[T-L,V-M];var O=[Math.abs(t[0]),Math.abs(t[1])];J=R?[Math.abs(t[0]/4),Math.abs(t[1]/4)]:[J,J];var U=[Math.abs(z[0].offsetTop)-(t[0]*p((O[0]/J[0]),J[0])),Math.abs(z[0].offsetLeft)-(t[1]*p((O[1]/J[1]),J[1]))];x=I.axis==="yx"?[U[0],U[1]]:I.axis==="x"?[null,U[1]]:[U[0],null];q=[(O[0]*4)+I.scrollInertia,(O[1]*4)+I.scrollInertia];var S=parseInt(I.contentTouchScroll)||0;x[0]=O[0]>S?x[0]:0;x[1]=O[1]>S?x[1]:0;if(K.overflowed[0]){B(x[0],q[0],Q,"y",s,false)}if(K.overflowed[1]){B(x[1],q[1],Q,"x",s,false)}});function p(P,N){var O=[N*1.5,N*2,N/1.5,N/2];if(P>90){return N>4?O[0]:O[3]}else{if(P>60){return N>3?O[3]:O[2]}else{if(P>30){return N>8?O[1]:N>6?O[0]:N>4?N:O[2]}else{return N>8?N:O[3]}}}}function B(P,R,S,O,N,Q){if(!P){return}i._scrollTo(y,P.toString(),{dur:R,scrollEasing:S,dir:O,overwrite:N,drag:Q})}},_mousewheel:function(){var w=j(this),v=w.data(d);if(v){var p=v.opt,s=d+"_"+v.idx,q=j("#mCSB_"+v.idx),x=[j("#mCSB_"+v.idx+"_dragger_vertical"),j("#mCSB_"+v.idx+"_dragger_horizontal")],t=j("#mCSB_"+v.idx+"_container").find("iframe"),r=q;if(t.length){t.each(function(){var y=this;if(u(y)){r=r.add(j(y).contents().find("body"))}})}r.bind("mousewheel."+s,function(C,G){i._stop(w);if(i._disableMousewheel(w,C.target)){return}var E=p.mouseWheel.deltaFactor!=="auto"?parseInt(p.mouseWheel.deltaFactor):(k&&C.deltaFactor<100)?100:C.deltaFactor||100;if(p.axis==="x"||p.mouseWheel.axis==="x"){var z="x",F=[Math.round(E*v.scrollRatio.x),parseInt(p.mouseWheel.scrollAmount)],B=p.mouseWheel.scrollAmount!=="auto"?F[1]:F[0]>=q.width()?q.width()*0.9:F[0],H=Math.abs(j("#mCSB_"+v.idx+"_container")[0].offsetLeft),D=x[1][0].offsetLeft,A=x[1].parent().width()-x[1].width(),y=C.deltaX||C.deltaY||G}else{var z="y",F=[Math.round(E*v.scrollRatio.y),parseInt(p.mouseWheel.scrollAmount)],B=p.mouseWheel.scrollAmount!=="auto"?F[1]:F[0]>=q.height()?q.height()*0.9:F[0],H=Math.abs(j("#mCSB_"+v.idx+"_container")[0].offsetTop),D=x[0][0].offsetTop,A=x[0].parent().height()-x[0].height(),y=C.deltaY||G}if((z==="y"&&!v.overflowed[0])||(z==="x"&&!v.overflowed[1])){return}if(p.mouseWheel.invert){y=-y}if(p.mouseWheel.normalizeDelta){y=y<0?-1:1}if((y>0&&D!==0)||(y<0&&D!==A)||p.mouseWheel.preventDefault){C.stopImmediatePropagation();C.preventDefault()}i._scrollTo(w,(H-(y*B)).toString(),{dir:z})})}function u(z){var y=null;try{var B=z.contentDocument||z.contentWindow.document;y=B.body.innerHTML}catch(A){}return(y!==null)}},_disableMousewheel:function(r,t){var p=t.nodeName.toLowerCase(),q=r.data(d).opt.mouseWheel.disableOver,s=["select","textarea"];return j.inArray(p,q)>-1&&!(j.inArray(p,s)>-1&&!j(t).is(":focus"))},_draggerRail:function(){var s=j(this),t=s.data(d),q=d+"_"+t.idx,r=j("#mCSB_"+t.idx+"_container"),u=r.parent(),p=j(".mCSB_"+t.idx+"_scrollbar .mCSB_draggerContainer");p.bind("touchstart."+q+" pointerdown."+q+" MSPointerDown."+q,function(v){n=true}).bind("touchend."+q+" pointerup."+q+" MSPointerUp."+q,function(v){n=false}).bind("click."+q,function(z){if(j(z.target).hasClass("mCSB_draggerContainer")||j(z.target).hasClass("mCSB_draggerRail")){i._stop(s);var w=j(this),y=w.find(".mCSB_dragger");if(w.parent(".mCSB_scrollTools_horizontal").length>0){if(!t.overflowed[1]){return}var v="x",x=z.pageX>y.offset().left?-1:1,A=Math.abs(r[0].offsetLeft)-(x*(u.width()*0.9))}else{if(!t.overflowed[0]){return}var v="y",x=z.pageY>y.offset().top?-1:1,A=Math.abs(r[0].offsetTop)-(x*(u.height()*0.9))}i._scrollTo(s,A.toString(),{dir:v,scrollEasing:"mcsEaseInOut"})}})},_focus:function(){var r=j(this),t=r.data(d),s=t.opt,p=d+"_"+t.idx,q=j("#mCSB_"+t.idx+"_container"),u=q.parent();q.bind("focusin."+p,function(x){var w=j(a.activeElement),y=q.find(".mCustomScrollBox").length,v=0;if(!w.is(s.advanced.autoScrollOnFocus)){return}i._stop(r);clearTimeout(r[0]._focusTimeout);r[0]._focusTimer=y?(v+17)*y:0;r[0]._focusTimeout=setTimeout(function(){var C=[w.offset().top-q.offset().top,w.offset().left-q.offset().left],B=[q[0].offsetTop,q[0].offsetLeft],z=[(B[0]+C[0]>=0&&B[0]+C[0]=0&&B[0]+C[1]a");q.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(z){z.preventDefault();if(!i._mouseBtnLeft(z)){return}var y=j(this).attr("class");p.type=v.scrollButtons.scrollType;switch(z.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if(p.type==="stepped"){return}n=true;w.tweenRunning=false;x("on",y);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if(p.type==="stepped"){return}n=false;if(p.dir){x("off",y)}break;case"click":if(p.type!=="stepped"||w.tweenRunning){return}x("on",y);break}function x(A,B){p.scrollAmount=v.snapAmount||v.scrollButtons.scrollAmount;i._sequentialScroll.call(this,u,A,B)}})},_keyboard:function(){var u=j(this),t=u.data(d),q=t.opt,x=t.sequential,s=d+"_"+t.idx,r=j("#mCSB_"+t.idx),w=j("#mCSB_"+t.idx+"_container"),p=w.parent(),v="input,textarea,select,datalist,keygen,[contenteditable='true']";r.attr("tabindex","0").bind("blur."+s+" keydown."+s+" keyup."+s,function(D){switch(D.type){case"blur":if(t.tweenRunning&&x.dir){y("off",null)}break;case"keydown":case"keyup":var A=D.keyCode?D.keyCode:D.which,B="on";if((q.axis!=="x"&&(A===38||A===40))||(q.axis!=="y"&&(A===37||A===39))){if(((A===38||A===40)&&!t.overflowed[0])||((A===37||A===39)&&!t.overflowed[1])){return}if(D.type==="keyup"){B="off"}if(!j(a.activeElement).is(v)){D.preventDefault();D.stopImmediatePropagation();y(B,A)}}else{if(A===33||A===34){if(t.overflowed[0]||t.overflowed[1]){D.preventDefault();D.stopImmediatePropagation()}if(D.type==="keyup"){i._stop(u);var C=A===34?-1:1;if(q.axis==="x"||(q.axis==="yx"&&t.overflowed[1]&&!t.overflowed[0])){var z="x",E=Math.abs(w[0].offsetLeft)-(C*(p.width()*0.9))}else{var z="y",E=Math.abs(w[0].offsetTop)-(C*(p.height()*0.9))}i._scrollTo(u,E.toString(),{dir:z,scrollEasing:"mcsEaseInOut"})}}else{if(A===35||A===36){if(!j(a.activeElement).is(v)){if(t.overflowed[0]||t.overflowed[1]){D.preventDefault();D.stopImmediatePropagation()}if(D.type==="keyup"){if(q.axis==="x"||(q.axis==="yx"&&t.overflowed[1]&&!t.overflowed[0])){var z="x",E=A===35?Math.abs(p.width()-w.outerWidth(false)):0}else{var z="y",E=A===35?Math.abs(p.height()-w.outerHeight(false)):0}i._scrollTo(u,E.toString(),{dir:z,scrollEasing:"mcsEaseInOut"})}}}}}break}function y(F,G){x.type=q.keyboard.scrollType;x.scrollAmount=q.snapAmount||q.keyboard.scrollAmount;if(x.type==="stepped"&&t.tweenRunning){return}i._sequentialScroll.call(this,u,F,G)}})},_sequentialScroll:function(r,u,s){var w=r.data(d),q=w.opt,y=w.sequential,x=j("#mCSB_"+w.idx+"_container"),p=y.type==="stepped"?true:false;switch(u){case"on":y.dir=[(s==="mCSB_buttonRight"||s==="mCSB_buttonLeft"||s===39||s===37?"x":"y"),(s==="mCSB_buttonUp"||s==="mCSB_buttonLeft"||s===38||s===37?-1:1)];i._stop(r);if(i._isNumeric(s)&&y.type==="stepped"){return}t(p);break;case"off":v();if(p||(w.tweenRunning&&y.dir)){t(true)}break}function t(z){var F=y.type!=="stepped",J=!z?1000/60:F?q.scrollInertia/1.5:q.scrollInertia,B=!z?2.5:F?7.5:40,I=[Math.abs(x[0].offsetTop),Math.abs(x[0].offsetLeft)],E=[w.scrollRatio.y>10?10:w.scrollRatio.y,w.scrollRatio.x>10?10:w.scrollRatio.x],C=y.dir[0]==="x"?I[1]+(y.dir[1]*(E[1]*B)):I[0]+(y.dir[1]*(E[0]*B)),H=y.dir[0]==="x"?I[1]+(y.dir[1]*parseInt(y.scrollAmount)):I[0]+(y.dir[1]*parseInt(y.scrollAmount)),G=y.scrollAmount!=="auto"?H:C,D=!z?"mcsLinear":F?"mcsLinearOut":"mcsEaseInOut",A=!z?false:true;if(z&&J<17){G=y.dir[0]==="x"?I[1]:I[0]}i._scrollTo(r,G.toString(),{dir:y.dir[0],scrollEasing:D,dur:J,onComplete:A});if(z){y.dir=false;return}clearTimeout(y.step);y.step=setTimeout(function(){t()},J)}function v(){clearTimeout(y.step);i._stop(r)}},_arr:function(r){var q=j(this).data(d).opt,p=[];if(typeof r==="function"){r=r()}if(!(r instanceof Array)){p[0]=r.y?r.y:r.x||q.axis==="x"?null:r;p[1]=r.x?r.x:r.y||q.axis==="y"?null:r}else{p=r.length>1?[r[0],r[1]]:q.axis==="x"?[null,r[0]]:[r[0],null]}if(typeof p[0]==="function"){p[0]=p[0]()}if(typeof p[1]==="function"){p[1]=p[1]()}return p},_to:function(v,w){if(v==null||typeof v=="undefined"){return}var C=j(this),B=C.data(d),u=B.opt,D=j("#mCSB_"+B.idx+"_container"),r=D.parent(),F=typeof v;if(!w){w=u.axis==="x"?"x":"y"}var q=w==="x"?D.outerWidth(false):D.outerHeight(false),x=w==="x"?D.offset().left:D.offset().top,E=w==="x"?D[0].offsetLeft:D[0].offsetTop,z=w==="x"?"left":"top";switch(F){case"function":return v();break;case"object":if(v.nodeType){var A=w==="x"?j(v).offset().left:j(v).offset().top}else{if(v.jquery){if(!v.length){return}var A=w==="x"?v.offset().left:v.offset().top}}return A-x;break;case"string":case"number":if(i._isNumeric.call(null,v)){return Math.abs(v)}else{if(v.indexOf("%")!==-1){return Math.abs(q*parseInt(v)/100)}else{if(v.indexOf("-=")!==-1){return Math.abs(E-parseInt(v.split("-=")[1]))}else{if(v.indexOf("+=")!==-1){var s=(E+parseInt(v.split("+=")[1]));return s>=0?0:Math.abs(s)}else{if(v.indexOf("px")!==-1&&i._isNumeric.call(null,v.split("px")[0])){return Math.abs(v.split("px")[0])}else{if(v==="top"||v==="left"){return 0}else{if(v==="bottom"){return Math.abs(r.height()-D.outerHeight(false))}else{if(v==="right"){return Math.abs(r.width()-D.outerWidth(false))}else{if(v==="first"||v==="last"){var y=D.find(":"+v),A=w==="x"?j(y).offset().left:j(y).offset().top;return A-x}else{if(j(v).length){var A=w==="x"?j(v).offset().left:j(v).offset().top;return A-x}else{D.css(z,v);e.update.call(null,C[0]);return}}}}}}}}}}break}},_autoUpdate:function(q){var t=j(this),F=t.data(d),z=F.opt,v=j("#mCSB_"+F.idx+"_container");if(q){clearTimeout(v[0].autoUpdate);i._delete.call(null,v[0].autoUpdate);return}var s=v.parent(),p=[j("#mCSB_"+F.idx+"_scrollbar_vertical"),j("#mCSB_"+F.idx+"_scrollbar_horizontal")],D=function(){return[p[0].is(":visible")?p[0].outerHeight(true):0,p[1].is(":visible")?p[1].outerWidth(true):0]},E=y(),x,u=[v.outerHeight(false),v.outerWidth(false),s.height(),s.width(),D()[0],D()[1]],H,B=G(),w;C();function C(){clearTimeout(v[0].autoUpdate);v[0].autoUpdate=setTimeout(function(){if(z.advanced.updateOnSelectorChange){x=y();if(x!==E){r();E=x;return}}if(z.advanced.updateOnContentResize){H=[v.outerHeight(false),v.outerWidth(false),s.height(),s.width(),D()[0],D()[1]];if(H[0]!==u[0]||H[1]!==u[1]||H[2]!==u[2]||H[3]!==u[3]||H[4]!==u[4]||H[5]!==u[5]){r();u=H}}if(z.advanced.updateOnImageLoad){w=G();if(w!==B){v.find("img").each(function(){A(this.src)});B=w}}if(z.advanced.updateOnSelectorChange||z.advanced.updateOnContentResize||z.advanced.updateOnImageLoad){C()}},60)}function G(){var I=0;if(z.advanced.updateOnImageLoad){I=v.find("img").length}return I}function A(L){var I=new Image();function K(M,N){return function(){return N.apply(M,arguments)}}function J(){this.onload=null;r()}I.onload=K(I,J);I.src=L}function y(){if(z.advanced.updateOnSelectorChange===true){z.advanced.updateOnSelectorChange="*"}var I=0,J=v.find(z.advanced.updateOnSelectorChange);if(z.advanced.updateOnSelectorChange&&J.length>0){J.each(function(){I+=j(this).height()+j(this).width()})}return I}function r(){clearTimeout(v[0].autoUpdate);e.update.call(null,t[0])}},_snapAmount:function(r,p,q){return(Math.round(r/p)*p-q)},_stop:function(p){var r=p.data(d),q=j("#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal");q.each(function(){i._stopTween.call(this)})},_scrollTo:function(q,s,u){var I=q.data(d),E=I.opt,D={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:false,dur:E.scrollInertia,overwrite:"all",callbacks:true,onStart:true,onUpdate:true,onComplete:true},u=j.extend(D,u),G=[u.dur,(u.drag?0:u.dur)],v=j("#mCSB_"+I.idx),B=j("#mCSB_"+I.idx+"_container"),K=E.callbacks.onTotalScrollOffset?i._arr.call(q,E.callbacks.onTotalScrollOffset):[0,0],p=E.callbacks.onTotalScrollBackOffset?i._arr.call(q,E.callbacks.onTotalScrollBackOffset):[0,0];I.trigger=u.trigger;if(s==="_resetY"&&!I.contentReset.y){if(t("onOverflowYNone")){E.callbacks.onOverflowYNone.call(q[0])}I.contentReset.y=1}if(s==="_resetX"&&!I.contentReset.x){if(t("onOverflowXNone")){E.callbacks.onOverflowXNone.call(q[0])}I.contentReset.x=1}if(s==="_resetY"||s==="_resetX"){return}if((I.contentReset.y||!q[0].mcs)&&I.overflowed[0]){if(t("onOverflowY")){E.callbacks.onOverflowY.call(q[0])}I.contentReset.x=null}if((I.contentReset.x||!q[0].mcs)&&I.overflowed[1]){if(t("onOverflowX")){E.callbacks.onOverflowX.call(q[0])}I.contentReset.x=null}if(E.snapAmount){s=i._snapAmount(s,E.snapAmount,E.snapOffset)}switch(u.dir){case"x":var x=j("#mCSB_"+I.idx+"_dragger_horizontal"),z="left",C=B[0].offsetLeft,H=[v.width()-B.outerWidth(false),x.parent().width()-x.width()],r=[s,s===0?0:(s/I.scrollRatio.x)],L=K[1],J=p[1],A=L>0?L/I.scrollRatio.x:0,w=J>0?J/I.scrollRatio.x:0;break;case"y":var x=j("#mCSB_"+I.idx+"_dragger_vertical"),z="top",C=B[0].offsetTop,H=[v.height()-B.outerHeight(false),x.parent().height()-x.height()],r=[s,s===0?0:(s/I.scrollRatio.y)],L=K[0],J=p[0],A=L>0?L/I.scrollRatio.y:0,w=J>0?J/I.scrollRatio.y:0;break}if(r[1]<0||(r[0]===0&&r[1]===0)){r=[0,0]}else{if(r[1]>=H[1]){r=[H[0],H[1]]}else{r[0]=-r[0]}}if(!q[0].mcs){F()}clearTimeout(B[0].onCompleteTimeout);if(!I.tweenRunning&&((C===0&&r[0]>=0)||(C===H[0]&&r[0]<=H[0]))){return}i._tweenTo.call(null,x[0],z,Math.round(r[1]),G[1],u.scrollEasing);i._tweenTo.call(null,B[0],z,Math.round(r[0]),G[0],u.scrollEasing,u.overwrite,{onStart:function(){if(u.callbacks&&u.onStart&&!I.tweenRunning){if(t("onScrollStart")){F();E.callbacks.onScrollStart.call(q[0])}I.tweenRunning=true;i._onDragClasses(x);I.cbOffsets=y()}},onUpdate:function(){if(u.callbacks&&u.onUpdate){if(t("whileScrolling")){F();E.callbacks.whileScrolling.call(q[0])}}},onComplete:function(){if(u.callbacks&&u.onComplete){if(E.axis==="yx"){clearTimeout(B[0].onCompleteTimeout)}var M=B[0].idleTimer||0;B[0].onCompleteTimeout=setTimeout(function(){if(t("onScroll")){F();E.callbacks.onScroll.call(q[0])}if(t("onTotalScroll")&&r[1]>=H[1]-A&&I.cbOffsets[0]){F();E.callbacks.onTotalScroll.call(q[0])}if(t("onTotalScrollBack")&&r[1]<=w&&I.cbOffsets[1]){F();E.callbacks.onTotalScrollBack.call(q[0])}I.tweenRunning=false;B[0].idleTimer=0;i._onDragClasses(x,"hide")},M)}}});function t(M){return I&&E.callbacks[M]&&typeof E.callbacks[M]==="function"}function y(){return[E.callbacks.alwaysTriggerOffsets||C>=H[0]+L,E.callbacks.alwaysTriggerOffsets||C<=-J]}function F(){var O=[B[0].offsetTop,B[0].offsetLeft],P=[x[0].offsetTop,x[0].offsetLeft],M=[B.outerHeight(false),B.outerWidth(false)],N=[v.height(),v.width()];q[0].mcs={content:B,top:O[0],left:O[1],draggerTop:P[0],draggerLeft:P[1],topPct:Math.round((100*Math.abs(O[0]))/(Math.abs(M[0])-N[0])),leftPct:Math.round((100*Math.abs(O[1]))/(Math.abs(M[1])-N[1])),direction:u.dir}}},_tweenTo:function(r,u,s,q,B,t,K){var K=K||{},H=K.onStart||function(){},C=K.onUpdate||function(){},I=K.onComplete||function(){},z=i._getTime(),x,v=0,E=r.offsetTop,F=r.style,A;if(u==="left"){E=r.offsetLeft}var y=s-E;r._mcsstop=0;if(t!=="none"){D()}p();function J(){if(r._mcsstop){return}if(!v){H.call()}v=i._getTime()-z;G();if(v>=r._mcstime){r._mcstime=(v>r._mcstime)?v+x-(v-r._mcstime):v+x-1;if(r._mcstime0){r._mcscurrVal=w(r._mcstime,E,y,q,B);F[u]=Math.round(r._mcscurrVal)+"px"}else{F[u]=s+"px"}C.call()}function p(){x=1000/60;r._mcstime=v+x;A=(!b.requestAnimationFrame)?function(L){G();return setTimeout(L,0.01)}:b.requestAnimationFrame;r._mcsid=A(J)}function D(){if(r._mcsid==null){return}if(!b.requestAnimationFrame){clearTimeout(r._mcsid)}else{b.cancelAnimationFrame(r._mcsid)}r._mcsid=null}function w(N,M,R,Q,O){switch(O){case"linear":case"mcsLinear":return R*N/Q+M;break;case"mcsLinearOut":N/=Q;N--;return R*Math.sqrt(1-N*N)+M;break;case"easeInOutSmooth":N/=Q/2;if(N<1){return R/2*N*N+M}N--;return -R/2*(N*(N-2)-1)+M;break;case"easeInOutStrong":N/=Q/2;if(N<1){return R/2*Math.pow(2,10*(N-1))+M}N--;return R/2*(-Math.pow(2,-10*N)+2)+M;break;case"easeInOut":case"mcsEaseInOut":N/=Q/2;if(N<1){return R/2*N*N*N+M}N-=2;return R/2*(N*N*N+2)+M;break;case"easeOutSmooth":N/=Q;N--;return -R*(N*N*N*N-1)+M;break;case"easeOutStrong":return R*(-Math.pow(2,-10*N/Q)+1)+M;break;case"easeOut":case"mcsEaseOut":default:var P=(N/=Q)*N,L=P*N;return M+R*(0.499999999999997*L*P+-2.5*P*P+5.5*L+-6.5*P+4*N)}}},_getTime:function(){if(b.performance&&b.performance.now){return b.performance.now()}else{if(b.performance&&b.performance.webkitNow){return b.performance.webkitNow()}else{if(Date.now){return Date.now()}else{return new Date().getTime()}}}},_stopTween:function(){var p=this;if(p._mcsid==null){return}if(!b.requestAnimationFrame){clearTimeout(p._mcsid)}else{b.cancelAnimationFrame(p._mcsid)}p._mcsid=null;p._mcsstop=1},_delete:function(r){try{delete r}catch(q){r=null}},_mouseBtnLeft:function(p){return !(p.which&&p.which!==1)},_pointerTouch:function(q){var p=q.originalEvent.pointerType;return !(p&&p!=="touch"&&p!==2)},_isNumeric:function(p){return !isNaN(parseFloat(p))&&isFinite(p)}};j.fn[g]=function(p){if(e[p]){return e[p].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof p==="object"||!p){return e.init.apply(this,arguments)}else{j.error("Method "+p+" does not exist")}}};j[g]=function(p){if(e[p]){return e[p].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof p==="object"||!p){return e.init.apply(this,arguments)}else{j.error("Method "+p+" does not exist")}}};j[g].defaults=h;b[g]=true;j(b).load(function(){j(m)[g]()})}))}(window,document)); \ No newline at end of file diff --git a/static/client/js/jquery.mCustomScrollbar.js b/static/client/js/jquery.mCustomScrollbar.js new file mode 100644 index 00000000..3b0f6290 --- /dev/null +++ b/static/client/js/jquery.mCustomScrollbar.js @@ -0,0 +1,2166 @@ +/* +== malihu jquery custom scrollbar plugin == +Version: 3.0.4 +Plugin URI: http://manos.malihu.gr/jquery-custom-content-scroller +Author: malihu +Author URI: http://manos.malihu.gr +License: MIT License (MIT) +*/ + +/* +Copyright 2010 Manos Malihutsakis (email: manos@malihu.gr) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +/* +The code below is fairly long, fully commented and should be normally used in development. +For production, use either the minified jquery.mCustomScrollbar.min.js script or +the production-ready jquery.mCustomScrollbar.concat.min.js which contains the plugin +and dependencies (minified). +*/ + +;(function(window,document,undefined){ + +/* plugin dependencies */ +(function(init){ + /* support for RequireJS */ + if(typeof define==="function" && define.amd){ + define(["jquery", "jquery-mousewheel"], init); + }else{ + init(jQuery); + } +} + +(function($){ + + /* + ---------------------------------------- + PLUGIN NAMESPACE, PREFIX, DEFAULT SELECTOR(S) + ---------------------------------------- + */ + + var pluginNS="mCustomScrollbar", + pluginPfx="mCS", + defaultSelector=".mCustomScrollbar", + + + + + + /* + ---------------------------------------- + DEFAULT OPTIONS + ---------------------------------------- + */ + + defaults={ + /* + set element/content width programmatically + values: boolean, pixels, percentage + */ + setWidth:false, + /* + set element/content height programmatically + values: boolean, pixels, percentage + */ + setHeight:false, + /* + set the initial css top property of content + values: string (e.g. "-100px", "10%" etc.) + */ + setTop:0, + /* + set the initial css left property of content + values: string (e.g. "-100px", "10%" etc.) + */ + setLeft:0, + /* + scrollbar axis (vertical and/or horizontal scrollbars) + values (string): "y", "x", "yx" + */ + axis:"y", + /* + position of scrollbar relative to content + values (string): "inside", "outside" ("outside" requires elements with position:relative) + */ + scrollbarPosition:"inside", + /* + scrolling inertia + values: integer (milliseconds) + */ + scrollInertia:950, + /* + auto-adjust scrollbar dragger length + values: boolean + */ + autoDraggerLength:true, + /* + auto-hide scrollbar when idle + values: boolean + */ + autoHideScrollbar:false, + /* + auto-expands scrollbar on mouse-over and dragging + */ + autoExpandScrollbar:false, + /* + always show scrollbar, even when there's nothing to scroll + values: integer (0=disable, 1=always show dragger rail, 2=always show dragger rail, dragger and buttons), boolean + */ + alwaysShowScrollbar:0, + /* + scrolling always snaps to a multiple of this number in pixels + values: integer + */ + snapAmount:null, + /* + when snapping, snap with this number in pixels as an offset + values: integer + */ + snapOffset:0, + /* + mouse-wheel scrolling + */ + mouseWheel:{ + /* + enable mouse-wheel scrolling + values: boolean + */ + enable:true, + /* + scrolling amount in pixels + values: "auto", integer + */ + scrollAmount:"auto", + /* + mouse-wheel scrolling axis + the default scrolling direction when both vertical and horizontal scrollbars are present + values (string): "y", "x" + */ + axis:"y", + /* + prevent the default behaviour which automatically scrolls the parent element(s) + when end of scrolling is reached + values: boolean + */ + preventDefault:false, + /* + the reported mouse-wheel delta value. The number of lines (translated to pixels) one wheel notch scrolls. + values: "auto", integer + "auto" uses the default OS/browser value + */ + deltaFactor:"auto", + /* + normalize mouse-wheel delta to -1 or 1 (disables mouse-wheel acceleration) + values: boolean + */ + normalizeDelta:false, + /* + invert mouse-wheel scrolling direction + values: boolean + */ + invert:false, + /* + the tags that disable mouse-wheel when cursor is over them + */ + disableOver:["select","option","keygen","datalist","textarea"] + }, + /* + scrollbar buttons + */ + scrollButtons:{ + /* + enable scrollbar buttons + values: boolean + */ + enable:false, + /* + scrollbar buttons scrolling type + values (string): "stepless", "stepped" + */ + scrollType:"stepless", + /* + scrolling amount in pixels + values: "auto", integer + */ + scrollAmount:"auto" + }, + /* + keyboard scrolling + */ + keyboard:{ + /* + enable scrolling via keyboard + values: boolean + */ + enable:true, + /* + keyboard scrolling type + values (string): "stepless", "stepped" + */ + scrollType:"stepless", + /* + scrolling amount in pixels + values: "auto", integer + */ + scrollAmount:"auto" + }, + /* + enable content touch-swipe scrolling + values: boolean, integer, string (number) + integer values define the axis-specific minimum amount required for scrolling momentum + */ + contentTouchScroll:25, + /* + advanced option parameters + */ + advanced:{ + /* + auto-expand content horizontally (for "x" or "yx" axis) + values: boolean + */ + autoExpandHorizontalScroll:false, + /* + auto-scroll to elements with focus + */ + autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']", + /* + auto-update scrollbars on content, element or viewport resize + should be true for fluid layouts/elements, adding/removing content dynamically, hiding/showing elements, content with images etc. + values: boolean + */ + updateOnContentResize:true, + /* + auto-update scrollbars each time each image inside the element is fully loaded + values: boolean + */ + updateOnImageLoad:true, + /* + auto-update scrollbars based on the amount and size changes of specific selectors + useful when you need to update the scrollbar(s) automatically, each time a type of element is added, removed or changes its size + values: boolean, string (e.g. "ul li" will auto-update scrollbars each time list-items inside the element are changed) + a value of true (boolean) will auto-update scrollbars each time any element is changed + */ + updateOnSelectorChange:false + }, + /* + scrollbar theme + values: string + ready-to-use themes: "light", "dark", "light-2", "dark-2", "light-3", "dark-3", "light-thick", "dark-thick", "light-thin", "dark-thin", + "rounded", "rounded-dark", "rounded-dots", "rounded-dots-dark", "3d", "3d-dark", "3d-thick", "3d-thick-dark", "minimal", "minimal-dark", + "inset", "inset-dark", "inset-2", "inset-2-dark", "inset-3", "inset-3-dark" + */ + theme:"light", + /* + user defined callback functions + */ + callbacks:{ + /* + function to call when a scroll event starts + values (function): function(){} + */ + onScrollStart:false, + /* + function to call when a scroll event is complete + values (function): function(){} + */ + onScroll:false, + /* + function to call when a scroll event is complete and content is scrolled all the way to the end (bottom/right) + values (function): function(){} + */ + onTotalScroll:false, + /* + function to call when a scroll event is complete and content is scrolled back to the beginning (top/left) + values (function): function(){} + */ + onTotalScrollBack:false, + /* + function to call when a scroll event is running + values (function): function(){} + */ + whileScrolling:false, + /* + onTotalScroll offset value + values: integer (pixels) + */ + onTotalScrollOffset:0, + /* + onTotalScrollBack offset value + values: integer (pixels) + */ + onTotalScrollBackOffset:0, + /* + callback offsets will trigger even if content is already scrolled to the end or beginning + values: boolean + */ + alwaysTriggerOffsets:true, + /* + function to call when content becomes long enough and vertical scrollbar is added + values (function): function(){} + */ + onOverflowY:false, + /* + function to call when content becomes wide enough and horizontal scrollbar is added + values (function): function(){} + */ + onOverflowX:false, + /* + function to call when content becomes short enough and vertical scrollbar is removed + values (function): function(){} + */ + onOverflowYNone:false, + /* + function to call when content becomes narrow enough and horizontal scrollbar is removed + values (function): function(){} + */ + onOverflowXNone:false + }, + /* + add scrollbar(s) on all elements matching the current selector, now and in the future + values: boolean, string + string values: "on" (enable), "once" (disable after first invocation), "off" (disable) + */ + live:false, + /* + the matching set of elements (instead of the current selector) to add scrollbar(s), now and in the future + values: string (selector) + */ + liveSelector:null + }, + + + + + + /* + ---------------------------------------- + VARS, CONSTANTS + ---------------------------------------- + */ + + totalInstances=0, /* plugin instances amount */ + liveTimers={}, /* live option timers */ + /* live option timers removal */ + removeLiveTimers=function(selector){ + if(liveTimers[selector]){ + clearTimeout(liveTimers[selector]); + functions._delete.call(null,liveTimers[selector]); + } + }, + oldIE=(window.attachEvent && !window.addEventListener) ? 1 : 0, /* detect IE < 9 */ + touchActive=false, /* global touch state (for touch and pointer events) */ + + + + + + /* + ---------------------------------------- + METHODS + ---------------------------------------- + */ + + methods={ + + /* + plugin initialization method + creates the scrollbar(s), plugin data object and options + ---------------------------------------- + */ + + init:function(options){ + + var options=$.extend(true,{},defaults,options), + selector=functions._selector.call(this); /* validate selector */ + + /* + if live option is enabled, monitor for elements matching the current selector and + apply scrollbar(s) when found (now and in the future) + */ + if(options.live){ + var liveSelector=options.liveSelector || this.selector || defaultSelector, /* live selector(s) */ + $liveSelector=$(liveSelector); /* live selector(s) as jquery object */ + if(options.live==="off"){ + /* + disable live if requested + usage: $(selector).mCustomScrollbar({live:"off"}); + */ + removeLiveTimers(liveSelector); + return; + } + liveTimers[liveSelector]=setTimeout(function(){ + /* call mCustomScrollbar fn on live selector(s) every half-second */ + $liveSelector.mCustomScrollbar(options); + if(options.live==="once" && $liveSelector.length){ + /* disable live after first invocation */ + removeLiveTimers(liveSelector); + } + },500); + }else{ + removeLiveTimers(liveSelector); + } + + /* options backward compatibility (for versions < 3.0.0) and normalization */ + options.setWidth=(options.set_width) ? options.set_width : options.setWidth; + options.setHeight=(options.set_height) ? options.set_height : options.setHeight; + options.axis=(options.horizontalScroll) ? "x" : functions._findAxis.call(null,options.axis); + options.scrollInertia=options.scrollInertia>0 && options.scrollInertia<17 ? 17 : options.scrollInertia; + if(typeof options.mouseWheel!=="object" && options.mouseWheel==true){ /* old school mouseWheel option (non-object) */ + options.mouseWheel={enable:true,scrollAmount:"auto",axis:"y",preventDefault:false,deltaFactor:"auto",normalizeDelta:false,invert:false} + } + options.mouseWheel.scrollAmount=!options.mouseWheelPixels ? options.mouseWheel.scrollAmount : options.mouseWheelPixels; + options.mouseWheel.normalizeDelta=!options.advanced.normalizeMouseWheelDelta ? options.mouseWheel.normalizeDelta : options.advanced.normalizeMouseWheelDelta; + options.scrollButtons.scrollType=functions._findScrollButtonsType.call(null,options.scrollButtons.scrollType); + + functions._theme.call(null,options); /* theme-specific options */ + + /* plugin constructor */ + return $(selector).each(function(){ + + var $this=$(this); + + if(!$this.data(pluginPfx)){ /* prevent multiple instantiations */ + + /* store options and create objects in jquery data */ + $this.data(pluginPfx,{ + idx:++totalInstances, /* instance index */ + opt:options, /* options */ + scrollRatio:{y:null,x:null}, /* scrollbar to content ratio */ + overflowed:null, /* overflowed axis */ + contentReset:{y:null,x:null}, /* object to check when content resets */ + bindEvents:false, /* object to check if events are bound */ + tweenRunning:false, /* object to check if tween is running */ + sequential:{}, /* sequential scrolling object */ + langDir:$this.css("direction"), /* detect/store direction (ltr or rtl) */ + cbOffsets:null, /* object to check whether callback offsets always trigger */ + /* + object to check how scrolling events where last triggered + "internal" (default - triggered by this script), "external" (triggered by other scripts, e.g. via scrollTo method) + usage: object.data("mCS").trigger + */ + trigger:null + }); + + /* HTML data attributes */ + var o=$this.data(pluginPfx).opt, + htmlDataAxis=$this.data("mcs-axis"),htmlDataSbPos=$this.data("mcs-scrollbar-position"),htmlDataTheme=$this.data("mcs-theme"); + if(htmlDataAxis){o.axis=htmlDataAxis;} /* usage example: data-mcs-axis="y" */ + if(htmlDataSbPos){o.scrollbarPosition=htmlDataSbPos;} /* usage example: data-mcs-scrollbar-position="outside" */ + if(htmlDataTheme){ /* usage example: data-mcs-theme="minimal" */ + o.theme=htmlDataTheme; + functions._theme.call(null,o); /* theme-specific options */ + } + + functions._pluginMarkup.call(this); /* add plugin markup */ + + methods.update.call(null,$this); /* call the update method */ + + } + + }); + + }, + /* ---------------------------------------- */ + + + + /* + plugin update method + updates content and scrollbar(s) values, events and status + ---------------------------------------- + usage: $(selector).mCustomScrollbar("update"); + */ + + update:function(el){ + + var selector=el || functions._selector.call(this); /* validate selector */ + + return $(selector).each(function(){ + + var $this=$(this); + + if($this.data(pluginPfx)){ /* check if plugin has initialized */ + + var d=$this.data(pluginPfx),o=d.opt, + mCSB_container=$("#mCSB_"+d.idx+"_container"), + mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")]; + + if(!mCSB_container.length){return;} + + if(d.tweenRunning){functions._stop.call(null,$this);} /* stop any running tweens while updating */ + + /* if element was disabled or destroyed, remove class(es) */ + if($this.hasClass("mCS_disabled")){$this.removeClass("mCS_disabled");} + if($this.hasClass("mCS_destroyed")){$this.removeClass("mCS_destroyed");} + + functions._maxHeight.call(this); /* detect/set css max-height value */ + + functions._expandContentHorizontally.call(this); /* expand content horizontally */ + + if(o.axis!=="y" && !o.advanced.autoExpandHorizontalScroll){ + mCSB_container.css("width",functions._contentWidth(mCSB_container.children())); + } + + d.overflowed=functions._overflowed.call(this); /* determine if scrolling is required */ + + functions._scrollbarVisibility.call(this); /* show/hide scrollbar(s) */ + + /* auto-adjust scrollbar dragger length analogous to content */ + if(o.autoDraggerLength){functions._setDraggerLength.call(this);} + + functions._scrollRatio.call(this); /* calculate and store scrollbar to content ratio */ + + functions._bindEvents.call(this); /* bind scrollbar events */ + + /* reset scrolling position and/or events */ + var to=[Math.abs(mCSB_container[0].offsetTop),Math.abs(mCSB_container[0].offsetLeft)]; + if(o.axis!=="x"){ /* y/yx axis */ + if(!d.overflowed[0]){ /* y scrolling is not required */ + functions._resetContentPosition.call(this); /* reset content position */ + if(o.axis==="y"){ + functions._unbindEvents.call(this); + }else if(o.axis==="yx" && d.overflowed[1]){ + functions._scrollTo.call(this,$this,to[1].toString(),{dir:"x",dur:0,overwrite:"none"}); + } + }else if(mCSB_dragger[0].height()>mCSB_dragger[0].parent().height()){ + functions._resetContentPosition.call(this); /* reset content position */ + }else{ /* y scrolling is required */ + functions._scrollTo.call(this,$this,to[0].toString(),{dir:"y",dur:0,overwrite:"none"}); + d.contentReset.y=null; + } + } + if(o.axis!=="y"){ /* x/yx axis */ + if(!d.overflowed[1]){ /* x scrolling is not required */ + functions._resetContentPosition.call(this); /* reset content position */ + if(o.axis==="x"){ + functions._unbindEvents.call(this); + }else if(o.axis==="yx" && d.overflowed[0]){ + functions._scrollTo.call(this,$this,to[0].toString(),{dir:"y",dur:0,overwrite:"none"}); + } + }else if(mCSB_dragger[1].width()>mCSB_dragger[1].parent().width()){ + functions._resetContentPosition.call(this); /* reset content position */ + }else{ /* x scrolling is required */ + functions._scrollTo.call(this,$this,to[1].toString(),{dir:"x",dur:0,overwrite:"none"}); + d.contentReset.x=null; + } + } + + functions._autoUpdate.call(this); /* initialize automatic updating (for dynamic content, fluid layouts etc.) */ + + } + + }); + + }, + /* ---------------------------------------- */ + + + + /* + plugin scrollTo method + triggers a scrolling event to a specific value + ---------------------------------------- + usage: $(selector).mCustomScrollbar("scrollTo",value,options); + */ + + scrollTo:function(val,options){ + + /* prevent silly things like $(selector).mCustomScrollbar("scrollTo",undefined); */ + if(typeof val=="undefined" || val==null){return;} + + var selector=functions._selector.call(this); /* validate selector */ + + return $(selector).each(function(){ + + var $this=$(this); + + if($this.data(pluginPfx)){ /* check if plugin has initialized */ + + var d=$this.data(pluginPfx),o=d.opt, + /* method default options */ + methodDefaults={ + trigger:"external", /* method is by default triggered externally (e.g. from other scripts) */ + scrollInertia:o.scrollInertia, /* scrolling inertia (animation duration) */ + scrollEasing:"mcsEaseInOut", /* animation easing */ + moveDragger:false, /* move dragger instead of content */ + timeout:60, /* scroll-to delay */ + callbacks:true, /* enable/disable callbacks */ + onStart:true, + onUpdate:true, + onComplete:true + }, + methodOptions=$.extend(true,{},methodDefaults,options), + to=functions._arr.call(this,val),dur=methodOptions.scrollInertia>0 && methodOptions.scrollInertia<17 ? 17 : methodOptions.scrollInertia; + + /* translate yx values to actual scroll-to positions */ + to[0]=functions._to.call(this,to[0],"y"); + to[1]=functions._to.call(this,to[1],"x"); + + /* + check if scroll-to value moves the dragger instead of content. + Only pixel values apply on dragger (e.g. 100, "100px", "-=100" etc.) + */ + if(methodOptions.moveDragger){ + to[0]*=d.scrollRatio.y; + to[1]*=d.scrollRatio.x; + } + + methodOptions.dur=dur; + + setTimeout(function(){ + /* do the scrolling */ + if(to[0]!==null && typeof to[0]!=="undefined" && o.axis!=="x" && d.overflowed[0]){ /* scroll y */ + methodOptions.dir="y"; + methodOptions.overwrite="all"; + functions._scrollTo.call(this,$this,to[0].toString(),methodOptions); + } + if(to[1]!==null && typeof to[1]!=="undefined" && o.axis!=="y" && d.overflowed[1]){ /* scroll x */ + methodOptions.dir="x"; + methodOptions.overwrite="none"; + functions._scrollTo.call(this,$this,to[1].toString(),methodOptions); + } + },methodOptions.timeout); + + } + + }); + + }, + /* ---------------------------------------- */ + + + + /* + plugin stop method + stops scrolling animation + ---------------------------------------- + usage: $(selector).mCustomScrollbar("stop"); + */ + stop:function(){ + + var selector=functions._selector.call(this); /* validate selector */ + + return $(selector).each(function(){ + + var $this=$(this); + + if($this.data(pluginPfx)){ /* check if plugin has initialized */ + + functions._stop.call(null,$this); + + } + + }); + + }, + /* ---------------------------------------- */ + + + + /* + plugin disable method + temporarily disables the scrollbar(s) + ---------------------------------------- + usage: $(selector).mCustomScrollbar("disable",reset); + reset (boolean): resets content position to 0 + */ + disable:function(r){ + + var selector=functions._selector.call(this); /* validate selector */ + + return $(selector).each(function(){ + + var $this=$(this); + + if($this.data(pluginPfx)){ /* check if plugin has initialized */ + + var d=$this.data(pluginPfx),o=d.opt; + + functions._autoUpdate.call(this,"remove"); /* remove automatic updating */ + + functions._unbindEvents.call(this); /* unbind events */ + + if(r){functions._resetContentPosition.call(this);} /* reset content position */ + + functions._scrollbarVisibility.call(this,true); /* show/hide scrollbar(s) */ + + $this.addClass("mCS_disabled"); /* add disable class */ + + } + + }); + + }, + /* ---------------------------------------- */ + + + + /* + plugin destroy method + completely removes the scrollbar(s) and returns the element to its original state + ---------------------------------------- + usage: $(selector).mCustomScrollbar("destroy"); + */ + destroy:function(){ + + var selector=functions._selector.call(this); /* validate selector */ + + return $(selector).each(function(){ + + var $this=$(this); + + if($this.data(pluginPfx)){ /* check if plugin has initialized */ + + var d=$this.data(pluginPfx),o=d.opt, + mCustomScrollBox=$("#mCSB_"+d.idx), + mCSB_container=$("#mCSB_"+d.idx+"_container"), + scrollbar=$(".mCSB_"+d.idx+"_scrollbar"); + + if(o.live){removeLiveTimers(selector);} /* remove live timer */ + + functions._autoUpdate.call(this,"remove"); /* remove automatic updating */ + + functions._unbindEvents.call(this); /* unbind events */ + + functions._resetContentPosition.call(this); /* reset content position */ + + $this.removeData(pluginPfx); /* remove plugin data object */ + + functions._delete.call(null,this.mcs); /* delete callbacks object */ + + /* remove plugin markup */ + scrollbar.remove(); /* remove scrollbar(s) first (those can be either inside or outside plugin's inner wrapper) */ + mCustomScrollBox.replaceWith(mCSB_container.contents()); /* replace plugin's inner wrapper with the original content */ + /* remove plugin classes from the element and add destroy class */ + $this.removeClass(pluginNS+" _"+pluginPfx+"_"+d.idx+" mCS-autoHide mCS-dir-rtl mCS_no_scrollbar mCS_disabled").addClass("mCS_destroyed"); + + } + + }); + + } + /* ---------------------------------------- */ + + }, + + + + + + /* + ---------------------------------------- + FUNCTIONS + ---------------------------------------- + */ + + functions={ + + /* validates selector (if selector is invalid or undefined uses the default one) */ + _selector:function(){ + return (typeof $(this)!=="object" || $(this).length<1) ? defaultSelector : this; + }, + /* -------------------- */ + + /* changes options according to theme */ + _theme:function(obj){ + var fixedSizeScrollbarThemes=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"], + nonExpandedScrollbarThemes=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"], + disabledScrollButtonsThemes=["minimal","minimal-dark"], + enabledAutoHideScrollbarThemes=["minimal","minimal-dark"], + scrollbarPositionOutsideThemes=["minimal","minimal-dark"]; + obj.autoDraggerLength=$.inArray(obj.theme,fixedSizeScrollbarThemes) > -1 ? false : obj.autoDraggerLength; + obj.autoExpandScrollbar=$.inArray(obj.theme,nonExpandedScrollbarThemes) > -1 ? false : obj.autoExpandScrollbar; + obj.scrollButtons.enable=$.inArray(obj.theme,disabledScrollButtonsThemes) > -1 ? false : obj.scrollButtons.enable; + obj.autoHideScrollbar=$.inArray(obj.theme,enabledAutoHideScrollbarThemes) > -1 ? true : obj.autoHideScrollbar; + obj.scrollbarPosition=$.inArray(obj.theme,scrollbarPositionOutsideThemes) > -1 ? "outside" : obj.scrollbarPosition; + }, + /* -------------------- */ + + + /* normalizes axis option to valid values: "y", "x", "yx" */ + _findAxis:function(val){ + return (val==="yx" || val==="xy" || val==="auto") ? "yx" : (val==="x" || val==="horizontal") ? "x" : "y"; + }, + /* -------------------- */ + + + /* normalizes scrollButtons.scrollType option to valid values: "stepless", "stepped" */ + _findScrollButtonsType:function(val){ + return (val==="stepped" || val==="pixels" || val==="step" || val==="click") ? "stepped" : "stepless"; + }, + /* -------------------- */ + + + /* generates plugin markup */ + _pluginMarkup:function(){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt, + expandClass=o.autoExpandScrollbar ? " mCSB_scrollTools_onDrag_expand" : "", + scrollbar=["
        ","
        "], + wrapperClass=o.axis==="yx" ? "mCSB_vertical_horizontal" : o.axis==="x" ? "mCSB_horizontal" : "mCSB_vertical", + scrollbars=o.axis==="yx" ? scrollbar[0]+scrollbar[1] : o.axis==="x" ? scrollbar[1] : scrollbar[0], + contentWrapper=o.axis==="yx" ? "
        " : "", + autoHideClass=o.autoHideScrollbar ? " mCS-autoHide" : "", + scrollbarDirClass=(o.axis!=="x" && d.langDir==="rtl") ? " mCS-dir-rtl" : ""; + if(o.setWidth){$this.css("width",o.setWidth);} /* set element width */ + if(o.setHeight){$this.css("height",o.setHeight);} /* set element height */ + o.setLeft=(o.axis!=="y" && d.langDir==="rtl") ? "989999px" : o.setLeft; /* adjust left position for rtl direction */ + $this.addClass(pluginNS+" _"+pluginPfx+"_"+d.idx+autoHideClass+scrollbarDirClass).wrapInner("
        "); + var mCustomScrollBox=$("#mCSB_"+d.idx), + mCSB_container=$("#mCSB_"+d.idx+"_container"); + if(o.axis!=="y" && !o.advanced.autoExpandHorizontalScroll){ + mCSB_container.css("width",functions._contentWidth(mCSB_container.children())); + } + if(o.scrollbarPosition==="outside"){ + if($this.css("position")==="static"){ /* requires elements with non-static position */ + $this.css("position","relative"); + } + $this.css("overflow","visible"); + mCustomScrollBox.addClass("mCSB_outside").after(scrollbars); + }else{ + mCustomScrollBox.addClass("mCSB_inside").append(scrollbars); + mCSB_container.wrap(contentWrapper); + } + functions._scrollButtons.call(this); /* add scrollbar buttons */ + /* minimum dragger length */ + var mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")]; + mCSB_dragger[0].css("min-height",mCSB_dragger[0].height()); + mCSB_dragger[1].css("min-width",mCSB_dragger[1].width()); + }, + /* -------------------- */ + + + /* calculates content width */ + _contentWidth:function(el){ + return Math.max.apply(Math,el.map(function(){return $(this).outerWidth(true);}).get()); + }, + /* -------------------- */ + + + /* expands content horizontally */ + _expandContentHorizontally:function(){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt, + mCSB_container=$("#mCSB_"+d.idx+"_container"); + if(o.advanced.autoExpandHorizontalScroll && o.axis!=="y"){ + /* + wrap content with an infinite width div and set its position to absolute and width to auto. + Setting width to auto before calculating the actual width is important! + We must let the browser set the width as browser zoom values are impossible to calculate. + */ + mCSB_container.css({"position":"absolute","width":"auto"}) + .wrap("
        ") + .css({ /* set actual width, original position and un-wrap */ + /* + get the exact width (with decimals) and then round-up. + Using jquery outerWidth() will round the width value which will mess up with inner elements that have non-integer width + */ + "width":(Math.ceil(mCSB_container[0].getBoundingClientRect().right+0.4)-Math.floor(mCSB_container[0].getBoundingClientRect().left)), + "position":"relative" + }).unwrap(); + } + }, + /* -------------------- */ + + + /* adds scrollbar buttons */ + _scrollButtons:function(){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt, + mCSB_scrollTools=$(".mCSB_"+d.idx+"_scrollbar:first"), + btnHTML=[ + "","", + "","" + ], + btn=[(o.axis==="x" ? btnHTML[2] : btnHTML[0]),(o.axis==="x" ? btnHTML[3] : btnHTML[1]),btnHTML[2],btnHTML[3]]; + if(o.scrollButtons.enable){ + mCSB_scrollTools.prepend(btn[0]).append(btn[1]).next(".mCSB_scrollTools").prepend(btn[2]).append(btn[3]); + } + }, + /* -------------------- */ + + + /* detects/sets css max-height value */ + _maxHeight:function(){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt, + mCustomScrollBox=$("#mCSB_"+d.idx), + mh=$this.css("max-height"),pct=mh.indexOf("%")!==-1, + bs=$this.css("box-sizing"); + if(mh!=="none"){ + var val=pct ? $this.parent().height()*parseInt(mh)/100 : parseInt(mh); + /* if element's css box-sizing is "border-box", subtract any paddings and/or borders from max-height value */ + if(bs==="border-box"){val-=(($this.innerHeight()-$this.height())+($this.outerHeight()-$this.innerHeight()));} + mCustomScrollBox.css("max-height",Math.round(val)); + } + }, + /* -------------------- */ + + + /* auto-adjusts scrollbar dragger length */ + _setDraggerLength:function(){ + var $this=$(this),d=$this.data(pluginPfx), + mCustomScrollBox=$("#mCSB_"+d.idx), + mCSB_container=$("#mCSB_"+d.idx+"_container"), + mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")], + ratio=[mCustomScrollBox.height()/mCSB_container.outerHeight(false),mCustomScrollBox.width()/mCSB_container.outerWidth(false)], + l=[ + parseInt(mCSB_dragger[0].css("min-height")),Math.round(ratio[0]*mCSB_dragger[0].parent().height()), + parseInt(mCSB_dragger[1].css("min-width")),Math.round(ratio[1]*mCSB_dragger[1].parent().width()) + ], + h=oldIE && (l[1]mCustomScrollBox.height(),contentWidth>mCustomScrollBox.width()]; + }, + /* -------------------- */ + + + /* resets content position to 0 */ + _resetContentPosition:function(){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt, + mCustomScrollBox=$("#mCSB_"+d.idx), + mCSB_container=$("#mCSB_"+d.idx+"_container"), + mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")]; + functions._stop($this); /* stop any current scrolling before resetting */ + if((o.axis!=="x" && !d.overflowed[0]) || (o.axis==="y" && d.overflowed[0])){ /* reset y */ + mCSB_dragger[0].add(mCSB_container).css("top",0); + functions._scrollTo($this,"_resetY"); + } + if((o.axis!=="y" && !d.overflowed[1]) || (o.axis==="x" && d.overflowed[1])){ /* reset x */ + var cx=dx=0; + if(d.langDir==="rtl"){ /* adjust left position for rtl direction */ + cx=mCustomScrollBox.width()-mCSB_container.outerWidth(false); + dx=Math.abs(cx/d.scrollRatio.x); + } + mCSB_container.css("left",cx); + mCSB_dragger[1].css("left",dx); + functions._scrollTo($this,"_resetX"); + } + }, + /* -------------------- */ + + + /* binds scrollbar events */ + _bindEvents:function(){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt; + if(!d.bindEvents){ /* check if events are already bound */ + functions._draggable.call(this); + if(o.contentTouchScroll){functions._contentDraggable.call(this);} + if(o.mouseWheel.enable){ /* bind mousewheel fn when plugin is available */ + function _mwt(){ + mousewheelTimeout=setTimeout(function(){ + if(!$.event.special.mousewheel){ + _mwt(); + }else{ + clearTimeout(mousewheelTimeout); + functions._mousewheel.call($this[0]); + } + },1000); + } + var mousewheelTimeout; + _mwt(); + } + functions._draggerRail.call(this); + functions._wrapperScroll.call(this); + if(o.advanced.autoScrollOnFocus){functions._focus.call(this);} + if(o.scrollButtons.enable){functions._buttons.call(this);} + if(o.keyboard.enable){functions._keyboard.call(this);} + d.bindEvents=true; + } + }, + /* -------------------- */ + + + /* unbinds scrollbar events */ + _unbindEvents:function(){ + var $this=$(this),d=$this.data(pluginPfx), + namespace=pluginPfx+"_"+d.idx, + sb=".mCSB_"+d.idx+"_scrollbar", + sel=$("#mCSB_"+d.idx+",#mCSB_"+d.idx+"_container,#mCSB_"+d.idx+"_container_wrapper,"+sb+" .mCSB_draggerContainer,#mCSB_"+d.idx+"_dragger_vertical,#mCSB_"+d.idx+"_dragger_horizontal,"+sb+">a"), + mCSB_container=$("#mCSB_"+d.idx+"_container"); + if(d.bindEvents){ /* check if events are bound */ + /* unbind namespaced events from document/selectors */ + $(document).unbind("."+namespace); + sel.each(function(){ + $(this).unbind("."+namespace); + }); + /* clear and delete timeouts/objects */ + clearTimeout($this[0]._focusTimeout); functions._delete.call(null,$this[0]._focusTimeout); + clearTimeout(d.sequential.step); functions._delete.call(null,d.sequential.step); + clearTimeout(mCSB_container[0].onCompleteTimeout); functions._delete.call(null,mCSB_container[0].onCompleteTimeout); + d.bindEvents=false; + } + }, + /* -------------------- */ + + + /* toggles scrollbar visibility */ + _scrollbarVisibility:function(disabled){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt, + contentWrapper=$("#mCSB_"+d.idx+"_container_wrapper"), + content=contentWrapper.length ? contentWrapper : $("#mCSB_"+d.idx+"_container"), + scrollbar=[$("#mCSB_"+d.idx+"_scrollbar_vertical"),$("#mCSB_"+d.idx+"_scrollbar_horizontal")], + mCSB_dragger=[scrollbar[0].find(".mCSB_dragger"),scrollbar[1].find(".mCSB_dragger")]; + if(o.axis!=="x"){ + if(d.overflowed[0] && !disabled){ + scrollbar[0].add(mCSB_dragger[0]).add(scrollbar[0].children("a")).css("display","block"); + content.removeClass("mCS_no_scrollbar_y mCS_y_hidden"); + }else{ + if(o.alwaysShowScrollbar){ + if(o.alwaysShowScrollbar!==2){mCSB_dragger[0].add(scrollbar[0].children("a")).css("display","none");} + content.removeClass("mCS_y_hidden"); + }else{ + scrollbar[0].css("display","none"); + content.addClass("mCS_y_hidden"); + } + content.addClass("mCS_no_scrollbar_y"); + } + } + if(o.axis!=="y"){ + if(d.overflowed[1] && !disabled){ + scrollbar[1].add(mCSB_dragger[1]).add(scrollbar[1].children("a")).css("display","block"); + content.removeClass("mCS_no_scrollbar_x mCS_x_hidden"); + }else{ + if(o.alwaysShowScrollbar){ + if(o.alwaysShowScrollbar!==2){mCSB_dragger[1].add(scrollbar[1].children("a")).css("display","none");} + content.removeClass("mCS_x_hidden"); + }else{ + scrollbar[1].css("display","none"); + content.addClass("mCS_x_hidden"); + } + content.addClass("mCS_no_scrollbar_x"); + } + } + if(!d.overflowed[0] && !d.overflowed[1]){ + $this.addClass("mCS_no_scrollbar"); + }else{ + $this.removeClass("mCS_no_scrollbar"); + } + }, + /* -------------------- */ + + + /* returns input coordinates of pointer, touch and mouse events (relative to document) */ + _coordinates:function(e){ + var t=e.type; + switch(t){ + case "pointerdown": case "MSPointerDown": case "pointermove": case "MSPointerMove": case "pointerup": case "MSPointerUp": + return [e.originalEvent.pageY,e.originalEvent.pageX]; + break; + case "touchstart": case "touchmove": case "touchend": + var touch=e.originalEvent.touches[0] || e.originalEvent.changedTouches[0]; + return [touch.pageY,touch.pageX]; + break; + default: + return [e.pageY,e.pageX]; + } + }, + /* -------------------- */ + + + /* + SCROLLBAR DRAG EVENTS + scrolls content via scrollbar dragging + */ + _draggable:function(){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt, + namespace=pluginPfx+"_"+d.idx, + draggerId=["mCSB_"+d.idx+"_dragger_vertical","mCSB_"+d.idx+"_dragger_horizontal"], + mCSB_container=$("#mCSB_"+d.idx+"_container"), + mCSB_dragger=$("#"+draggerId[0]+",#"+draggerId[1]), + draggable,dragY,dragX; + mCSB_dragger.bind("mousedown."+namespace+" touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,function(e){ + e.stopImmediatePropagation(); + e.preventDefault(); + if(!functions._mouseBtnLeft(e)){return;} /* left mouse button only */ + touchActive=true; + if(oldIE){document.onselectstart=function(){return false;}} /* disable text selection for IE < 9 */ + _iframe(false); /* enable scrollbar dragging over iframes by disabling their events */ + functions._stop($this); + draggable=$(this); + var offset=draggable.offset(),y=functions._coordinates(e)[0]-offset.top,x=functions._coordinates(e)[1]-offset.left, + h=draggable.height()+offset.top,w=draggable.width()+offset.left; + if(y0 && x0){ + dragY=y; + dragX=x; + } + functions._onDragClasses(draggable,"active",o.autoExpandScrollbar); + }).bind("touchmove."+namespace,function(e){ + e.stopImmediatePropagation(); + e.preventDefault(); + var offset=draggable.offset(),y=functions._coordinates(e)[0]-offset.top,x=functions._coordinates(e)[1]-offset.left; + _drag(dragY,dragX,y,x); + }); + $(document).bind("mousemove."+namespace+" pointermove."+namespace+" MSPointerMove."+namespace,function(e){ + if(draggable){ + var offset=draggable.offset(),y=functions._coordinates(e)[0]-offset.top,x=functions._coordinates(e)[1]-offset.left; + if(dragY===y){return;} /* has it really moved? */ + _drag(dragY,dragX,y,x); + } + }).add(mCSB_dragger).bind("mouseup."+namespace+" touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace,function(e){ + if(draggable){ + functions._onDragClasses(draggable,"active",o.autoExpandScrollbar); + draggable=null; + } + touchActive=false; + if(oldIE){document.onselectstart=null;} /* enable text selection for IE < 9 */ + _iframe(true); /* enable iframes events */ + }); + function _iframe(evt){ + var el=mCSB_container.find("iframe"); + if(!el.length){return;} /* check if content contains iframes */ + var val=!evt ? "none" : "auto"; + el.css("pointer-events",val); /* for IE11, iframe's display property should not be "block" */ + } + function _drag(dragY,dragX,y,x){ + mCSB_container[0].idleTimer=o.scrollInertia<233 ? 250 : 0; + if(draggable.attr("id")===draggerId[1]){ + var dir="x",to=((draggable[0].offsetLeft-dragX)+x)*d.scrollRatio.x; + }else{ + var dir="y",to=((draggable[0].offsetTop-dragY)+y)*d.scrollRatio.y; + } + functions._scrollTo($this,to.toString(),{dir:dir,drag:true}); + } + }, + /* -------------------- */ + + + /* + TOUCH SWIPE EVENTS + scrolls content via touch swipe + Emulates the native touch-swipe scrolling with momentum found in iOS, Android and WP devices + */ + _contentDraggable:function(){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt, + namespace=pluginPfx+"_"+d.idx, + mCustomScrollBox=$("#mCSB_"+d.idx), + mCSB_container=$("#mCSB_"+d.idx+"_container"), + mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")], + dragY,dragX,touchStartY,touchStartX,touchMoveY=[],touchMoveX=[],startTime,runningTime,endTime,distance,speed,amount, + durA=0,durB,overwrite=o.axis==="yx" ? "none" : "all"; + mCSB_container.bind("touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,function(e){ + if(!functions._pointerTouch(e) || touchActive){return;} + var offset=mCSB_container.offset(); + dragY=functions._coordinates(e)[0]-offset.top; + dragX=functions._coordinates(e)[1]-offset.left; + }).bind("touchmove."+namespace+" pointermove."+namespace+" MSPointerMove."+namespace,function(e){ + if(!functions._pointerTouch(e) || touchActive){return;} + e.stopImmediatePropagation(); + runningTime=functions._getTime(); + var offset=mCustomScrollBox.offset(),y=functions._coordinates(e)[0]-offset.top,x=functions._coordinates(e)[1]-offset.left, + easing="mcsLinearOut"; + touchMoveY.push(y); + touchMoveX.push(x); + if(d.overflowed[0]){ + var limit=mCSB_dragger[0].parent().height()-mCSB_dragger[0].height(), + prevent=((dragY-y)>0 && (y-dragY)>-(limit*d.scrollRatio.y)); + } + if(d.overflowed[1]){ + var limitX=mCSB_dragger[1].parent().width()-mCSB_dragger[1].width(), + preventX=((dragX-x)>0 && (x-dragX)>-(limitX*d.scrollRatio.x)); + } + if(prevent || preventX){e.preventDefault();} /* prevent native document scrolling */ + amount=o.axis==="yx" ? [(dragY-y),(dragX-x)] : o.axis==="x" ? [null,(dragX-x)] : [(dragY-y),null]; + mCSB_container[0].idleTimer=250; + if(d.overflowed[0]){_drag(amount[0],durA,easing,"y","all",true);} + if(d.overflowed[1]){_drag(amount[1],durA,easing,"x",overwrite,true);} + }); + mCustomScrollBox.bind("touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,function(e){ + if(!functions._pointerTouch(e) || touchActive){return;} + e.stopImmediatePropagation(); + functions._stop($this); + startTime=functions._getTime(); + var offset=mCustomScrollBox.offset(); + touchStartY=functions._coordinates(e)[0]-offset.top; + touchStartX=functions._coordinates(e)[1]-offset.left; + touchMoveY=[]; touchMoveX=[]; + }).bind("touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace,function(e){ + if(!functions._pointerTouch(e) || touchActive){return;} + e.stopImmediatePropagation(); + endTime=functions._getTime(); + var offset=mCustomScrollBox.offset(),y=functions._coordinates(e)[0]-offset.top,x=functions._coordinates(e)[1]-offset.left; + if((endTime-runningTime)>30){return;} + speed=1000/(endTime-startTime); + var easing="mcsEaseOut",slow=speed<2.5, + diff=slow ? [touchMoveY[touchMoveY.length-2],touchMoveX[touchMoveX.length-2]] : [0,0]; + distance=slow ? [(y-diff[0]),(x-diff[1])] : [y-touchStartY,x-touchStartX]; + var absDistance=[Math.abs(distance[0]),Math.abs(distance[1])]; + speed=slow ? [Math.abs(distance[0]/4),Math.abs(distance[1]/4)] : [speed,speed]; + var a=[ + Math.abs(mCSB_container[0].offsetTop)-(distance[0]*_m((absDistance[0]/speed[0]),speed[0])), + Math.abs(mCSB_container[0].offsetLeft)-(distance[1]*_m((absDistance[1]/speed[1]),speed[1])) + ]; + amount=o.axis==="yx" ? [a[0],a[1]] : o.axis==="x" ? [null,a[1]] : [a[0],null]; + durB=[(absDistance[0]*4)+o.scrollInertia,(absDistance[1]*4)+o.scrollInertia]; + var md=parseInt(o.contentTouchScroll) || 0; /* absolute minimum distance required */ + amount[0]=absDistance[0]>md ? amount[0] : 0; + amount[1]=absDistance[1]>md ? amount[1] : 0; + if(d.overflowed[0]){_drag(amount[0],durB[0],easing,"y",overwrite,false);} + if(d.overflowed[1]){_drag(amount[1],durB[1],easing,"x",overwrite,false);} + }); + function _m(ds,s){ + var r=[s*1.5,s*2,s/1.5,s/2]; + if(ds>90){ + return s>4 ? r[0] : r[3]; + }else if(ds>60){ + return s>3 ? r[3] : r[2]; + }else if(ds>30){ + return s>8 ? r[1] : s>6 ? r[0] : s>4 ? s : r[2]; + }else{ + return s>8 ? s : r[3]; + } + } + function _drag(amount,dur,easing,dir,overwrite,drag){ + if(!amount){return;} + functions._scrollTo($this,amount.toString(),{dur:dur,scrollEasing:easing,dir:dir,overwrite:overwrite,drag:drag}); + } + }, + /* -------------------- */ + + + /* + MOUSE WHEEL EVENT + scrolls content via mouse-wheel + via mouse-wheel plugin (https://github.com/brandonaaron/jquery-mousewheel) + */ + _mousewheel:function(){ + var $this=$(this),d=$this.data(pluginPfx); + if(d){ /* Check if the scrollbar is ready to use mousewheel events (issue: #185) */ + var o=d.opt, + namespace=pluginPfx+"_"+d.idx, + mCustomScrollBox=$("#mCSB_"+d.idx), + mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")], + iframe=$("#mCSB_"+d.idx+"_container").find("iframe"), + el=mCustomScrollBox /* mousewheel element selector */; + /* check for cross domain iframes and bind mousewheel event on them in addition to default mousewheel element selector */ + if(iframe.length){ + iframe.each(function(){ + var iFobj=this; + if(_canAccessIFrame(iFobj)){ /* check if iframe can be accessed */ + el=el.add($(iFobj).contents().find("body")); + } + }); + } + el.bind("mousewheel."+namespace,function(e,delta){ + functions._stop($this); + if(functions._disableMousewheel($this,e.target)){return;} /* disables mouse-wheel when hovering specific elements */ + var deltaFactor=o.mouseWheel.deltaFactor!=="auto" ? parseInt(o.mouseWheel.deltaFactor) : (oldIE && e.deltaFactor<100) ? 100 : e.deltaFactor || 100; + if(o.axis==="x" || o.mouseWheel.axis==="x"){ + var dir="x", + px=[Math.round(deltaFactor*d.scrollRatio.x),parseInt(o.mouseWheel.scrollAmount)], + amount=o.mouseWheel.scrollAmount!=="auto" ? px[1] : px[0]>=mCustomScrollBox.width() ? mCustomScrollBox.width()*0.9 : px[0], + contentPos=Math.abs($("#mCSB_"+d.idx+"_container")[0].offsetLeft), + draggerPos=mCSB_dragger[1][0].offsetLeft, + limit=mCSB_dragger[1].parent().width()-mCSB_dragger[1].width(), + dlt=e.deltaX || e.deltaY || delta; + }else{ + var dir="y", + px=[Math.round(deltaFactor*d.scrollRatio.y),parseInt(o.mouseWheel.scrollAmount)], + amount=o.mouseWheel.scrollAmount!=="auto" ? px[1] : px[0]>=mCustomScrollBox.height() ? mCustomScrollBox.height()*0.9 : px[0], + contentPos=Math.abs($("#mCSB_"+d.idx+"_container")[0].offsetTop), + draggerPos=mCSB_dragger[0][0].offsetTop, + limit=mCSB_dragger[0].parent().height()-mCSB_dragger[0].height(), + dlt=e.deltaY || delta; + } + if((dir==="y" && !d.overflowed[0]) || (dir==="x" && !d.overflowed[1])){return;} + if(o.mouseWheel.invert){dlt=-dlt;} + if(o.mouseWheel.normalizeDelta){dlt=dlt<0 ? -1 : 1;} + if((dlt>0 && draggerPos!==0) || (dlt<0 && draggerPos!==limit) || o.mouseWheel.preventDefault){ + e.stopImmediatePropagation(); + e.preventDefault(); + } + functions._scrollTo($this,(contentPos-(dlt*amount)).toString(),{dir:dir}); + }); + } + /* check if iframe can be accessed */ + function _canAccessIFrame(iframe){ + var html=null; + try{ + var doc=iframe.contentDocument || iframe.contentWindow.document; + html=doc.body.innerHTML; + }catch(err){/* do nothing */} + return(html!==null); + } + }, + /* -------------------- */ + + + /* disables mouse-wheel when hovering specific elements like select, datalist etc. */ + _disableMousewheel:function(el,target){ + var tag=target.nodeName.toLowerCase(), + tags=el.data(pluginPfx).opt.mouseWheel.disableOver, + /* elements that require focus */ + focusTags=["select","textarea"]; + return $.inArray(tag,tags) > -1 && !($.inArray(tag,focusTags) > -1 && !$(target).is(":focus")); + }, + /* -------------------- */ + + + /* + DRAGGER RAIL CLICK EVENT + scrolls content via dragger rail + */ + _draggerRail:function(){ + var $this=$(this),d=$this.data(pluginPfx), + namespace=pluginPfx+"_"+d.idx, + mCSB_container=$("#mCSB_"+d.idx+"_container"), + wrapper=mCSB_container.parent(), + mCSB_draggerContainer=$(".mCSB_"+d.idx+"_scrollbar .mCSB_draggerContainer"); + mCSB_draggerContainer.bind("touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,function(e){ + touchActive=true; + }).bind("touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace,function(e){ + touchActive=false; + }).bind("click."+namespace,function(e){ + if($(e.target).hasClass("mCSB_draggerContainer") || $(e.target).hasClass("mCSB_draggerRail")){ + functions._stop($this); + var el=$(this),mCSB_dragger=el.find(".mCSB_dragger"); + if(el.parent(".mCSB_scrollTools_horizontal").length>0){ + if(!d.overflowed[1]){return;} + var dir="x", + clickDir=e.pageX>mCSB_dragger.offset().left ? -1 : 1, + to=Math.abs(mCSB_container[0].offsetLeft)-(clickDir*(wrapper.width()*0.9)); + }else{ + if(!d.overflowed[0]){return;} + var dir="y", + clickDir=e.pageY>mCSB_dragger.offset().top ? -1 : 1, + to=Math.abs(mCSB_container[0].offsetTop)-(clickDir*(wrapper.height()*0.9)); + } + functions._scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"}); + } + }); + }, + /* -------------------- */ + + + /* + FOCUS EVENT + scrolls content via element focus (e.g. clicking an input, pressing TAB key etc.) + */ + _focus:function(){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt, + namespace=pluginPfx+"_"+d.idx, + mCSB_container=$("#mCSB_"+d.idx+"_container"), + wrapper=mCSB_container.parent(); + mCSB_container.bind("focusin."+namespace,function(e){ + var el=$(document.activeElement), + nested=mCSB_container.find(".mCustomScrollBox").length, + dur=0; + if(!el.is(o.advanced.autoScrollOnFocus)){return;} + functions._stop($this); + clearTimeout($this[0]._focusTimeout); + $this[0]._focusTimer=nested ? (dur+17)*nested : 0; + $this[0]._focusTimeout=setTimeout(function(){ + var to=[el.offset().top-mCSB_container.offset().top,el.offset().left-mCSB_container.offset().left], + contentPos=[mCSB_container[0].offsetTop,mCSB_container[0].offsetLeft], + isVisible=[ + (contentPos[0]+to[0]>=0 && contentPos[0]+to[0]=0 && contentPos[0]+to[1]a"); + btn.bind("mousedown."+namespace+" touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace+" mouseup."+namespace+" touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace+" mouseout."+namespace+" pointerout."+namespace+" MSPointerOut."+namespace+" click."+namespace,function(e){ + e.preventDefault(); + if(!functions._mouseBtnLeft(e)){return;} /* left mouse button only */ + var btnClass=$(this).attr("class"); + seq.type=o.scrollButtons.scrollType; + switch(e.type){ + case "mousedown": case "touchstart": case "pointerdown": case "MSPointerDown": + if(seq.type==="stepped"){return;} + touchActive=true; + d.tweenRunning=false; + _seq("on",btnClass); + break; + case "mouseup": case "touchend": case "pointerup": case "MSPointerUp": + case "mouseout": case "pointerout": case "MSPointerOut": + if(seq.type==="stepped"){return;} + touchActive=false; + if(seq.dir){_seq("off",btnClass);} + break; + case "click": + if(seq.type!=="stepped" || d.tweenRunning){return;} + _seq("on",btnClass); + break; + } + function _seq(a,c){ + seq.scrollAmount=o.snapAmount || o.scrollButtons.scrollAmount; + functions._sequentialScroll.call(this,$this,a,c); + } + }); + }, + /* -------------------- */ + + + /* + KEYBOARD EVENTS + scrolls content via keyboard + Keys: up arrow, down arrow, left arrow, right arrow, PgUp, PgDn, Home, End + */ + _keyboard:function(){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt,seq=d.sequential, + namespace=pluginPfx+"_"+d.idx, + mCustomScrollBox=$("#mCSB_"+d.idx), + mCSB_container=$("#mCSB_"+d.idx+"_container"), + wrapper=mCSB_container.parent(), + editables="input,textarea,select,datalist,keygen,[contenteditable='true']"; + mCustomScrollBox.attr("tabindex","0").bind("blur."+namespace+" keydown."+namespace+" keyup."+namespace,function(e){ + switch(e.type){ + case "blur": + if(d.tweenRunning && seq.dir){_seq("off",null);} + break; + case "keydown": case "keyup": + var code=e.keyCode ? e.keyCode : e.which,action="on"; + if((o.axis!=="x" && (code===38 || code===40)) || (o.axis!=="y" && (code===37 || code===39))){ + /* up (38), down (40), left (37), right (39) arrows */ + if(((code===38 || code===40) && !d.overflowed[0]) || ((code===37 || code===39) && !d.overflowed[1])){return;} + if(e.type==="keyup"){action="off";} + if(!$(document.activeElement).is(editables)){ + e.preventDefault(); + e.stopImmediatePropagation(); + _seq(action,code); + } + }else if(code===33 || code===34){ + /* PgUp (33), PgDn (34) */ + if(d.overflowed[0] || d.overflowed[1]){ + e.preventDefault(); + e.stopImmediatePropagation(); + } + if(e.type==="keyup"){ + functions._stop($this); + var keyboardDir=code===34 ? -1 : 1; + if(o.axis==="x" || (o.axis==="yx" && d.overflowed[1] && !d.overflowed[0])){ + var dir="x",to=Math.abs(mCSB_container[0].offsetLeft)-(keyboardDir*(wrapper.width()*0.9)); + }else{ + var dir="y",to=Math.abs(mCSB_container[0].offsetTop)-(keyboardDir*(wrapper.height()*0.9)); + } + functions._scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"}); + } + }else if(code===35 || code===36){ + /* End (35), Home (36) */ + if(!$(document.activeElement).is(editables)){ + if(d.overflowed[0] || d.overflowed[1]){ + e.preventDefault(); + e.stopImmediatePropagation(); + } + if(e.type==="keyup"){ + if(o.axis==="x" || (o.axis==="yx" && d.overflowed[1] && !d.overflowed[0])){ + var dir="x",to=code===35 ? Math.abs(wrapper.width()-mCSB_container.outerWidth(false)) : 0; + }else{ + var dir="y",to=code===35 ? Math.abs(wrapper.height()-mCSB_container.outerHeight(false)) : 0; + } + functions._scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"}); + } + } + } + break; + } + function _seq(a,c){ + seq.type=o.keyboard.scrollType; + seq.scrollAmount=o.snapAmount || o.keyboard.scrollAmount; + if(seq.type==="stepped" && d.tweenRunning){return;} + functions._sequentialScroll.call(this,$this,a,c); + } + }); + }, + /* -------------------- */ + + + /* scrolls content sequentially (used when scrolling via buttons, keyboard arrows etc.) */ + _sequentialScroll:function(el,action,trigger){ + var d=el.data(pluginPfx),o=d.opt,seq=d.sequential, + mCSB_container=$("#mCSB_"+d.idx+"_container"), + once=seq.type==="stepped" ? true : false; + switch(action){ + case "on": + seq.dir=[ + (trigger==="mCSB_buttonRight" || trigger==="mCSB_buttonLeft" || trigger===39 || trigger===37 ? "x" : "y"), + (trigger==="mCSB_buttonUp" || trigger==="mCSB_buttonLeft" || trigger===38 || trigger===37 ? -1 : 1) + ]; + functions._stop(el); + if(functions._isNumeric(trigger) && seq.type==="stepped"){return;} + _start(once); + break; + case "off": + _stop(); + if(once || (d.tweenRunning && seq.dir)){ + _start(true); + } + break; + } + /* starts sequence */ + function _start(once){ + var c=seq.type!=="stepped", /* continuous scrolling */ + t=!once ? 1000/60 : c ? o.scrollInertia/1.5 : o.scrollInertia, /* timer */ + m=!once ? 2.5 : c ? 7.5 : 40, /* multiplier */ + contentPos=[Math.abs(mCSB_container[0].offsetTop),Math.abs(mCSB_container[0].offsetLeft)], + ratio=[d.scrollRatio.y>10 ? 10 : d.scrollRatio.y,d.scrollRatio.x>10 ? 10 : d.scrollRatio.x], + amount=seq.dir[0]==="x" ? contentPos[1]+(seq.dir[1]*(ratio[1]*m)) : contentPos[0]+(seq.dir[1]*(ratio[0]*m)), + px=seq.dir[0]==="x" ? contentPos[1]+(seq.dir[1]*parseInt(seq.scrollAmount)) : contentPos[0]+(seq.dir[1]*parseInt(seq.scrollAmount)), + to=seq.scrollAmount!=="auto" ? px : amount, + easing=!once ? "mcsLinear" : c ? "mcsLinearOut" : "mcsEaseInOut", + onComplete=!once ? false : true; + if(once && t<17){ + to=seq.dir[0]==="x" ? contentPos[1] : contentPos[0]; + } + functions._scrollTo(el,to.toString(),{dir:seq.dir[0],scrollEasing:easing,dur:t,onComplete:onComplete}); + if(once){ + seq.dir=false; + return; + } + clearTimeout(seq.step); + seq.step=setTimeout(function(){ + _start(); + },t); + } + /* stops sequence */ + function _stop(){ + clearTimeout(seq.step); + functions._stop(el); + } + }, + /* -------------------- */ + + + /* returns a yx array from value */ + _arr:function(val){ + var o=$(this).data(pluginPfx).opt,vals=[]; + if(typeof val==="function"){val=val();} /* check if the value is a single anonymous function */ + /* check if value is object or array, its length and create an array with yx values */ + if(!(val instanceof Array)){ /* object value (e.g. {y:"100",x:"100"}, 100 etc.) */ + vals[0]=val.y ? val.y : val.x || o.axis==="x" ? null : val; + vals[1]=val.x ? val.x : val.y || o.axis==="y" ? null : val; + }else{ /* array value (e.g. [100,100]) */ + vals=val.length>1 ? [val[0],val[1]] : o.axis==="x" ? [null,val[0]] : [val[0],null]; + } + /* check if array values are anonymous functions */ + if(typeof vals[0]==="function"){vals[0]=vals[0]();} + if(typeof vals[1]==="function"){vals[1]=vals[1]();} + return vals; + }, + /* -------------------- */ + + + /* translates values (e.g. "top", 100, "100px", "#id") to actual scroll-to positions */ + _to:function(val,dir){ + if(val==null || typeof val=="undefined"){return;} + var $this=$(this),d=$this.data(pluginPfx),o=d.opt, + mCSB_container=$("#mCSB_"+d.idx+"_container"), + wrapper=mCSB_container.parent(), + t=typeof val; + if(!dir){dir=o.axis==="x" ? "x" : "y";} + var contentLength=dir==="x" ? mCSB_container.outerWidth(false) : mCSB_container.outerHeight(false), + contentOffset=dir==="x" ? mCSB_container.offset().left : mCSB_container.offset().top, + contentPos=dir==="x" ? mCSB_container[0].offsetLeft : mCSB_container[0].offsetTop, + cssProp=dir==="x" ? "left" : "top"; + switch(t){ + case "function": /* this currently is not used. Consider removing it */ + return val(); + break; + case "object": + if(val.nodeType){ /* DOM */ + var objOffset=dir==="x" ? $(val).offset().left : $(val).offset().top; + }else if(val.jquery){ /* jquery object */ + if(!val.length){return;} + var objOffset=dir==="x" ? val.offset().left : val.offset().top; + } + return objOffset-contentOffset; + break; + case "string": case "number": + if(functions._isNumeric.call(null,val)){ /* numeric value */ + return Math.abs(val); + }else if(val.indexOf("%")!==-1){ /* percentage value */ + return Math.abs(contentLength*parseInt(val)/100); + }else if(val.indexOf("-=")!==-1){ /* decrease value */ + return Math.abs(contentPos-parseInt(val.split("-=")[1])); + }else if(val.indexOf("+=")!==-1){ /* inrease value */ + var p=(contentPos+parseInt(val.split("+=")[1])); + return p>=0 ? 0 : Math.abs(p); + }else if(val.indexOf("px")!==-1 && functions._isNumeric.call(null,val.split("px")[0])){ /* pixels string value (e.g. "100px") */ + return Math.abs(val.split("px")[0]); + }else{ + if(val==="top" || val==="left"){ /* special strings */ + return 0; + }else if(val==="bottom"){ + return Math.abs(wrapper.height()-mCSB_container.outerHeight(false)); + }else if(val==="right"){ + return Math.abs(wrapper.width()-mCSB_container.outerWidth(false)); + }else if(val==="first" || val==="last"){ + var obj=mCSB_container.find(":"+val), + objOffset=dir==="x" ? $(obj).offset().left : $(obj).offset().top; + return objOffset-contentOffset; + }else{ + if($(val).length){ /* jquery selector */ + var objOffset=dir==="x" ? $(val).offset().left : $(val).offset().top; + return objOffset-contentOffset; + }else{ /* other values (e.g. "100em") */ + mCSB_container.css(cssProp,val); + methods.update.call(null,$this[0]); + return; + } + } + } + break; + } + }, + /* -------------------- */ + + + /* calls the update method automatically */ + _autoUpdate:function(rem){ + var $this=$(this),d=$this.data(pluginPfx),o=d.opt, + mCSB_container=$("#mCSB_"+d.idx+"_container"); + if(rem){ + /* + removes autoUpdate timer + usage: functions._autoUpdate.call(this,"remove"); + */ + clearTimeout(mCSB_container[0].autoUpdate); + functions._delete.call(null,mCSB_container[0].autoUpdate); + return; + } + var wrapper=mCSB_container.parent(), + scrollbar=[$("#mCSB_"+d.idx+"_scrollbar_vertical"),$("#mCSB_"+d.idx+"_scrollbar_horizontal")], + scrollbarSize=function(){return [ + scrollbar[0].is(":visible") ? scrollbar[0].outerHeight(true) : 0, /* returns y-scrollbar height */ + scrollbar[1].is(":visible") ? scrollbar[1].outerWidth(true) : 0 /* returns x-scrollbar width */ + ]}, + oldSelSize=sizesSum(),newSelSize, + os=[mCSB_container.outerHeight(false),mCSB_container.outerWidth(false),wrapper.height(),wrapper.width(),scrollbarSize()[0],scrollbarSize()[1]],ns, + oldImgsLen=imgSum(),newImgsLen; + upd(); + function upd(){ + clearTimeout(mCSB_container[0].autoUpdate); + mCSB_container[0].autoUpdate=setTimeout(function(){ + /* update on specific selector(s) length and size change */ + if(o.advanced.updateOnSelectorChange){ + newSelSize=sizesSum(); + if(newSelSize!==oldSelSize){ + doUpd(); + oldSelSize=newSelSize; + return; + } + } + /* update on main element and scrollbar size changes */ + if(o.advanced.updateOnContentResize){ + ns=[mCSB_container.outerHeight(false),mCSB_container.outerWidth(false),wrapper.height(),wrapper.width(),scrollbarSize()[0],scrollbarSize()[1]]; + if(ns[0]!==os[0] || ns[1]!==os[1] || ns[2]!==os[2] || ns[3]!==os[3] || ns[4]!==os[4] || ns[5]!==os[5]){ + doUpd(); + os=ns; + } + } + /* update on image load */ + if(o.advanced.updateOnImageLoad){ + newImgsLen=imgSum(); + if(newImgsLen!==oldImgsLen){ + mCSB_container.find("img").each(function(){ + imgLoader(this.src); + }); + oldImgsLen=newImgsLen; + } + } + if(o.advanced.updateOnSelectorChange || o.advanced.updateOnContentResize || o.advanced.updateOnImageLoad){upd();} + },60); + } + /* returns images amount */ + function imgSum(){ + var total=0 + if(o.advanced.updateOnImageLoad){total=mCSB_container.find("img").length;} + return total; + } + /* a tiny image loader */ + function imgLoader(src){ + var img=new Image(); + function createDelegate(contextObject,delegateMethod){ + return function(){return delegateMethod.apply(contextObject,arguments);} + } + function imgOnLoad(){ + this.onload=null; + doUpd(); + } + img.onload=createDelegate(img,imgOnLoad); + img.src=src; + } + /* returns the total height and width sum of all elements matching the selector */ + function sizesSum(){ + if(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange="*";} + var total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange); + if(o.advanced.updateOnSelectorChange && sel.length>0){sel.each(function(){total+=$(this).height()+$(this).width();});} + return total; + } + /* calls the update method */ + function doUpd(){ + clearTimeout(mCSB_container[0].autoUpdate); + methods.update.call(null,$this[0]); + } + }, + /* -------------------- */ + + + /* snaps scrolling to a multiple of a pixels number */ + _snapAmount:function(to,amount,offset){ + return (Math.round(to/amount)*amount-offset); + }, + /* -------------------- */ + + + /* stops content and scrollbar animations */ + _stop:function(el){ + var d=el.data(pluginPfx), + sel=$("#mCSB_"+d.idx+"_container,#mCSB_"+d.idx+"_container_wrapper,#mCSB_"+d.idx+"_dragger_vertical,#mCSB_"+d.idx+"_dragger_horizontal"); + sel.each(function(){ + functions._stopTween.call(this); + }); + }, + /* -------------------- */ + + + /* + ANIMATES CONTENT + This is where the actual scrolling happens + */ + _scrollTo:function(el,to,options){ + var d=el.data(pluginPfx),o=d.opt, + defaults={ + trigger:"internal", + dir:"y", + scrollEasing:"mcsEaseOut", + drag:false, + dur:o.scrollInertia, + overwrite:"all", + callbacks:true, + onStart:true, + onUpdate:true, + onComplete:true + }, + options=$.extend(defaults,options), + dur=[options.dur,(options.drag ? 0 : options.dur)], + mCustomScrollBox=$("#mCSB_"+d.idx), + mCSB_container=$("#mCSB_"+d.idx+"_container"), + totalScrollOffsets=o.callbacks.onTotalScrollOffset ? functions._arr.call(el,o.callbacks.onTotalScrollOffset) : [0,0], + totalScrollBackOffsets=o.callbacks.onTotalScrollBackOffset ? functions._arr.call(el,o.callbacks.onTotalScrollBackOffset) : [0,0]; + d.trigger=options.trigger; + if(to==="_resetY" && !d.contentReset.y){ + /* callbacks: onOverflowYNone */ + if(_cb("onOverflowYNone")){o.callbacks.onOverflowYNone.call(el[0]);} + d.contentReset.y=1; + } + if(to==="_resetX" && !d.contentReset.x){ + /* callbacks: onOverflowXNone */ + if(_cb("onOverflowXNone")){o.callbacks.onOverflowXNone.call(el[0]);} + d.contentReset.x=1; + } + if(to==="_resetY" || to==="_resetX"){return;} + if((d.contentReset.y || !el[0].mcs) && d.overflowed[0]){ + /* callbacks: onOverflowY */ + if(_cb("onOverflowY")){o.callbacks.onOverflowY.call(el[0]);} + d.contentReset.x=null; + } + if((d.contentReset.x || !el[0].mcs) && d.overflowed[1]){ + /* callbacks: onOverflowX */ + if(_cb("onOverflowX")){o.callbacks.onOverflowX.call(el[0]);} + d.contentReset.x=null; + } + if(o.snapAmount){to=functions._snapAmount(to,o.snapAmount,o.snapOffset);} /* scrolling snapping */ + switch(options.dir){ + case "x": + var mCSB_dragger=$("#mCSB_"+d.idx+"_dragger_horizontal"), + property="left", + contentPos=mCSB_container[0].offsetLeft, + limit=[ + mCustomScrollBox.width()-mCSB_container.outerWidth(false), + mCSB_dragger.parent().width()-mCSB_dragger.width() + ], + scrollTo=[to,to===0 ? 0 : (to/d.scrollRatio.x)], + tso=totalScrollOffsets[1], + tsbo=totalScrollBackOffsets[1], + totalScrollOffset=tso>0 ? tso/d.scrollRatio.x : 0, + totalScrollBackOffset=tsbo>0 ? tsbo/d.scrollRatio.x : 0; + break; + case "y": + var mCSB_dragger=$("#mCSB_"+d.idx+"_dragger_vertical"), + property="top", + contentPos=mCSB_container[0].offsetTop, + limit=[ + mCustomScrollBox.height()-mCSB_container.outerHeight(false), + mCSB_dragger.parent().height()-mCSB_dragger.height() + ], + scrollTo=[to,to===0 ? 0 : (to/d.scrollRatio.y)], + tso=totalScrollOffsets[0], + tsbo=totalScrollBackOffsets[0], + totalScrollOffset=tso>0 ? tso/d.scrollRatio.y : 0, + totalScrollBackOffset=tsbo>0 ? tsbo/d.scrollRatio.y : 0; + break; + } + if(scrollTo[1]<0 || (scrollTo[0]===0 && scrollTo[1]===0)){ + scrollTo=[0,0]; + }else if(scrollTo[1]>=limit[1]){ + scrollTo=[limit[0],limit[1]]; + }else{ + scrollTo[0]=-scrollTo[0]; + } + if(!el[0].mcs){_mcs();} /* init mcs object (once) to make it available before callbacks */ + clearTimeout(mCSB_container[0].onCompleteTimeout); + if(!d.tweenRunning && ((contentPos===0 && scrollTo[0]>=0) || (contentPos===limit[0] && scrollTo[0]<=limit[0]))){return;} + functions._tweenTo.call(null,mCSB_dragger[0],property,Math.round(scrollTo[1]),dur[1],options.scrollEasing); + functions._tweenTo.call(null,mCSB_container[0],property,Math.round(scrollTo[0]),dur[0],options.scrollEasing,options.overwrite,{ + onStart:function(){ + if(options.callbacks && options.onStart && !d.tweenRunning){ + /* callbacks: onScrollStart */ + if(_cb("onScrollStart")){_mcs(); o.callbacks.onScrollStart.call(el[0]);} + d.tweenRunning=true; + functions._onDragClasses(mCSB_dragger); + d.cbOffsets=_cbOffsets(); + } + },onUpdate:function(){ + if(options.callbacks && options.onUpdate){ + /* callbacks: whileScrolling */ + if(_cb("whileScrolling")){_mcs(); o.callbacks.whileScrolling.call(el[0]);} + } + },onComplete:function(){ + if(options.callbacks && options.onComplete){ + if(o.axis==="yx"){clearTimeout(mCSB_container[0].onCompleteTimeout);} + var t=mCSB_container[0].idleTimer || 0; + mCSB_container[0].onCompleteTimeout=setTimeout(function(){ + /* callbacks: onScroll, onTotalScroll, onTotalScrollBack */ + if(_cb("onScroll")){_mcs(); o.callbacks.onScroll.call(el[0]);} + if(_cb("onTotalScroll") && scrollTo[1]>=limit[1]-totalScrollOffset && d.cbOffsets[0]){_mcs(); o.callbacks.onTotalScroll.call(el[0]);} + if(_cb("onTotalScrollBack") && scrollTo[1]<=totalScrollBackOffset && d.cbOffsets[1]){_mcs(); o.callbacks.onTotalScrollBack.call(el[0]);} + d.tweenRunning=false; + mCSB_container[0].idleTimer=0; + functions._onDragClasses(mCSB_dragger,"hide"); + },t); + } + } + }); + /* checks if callback function exists */ + function _cb(cb){ + return d && o.callbacks[cb] && typeof o.callbacks[cb]==="function"; + } + /* checks whether callback offsets always trigger */ + function _cbOffsets(){ + return [o.callbacks.alwaysTriggerOffsets || contentPos>=limit[0]+tso,o.callbacks.alwaysTriggerOffsets || contentPos<=-tsbo]; + } + /* + populates object with useful values for the user + values: + content: this.mcs.content + content top position: this.mcs.top + content left position: this.mcs.left + dragger top position: this.mcs.draggerTop + dragger left position: this.mcs.draggerLeft + scrolling y percentage: this.mcs.topPct + scrolling x percentage: this.mcs.leftPct + scrolling direction: this.mcs.direction + */ + function _mcs(){ + var cp=[mCSB_container[0].offsetTop,mCSB_container[0].offsetLeft], /* content position */ + dp=[mCSB_dragger[0].offsetTop,mCSB_dragger[0].offsetLeft], /* dragger position */ + cl=[mCSB_container.outerHeight(false),mCSB_container.outerWidth(false)], /* content length */ + pl=[mCustomScrollBox.height(),mCustomScrollBox.width()]; /* content parent length */ + el[0].mcs={ + content:mCSB_container, /* original content wrapper as jquery object */ + top:cp[0],left:cp[1],draggerTop:dp[0],draggerLeft:dp[1], + topPct:Math.round((100*Math.abs(cp[0]))/(Math.abs(cl[0])-pl[0])),leftPct:Math.round((100*Math.abs(cp[1]))/(Math.abs(cl[1])-pl[1])), + direction:options.dir + }; + /* + this refers to the original element containing the scrollbar(s) + usage: this.mcs.top, this.mcs.leftPct etc. + */ + } + }, + /* -------------------- */ + + + /* + CUSTOM JAVASCRIPT ANIMATION TWEEN + Lighter and faster than jquery animate() and css transitions + Animates top/left properties and includes easings + */ + _tweenTo:function(el,prop,to,duration,easing,overwrite,callbacks){ + var callbacks=callbacks || {}, + onStart=callbacks.onStart || function(){},onUpdate=callbacks.onUpdate || function(){},onComplete=callbacks.onComplete || function(){}, + startTime=functions._getTime(),_delay,progress=0,from=el.offsetTop,elStyle=el.style,_request; + if(prop==="left"){from=el.offsetLeft;} + var diff=to-from; + el._mcsstop=0; + if(overwrite!=="none"){_cancelTween();} + _startTween(); + function _step(){ + if(el._mcsstop){return;} + if(!progress){onStart.call();} + progress=functions._getTime()-startTime; + _tween(); + if(progress>=el._mcstime){ + el._mcstime=(progress>el._mcstime) ? progress+_delay-(progress- el._mcstime) : progress+_delay-1; + if(el._mcstime0){ + el._mcscurrVal=_ease(el._mcstime,from,diff,duration,easing); + elStyle[prop]=Math.round(el._mcscurrVal)+"px"; + }else{ + elStyle[prop]=to+"px"; + } + onUpdate.call(); + } + function _startTween(){ + _delay=1000/60; + el._mcstime=progress+_delay; + _request=(!window.requestAnimationFrame) ? function(f){_tween(); return setTimeout(f,0.01);} : window.requestAnimationFrame; + el._mcsid=_request(_step); + } + function _cancelTween(){ + if(el._mcsid==null){return;} + if(!window.requestAnimationFrame){clearTimeout(el._mcsid); + }else{window.cancelAnimationFrame(el._mcsid);} + el._mcsid=null; + } + function _ease(t,b,c,d,type){ + switch(type){ + case "linear": case "mcsLinear": + return c*t/d + b; + break; + case "mcsLinearOut": + t/=d; t--; return c * Math.sqrt(1 - t*t) + b; + break; + case "easeInOutSmooth": + t/=d/2; + if(t<1) return c/2*t*t + b; + t--; + return -c/2 * (t*(t-2) - 1) + b; + break; + case "easeInOutStrong": + t/=d/2; + if(t<1) return c/2 * Math.pow( 2, 10 * (t - 1) ) + b; + t--; + return c/2 * ( -Math.pow( 2, -10 * t) + 2 ) + b; + break; + case "easeInOut": case "mcsEaseInOut": + t/=d/2; + if(t<1) return c/2*t*t*t + b; + t-=2; + return c/2*(t*t*t + 2) + b; + break; + case "easeOutSmooth": + t/=d; t--; + return -c * (t*t*t*t - 1) + b; + break; + case "easeOutStrong": + return c * ( -Math.pow( 2, -10 * t/d ) + 1 ) + b; + break; + case "easeOut": case "mcsEaseOut": default: + var ts=(t/=d)*t,tc=ts*t; + return b+c*(0.499999999999997*tc*ts + -2.5*ts*ts + 5.5*tc + -6.5*ts + 4*t); + } + } + }, + /* -------------------- */ + + + /* returns current time */ + _getTime:function(){ + if(window.performance && window.performance.now){ + return window.performance.now(); + }else{ + if(window.performance && window.performance.webkitNow){ + return window.performance.webkitNow(); + }else{ + if(Date.now){return Date.now();}else{return new Date().getTime();} + } + } + }, + /* -------------------- */ + + + /* stops a tween */ + _stopTween:function(){ + var el=this; + if(el._mcsid==null){return;} + if(!window.requestAnimationFrame){clearTimeout(el._mcsid); + }else{window.cancelAnimationFrame(el._mcsid);} + el._mcsid=null; + el._mcsstop=1; + }, + /* -------------------- */ + + + /* deletes a property (avoiding the exception thrown by IE) */ + _delete:function(p){ + try{delete p;}catch(e){p=null;} + }, + /* -------------------- */ + + + /* detects left mouse button */ + _mouseBtnLeft:function(e){ + return !(e.which && e.which!==1); + }, + /* -------------------- */ + + + /* detects if pointer type event is touch */ + _pointerTouch:function(e){ + var t=e.originalEvent.pointerType; + return !(t && t!=="touch" && t!==2); + }, + /* -------------------- */ + + + /* checks if value is numeric */ + _isNumeric:function(val){ + return !isNaN(parseFloat(val)) && isFinite(val); + } + /* -------------------- */ + + }; + + + + + + /* + ---------------------------------------- + PLUGIN SETUP + ---------------------------------------- + */ + + /* plugin constructor functions */ + $.fn[pluginNS]=function(method){ /* usage: $(selector).mCustomScrollbar(); */ + if(methods[method]){ + return methods[method].apply(this,Array.prototype.slice.call(arguments,1)); + }else if(typeof method==="object" || !method){ + return methods.init.apply(this,arguments); + }else{ + $.error("Method "+method+" does not exist"); + } + }; + $[pluginNS]=function(method){ /* usage: $.mCustomScrollbar(); */ + if(methods[method]){ + return methods[method].apply(this,Array.prototype.slice.call(arguments,1)); + }else if(typeof method==="object" || !method){ + return methods.init.apply(this,arguments); + }else{ + $.error("Method "+method+" does not exist"); + } + }; + + /* + allow setting plugin default options. + usage: $.mCustomScrollbar.defaults.scrollInertia=500; + to apply any changed default options on default selectors (below), use inside document ready fn + e.g.: $(document).ready(function(){ $.mCustomScrollbar.defaults.scrollInertia=500; }); + */ + $[pluginNS].defaults=defaults; + + /* + add window object (window.mCustomScrollbar) + usage: if(window.mCustomScrollbar){console.log("custom scrollbar plugin loaded");} + */ + window[pluginNS]=true; + + $(window).load(function(){ + $(defaultSelector)[pluginNS](); /* add scrollbars automatically on default selector */ + }); + +}))}(window,document)); diff --git a/static/client/js/jquery.mCustomScrollbar.min.js b/static/client/js/jquery.mCustomScrollbar.min.js new file mode 100644 index 00000000..9f15d4e5 --- /dev/null +++ b/static/client/js/jquery.mCustomScrollbar.min.js @@ -0,0 +1,2 @@ +/* == malihu jquery custom scrollbar plugin == Version: 3.0.4, License: MIT License (MIT) */ +(function(b,a,c){(function(d){if(typeof define==="function"&&define.amd){define(["jquery","jquery-mousewheel"],d)}else{d(jQuery)}}(function(j){var g="mCustomScrollbar",d="mCS",m=".mCustomScrollbar",h={setWidth:false,setHeight:false,setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:true,autoHideScrollbar:false,autoExpandScrollbar:false,alwaysShowScrollbar:0,snapAmount:null,snapOffset:0,mouseWheel:{enable:true,scrollAmount:"auto",axis:"y",preventDefault:false,deltaFactor:"auto",normalizeDelta:false,invert:false,disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{enable:false,scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:true,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoExpandHorizontalScroll:false,autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:true,updateOnImageLoad:true,updateOnSelectorChange:false},theme:"light",callbacks:{onScrollStart:false,onScroll:false,onTotalScroll:false,onTotalScrollBack:false,whileScrolling:false,onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:true,onOverflowY:false,onOverflowX:false,onOverflowYNone:false,onOverflowXNone:false},live:false,liveSelector:null},l=0,o={},f=function(p){if(o[p]){clearTimeout(o[p]);i._delete.call(null,o[p])}},k=(b.attachEvent&&!b.addEventListener)?1:0,n=false,e={init:function(q){var q=j.extend(true,{},h,q),p=i._selector.call(this);if(q.live){var s=q.liveSelector||this.selector||m,r=j(s);if(q.live==="off"){f(s);return}o[s]=setTimeout(function(){r.mCustomScrollbar(q);if(q.live==="once"&&r.length){f(s)}},500)}else{f(s)}q.setWidth=(q.set_width)?q.set_width:q.setWidth;q.setHeight=(q.set_height)?q.set_height:q.setHeight;q.axis=(q.horizontalScroll)?"x":i._findAxis.call(null,q.axis);q.scrollInertia=q.scrollInertia>0&&q.scrollInertia<17?17:q.scrollInertia;if(typeof q.mouseWheel!=="object"&&q.mouseWheel==true){q.mouseWheel={enable:true,scrollAmount:"auto",axis:"y",preventDefault:false,deltaFactor:"auto",normalizeDelta:false,invert:false}}q.mouseWheel.scrollAmount=!q.mouseWheelPixels?q.mouseWheel.scrollAmount:q.mouseWheelPixels;q.mouseWheel.normalizeDelta=!q.advanced.normalizeMouseWheelDelta?q.mouseWheel.normalizeDelta:q.advanced.normalizeMouseWheelDelta;q.scrollButtons.scrollType=i._findScrollButtonsType.call(null,q.scrollButtons.scrollType);i._theme.call(null,q);return j(p).each(function(){var u=j(this);if(!u.data(d)){u.data(d,{idx:++l,opt:q,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:false,tweenRunning:false,sequential:{},langDir:u.css("direction"),cbOffsets:null,trigger:null});var w=u.data(d).opt,v=u.data("mcs-axis"),t=u.data("mcs-scrollbar-position"),x=u.data("mcs-theme");if(v){w.axis=v}if(t){w.scrollbarPosition=t}if(x){w.theme=x;i._theme.call(null,w)}i._pluginMarkup.call(this);e.update.call(null,u)}})},update:function(q){var p=q||i._selector.call(this);return j(p).each(function(){var t=j(this);if(t.data(d)){var v=t.data(d),u=v.opt,r=j("#mCSB_"+v.idx+"_container"),s=[j("#mCSB_"+v.idx+"_dragger_vertical"),j("#mCSB_"+v.idx+"_dragger_horizontal")];if(!r.length){return}if(v.tweenRunning){i._stop.call(null,t)}if(t.hasClass("mCS_disabled")){t.removeClass("mCS_disabled")}if(t.hasClass("mCS_destroyed")){t.removeClass("mCS_destroyed")}i._maxHeight.call(this);i._expandContentHorizontally.call(this);if(u.axis!=="y"&&!u.advanced.autoExpandHorizontalScroll){r.css("width",i._contentWidth(r.children()))}v.overflowed=i._overflowed.call(this);i._scrollbarVisibility.call(this);if(u.autoDraggerLength){i._setDraggerLength.call(this)}i._scrollRatio.call(this);i._bindEvents.call(this);var w=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];if(u.axis!=="x"){if(!v.overflowed[0]){i._resetContentPosition.call(this);if(u.axis==="y"){i._unbindEvents.call(this)}else{if(u.axis==="yx"&&v.overflowed[1]){i._scrollTo.call(this,t,w[1].toString(),{dir:"x",dur:0,overwrite:"none"})}}}else{if(s[0].height()>s[0].parent().height()){i._resetContentPosition.call(this)}else{i._scrollTo.call(this,t,w[0].toString(),{dir:"y",dur:0,overwrite:"none"});v.contentReset.y=null}}}if(u.axis!=="y"){if(!v.overflowed[1]){i._resetContentPosition.call(this);if(u.axis==="x"){i._unbindEvents.call(this)}else{if(u.axis==="yx"&&v.overflowed[0]){i._scrollTo.call(this,t,w[0].toString(),{dir:"y",dur:0,overwrite:"none"})}}}else{if(s[1].width()>s[1].parent().width()){i._resetContentPosition.call(this)}else{i._scrollTo.call(this,t,w[1].toString(),{dir:"x",dur:0,overwrite:"none"});v.contentReset.x=null}}}i._autoUpdate.call(this)}})},scrollTo:function(r,q){if(typeof r=="undefined"||r==null){return}var p=i._selector.call(this);return j(p).each(function(){var u=j(this);if(u.data(d)){var x=u.data(d),w=x.opt,v={trigger:"external",scrollInertia:w.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:false,timeout:60,callbacks:true,onStart:true,onUpdate:true,onComplete:true},s=j.extend(true,{},v,q),y=i._arr.call(this,r),t=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;y[0]=i._to.call(this,y[0],"y");y[1]=i._to.call(this,y[1],"x");if(s.moveDragger){y[0]*=x.scrollRatio.y;y[1]*=x.scrollRatio.x}s.dur=t;setTimeout(function(){if(y[0]!==null&&typeof y[0]!=="undefined"&&w.axis!=="x"&&x.overflowed[0]){s.dir="y";s.overwrite="all";i._scrollTo.call(this,u,y[0].toString(),s)}if(y[1]!==null&&typeof y[1]!=="undefined"&&w.axis!=="y"&&x.overflowed[1]){s.dir="x";s.overwrite="none";i._scrollTo.call(this,u,y[1].toString(),s)}},s.timeout)}})},stop:function(){var p=i._selector.call(this);return j(p).each(function(){var q=j(this);if(q.data(d)){i._stop.call(null,q)}})},disable:function(q){var p=i._selector.call(this);return j(p).each(function(){var r=j(this);if(r.data(d)){var t=r.data(d),s=t.opt;i._autoUpdate.call(this,"remove");i._unbindEvents.call(this);if(q){i._resetContentPosition.call(this)}i._scrollbarVisibility.call(this,true);r.addClass("mCS_disabled")}})},destroy:function(){var p=i._selector.call(this);return j(p).each(function(){var s=j(this);if(s.data(d)){var u=s.data(d),t=u.opt,q=j("#mCSB_"+u.idx),r=j("#mCSB_"+u.idx+"_container"),v=j(".mCSB_"+u.idx+"_scrollbar");if(t.live){f(p)}i._autoUpdate.call(this,"remove");i._unbindEvents.call(this);i._resetContentPosition.call(this);s.removeData(d);i._delete.call(null,this.mcs);v.remove();q.replaceWith(r.contents());s.removeClass(g+" _"+d+"_"+u.idx+" mCS-autoHide mCS-dir-rtl mCS_no_scrollbar mCS_disabled").addClass("mCS_destroyed")}})}},i={_selector:function(){return(typeof j(this)!=="object"||j(this).length<1)?m:this},_theme:function(s){var r=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],q=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],p=["minimal","minimal-dark"],u=["minimal","minimal-dark"],t=["minimal","minimal-dark"];s.autoDraggerLength=j.inArray(s.theme,r)>-1?false:s.autoDraggerLength;s.autoExpandScrollbar=j.inArray(s.theme,q)>-1?false:s.autoExpandScrollbar;s.scrollButtons.enable=j.inArray(s.theme,p)>-1?false:s.scrollButtons.enable;s.autoHideScrollbar=j.inArray(s.theme,u)>-1?true:s.autoHideScrollbar;s.scrollbarPosition=j.inArray(s.theme,t)>-1?"outside":s.scrollbarPosition},_findAxis:function(p){return(p==="yx"||p==="xy"||p==="auto")?"yx":(p==="x"||p==="horizontal")?"x":"y"},_findScrollButtonsType:function(p){return(p==="stepped"||p==="pixels"||p==="step"||p==="click")?"stepped":"stepless"},_pluginMarkup:function(){var y=j(this),x=y.data(d),r=x.opt,t=r.autoExpandScrollbar?" mCSB_scrollTools_onDrag_expand":"",B=["
        ","
        "],u=r.axis==="yx"?"mCSB_vertical_horizontal":r.axis==="x"?"mCSB_horizontal":"mCSB_vertical",w=r.axis==="yx"?B[0]+B[1]:r.axis==="x"?B[1]:B[0],v=r.axis==="yx"?"
        ":"",s=r.autoHideScrollbar?" mCS-autoHide":"",p=(r.axis!=="x"&&x.langDir==="rtl")?" mCS-dir-rtl":"";if(r.setWidth){y.css("width",r.setWidth)}if(r.setHeight){y.css("height",r.setHeight)}r.setLeft=(r.axis!=="y"&&x.langDir==="rtl")?"989999px":r.setLeft;y.addClass(g+" _"+d+"_"+x.idx+s+p).wrapInner("
        ");var q=j("#mCSB_"+x.idx),z=j("#mCSB_"+x.idx+"_container");if(r.axis!=="y"&&!r.advanced.autoExpandHorizontalScroll){z.css("width",i._contentWidth(z.children()))}if(r.scrollbarPosition==="outside"){if(y.css("position")==="static"){y.css("position","relative")}y.css("overflow","visible");q.addClass("mCSB_outside").after(w)}else{q.addClass("mCSB_inside").append(w);z.wrap(v)}i._scrollButtons.call(this);var A=[j("#mCSB_"+x.idx+"_dragger_vertical"),j("#mCSB_"+x.idx+"_dragger_horizontal")];A[0].css("min-height",A[0].height());A[1].css("min-width",A[1].width())},_contentWidth:function(p){return Math.max.apply(Math,p.map(function(){return j(this).outerWidth(true)}).get())},_expandContentHorizontally:function(){var q=j(this),s=q.data(d),r=s.opt,p=j("#mCSB_"+s.idx+"_container");if(r.advanced.autoExpandHorizontalScroll&&r.axis!=="y"){p.css({position:"absolute",width:"auto"}).wrap("
        ").css({width:(Math.ceil(p[0].getBoundingClientRect().right+0.4)-Math.floor(p[0].getBoundingClientRect().left)),position:"relative"}).unwrap()}},_scrollButtons:function(){var s=j(this),u=s.data(d),t=u.opt,q=j(".mCSB_"+u.idx+"_scrollbar:first"),r=["","","",""],p=[(t.axis==="x"?r[2]:r[0]),(t.axis==="x"?r[3]:r[1]),r[2],r[3]];if(t.scrollButtons.enable){q.prepend(p[0]).append(p[1]).next(".mCSB_scrollTools").prepend(p[2]).append(p[3])}},_maxHeight:function(){var t=j(this),w=t.data(d),v=w.opt,r=j("#mCSB_"+w.idx),q=t.css("max-height"),s=q.indexOf("%")!==-1,p=t.css("box-sizing");if(q!=="none"){var u=s?t.parent().height()*parseInt(q)/100:parseInt(q);if(p==="border-box"){u-=((t.innerHeight()-t.height())+(t.outerHeight()-t.innerHeight()))}r.css("max-height",Math.round(u))}},_setDraggerLength:function(){var u=j(this),s=u.data(d),p=j("#mCSB_"+s.idx),v=j("#mCSB_"+s.idx+"_container"),y=[j("#mCSB_"+s.idx+"_dragger_vertical"),j("#mCSB_"+s.idx+"_dragger_horizontal")],t=[p.height()/v.outerHeight(false),p.width()/v.outerWidth(false)],q=[parseInt(y[0].css("min-height")),Math.round(t[0]*y[0].parent().height()),parseInt(y[1].css("min-width")),Math.round(t[1]*y[1].parent().width())],r=k&&(q[1]q.height(),p>q.width()]},_resetContentPosition:function(){var t=j(this),v=t.data(d),u=v.opt,q=j("#mCSB_"+v.idx),r=j("#mCSB_"+v.idx+"_container"),s=[j("#mCSB_"+v.idx+"_dragger_vertical"),j("#mCSB_"+v.idx+"_dragger_horizontal")];i._stop(t);if((u.axis!=="x"&&!v.overflowed[0])||(u.axis==="y"&&v.overflowed[0])){s[0].add(r).css("top",0);i._scrollTo(t,"_resetY")}if((u.axis!=="y"&&!v.overflowed[1])||(u.axis==="x"&&v.overflowed[1])){var p=dx=0;if(v.langDir==="rtl"){p=q.width()-r.outerWidth(false);dx=Math.abs(p/v.scrollRatio.x)}r.css("left",p);s[1].css("left",dx);i._scrollTo(t,"_resetX")}},_bindEvents:function(){var r=j(this),t=r.data(d),s=t.opt;if(!t.bindEvents){i._draggable.call(this);if(s.contentTouchScroll){i._contentDraggable.call(this)}if(s.mouseWheel.enable){function q(){p=setTimeout(function(){if(!j.event.special.mousewheel){q()}else{clearTimeout(p);i._mousewheel.call(r[0])}},1000)}var p;q()}i._draggerRail.call(this);i._wrapperScroll.call(this);if(s.advanced.autoScrollOnFocus){i._focus.call(this)}if(s.scrollButtons.enable){i._buttons.call(this)}if(s.keyboard.enable){i._keyboard.call(this)}t.bindEvents=true}},_unbindEvents:function(){var s=j(this),t=s.data(d),p=d+"_"+t.idx,u=".mCSB_"+t.idx+"_scrollbar",r=j("#mCSB_"+t.idx+",#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,"+u+" .mCSB_draggerContainer,#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal,"+u+">a"),q=j("#mCSB_"+t.idx+"_container");if(t.bindEvents){j(a).unbind("."+p);r.each(function(){j(this).unbind("."+p)});clearTimeout(s[0]._focusTimeout);i._delete.call(null,s[0]._focusTimeout);clearTimeout(t.sequential.step);i._delete.call(null,t.sequential.step);clearTimeout(q[0].onCompleteTimeout);i._delete.call(null,q[0].onCompleteTimeout);t.bindEvents=false}},_scrollbarVisibility:function(q){var t=j(this),v=t.data(d),u=v.opt,p=j("#mCSB_"+v.idx+"_container_wrapper"),r=p.length?p:j("#mCSB_"+v.idx+"_container"),w=[j("#mCSB_"+v.idx+"_scrollbar_vertical"),j("#mCSB_"+v.idx+"_scrollbar_horizontal")],s=[w[0].find(".mCSB_dragger"),w[1].find(".mCSB_dragger")];if(u.axis!=="x"){if(v.overflowed[0]&&!q){w[0].add(s[0]).add(w[0].children("a")).css("display","block");r.removeClass("mCS_no_scrollbar_y mCS_y_hidden")}else{if(u.alwaysShowScrollbar){if(u.alwaysShowScrollbar!==2){s[0].add(w[0].children("a")).css("display","none")}r.removeClass("mCS_y_hidden")}else{w[0].css("display","none");r.addClass("mCS_y_hidden")}r.addClass("mCS_no_scrollbar_y")}}if(u.axis!=="y"){if(v.overflowed[1]&&!q){w[1].add(s[1]).add(w[1].children("a")).css("display","block");r.removeClass("mCS_no_scrollbar_x mCS_x_hidden")}else{if(u.alwaysShowScrollbar){if(u.alwaysShowScrollbar!==2){s[1].add(w[1].children("a")).css("display","none")}r.removeClass("mCS_x_hidden")}else{w[1].css("display","none");r.addClass("mCS_x_hidden")}r.addClass("mCS_no_scrollbar_x")}}if(!v.overflowed[0]&&!v.overflowed[1]){t.addClass("mCS_no_scrollbar")}else{t.removeClass("mCS_no_scrollbar")}},_coordinates:function(q){var p=q.type;switch(p){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return[q.originalEvent.pageY,q.originalEvent.pageX];break;case"touchstart":case"touchmove":case"touchend":var r=q.originalEvent.touches[0]||q.originalEvent.changedTouches[0];return[r.pageY,r.pageX];break;default:return[q.pageY,q.pageX]}},_draggable:function(){var u=j(this),s=u.data(d),p=s.opt,r=d+"_"+s.idx,t=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],v=j("#mCSB_"+s.idx+"_container"),w=j("#"+t[0]+",#"+t[1]),A,y,z;w.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(E){E.stopImmediatePropagation();E.preventDefault();if(!i._mouseBtnLeft(E)){return}n=true;if(k){a.onselectstart=function(){return false}}x(false);i._stop(u);A=j(this);var F=A.offset(),G=i._coordinates(E)[0]-F.top,B=i._coordinates(E)[1]-F.left,D=A.height()+F.top,C=A.width()+F.left;if(G0&&B0){y=G;z=B}i._onDragClasses(A,"active",p.autoExpandScrollbar)}).bind("touchmove."+r,function(C){C.stopImmediatePropagation();C.preventDefault();var D=A.offset(),E=i._coordinates(C)[0]-D.top,B=i._coordinates(C)[1]-D.left;q(y,z,E,B)});j(a).bind("mousemove."+r+" pointermove."+r+" MSPointerMove."+r,function(C){if(A){var D=A.offset(),E=i._coordinates(C)[0]-D.top,B=i._coordinates(C)[1]-D.left;if(y===E){return}q(y,z,E,B)}}).add(w).bind("mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(B){if(A){i._onDragClasses(A,"active",p.autoExpandScrollbar);A=null}n=false;if(k){a.onselectstart=null}x(true)});function x(B){var C=v.find("iframe");if(!C.length){return}var D=!B?"none":"auto";C.css("pointer-events",D)}function q(D,E,G,B){v[0].idleTimer=p.scrollInertia<233?250:0;if(A.attr("id")===t[1]){var C="x",F=((A[0].offsetLeft-E)+B)*s.scrollRatio.x}else{var C="y",F=((A[0].offsetTop-D)+G)*s.scrollRatio.y}i._scrollTo(u,F.toString(),{dir:C,drag:true})}},_contentDraggable:function(){var y=j(this),K=y.data(d),I=K.opt,F=d+"_"+K.idx,v=j("#mCSB_"+K.idx),z=j("#mCSB_"+K.idx+"_container"),w=[j("#mCSB_"+K.idx+"_dragger_vertical"),j("#mCSB_"+K.idx+"_dragger_horizontal")],E,G,L,M,C=[],D=[],H,A,u,t,J,x,r=0,q,s=I.axis==="yx"?"none":"all";z.bind("touchstart."+F+" pointerdown."+F+" MSPointerDown."+F,function(N){if(!i._pointerTouch(N)||n){return}var O=z.offset();E=i._coordinates(N)[0]-O.top;G=i._coordinates(N)[1]-O.left}).bind("touchmove."+F+" pointermove."+F+" MSPointerMove."+F,function(Q){if(!i._pointerTouch(Q)||n){return}Q.stopImmediatePropagation();A=i._getTime();var P=v.offset(),S=i._coordinates(Q)[0]-P.top,U=i._coordinates(Q)[1]-P.left,R="mcsLinearOut";C.push(S);D.push(U);if(K.overflowed[0]){var O=w[0].parent().height()-w[0].height(),T=((E-S)>0&&(S-E)>-(O*K.scrollRatio.y))}if(K.overflowed[1]){var N=w[1].parent().width()-w[1].width(),V=((G-U)>0&&(U-G)>-(N*K.scrollRatio.x))}if(T||V){Q.preventDefault()}x=I.axis==="yx"?[(E-S),(G-U)]:I.axis==="x"?[null,(G-U)]:[(E-S),null];z[0].idleTimer=250;if(K.overflowed[0]){B(x[0],r,R,"y","all",true)}if(K.overflowed[1]){B(x[1],r,R,"x",s,true)}});v.bind("touchstart."+F+" pointerdown."+F+" MSPointerDown."+F,function(N){if(!i._pointerTouch(N)||n){return}N.stopImmediatePropagation();i._stop(y);H=i._getTime();var O=v.offset();L=i._coordinates(N)[0]-O.top;M=i._coordinates(N)[1]-O.left;C=[];D=[]}).bind("touchend."+F+" pointerup."+F+" MSPointerUp."+F,function(P){if(!i._pointerTouch(P)||n){return}P.stopImmediatePropagation();u=i._getTime();var N=v.offset(),T=i._coordinates(P)[0]-N.top,V=i._coordinates(P)[1]-N.left;if((u-A)>30){return}J=1000/(u-H);var Q="mcsEaseOut",R=J<2.5,W=R?[C[C.length-2],D[D.length-2]]:[0,0];t=R?[(T-W[0]),(V-W[1])]:[T-L,V-M];var O=[Math.abs(t[0]),Math.abs(t[1])];J=R?[Math.abs(t[0]/4),Math.abs(t[1]/4)]:[J,J];var U=[Math.abs(z[0].offsetTop)-(t[0]*p((O[0]/J[0]),J[0])),Math.abs(z[0].offsetLeft)-(t[1]*p((O[1]/J[1]),J[1]))];x=I.axis==="yx"?[U[0],U[1]]:I.axis==="x"?[null,U[1]]:[U[0],null];q=[(O[0]*4)+I.scrollInertia,(O[1]*4)+I.scrollInertia];var S=parseInt(I.contentTouchScroll)||0;x[0]=O[0]>S?x[0]:0;x[1]=O[1]>S?x[1]:0;if(K.overflowed[0]){B(x[0],q[0],Q,"y",s,false)}if(K.overflowed[1]){B(x[1],q[1],Q,"x",s,false)}});function p(P,N){var O=[N*1.5,N*2,N/1.5,N/2];if(P>90){return N>4?O[0]:O[3]}else{if(P>60){return N>3?O[3]:O[2]}else{if(P>30){return N>8?O[1]:N>6?O[0]:N>4?N:O[2]}else{return N>8?N:O[3]}}}}function B(P,R,S,O,N,Q){if(!P){return}i._scrollTo(y,P.toString(),{dur:R,scrollEasing:S,dir:O,overwrite:N,drag:Q})}},_mousewheel:function(){var w=j(this),v=w.data(d);if(v){var p=v.opt,s=d+"_"+v.idx,q=j("#mCSB_"+v.idx),x=[j("#mCSB_"+v.idx+"_dragger_vertical"),j("#mCSB_"+v.idx+"_dragger_horizontal")],t=j("#mCSB_"+v.idx+"_container").find("iframe"),r=q;if(t.length){t.each(function(){var y=this;if(u(y)){r=r.add(j(y).contents().find("body"))}})}r.bind("mousewheel."+s,function(C,G){i._stop(w);if(i._disableMousewheel(w,C.target)){return}var E=p.mouseWheel.deltaFactor!=="auto"?parseInt(p.mouseWheel.deltaFactor):(k&&C.deltaFactor<100)?100:C.deltaFactor||100;if(p.axis==="x"||p.mouseWheel.axis==="x"){var z="x",F=[Math.round(E*v.scrollRatio.x),parseInt(p.mouseWheel.scrollAmount)],B=p.mouseWheel.scrollAmount!=="auto"?F[1]:F[0]>=q.width()?q.width()*0.9:F[0],H=Math.abs(j("#mCSB_"+v.idx+"_container")[0].offsetLeft),D=x[1][0].offsetLeft,A=x[1].parent().width()-x[1].width(),y=C.deltaX||C.deltaY||G}else{var z="y",F=[Math.round(E*v.scrollRatio.y),parseInt(p.mouseWheel.scrollAmount)],B=p.mouseWheel.scrollAmount!=="auto"?F[1]:F[0]>=q.height()?q.height()*0.9:F[0],H=Math.abs(j("#mCSB_"+v.idx+"_container")[0].offsetTop),D=x[0][0].offsetTop,A=x[0].parent().height()-x[0].height(),y=C.deltaY||G}if((z==="y"&&!v.overflowed[0])||(z==="x"&&!v.overflowed[1])){return}if(p.mouseWheel.invert){y=-y}if(p.mouseWheel.normalizeDelta){y=y<0?-1:1}if((y>0&&D!==0)||(y<0&&D!==A)||p.mouseWheel.preventDefault){C.stopImmediatePropagation();C.preventDefault()}i._scrollTo(w,(H-(y*B)).toString(),{dir:z})})}function u(z){var y=null;try{var B=z.contentDocument||z.contentWindow.document;y=B.body.innerHTML}catch(A){}return(y!==null)}},_disableMousewheel:function(r,t){var p=t.nodeName.toLowerCase(),q=r.data(d).opt.mouseWheel.disableOver,s=["select","textarea"];return j.inArray(p,q)>-1&&!(j.inArray(p,s)>-1&&!j(t).is(":focus"))},_draggerRail:function(){var s=j(this),t=s.data(d),q=d+"_"+t.idx,r=j("#mCSB_"+t.idx+"_container"),u=r.parent(),p=j(".mCSB_"+t.idx+"_scrollbar .mCSB_draggerContainer");p.bind("touchstart."+q+" pointerdown."+q+" MSPointerDown."+q,function(v){n=true}).bind("touchend."+q+" pointerup."+q+" MSPointerUp."+q,function(v){n=false}).bind("click."+q,function(z){if(j(z.target).hasClass("mCSB_draggerContainer")||j(z.target).hasClass("mCSB_draggerRail")){i._stop(s);var w=j(this),y=w.find(".mCSB_dragger");if(w.parent(".mCSB_scrollTools_horizontal").length>0){if(!t.overflowed[1]){return}var v="x",x=z.pageX>y.offset().left?-1:1,A=Math.abs(r[0].offsetLeft)-(x*(u.width()*0.9))}else{if(!t.overflowed[0]){return}var v="y",x=z.pageY>y.offset().top?-1:1,A=Math.abs(r[0].offsetTop)-(x*(u.height()*0.9))}i._scrollTo(s,A.toString(),{dir:v,scrollEasing:"mcsEaseInOut"})}})},_focus:function(){var r=j(this),t=r.data(d),s=t.opt,p=d+"_"+t.idx,q=j("#mCSB_"+t.idx+"_container"),u=q.parent();q.bind("focusin."+p,function(x){var w=j(a.activeElement),y=q.find(".mCustomScrollBox").length,v=0;if(!w.is(s.advanced.autoScrollOnFocus)){return}i._stop(r);clearTimeout(r[0]._focusTimeout);r[0]._focusTimer=y?(v+17)*y:0;r[0]._focusTimeout=setTimeout(function(){var C=[w.offset().top-q.offset().top,w.offset().left-q.offset().left],B=[q[0].offsetTop,q[0].offsetLeft],z=[(B[0]+C[0]>=0&&B[0]+C[0]=0&&B[0]+C[1]a");q.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(z){z.preventDefault();if(!i._mouseBtnLeft(z)){return}var y=j(this).attr("class");p.type=v.scrollButtons.scrollType;switch(z.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if(p.type==="stepped"){return}n=true;w.tweenRunning=false;x("on",y);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if(p.type==="stepped"){return}n=false;if(p.dir){x("off",y)}break;case"click":if(p.type!=="stepped"||w.tweenRunning){return}x("on",y);break}function x(A,B){p.scrollAmount=v.snapAmount||v.scrollButtons.scrollAmount;i._sequentialScroll.call(this,u,A,B)}})},_keyboard:function(){var u=j(this),t=u.data(d),q=t.opt,x=t.sequential,s=d+"_"+t.idx,r=j("#mCSB_"+t.idx),w=j("#mCSB_"+t.idx+"_container"),p=w.parent(),v="input,textarea,select,datalist,keygen,[contenteditable='true']";r.attr("tabindex","0").bind("blur."+s+" keydown."+s+" keyup."+s,function(D){switch(D.type){case"blur":if(t.tweenRunning&&x.dir){y("off",null)}break;case"keydown":case"keyup":var A=D.keyCode?D.keyCode:D.which,B="on";if((q.axis!=="x"&&(A===38||A===40))||(q.axis!=="y"&&(A===37||A===39))){if(((A===38||A===40)&&!t.overflowed[0])||((A===37||A===39)&&!t.overflowed[1])){return}if(D.type==="keyup"){B="off"}if(!j(a.activeElement).is(v)){D.preventDefault();D.stopImmediatePropagation();y(B,A)}}else{if(A===33||A===34){if(t.overflowed[0]||t.overflowed[1]){D.preventDefault();D.stopImmediatePropagation()}if(D.type==="keyup"){i._stop(u);var C=A===34?-1:1;if(q.axis==="x"||(q.axis==="yx"&&t.overflowed[1]&&!t.overflowed[0])){var z="x",E=Math.abs(w[0].offsetLeft)-(C*(p.width()*0.9))}else{var z="y",E=Math.abs(w[0].offsetTop)-(C*(p.height()*0.9))}i._scrollTo(u,E.toString(),{dir:z,scrollEasing:"mcsEaseInOut"})}}else{if(A===35||A===36){if(!j(a.activeElement).is(v)){if(t.overflowed[0]||t.overflowed[1]){D.preventDefault();D.stopImmediatePropagation()}if(D.type==="keyup"){if(q.axis==="x"||(q.axis==="yx"&&t.overflowed[1]&&!t.overflowed[0])){var z="x",E=A===35?Math.abs(p.width()-w.outerWidth(false)):0}else{var z="y",E=A===35?Math.abs(p.height()-w.outerHeight(false)):0}i._scrollTo(u,E.toString(),{dir:z,scrollEasing:"mcsEaseInOut"})}}}}}break}function y(F,G){x.type=q.keyboard.scrollType;x.scrollAmount=q.snapAmount||q.keyboard.scrollAmount;if(x.type==="stepped"&&t.tweenRunning){return}i._sequentialScroll.call(this,u,F,G)}})},_sequentialScroll:function(r,u,s){var w=r.data(d),q=w.opt,y=w.sequential,x=j("#mCSB_"+w.idx+"_container"),p=y.type==="stepped"?true:false;switch(u){case"on":y.dir=[(s==="mCSB_buttonRight"||s==="mCSB_buttonLeft"||s===39||s===37?"x":"y"),(s==="mCSB_buttonUp"||s==="mCSB_buttonLeft"||s===38||s===37?-1:1)];i._stop(r);if(i._isNumeric(s)&&y.type==="stepped"){return}t(p);break;case"off":v();if(p||(w.tweenRunning&&y.dir)){t(true)}break}function t(z){var F=y.type!=="stepped",J=!z?1000/60:F?q.scrollInertia/1.5:q.scrollInertia,B=!z?2.5:F?7.5:40,I=[Math.abs(x[0].offsetTop),Math.abs(x[0].offsetLeft)],E=[w.scrollRatio.y>10?10:w.scrollRatio.y,w.scrollRatio.x>10?10:w.scrollRatio.x],C=y.dir[0]==="x"?I[1]+(y.dir[1]*(E[1]*B)):I[0]+(y.dir[1]*(E[0]*B)),H=y.dir[0]==="x"?I[1]+(y.dir[1]*parseInt(y.scrollAmount)):I[0]+(y.dir[1]*parseInt(y.scrollAmount)),G=y.scrollAmount!=="auto"?H:C,D=!z?"mcsLinear":F?"mcsLinearOut":"mcsEaseInOut",A=!z?false:true;if(z&&J<17){G=y.dir[0]==="x"?I[1]:I[0]}i._scrollTo(r,G.toString(),{dir:y.dir[0],scrollEasing:D,dur:J,onComplete:A});if(z){y.dir=false;return}clearTimeout(y.step);y.step=setTimeout(function(){t()},J)}function v(){clearTimeout(y.step);i._stop(r)}},_arr:function(r){var q=j(this).data(d).opt,p=[];if(typeof r==="function"){r=r()}if(!(r instanceof Array)){p[0]=r.y?r.y:r.x||q.axis==="x"?null:r;p[1]=r.x?r.x:r.y||q.axis==="y"?null:r}else{p=r.length>1?[r[0],r[1]]:q.axis==="x"?[null,r[0]]:[r[0],null]}if(typeof p[0]==="function"){p[0]=p[0]()}if(typeof p[1]==="function"){p[1]=p[1]()}return p},_to:function(v,w){if(v==null||typeof v=="undefined"){return}var C=j(this),B=C.data(d),u=B.opt,D=j("#mCSB_"+B.idx+"_container"),r=D.parent(),F=typeof v;if(!w){w=u.axis==="x"?"x":"y"}var q=w==="x"?D.outerWidth(false):D.outerHeight(false),x=w==="x"?D.offset().left:D.offset().top,E=w==="x"?D[0].offsetLeft:D[0].offsetTop,z=w==="x"?"left":"top";switch(F){case"function":return v();break;case"object":if(v.nodeType){var A=w==="x"?j(v).offset().left:j(v).offset().top}else{if(v.jquery){if(!v.length){return}var A=w==="x"?v.offset().left:v.offset().top}}return A-x;break;case"string":case"number":if(i._isNumeric.call(null,v)){return Math.abs(v)}else{if(v.indexOf("%")!==-1){return Math.abs(q*parseInt(v)/100)}else{if(v.indexOf("-=")!==-1){return Math.abs(E-parseInt(v.split("-=")[1]))}else{if(v.indexOf("+=")!==-1){var s=(E+parseInt(v.split("+=")[1]));return s>=0?0:Math.abs(s)}else{if(v.indexOf("px")!==-1&&i._isNumeric.call(null,v.split("px")[0])){return Math.abs(v.split("px")[0])}else{if(v==="top"||v==="left"){return 0}else{if(v==="bottom"){return Math.abs(r.height()-D.outerHeight(false))}else{if(v==="right"){return Math.abs(r.width()-D.outerWidth(false))}else{if(v==="first"||v==="last"){var y=D.find(":"+v),A=w==="x"?j(y).offset().left:j(y).offset().top;return A-x}else{if(j(v).length){var A=w==="x"?j(v).offset().left:j(v).offset().top;return A-x}else{D.css(z,v);e.update.call(null,C[0]);return}}}}}}}}}}break}},_autoUpdate:function(q){var t=j(this),F=t.data(d),z=F.opt,v=j("#mCSB_"+F.idx+"_container");if(q){clearTimeout(v[0].autoUpdate);i._delete.call(null,v[0].autoUpdate);return}var s=v.parent(),p=[j("#mCSB_"+F.idx+"_scrollbar_vertical"),j("#mCSB_"+F.idx+"_scrollbar_horizontal")],D=function(){return[p[0].is(":visible")?p[0].outerHeight(true):0,p[1].is(":visible")?p[1].outerWidth(true):0]},E=y(),x,u=[v.outerHeight(false),v.outerWidth(false),s.height(),s.width(),D()[0],D()[1]],H,B=G(),w;C();function C(){clearTimeout(v[0].autoUpdate);v[0].autoUpdate=setTimeout(function(){if(z.advanced.updateOnSelectorChange){x=y();if(x!==E){r();E=x;return}}if(z.advanced.updateOnContentResize){H=[v.outerHeight(false),v.outerWidth(false),s.height(),s.width(),D()[0],D()[1]];if(H[0]!==u[0]||H[1]!==u[1]||H[2]!==u[2]||H[3]!==u[3]||H[4]!==u[4]||H[5]!==u[5]){r();u=H}}if(z.advanced.updateOnImageLoad){w=G();if(w!==B){v.find("img").each(function(){A(this.src)});B=w}}if(z.advanced.updateOnSelectorChange||z.advanced.updateOnContentResize||z.advanced.updateOnImageLoad){C()}},60)}function G(){var I=0;if(z.advanced.updateOnImageLoad){I=v.find("img").length}return I}function A(L){var I=new Image();function K(M,N){return function(){return N.apply(M,arguments)}}function J(){this.onload=null;r()}I.onload=K(I,J);I.src=L}function y(){if(z.advanced.updateOnSelectorChange===true){z.advanced.updateOnSelectorChange="*"}var I=0,J=v.find(z.advanced.updateOnSelectorChange);if(z.advanced.updateOnSelectorChange&&J.length>0){J.each(function(){I+=j(this).height()+j(this).width()})}return I}function r(){clearTimeout(v[0].autoUpdate);e.update.call(null,t[0])}},_snapAmount:function(r,p,q){return(Math.round(r/p)*p-q)},_stop:function(p){var r=p.data(d),q=j("#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal");q.each(function(){i._stopTween.call(this)})},_scrollTo:function(q,s,u){var I=q.data(d),E=I.opt,D={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:false,dur:E.scrollInertia,overwrite:"all",callbacks:true,onStart:true,onUpdate:true,onComplete:true},u=j.extend(D,u),G=[u.dur,(u.drag?0:u.dur)],v=j("#mCSB_"+I.idx),B=j("#mCSB_"+I.idx+"_container"),K=E.callbacks.onTotalScrollOffset?i._arr.call(q,E.callbacks.onTotalScrollOffset):[0,0],p=E.callbacks.onTotalScrollBackOffset?i._arr.call(q,E.callbacks.onTotalScrollBackOffset):[0,0];I.trigger=u.trigger;if(s==="_resetY"&&!I.contentReset.y){if(t("onOverflowYNone")){E.callbacks.onOverflowYNone.call(q[0])}I.contentReset.y=1}if(s==="_resetX"&&!I.contentReset.x){if(t("onOverflowXNone")){E.callbacks.onOverflowXNone.call(q[0])}I.contentReset.x=1}if(s==="_resetY"||s==="_resetX"){return}if((I.contentReset.y||!q[0].mcs)&&I.overflowed[0]){if(t("onOverflowY")){E.callbacks.onOverflowY.call(q[0])}I.contentReset.x=null}if((I.contentReset.x||!q[0].mcs)&&I.overflowed[1]){if(t("onOverflowX")){E.callbacks.onOverflowX.call(q[0])}I.contentReset.x=null}if(E.snapAmount){s=i._snapAmount(s,E.snapAmount,E.snapOffset)}switch(u.dir){case"x":var x=j("#mCSB_"+I.idx+"_dragger_horizontal"),z="left",C=B[0].offsetLeft,H=[v.width()-B.outerWidth(false),x.parent().width()-x.width()],r=[s,s===0?0:(s/I.scrollRatio.x)],L=K[1],J=p[1],A=L>0?L/I.scrollRatio.x:0,w=J>0?J/I.scrollRatio.x:0;break;case"y":var x=j("#mCSB_"+I.idx+"_dragger_vertical"),z="top",C=B[0].offsetTop,H=[v.height()-B.outerHeight(false),x.parent().height()-x.height()],r=[s,s===0?0:(s/I.scrollRatio.y)],L=K[0],J=p[0],A=L>0?L/I.scrollRatio.y:0,w=J>0?J/I.scrollRatio.y:0;break}if(r[1]<0||(r[0]===0&&r[1]===0)){r=[0,0]}else{if(r[1]>=H[1]){r=[H[0],H[1]]}else{r[0]=-r[0]}}if(!q[0].mcs){F()}clearTimeout(B[0].onCompleteTimeout);if(!I.tweenRunning&&((C===0&&r[0]>=0)||(C===H[0]&&r[0]<=H[0]))){return}i._tweenTo.call(null,x[0],z,Math.round(r[1]),G[1],u.scrollEasing);i._tweenTo.call(null,B[0],z,Math.round(r[0]),G[0],u.scrollEasing,u.overwrite,{onStart:function(){if(u.callbacks&&u.onStart&&!I.tweenRunning){if(t("onScrollStart")){F();E.callbacks.onScrollStart.call(q[0])}I.tweenRunning=true;i._onDragClasses(x);I.cbOffsets=y()}},onUpdate:function(){if(u.callbacks&&u.onUpdate){if(t("whileScrolling")){F();E.callbacks.whileScrolling.call(q[0])}}},onComplete:function(){if(u.callbacks&&u.onComplete){if(E.axis==="yx"){clearTimeout(B[0].onCompleteTimeout)}var M=B[0].idleTimer||0;B[0].onCompleteTimeout=setTimeout(function(){if(t("onScroll")){F();E.callbacks.onScroll.call(q[0])}if(t("onTotalScroll")&&r[1]>=H[1]-A&&I.cbOffsets[0]){F();E.callbacks.onTotalScroll.call(q[0])}if(t("onTotalScrollBack")&&r[1]<=w&&I.cbOffsets[1]){F();E.callbacks.onTotalScrollBack.call(q[0])}I.tweenRunning=false;B[0].idleTimer=0;i._onDragClasses(x,"hide")},M)}}});function t(M){return I&&E.callbacks[M]&&typeof E.callbacks[M]==="function"}function y(){return[E.callbacks.alwaysTriggerOffsets||C>=H[0]+L,E.callbacks.alwaysTriggerOffsets||C<=-J]}function F(){var O=[B[0].offsetTop,B[0].offsetLeft],P=[x[0].offsetTop,x[0].offsetLeft],M=[B.outerHeight(false),B.outerWidth(false)],N=[v.height(),v.width()];q[0].mcs={content:B,top:O[0],left:O[1],draggerTop:P[0],draggerLeft:P[1],topPct:Math.round((100*Math.abs(O[0]))/(Math.abs(M[0])-N[0])),leftPct:Math.round((100*Math.abs(O[1]))/(Math.abs(M[1])-N[1])),direction:u.dir}}},_tweenTo:function(r,u,s,q,B,t,K){var K=K||{},H=K.onStart||function(){},C=K.onUpdate||function(){},I=K.onComplete||function(){},z=i._getTime(),x,v=0,E=r.offsetTop,F=r.style,A;if(u==="left"){E=r.offsetLeft}var y=s-E;r._mcsstop=0;if(t!=="none"){D()}p();function J(){if(r._mcsstop){return}if(!v){H.call()}v=i._getTime()-z;G();if(v>=r._mcstime){r._mcstime=(v>r._mcstime)?v+x-(v-r._mcstime):v+x-1;if(r._mcstime0){r._mcscurrVal=w(r._mcstime,E,y,q,B);F[u]=Math.round(r._mcscurrVal)+"px"}else{F[u]=s+"px"}C.call()}function p(){x=1000/60;r._mcstime=v+x;A=(!b.requestAnimationFrame)?function(L){G();return setTimeout(L,0.01)}:b.requestAnimationFrame;r._mcsid=A(J)}function D(){if(r._mcsid==null){return}if(!b.requestAnimationFrame){clearTimeout(r._mcsid)}else{b.cancelAnimationFrame(r._mcsid)}r._mcsid=null}function w(N,M,R,Q,O){switch(O){case"linear":case"mcsLinear":return R*N/Q+M;break;case"mcsLinearOut":N/=Q;N--;return R*Math.sqrt(1-N*N)+M;break;case"easeInOutSmooth":N/=Q/2;if(N<1){return R/2*N*N+M}N--;return -R/2*(N*(N-2)-1)+M;break;case"easeInOutStrong":N/=Q/2;if(N<1){return R/2*Math.pow(2,10*(N-1))+M}N--;return R/2*(-Math.pow(2,-10*N)+2)+M;break;case"easeInOut":case"mcsEaseInOut":N/=Q/2;if(N<1){return R/2*N*N*N+M}N-=2;return R/2*(N*N*N+2)+M;break;case"easeOutSmooth":N/=Q;N--;return -R*(N*N*N*N-1)+M;break;case"easeOutStrong":return R*(-Math.pow(2,-10*N/Q)+1)+M;break;case"easeOut":case"mcsEaseOut":default:var P=(N/=Q)*N,L=P*N;return M+R*(0.499999999999997*L*P+-2.5*P*P+5.5*L+-6.5*P+4*N)}}},_getTime:function(){if(b.performance&&b.performance.now){return b.performance.now()}else{if(b.performance&&b.performance.webkitNow){return b.performance.webkitNow()}else{if(Date.now){return Date.now()}else{return new Date().getTime()}}}},_stopTween:function(){var p=this;if(p._mcsid==null){return}if(!b.requestAnimationFrame){clearTimeout(p._mcsid)}else{b.cancelAnimationFrame(p._mcsid)}p._mcsid=null;p._mcsstop=1},_delete:function(r){try{delete r}catch(q){r=null}},_mouseBtnLeft:function(p){return !(p.which&&p.which!==1)},_pointerTouch:function(q){var p=q.originalEvent.pointerType;return !(p&&p!=="touch"&&p!==2)},_isNumeric:function(p){return !isNaN(parseFloat(p))&&isFinite(p)}};j.fn[g]=function(p){if(e[p]){return e[p].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof p==="object"||!p){return e.init.apply(this,arguments)}else{j.error("Method "+p+" does not exist")}}};j[g]=function(p){if(e[p]){return e[p].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof p==="object"||!p){return e.init.apply(this,arguments)}else{j.error("Method "+p+" does not exist")}}};j[g].defaults=h;b[g]=true;j(b).load(function(){j(m)[g]()})}))}(window,document)); \ No newline at end of file diff --git a/static/client/js/jquery.mousewheel.min.js b/static/client/js/jquery.mousewheel.min.js new file mode 100644 index 00000000..fc07ba56 --- /dev/null +++ b/static/client/js/jquery.mousewheel.min.js @@ -0,0 +1,12 @@ +/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net) + * Licensed under the MIT License (LICENSE.txt). + * + * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. + * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. + * Thanks to: Seamus Leahy for adding deltaX and deltaY + * + * Version: 3.0.6 + * + * Requires: 1.2.2+ + */ +(function(a){function d(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)}var b=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=b.length;c;)a.event.fixHooks[b[--c]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],d,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery); diff --git a/static/client/js/jquery.phototag.js b/static/client/js/jquery.phototag.js new file mode 100644 index 00000000..ac378e4b --- /dev/null +++ b/static/client/js/jquery.phototag.js @@ -0,0 +1,631 @@ +/* + * jQuery PhotoTag plugin 1.3 + * + * Copyright (c) 2012 Karl Mendes + * http://karlmendes.com + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * + * Revision: + * Customized for Expomap +*/ +// Limit scope pollution from any deprecated API +(function() { + + var matched, browser; + +// Use of jQuery.browser is frowned upon. +// More details: http://api.jquery.com/jQuery.browser +// jQuery.uaMatch maintained for back-compat + jQuery.uaMatch = function( ua ) { + ua = ua.toLowerCase(); + + var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || + /(webkit)[ \/]([\w.]+)/.exec( ua ) || + /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || + /(msie) ([\w.]+)/.exec( ua ) || + ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || + []; + + return { + browser: match[ 1 ] || "", + version: match[ 2 ] || "0" + }; + }; + + matched = jQuery.uaMatch( navigator.userAgent ); + browser = {}; + + if ( matched.browser ) { + browser[ matched.browser ] = true; + browser.version = matched.version; + } + +// Chrome is Webkit, but Webkit is also Safari. + if ( browser.chrome ) { + browser.webkit = true; + } else if ( browser.webkit ) { + browser.safari = true; + } + + jQuery.browser = browser; + + jQuery.sub = function() { + function jQuerySub( selector, context ) { + return new jQuerySub.fn.init( selector, context ); + } + jQuery.extend( true, jQuerySub, this ); + jQuerySub.superclass = this; + jQuerySub.fn = jQuerySub.prototype = this(); + jQuerySub.fn.constructor = jQuerySub; + jQuerySub.sub = this.sub; + jQuerySub.fn.init = function init( selector, context ) { + if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { + context = jQuerySub( context ); + } + + return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); + }; + jQuerySub.fn.init.prototype = jQuerySub.fn; + var rootjQuerySub = jQuerySub(document); + return jQuerySub; + }; + +})(); +(function($) { + + $.fn.photoTag = function( options ){ + + var defaultOptions = { + //requestTagsUrl: '/photo/existing-tags/', + deleteTagsUrl: '/photo/delete-tag/', + addTagUrl: '/add-tag.php', + parametersForNewTag: { + name: { + parameterKey: 'name', + isAutocomplete: true, + label: 'Name' + } + }, + parametersForRequest : ['image-id','album-id'], + literals:{ + communicationProblem: 'Произошла ошибка. Изменения не сохранены.', + saveTag: 'Добавить', + cancelTag: '', + addNewTag: 'Отметить человека', + removeTag: 'X' + }, + tag: { + tagIdParameter: 'tag-id', + defaultWidth: 100, + defaultHeight: 100, + isResizable: true, + minWidth: 50, + minHeight: 50, + maxWidth: 150, + maxHeight: 150, + cssClass: 'photoTag-tag', + idPrefix: 'photoTag-tag_', + showDeleteLinkOnTag: true, + deleteLinkCssClass: 'photoTag-delete', + deleteLinkIdPrefix: 'photoTag-delete_', + flashAfterCreation: true, + newTagFormWidth: 170, + newTagFormClass: 'photoTag-newTagForm' + }, + imageWrapBox: { + cssClass: 'photoTag-wrap', + idPrefix: 'photoTag-wrap_', + addNewLinkIdPrefix: 'photoTag-add_', + controlPaneIdPrefix: 'photoTag-cpanel_', + showTagList: true, + tagListCssClass: 'photoTag-taglist', + tagListIdPrefix: 'photoTag-taglist_', + tagListRemoveItemIdPrefix: 'photoTag-removeTag', + canvasIdPrefix: 'photoTag-canvas_', + controlPanelHeight: 25 + }, + showAddTagLinks: true, + externalAddTagLinks: { + bind: true, + selector: ".addTag" + }, + isEnabledToEditTags: true, + manageError: 'internal function, user can bind a new one. function(response)', + beforeTagRequest: 'bind by user, function( parameters )' + }; + + var cache = { + tags: {} + }; + + var options = $.extend(true,defaultOptions,options); + + var getParametersForImage = function( imageElement ){ + var parameters = {}; + $.each(options.parametersForRequest,function( i, key){ + var parameterValue = imageElement.attr('data-'+key); + if(parameterValue) + parameters[key] = parameterValue; + }); + return parameters; + }; + function mover(elem){ + elem.parent().css({'overflow':'visible'}); + elem.parent().find('.utag-bot, .utag-top, .utag-right, .utag-left').show(); + elem.parent().find('.utag-bot').css({ + 'top': elem.parent().css('height') + }); + elem.parent().find('.utag-right').css({ + 'height': elem.parent().css('height'), + 'left': elem.parent().css('width') + }); + elem.parent().find('.utag-left').css({ + 'height': elem.parent().css('height') + }); + elem.parent().stop().animate({ opacity: 1.0 }, 500); + }; + function mleave(elem){ + + elem.parent().stop().animate({ opacity: 0.0 }, 500, function() { + elem.parent().css({'overflow':'hidden'}); + }); + elem.parent().find('.utag-bot, .utag-top, .utag-right, .utag-left').hide(); + }; + function moverie(elem){ + elem.css({'overflow':'visible'}); + elem.find('.utag-bot, .utag-top, .utag-right, .utag-left').show(); + elem.find('.utag-bot').css({ + 'top': elem.css('height') + }); + elem.find('.utag-right').css({ + 'height': elem.css('height'), + 'left': elem.css('width') + }); + elem.find('.utag-left').css({ + 'height': elem.css('height') + }); + elem.stop().animate({ opacity: 1.0 }, 500); + }; + function mleaveie(elem){ + + elem.stop().animate({ opacity: 0.0 }, 500, function() { + elem.css({'overflow':'hidden'}); + }); + elem.find('.utag-bot, .utag-top, .utag-right, .utag-left').hide(); + }; + function registerHighlightHovers() { + $('.highlight-tag').each(function() { + $(this).mouseenter( + function() { + moverie($('#photoTag-tag_'+$(this).attr('tag-id'))); + } + ).mouseleave( + function() { + mleaveie($('#photoTag-tag_'+$(this).attr('tag-id'))); + } + ); + }); + }; + + var manageError = function( response ){ + if( $.isFunction(options.manageError) ) + options.manageError(response); + else{ + if(response.message) + alert(response.message); + else + alert(options.literals.communicationProblem); + } + }; + + var registerEventsForDeleteLink = function( link, image ){ + link.click( + function(e){ + e.preventDefault(); + var tagId = link.attr('href').substring(1); + var parameters = getParametersForImage(image); + parameters[options.tag.tagIdParameter] = tagId; + $.getJSON(options.deleteTagsUrl,parameters, + function( data ){ + if(!data.result) + manageError(data); + } + ); + $('#' + options.tag.deleteLinkIdPrefix + tagId).parents().eq(1).remove(); + $('#' + options.imageWrapBox.tagListRemoveItemIdPrefix + tagId).parent().remove(); + //Удаляем запятую последнего элемента в списке: + var comma=$('span.comma'); + var hltag=$('a.highlight-tag'); + $('ul.photoTag-taglist li').last().find(comma).remove(); + $('ul.photoTag-taglist li').last().find(hltag).mouseover( + function() { + mover($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ).mouseleave( + function() { + mleave($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ); + return false; + } + ); + + }; + + + var registerEventsForAddTagLink = function( link, image, image_id ){ + $(link).click(function(e){ + e.preventDefault(); + if($('#' + options.tag.idPrefix + 'expo').length == 0){ + hideAllTags(image_id); + $('#' + options.imageWrapBox.idPrefix + image_id).append(createExpoTag(image)); + prepareExpoTagBox($('#' + options.tag.idPrefix + 'expo'),image,image_id); + } + }); + }; + + var dragOrResizeEventHandler = function( e, ui ){ + var $this = $(this); + var tagPosition = $(this).position(); + var x = tagPosition.left; + var y = tagPosition.top; + if($("#expoTagBoxForm")){ + $("#expoTagBoxForm").css({ + 'top':y, + 'left':x + $(this).width() + 10 + }); + }; + $('#photoTag-tag_expo .utag-right').css({ + 'height': $(this).height(), + 'left': $(this).width() + }); + $('#photoTag-tag_expo .utag-left').css({ + 'height': $(this).height() + }); + $('#photoTag-tag_expo .utag-bot').css({ + 'top': $(this).height() + }); + + + } + var dragStartHandler = function( e, ui ) { + if($("#expoTagBoxForm")){ + $("#expoTagBoxForm").css({ + 'display':'none' + }); + }; + }; + var dragStopHandler = function( e, ui ) { + var $this = $(this); + var tagPosition = $(this).position(); + var x = tagPosition.left; + var y = tagPosition.top; + if($("#expoTagBoxForm")){ + $("#expoTagBoxForm").css({ + 'display':'block', + 'top':y, + 'left':x + $(this).width() + 10 + }); + }; + }; + + var prepareExpoTagBox = function( expoTagBox, image, image_id ){ + expoTagBox.draggable({ + containment: image, + cursor: 'move', + drag: dragOrResizeEventHandler, + start: dragStartHandler, + stop: dragStopHandler, + grid: [1,1] + }); + expoTagBox.resizable({ + handles: 'n, e, s, w, ne, se, sw, nw', + maxHeight: image.height(), + maxWidth: image.width(), + minHeight: options.tag.minHeight, + minWidth: options.tag.minWidth, + containment: image, + resize: dragOrResizeEventHandler + }); + createNewTagForm(expoTagBox,image,image_id); + $('.utag-bot').css({ + 'top': options.tag.defaultWidth + }); + $('.utag-right').css({ + 'height': options.tag.defaultHeight, + 'left': options.tag.defaultWidth + }); + $('.utag-left').css({ + 'height': options.tag.defaultHeight + }); + + }; + + var createNewTagForm = function( expoTagBox, image, image_id ){ + var form = $(''); + var newTagFormBox = $('
        '); + var expoTagBoxPosition = $(expoTagBox).position(); + newTagFormBox.css({ + 'position':'absolute', + 'top': expoTagBoxPosition.top, + 'left': expoTagBoxPosition.left + expoTagBox.width() + 10, + 'width' : options.tag.newTagFormWidth + }); + newTagFormBox.append($('
        ')); + var imageWrapper = $("#" + options.imageWrapBox.idPrefix + image_id); + imageWrapper.append(newTagFormBox); + $('#expoNewTagFormContent').append(form); + $.each(options.parametersForNewTag,function( i, properties ){ + var input = $('
        '); + if(properties.label){ + var label = $(''); + var div = $('
        '); + label.append(properties.label); + $('#expoNewTagForm').append(label); + }; + $('#expoNewTagForm').append(input); + $('#expoInput_name').bind( "keydown", function( event ) { + if ( event.keyCode === $.ui.keyCode.TAB && + $( this ).data( "ui-autocomplete" ).menu.active ) { + event.preventDefault(); + } + }) + .autocomplete({ + appendTo: $('.ptListHolder'), + minLength: 1, + source: function (request, response) { + var term = $.ui.autocomplete.escapeRegex(request.term) + , startsWithMatcher = new RegExp("^" + term, "i") + , startsWith = $.grep(photoTagData, function(value) { + return startsWithMatcher.test(value.label || value.value || value); + }) + , containsMatcher = new RegExp(term, "i") + , contains = $.grep(photoTagData, function (value) { + return $.inArray(value, startsWith) < 0 && + containsMatcher.test(value.label || value.value || value); + }); + + response(startsWith.concat(contains)); + }, + focus: function() { + return false; + }, + select: function( event, ui){ + $('#hidden_expoInput_name').val(ui.item.id); + } + }); + $('#expoInput_name').parent().append($('')); + + + }); + var submit = $(''); + $('#expoNewTagForm').append(submit); + var hiddenInput = $(""); + $('#expoNewTagForm').append(hiddenInput); + var cancel = $(''); + cancel.click(function(e){ + e.preventDefault(); + removeNewExpoTag(); + showAllTags(image_id); + return false; + }); + $('#expoNewTagForm').append(cancel); + $('#expoNewTagForm').submit(function(e){ + e.preventDefault(); + var expoTagBox = $('#'+options.tag.idPrefix+'expo'); + var tag = { + left: expoTagBox.position().left, + top: expoTagBox.position().top, + width: expoTagBox.width(), + height: expoTagBox.height() + } + $.getJSON(options.addTagUrl+'?'+$.param(tag) + '&' + $(this).serialize(),function(response){ + if(response.result != undefined && !response.result){ + manageError(response); + return; + } + var tagBox = createTagBoxFromJSON(response.tag,image); + $('#' + options.imageWrapBox.idPrefix + image_id).append(tagBox); + registerHighlightHovers(); + extendTagBoxAttributes(tagBox,response.tag,image,image_id); + }); + removeNewExpoTag(); + showAllTags(image_id); + }); + + }; + + var removeNewExpoTag = function(){ + $('#'+options.tag.idPrefix+'expo').remove(); + $('#expoTagBoxForm').remove(); + }; + + var createTagBox = function( tagId, dimension, position, opacity ){ + var tagBox = $('
        '); + var css = { + 'position': 'absolute', + 'top': Math.round(position.top) + 'px', + 'left': Math.round(position.left) + 'px', + 'height': dimension.height + 'px', + 'width': dimension.width + 'px', + 'opacity': opacity + }; + tagBox.css(css); + tagBox.append(' 
        '); + return tagBox + }; + + var createTagBoxFromJSON = function( tagJSON, image ){ + if( !(tagJSON.height && tagJSON.width) ){ + tagJSON.height = options.tag.defaultHeight; + tagJSON.width = options.tag.defaultWidth; + }; + var dimension = {width: tagJSON.width,height: tagJSON.height}; + var position = {top: tagJSON.top,left: tagJSON.left}; + var tagBox = createTagBox(tagJSON.id,dimension,position,0); + + var innerElement = $("
        "); + innerElement.append(tagJSON.text.replace(/ /g, ' ')); + tagBox.append(innerElement); + + if(options.isEnabledToEditTags && tagJSON.isDeleteEnable && options.tag.showDeleteLinkOnTag){ + var deleteLink = $(''); + registerEventsForDeleteLink(deleteLink,image); + }; + + + tagBox.find('.taghover').append(deleteLink); + return tagBox; + } + + var createTagItemForList = function( tagJSON, image ){ + //Если список меток не пустой - добавляем запятую и пробел после предыдущего человека: + if ($('.photoTag-taglist').html().length>0) { + $('.photoTag-taglist li').last().append(', '); + }; + var item = $('
      • '); + if(tagJSON.url){ + var link = $(''+ tagJSON.text +''); + item.append(link); + }else{ + item.append(tagJSON.text); + } + if(tagJSON.isDeleteEnable){ + var deleteLink = $('  '); + registerEventsForDeleteLink(deleteLink,image); + item.append(deleteLink); + } + var hltag=$('a.highlight-tag'); + $('ul.photoTag-taglist li').last().find(hltag).mouseover( + function() { + mover($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ).mouseleave( + function() { + mleave($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ); + return item; + } + + var createExpoTag = function( image, image_id ){ + var dimension = {width: options.tag.defaultWidth,height: options.tag.defaultHeight}; + var position = { + top: (image.height()/2-dimension.height/2), + left: (image.width()/2-dimension.width/2) + }; + cache.expoId++; + var expoTagBox = createTagBox('expo',dimension,position,1); + return expoTagBox; + }; + + var hideAllTags = function( image_id ){ + $.each(cache.tags[image_id],function(){ + $(this).css({'opacity':0.0}); + $(this).hide(); + }); + }; + + var showAllTags = function( image_id ){ + $.each(cache.tags[image_id],function(){ + $(this).show(); + }); + } + + var createAddTagLink = function( image, image_id ){ + var addTagLink = $(''+ options.literals.addNewTag +''); + registerEventsForAddTagLink(addTagLink,image,image_id); + return addTagLink; + }; + + var wrapImage = function( image, image_id ){ + var imageHeight = image.height(); + var imageWidth = image.width(); + var canvas = $('
        '); + var wrapper = $('
        '); + canvas.append(wrapper); + var controlPane = $('
        '); + canvas.append(controlPane); + image.wrap(canvas); + if(!options.externalAddTagLinks.bind) + $('#' + options.imageWrapBox.controlPaneIdPrefix + image_id).append(createAddTagLink(image,image_id)); + else{ + var externalAddLinks = $(options.externalAddTagLinks.selector); + externalAddLinks.each(function(){ + registerEventsForAddTagLink(this,image,image_id); + }); + } + var container = $('
        '); + $('#' + options.imageWrapBox.canvasIdPrefix + image_id).wrap(container); + if(options.imageWrapBox.showTagList){ + var tagList = $('
          '); + $('.pg-photo-descr#imgid'+image_id).append(tagList); + } + } + + var extendTagBoxAttributes = function( tagBox, tagJSON, image, image_id ){ + if(options.tag.flashAfterCreation){ + $(tagBox).css({'opacity':1.0}); + + $(tagBox).stop().animate({ opacity: 0.0 }, 800); + }; + if(options.imageWrapBox.showTagList){ + var tagItemForList = createTagItemForList(tagJSON,image); + $('#'+options.imageWrapBox.tagListIdPrefix+image_id).append(tagItemForList); + var hltag=$('a.highlight-tag'); + $('ul.photoTag-taglist li').last().find(hltag).mouseover( + function() { + mover($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ).mouseleave( + function() { + mleave($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ); + }; + } + + var prepareImage = function( imageDetailsJSON, image ){ + wrapImage(image,imageDetailsJSON.id); + var cachedInstance = cache.tags[imageDetailsJSON.id] = {}; + $.each(imageDetailsJSON.Tags,function(){ + var tagBox = createTagBoxFromJSON(this,image); + + cachedInstance[this.id] = tagBox; + $('#' + options.imageWrapBox.idPrefix + imageDetailsJSON.id).append(tagBox); + registerHighlightHovers(); + + extendTagBoxAttributes(tagBox,this,image,imageDetailsJSON.id); + }); + }; + + this.each(function(){ + var $this = $(this); + + var parameters = getParametersForImage($this); + + if( !$.isFunction(options.beforeTagRequest) || options.beforeTagRequest(parameters) ){ + $.getJSON( + options.requestTagsUrl, + parameters, + function( response ){ + if(response.result != undefined && !response.result){ + manageError(response); + return; + } + if(response.options){ + options = $.extend(true,options,response.options); + } + $.each(response.Image,function(){ + prepareImage(this,$this); + }); + } + ); + } + }); + + return this; + }; +})(jQuery); diff --git a/static/client/js/jquery.placeholder.js b/static/client/js/jquery.placeholder.js new file mode 100644 index 00000000..b965ca73 --- /dev/null +++ b/static/client/js/jquery.placeholder.js @@ -0,0 +1,183 @@ +/*! http://mths.be/placeholder v2.0.7 by @mathias */ +;(function(window, document, $) { + + var isInputSupported = 'placeholder' in document.createElement('input'); + var isTextareaSupported = 'placeholder' in document.createElement('textarea'); + var prototype = $.fn; + var valHooks = $.valHooks; + var propHooks = $.propHooks; + var hooks; + var placeholder; + + if (isInputSupported && isTextareaSupported) { + + placeholder = prototype.placeholder = function() { + return this; + }; + + placeholder.input = placeholder.textarea = true; + + } else { + + placeholder = prototype.placeholder = function() { + var $this = this; + $this + .filter((isInputSupported ? 'textarea' : ':input') + '[placeholder]') + .not('.placeholder') + .bind({ + 'focus.placeholder': clearPlaceholder, + 'blur.placeholder': setPlaceholder + }) + .data('placeholder-enabled', true) + .trigger('blur.placeholder'); + return $this; + }; + + placeholder.input = isInputSupported; + placeholder.textarea = isTextareaSupported; + + hooks = { + 'get': function(element) { + var $element = $(element); + + var $passwordInput = $element.data('placeholder-password'); + if ($passwordInput) { + return $passwordInput[0].value; + } + + return $element.data('placeholder-enabled') && $element.hasClass('placeholder') ? '' : element.value; + }, + 'set': function(element, value) { + var $element = $(element); + + var $passwordInput = $element.data('placeholder-password'); + if ($passwordInput) { + return $passwordInput[0].value = value; + } + + if (!$element.data('placeholder-enabled')) { + return element.value = value; + } + if (value == '') { + element.value = value; + // Issue #56: Setting the placeholder causes problems if the element continues to have focus. + if (element != safeActiveElement()) { + // We can't use `triggerHandler` here because of dummy text/password inputs :( + setPlaceholder.call(element); + } + } else if ($element.hasClass('placeholder')) { + clearPlaceholder.call(element, true, value) || (element.value = value); + } else { + element.value = value; + } + // `set` can not return `undefined`; see http://jsapi.info/jquery/1.7.1/val#L2363 + return $element; + } + }; + + if (!isInputSupported) { + valHooks.input = hooks; + propHooks.value = hooks; + } + if (!isTextareaSupported) { + valHooks.textarea = hooks; + propHooks.value = hooks; + } + + $(function() { + // Look for forms + $(document).delegate('form', 'submit.placeholder', function() { + // Clear the placeholder values so they don't get submitted + var $inputs = $('.placeholder', this).each(clearPlaceholder); + setTimeout(function() { + $inputs.each(setPlaceholder); + }, 10); + }); + }); + + // Clear placeholder values upon page reload + $(window).bind('beforeunload.placeholder', function() { + $('.placeholder').each(function() { + this.value = ''; + }); + }); + + } + + function args(elem) { + // Return an object of element attributes + var newAttrs = {}; + var rinlinejQuery = /^jQuery\d+$/; + $.each(elem.attributes, function(i, attr) { + if (attr.specified && !rinlinejQuery.test(attr.name)) { + newAttrs[attr.name] = attr.value; + } + }); + return newAttrs; + } + + function clearPlaceholder(event, value) { + var input = this; + var $input = $(input); + if (input.value == $input.attr('placeholder') && $input.hasClass('placeholder')) { + if ($input.data('placeholder-password')) { + $input = $input.hide().next().show().attr('id', $input.removeAttr('id').data('placeholder-id')); + // If `clearPlaceholder` was called from `$.valHooks.input.set` + if (event === true) { + return $input[0].value = value; + } + $input.focus(); + } else { + input.value = ''; + $input.removeClass('placeholder'); + input == safeActiveElement() && input.select(); + } + } + } + + function setPlaceholder() { + var $replacement; + var input = this; + var $input = $(input); + var id = this.id; + if (input.value == '') { + if (input.type == 'password') { + if (!$input.data('placeholder-textinput')) { + try { + $replacement = $input.clone().attr({ 'type': 'text' }); + } catch(e) { + $replacement = $('').attr($.extend(args(this), { 'type': 'text' })); + } + $replacement + .removeAttr('name') + .data({ + 'placeholder-password': $input, + 'placeholder-id': id + }) + .bind('focus.placeholder', clearPlaceholder); + $input + .data({ + 'placeholder-textinput': $replacement, + 'placeholder-id': id + }) + .before($replacement); + } + $input = $input.removeAttr('id').hide().prev().attr('id', id).show(); + // Note: `$input[0] != input` now! + } + $input.addClass('placeholder'); + $input[0].value = $input.attr('placeholder'); + } else { + $input.removeClass('placeholder'); + } + } + + function safeActiveElement() { + // Avoid IE9 `document.activeElement` of death + // https://github.com/mathiasbynens/jquery-placeholder/pull/99 + try { + return document.activeElement; + } catch (err) {} + } + +}(this, document, jQuery)); diff --git a/static/client/js/jquery.ui.datepicker-ru.js b/static/client/js/jquery.ui.datepicker-ru.js new file mode 100644 index 00000000..a5197140 --- /dev/null +++ b/static/client/js/jquery.ui.datepicker-ru.js @@ -0,0 +1,23 @@ +/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Andrew Stromnov (stromnov@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ru'] = { + closeText: 'Закрыть', + prevText: '<Пред', + nextText: 'След>', + currentText: 'Сегодня', + monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь', + 'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'], + monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн', + 'Июл','Авг','Сен','Окт','Ноя','Дек'], + dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'], + dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'], + dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'], + weekHeader: 'Нед', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ru']); +}); diff --git a/static/client/js/main.js b/static/client/js/main.js new file mode 100644 index 00000000..8a691e16 --- /dev/null +++ b/static/client/js/main.js @@ -0,0 +1,1237 @@ +var map; + +function mapInit() { + var canvas = document.getElementById('map-canvas'); + var coords = canvas.getAttribute('data-coords'); + var commaPos = coords.indexOf(','); + var lat = parseFloat(coords.substring(0, commaPos)); + var lng = parseFloat(coords.substring(commaPos + 1, coords.length)); + var myLatlng = new google.maps.LatLng(lat, lng); + var mapOptions = { + zoom: 15, + center: myLatlng + }; + map = new google.maps.Map(canvas, mapOptions); + + var marker = new google.maps.Marker({ + position: myLatlng, + map: map + }); +} +/* */ +function addError(inputId, msg){ + var $input = $('#reg_form '+ inputId); + var $error = $("
          ").attr("class", "pwf-msg").append( + $("
          ").attr("class", "msg-error").append(msg) + ); + + $input.parent().parent().append($error) + +} + +function placeInput(width){ + $('#id_country').val('159').select2({ + placeholder: "Ваша страна", + width: width + }); + + $('#id_city').select2({ + placeholder: "Ваш город", + width: width, + ajax: { + + url: "/city/get-city/", + dataType: "json", + quietMillis: 200, + + data: function(term, page, country){ + var country = $('#id_country').val() + return {term: term, + page: page, + country: country}; + }, + + results: function (data) { + var results = []; + $.each(data, function(index, item){ + results.push({ + id: item.id, + text: item.label + }); + }); + return {results: results}; + } + }, + initSelection : function(element, callback) { + var id= $(element).val(); + var text = $(element).attr('data-init-text'); + callback({id: id, text:text}); + + } + + }); + +} + +!function ($) { + + var $win = $(window); + var $html = $('html'); + var $body = $('body'); + var $doc = $(document); + + + $.widget( "custom.catcomplete", $.ui.autocomplete, { + _renderMenu: function( ul, items ) { + var that = this, + currentCategory = ""; + $.each( items, function( index, item ) { + if ( item.category != currentCategory ) { + ul.append( "
        • " + item.category + "
        • " ); + currentCategory = item.category; + } + that._renderItemData( ul, item ); + }); + } + }); + + /* submiting registration form */ + $(function () { + + + $('#send_message_form').on('submit', function(event){ + event.preventDefault(); + $this = $(this); + var formData = $this.serialize(); + var url = $this.attr('action') + $.post(url, formData, function(data){ + if (data.success){ + $.fancybox.close(); + $this.find('#id_body').val('') + } + }); + }); + $('#reply_form').on('submit', function(event){ + event.preventDefault(); + $this = $(this); + var formData = $this.serialize(); + var reply_message = $('#reply_message').val() + var url = '/profile/messages/reply/'+reply_message+'/' + + $.post(url, formData, function(data){ + if (data.success){ + $.fancybox.close(); + $this.find('#id_recipient').val('') + $this.find('#id_body').val('') + } + }); + + }); + + $('.visit, .unvisit').on('click', function(event){ + event.preventDefault(); + var $this = $(this); + var url = $(this).attr('href'); + $.get(url, function(data){ + if (data.not_authorized){ + $.fancybox.open('#pw-login'); + } + else{ + if(data.success){ + if(data.in){ + if($this.hasClass('visit')){ + $this.hide(); + $this.siblings('.unvisit').show() + } + } + else{ + if($this.hasClass('unvisit')){ + $this.hide(); + $this.siblings('.visit').show() + } + } + } + } + }); + + }); + + + /* + $('#reg_form').on('submit', function(event){ + event.preventDefault(); + var formData = $(this).serialize(); + var url = '/register/'; + console.log(url); + + + $.post(url, formData, function(data){ + if(data.success){ + //register success + + // remove input values + $('#reg_form input').each(function(i){ + $(this).val(""); + }); + // close popup + $.fancybox.open('#pw-reg-complete'); + //$.fancybox.close(); + + } + else{ + console.log(data); + // hide help messages + $("#reg_form .msg-help:visible").hide(); + // delete previous errors + $("#reg_form .msg-error").parent().remove(); + + // generate new errors + var form_inputs = ['first_name', 'last_name', 'email', 'password1', 'password2'] + for(var i= 0; i < form_inputs.length; i++){ + if(form_inputs[i] in data){ + var input_id = '#id_'+form_inputs[i]; + addError(input_id, data[form_inputs[i]]) + } + } + } + }); + + }); + */ + /* submiting change password form */ + $('#paswd_change').on('submit', function(event){ + event.preventDefault(); + var formData = $(this).serialize(); + var url = '/profile/change-password/'; + var $form = $(this); + $.post(url, formData, function(data){ + if (data.success){ + $('#paswd_change .mf-success').fadeIn(300); + setTimeout(function(){ + $('#paswd_change .mf-success').fadeOut(300); + }, 3000); + $form.find('#id_old password').val('') + + } + else{ + // remove previous error + $('#paswd_change .mf-error').parent().remove(); + // add new error + var $element = $("
          ").attr("class", "mf-line").append( + $("
          ").attr("class", "mf-error").append(data.errors[0])) + $form.find('.mf-buttons-line').before($element); + } + }); + }); + $('.reg').on('click', function(event){ + event.preventDefault(); + $('.register').click(); + }); + + + /* ******************************************* + * Нестандартное оформление для поля select + * Изменено 24.04.2014 + * */ + $.fn.customSelect = function () { + return $(this).each(function() { + + var $this = $(this); + var $options = $this.children('option'); + var numberOfOptions = $this.children('option').length; + var $selected = $(":selected", $this); + + $this.addClass('s-hidden'); + + $this.wrap('
          '); + $this.after('
          '); + + var $styledSelect = $this.next('div.custom-select-wrap'); + var $styledSelectText = $styledSelect.children('.custom-select-text'); + var soText = $selected.length != 0 ? $selected.text() : $this.children('option').eq(0).text(); + + $styledSelectText.text(soText); + + if ( $options.index($selected) == 0 && (!$this.children('option').eq(0).val() || !$this.children('option').eq(0).attr('value')) ) { + $styledSelectText.addClass('placeholder'); + } + + var $menu = $('
          ').insertAfter($styledSelect); + var $optionsWrap = $menu.find('.scroll-content'); + + var $list = $('
            ').appendTo($optionsWrap); + + for (var i = 0; i < numberOfOptions; i++) { + var oText = ($this.children('option').eq(i).text() != '') ? $this.children('option').eq(i).html() : ' '; + $('
          • ', { + html: oText, + 'data-value': $this.children('option').eq(i).val() + }).appendTo($list); + } + + var $listItems = $list.children('li'); + + $styledSelect.on('click', function(e) { + e.stopPropagation(); + $('div.custom-select-wrap.active').not(this).each(function() { + $(this).removeClass('active').next('.options').hide(); + }); + if (!$this.prop('disabled')) { + $(this).toggleClass('active').next('.options').toggle(); + } + }); + + $listItems.on('click', function(e) { + var $el = $(this); + e.stopPropagation(); + $styledSelectText.text($el.text()); + $styledSelect.removeClass('active'); + $this.val($el.data('value')); + if ( $el.index() == 0 && (!$this.children('option').eq(0).val() || !$this.children('option').eq(0).attr('value')) ) { + $styledSelectText.addClass('placeholder'); + } else { + $styledSelectText.removeClass('placeholder'); + } + $menu.hide(); + }); + + if ($.fn.mCustomScrollbar) { + var customSelectScrollOptions = { + scrollInertia: 200, + contentTouchScroll: true, + scrollButtons: { + enable: false + }, + advanced:{ + autoScrollOnFocus:false, + updateOnContentResize: true + } + }; + + var $scrollContainer = $menu.find('div.cs-scroll-container'); + $scrollContainer.mCustomScrollbar(customSelectScrollOptions); + } + + $(document).on('click', function() { + $styledSelect.removeClass('active'); + $menu.hide(); + }); + + $this.on('change', function () { + var $cThis = $(this); + var selectedIndex = $cThis.prop('selectedIndex'); + var Text = $cThis.children('option').eq(selectedIndex).text(); + $styledSelectText.text(Text); + if ( selectedIndex == 0 && (!$this.children('option').eq(0).val() || !$this.children('option').eq(0).attr('value')) ) { + $styledSelectText.addClass('placeholder'); + } else { + $styledSelectText.removeClass('placeholder'); + } + }); + + }); + }; + $("select:not([multiple])").each(function () { + var $el = $(this); + if (!$el.hasClass('select2')) { + $el.customSelect(); + } + }); + + + + /* Обработка autocomplete в полях поиска + * используется jQuery UI Autocomplete + * */ + /* Галереи-слайдеры на главной + * использован плагин Swiper + * http://www.idangero.us/sliders/swiper/api.php + * */ + $('#mp-recent-expo').each(function () { + var $reContainer = $(this); + var $reSwipeWrap = $reContainer.children('ul'); + var $reSwipeItems = $reSwipeWrap.children('li'); + var $reControls = $reContainer.children('div.re-controls'); + var $recPrev = $reControls.children('a.prev'); + var $recNext = $reControls.children('a.next'); + + if ($reSwipeItems.length > 1) { + $reControls.addClass('enabled'); + $reSwipeItems.css({ + display: 'block' + }); + $reContainer.height($reSwipeItems.eq(0).height()); + var $reSwiper = $reContainer.swiper({ + speed: 500, + mode:'horizontal', + loop: false, + simulateTouch: false, + autoplay:4200, + onInit: function () { + $recPrev.addClass('disabled'); + }, + onSlideChangeStart: function (swiper) { + $reContainer.animate({ + height: $reSwipeItems.eq(swiper.activeIndex).children('div.re-body').height() + }, 300); + if (swiper.activeIndex == 0) { + if (!$recPrev.hasClass('disabled')) { + $recPrev.addClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } else if (swiper.activeIndex == swiper.slides.length-1) { + if (!$recNext.hasClass('disabled')) { + $recNext.addClass('disabled'); + } + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + } else { + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } + } + }); + + $recPrev.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipePrev(); + } + return false; + }); + $recNext.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipeNext(); + } + return false; + }); + } + + }); + + $('#mp-photo-gallery').each(function () { + var $reContainer = $(this); + var $reSwipeWrap = $reContainer.children('ul'); + var $reSwipeItems = $reSwipeWrap.children('li'); + var $reControls = $reContainer.children('div.re-controls'); + var $recPrev = $reControls.children('a.prev'); + var $recNext = $reControls.children('a.next'); + + if ($reSwipeItems.length > 1) { + $reControls.addClass('enabled'); + var $reSwiper = $reContainer.swiper({ + speed: 500, + mode:'horizontal', + loop: false, + simulateTouch: false, + onInit: function (swiper) { + $recPrev.addClass('disabled'); + }, + onSlideChangeStart: function (swiper) { + var $descrs = $reSwipeItems.find('div.pgi-descr'); + $descrs.animate({ + height: 'hide', + opacity: 'hide' + }, 500); + if (swiper.activeIndex == 0) { + if (!$recPrev.hasClass('disabled')) { + $recPrev.addClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } else if (swiper.activeIndex == swiper.slides.length-1) { + if (!$recNext.hasClass('disabled')) { + $recNext.addClass('disabled'); + } + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + } else { + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } + }, + onSlideChangeEnd: function (swiper) { + var $descrs = $reSwipeItems.find('div.pgi-descr'); + $descrs.eq(swiper.activeIndex).slideDown(250); + } + }); + + $recPrev.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipePrev(); + } + return false; + }); + $recNext.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipeNext(); + } + return false; + }); + } + }); + + $('#ps-photo-gallery').each(function () { + var $reContainer = $(this); + var $reSwipeWrap = $reContainer.children('ul'); + var $reSwipeItems = $reSwipeWrap.children('li'); + var $reControls = $reContainer.children('div.re-controls'); + var $recPrev = $reControls.children('a.prev'); + var $recNext = $reControls.children('a.next'); + + if ($reSwipeItems.length > 1) { + $reControls.addClass('enabled'); + $reSwipeItems.css({ + display: 'block' + }); + var $reSwiper = $reContainer.swiper({ + speed: 500, + mode:'horizontal', + calculateHeight: true, + loop: false, + simulateTouch: false, + onInit: function (swiper) { + $recPrev.addClass('disabled'); + }, + onSlideChangeStart: function (swiper) { + if (swiper.activeIndex == 0) { + if (!$recPrev.hasClass('disabled')) { + $recPrev.addClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } else if (swiper.activeIndex == swiper.slides.length-1) { + if (!$recNext.hasClass('disabled')) { + $recNext.addClass('disabled'); + } + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + } else { + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } + } + }); + + $recPrev.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipePrev(); + } + return false; + }); + $recNext.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipeNext(); + } + return false; + }); + } + + }); + + $('#s-slide-gallery').each(function () { + var $reContainer = $(this); + var $reSwipeWrap = $reContainer.children('ul'); + var $reSwipeItems = $reSwipeWrap.children('li'); + var $reControls = $reContainer.children('div.re-controls'); + var $recPrev = $reControls.children('a.prev'); + var $recNext = $reControls.children('a.next'); + + if ($reSwipeItems.length > 4) { + $reControls.addClass('enabled'); + $reSwipeItems.css({ + display: 'block' + }); + + $win.on('resize', function () { + $reContainer.height($reSwipeItems.eq(0).height()); + }).trigger('resize'); + + var $reSwiper = $reContainer.swiper({ + slidesPerView: 4, + slidesPerGroup: 4, + speed: 500, + mode:'horizontal', + calculateHeight: true, + loop: false, + simulateTouch: false, + onInit: function (swiper) { + $recPrev.addClass('disabled'); + }, + onSlideChangeStart: function (swiper) { + if (swiper.activeIndex == 0) { + if (!$recPrev.hasClass('disabled')) { + $recPrev.addClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } else if (swiper.activeIndex == swiper.slides.length-4) { + if (!$recNext.hasClass('disabled')) { + $recNext.addClass('disabled'); + } + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + } else { + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } + } + }); + + $recPrev.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipePrev(); + } + return false; + }); + $recNext.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipeNext(); + } + return false; + }); + + } + + }); + + $('.sli-slides').each(function () { + var $reContainer = $(this); + var $reSwipeWrap = $reContainer.children('ul'); + var $reSwipeItems = $reSwipeWrap.children('li'); + var $reControls = $reContainer.children('div.re-controls'); + var $recPrev = $reControls.children('a.prev'); + var $recNext = $reControls.children('a.next'); + + if ($reSwipeItems.length > 4) { + $reControls.addClass('enabled'); + $reSwipeItems.css({ + display: 'block' + }); + + $win.on('resize', function () { + $reContainer.css({ + height: $reSwipeItems.eq(0).height() + }); + }).trigger('resize'); + + var $reSwiper = $reContainer.swiper({ + slidesPerView: 4, + slidesPerGroup: 4, + calculateHeight: true, + speed: 500, + mode:'horizontal', + loop: false, + simulateTouch: false, + onInit: function (swiper) { + $recPrev.addClass('disabled'); + }, + onSlideChangeStart: function (swiper) { + if (swiper.activeIndex == 0) { + if (!$recPrev.hasClass('disabled')) { + $recPrev.addClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } else if (swiper.activeIndex == swiper.slides.length-4) { + if (!$recNext.hasClass('disabled')) { + $recNext.addClass('disabled'); + } + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + } else { + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } + } + }); + + $recPrev.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipePrev(); + } + return false; + }); + $recNext.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipeNext(); + } + return false; + }); + + } + + }); + + /* Открытие popup диалогов */ + var fbPopupOptions = { + padding: 0, + fitToView: false + }; + + $('a.pw-open').fancybox(fbPopupOptions); + + /* Обработка placeholder для старых браузеров */ + $('input[placeholder], textarea[placeholder]').placeholder(); + + /* показ сообщений помощи в полях диалогов*/ + $doc.on('focus', 'form.pw-form input[type="text"], form.pw-form input[type="password"]', function (event) { + var $input = $(this); + var $fLine = $input.closest(".pwf-line"); + var $help = $fLine.find('div.msg-help'); + var $error = $fLine.find('div.msg-error'); + var $error2 = $(this).parent().parent().parent().find('.mf-error'); + $error.parent().remove(); + $error2.parent().remove(); + + if ($help.is(':hidden')) { + $help.fadeIn(300); + } + }); + + $doc.on('blur', 'form.pw-form input[type="text"], form.pw-form input[type="password"]', function (event) { + var $input = $(this); + var $fLine = $input.closest(".pwf-line"); + var $help = $fLine.find('div.msg-help'); + if ($help.is(':visible')) { + $help.fadeOut(300); + } + }); + + + /* Custom scroll + * использован плагин malihu-custom-scrollbar-plugin + * http://manos.malihu.gr/jquery-custom-content-scroller/ + * */ + var customScrollOptions = { + scrollInertia: 200, + contentTouchScroll: true, + scrollButtons: { + enable: false + }, + advanced:{ + updateOnContentResize: true + } + }; + + + $('div.scroll-container').each(function () { + var $scrollContainer = $(this); + $scrollContainer.mCustomScrollbar(customScrollOptions); + }); + + /* Открыть диалог подписки на нужной вкладке */ + $('#subscribe-sm').each(function () { + var $container = $(this); + var $links = $container.find('a'); + + $links.on('click', function () { + var $link = $(this); + var index = $links.index(this); + var popupSubscribe = $('#pw-subscribe'); + + $.fancybox(popupSubscribe, fbPopupOptions); + var $tabs = popupSubscribe.find('ul.tabs > li'); + $tabs.eq(index).trigger('click'); + return false; + }); + }); + + /* Обработка поведения вкладок */ + $("ul.tabs > li").on('click', function () { + var $curTab = $(this); + var $parentUl = $curTab.closest('ul'); + var index = $parentUl.children('li').index(this); + var $contentUl = $parentUl.siblings('.tabs-content'); + var $link = $curTab.find("a"); + var $popupSubscr = $curTab.closest('#pw-subscribe'); + + if (!$curTab.hasClass('active')) { + if ($popupSubscr.length) { + $contentUl = $popupSubscr.find('.tabs-content'); + } + var $activeTab = $parentUl.children('li.active'); + var $activeTContent = $contentUl.find('li.active'); + var $currentTContent = $contentUl.children('li').eq(index); + + $activeTab.removeClass("active"); + $activeTContent.removeClass("active"); + $curTab.addClass("active"); + $currentTContent.addClass("active"); + } + + $link.blur(); + closeSelectBox(); + return false; + }); + + /* Показ подписей картинок в деталях фото галерей */ + $('#cli-pg').each(function () { + var $wrap = $(this); + var $link = $wrap.find('a'); + $link.on({ + mouseenter: function () { + var $el = $(this); + var $title = $el.find('.pg-title'); + + $title + .stop(true, true) + .slideDown(300, function () { + $title.css({ + display: 'block' + }); + }); + }, + mouseleave: function () { + var $el = $(this); + var $title = $el.find('.pg-title'); + + $title + .stop(true, true) + .slideUp(300); + } + }); + }); + + $('#map-canvas').each(function () { + var $mapCanvas = $(this); + if(!$mapCanvas.is(':hidden')) { + google.maps.event.addDomListener(window, 'load', mapInit); + $mapCanvas.data('init', true); + } + }); + + $('a.toggle-map').on({ + click: function () { + var $tLink = $(this); + var $tContainer = $tLink.closest('.i-address'); + var $mapWrap = $tContainer.children('.i-map'); + var $mapCanvas = $('#map-canvas'); + var $hlink = $tContainer.find('header a.toggle-map'); + + if ($mapWrap.is(':hidden')) { + $mapWrap + .stop(true, true) + .animate({ + opacity: 'show', + height: 'show' + }, 300, function () { + if(!$mapCanvas.data('init')) { + mapInit(); + $mapCanvas.data('init', true); + } + $tContainer.addClass('map-opened'); + }); + } else { + $mapWrap + .stop(true, true) + .animate({ + opacity: 'hide', + height: 'hide' + }, 300, function () { + $tContainer.removeClass('map-opened'); + }); + } + return false; + } + }); + + $('ul.messages-list').each(function () { + var $mList = $(this); + var $mItems = $mList.children('li'); + + $mItems.on({ + mouseenter: function () { + var $item = $(this); + var $mButtons = $item.find('div.mi-buttons'); + + $mButtons + .stop(true, true) + .animate({ + opacity: 'show', + height: 'show' + }, 250); + }, + mouseleave: function () { + var $item = $(this); + var $mButtons = $item.find('div.mi-buttons'); + + $mButtons + .stop(true, true) + .animate({ + opacity: 'hide', + height: 'hide' + }, 250); + } + }); + }); + + $('.set-sect > header').on('click', function () { + var $trigger = $(this); + var $container = $trigger.closest('.set-sect'); + var $fBody = $container.children('div.set-sect-body'); + + if ($fBody.is(':visible')) { + $fBody + .stop(true, true) + .animate({ + height: 'hide', + opacity: 'hide' + }, 300, function () { + $container.addClass('closed') + }); + } else { + $fBody + .stop(true, true) + .animate({ + height: 'show', + opacity: 'show' + }, 300, function () { + $container.removeClass('closed') + }); + } + }); + + + $('input[type="checkbox"].annoncesFlag').each(function () { + var $check = $(this); + + $check.on('change', function () { + var $aInputsWrap = $check.closest('div.mf-announces').children('div.mf-announces-body'); + var $inputs = $aInputsWrap.find('input, select, textarea'); + var $selectBox = $aInputsWrap.find('div.c-select-box'); + + if ($check.prop('checked')) { + $aInputsWrap.removeClass('disabled'); + $selectBox.removeClass('disabled'); + $inputs.prop('disabled', false); + } else { + $aInputsWrap.addClass('disabled'); + $selectBox.addClass('disabled'); + $inputs.prop('disabled', true); + } + }).trigger('change'); + }); + $('a.icb-edit-profile').on('click', function () { + var $editBtn = $(this); + var $exitBtn = $editBtn.next('a.icb-exit-edit'); + var $editable = $('div.p-editable'); + + $editBtn.css({ + display: 'none' + }); + $exitBtn.css({ + display: 'inline-block' + }); + $editable.addClass('pe-active'); + + return false; + }); + + $('a.icb-exit-edit').on('click', function () { + var $exitBtn = $(this); + var $editBtn = $exitBtn.prev('a.icb-edit-profile'); + var $editable = $('div.p-editable'); + + $editBtn.css({ + display: 'inline-block' + }); + $exitBtn.css({ + display: 'none' + }); + $editable.removeClass('pe-active'); + + return false; + }); + + + + + + /* Временная функция для указания файла */ + $('input[type="file"]').each(function () { + var $iFile = $(this); + var $ifContainer = $iFile.closest('.input-file'); + var $inpText = $ifContainer.children('.file-text'); + + if ($iFile.val() != "") { + $inpText.text($iFile.val()); + $inpText.removeClass('placeholder'); + } else { + $inpText.text($inpText.data('placeholder')); + $inpText.addClass('placeholder'); + } + + $iFile.on({ + change: function () { + if ($iFile.val() != "") { + $inpText.text($iFile.val()); + $inpText.removeClass('placeholder'); + } else { + $inpText.text($inpText.data('placeholder')); + $inpText.addClass('placeholder'); + } + } + }); + }); + + + + /* Добавление секций "Статистика за" на нажатие кнопки "добавить данные за другой период" */ + $('form.af-statistic div.mf-stat').each(function () { + var $statWrap = $(this); + var $addButtonWrap = $statWrap.children('.mf-stat-add-button'); + var $addButton = $addButtonWrap.find('a.icon-add'); + + $addButton.on('click', function () { + var $statItem = $statWrap.children('.mf-stat-item'); + var numItems = $statItem.length; + var numYears = $statItem.eq(0).find('select').eq(0).find('option').length-1; + + var $cloneItem = $statItem.eq(0).clone(); + var $selects = $cloneItem.find('select'); + var $inputs = $cloneItem.find('input'); + + $inputs.val(''); + $selects.each(function () { + var $el = $(this); + var $cWrap = $el.closest('.custom-select'); + var $cloneSel = $el.clone(); + $cloneSel.insertAfter($cWrap); + $cloneSel.customSelect(); + $cWrap.remove(); + }); + + $cloneItem.insertBefore($addButtonWrap); + + if (numItems == numYears - 1){ + $addButtonWrap.hide(); + } + return false; + }) + }); + + + /* + * Управление расписанием проведения выставки + * */ + + /* Пeреключение между общим временем для всех дней и уникальным для каждого дня */ + $('input[type="checkbox"].w-time-switcher').each(function () { + var $switch = $(this); + var $wTimeContainer = $switch.closest('.mf-field'); + + function checkSwitch () { + var $tLines = $wTimeContainer.find('div.w-time'); + var $firstTimeLine = $tLines.eq(0); + var $ftlSelects = $firstTimeLine.find('select'); + + $tLines.each(function (index) { + var $timeLine = $(this); + if (index != 0) { + var $selects = $timeLine.find('select'); + + for (var i = 1; i < $selects.length; i++ ) { + $selects.eq(i).prop('selectedIndex', $ftlSelects.eq(i).prop('selectedIndex')).trigger('change'); + } + } + }); + + if ($switch.prop('checked')) { + $tLines.removeClass('show'); + } else { + $tLines.addClass('show'); + } + } + + checkSwitch(); + $switch.on('change', checkSwitch); + }); + + function getDateStr(date) { + return (date.getDate() < 10 ? '0' : '') + date.getDate() + '.' + (date.getMonth() < 9 ? '0' : '') + (date.getMonth() + 1) + '.' + date.getFullYear(); + } + + /* Построение сетки расписания в зависимости от выбранного диапазона дат */ + $('#dates-range').each(function () { + var $dRange = $(this); + var $dateFrom = $dRange.find('input.dateFrom'); + var $dateTo = $dRange.find('input.dateTo'); + var startDay = new Date(); + var endDay = new Date(); + var $wtSchedule = $('#work-time'); + + function numScheduleDays() { + return (endDay - startDay)/(1000*60*60*24) + 1; + } + + function drawSchedule() { + var $timeLines = $wtSchedule.children('.w-time'); + var $timeLine = $timeLines.eq(0); + var $datesSelect = $timeLine.find('select').eq(0); + var $switch = $timeLine.find('input[type="checkbox"].w-time-switcher'); + + startDay = $dateFrom.datepicker('getDate') ? $dateFrom.datepicker('getDate') : new Date(); + endDay = $dateTo.datepicker('getDate') ? $dateTo.datepicker('getDate') : new Date(); + var numDays = numScheduleDays(); + + var $selects = $timeLine.find('select'); + $timeLines.filter(':not(:first)').remove(); + + $datesSelect.each(function () { + var date = startDay; + var $select = $(this); + var $cWrap = $select.closest('.custom-select'); + var $option = $('
          • "),f=a("
          • "),g=d?e:f,h=this.id(c),i=this.getVal();j=this.opts.formatSelection(c,g.find("div"),this.opts.escapeMarkup),j!=b&&g.find("div").replaceWith("
            "+j+"
            "),k=this.opts.formatSelectionCssClass(c,g.find("div")),k!=b&&g.addClass(k),d&&g.find(".select2-search-choice-close").on("mousedown",A).on("click dblclick",this.bind(function(b){this.isInterfaceEnabled()&&(this.unselect(a(b.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),A(b),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),g.data("select2-data",c),g.insertBefore(this.searchContainer),i.push(h),this.setVal(i)},unselect:function(b){var d,e,c=this.getVal();if(b=b.closest(".select2-search-choice"),0===b.length)throw"Invalid argument: "+b+". Must be .select2-search-choice";if(d=b.data("select2-data")){var f=a.Event("select2-removing");if(f.val=this.id(d),f.choice=d,this.opts.element.trigger(f),f.isDefaultPrevented())return!1;for(;(e=p(this.id(d),c))>=0;)c.splice(e,1),this.setVal(c),this.select&&this.postprocessResults();return b.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(d),choice:d}),this.triggerChange({removed:d}),!0}},postprocessResults:function(a,b,c){var d=this.getVal(),e=this.results.find(".select2-result"),f=this.results.find(".select2-result-with-children"),g=this;e.each2(function(a,b){var c=g.id(b.data("select2-data"));p(c,d)>=0&&(b.addClass("select2-selected"),b.find(".select2-result-selectable").addClass("select2-selected"))}),f.each2(function(a,b){b.is(".select2-result-selectable")||0!==b.find(".select2-result-selectable:not(.select2-selected)").length||b.addClass("select2-selected")}),-1==this.highlight()&&c!==!1&&g.highlight(0),!this.opts.createSearchChoice&&!e.filter(".select2-result:not(.select2-selected)").length>0&&(!a||a&&!a.more&&0===this.results.find(".select2-no-results").length)&&J(g.opts.formatNoMatches,"formatNoMatches")&&this.results.append("
          • "+K(g.opts.formatNoMatches,g.opts.element,g.search.val())+"
          • ")},getMaxSearchWidth:function(){return this.selection.width()-t(this.search)},resizeSearch:function(){var a,b,c,d,e,f=t(this.search);a=C(this.search)+10,b=this.search.offset().left,c=this.selection.width(),d=this.selection.offset().left,e=c-(b-d)-f,a>e&&(e=c-f),40>e&&(e=c-f),0>=e&&(e=a),this.search.width(Math.floor(e))},getVal:function(){var a;return this.select?(a=this.select.val(),null===a?[]:a):(a=this.opts.element.val(),s(a,this.opts.separator))},setVal:function(b){var c;this.select?this.select.val(b):(c=[],a(b).each(function(){p(this,c)<0&&c.push(this)}),this.opts.element.val(0===c.length?"":c.join(this.opts.separator)))},buildChangeDetails:function(a,b){for(var b=b.slice(0),a=a.slice(0),c=0;c0&&c--,a.splice(d,1),d--);return{added:b,removed:a}},val:function(c,d){var e,f=this;if(0===arguments.length)return this.getVal();if(e=this.data(),e.length||(e=[]),!c&&0!==c)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),d&&this.triggerChange({added:this.data(),removed:e}),void 0;if(this.setVal(c),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),d&&this.triggerChange(this.buildChangeDetails(e,this.data()));else{if(this.opts.initSelection===b)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(b){var c=a.map(b,f.id);f.setVal(c),f.updateSelection(b),f.clearSearch(),d&&f.triggerChange(f.buildChangeDetails(e,f.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var b=[],c=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){b.push(c.opts.id(a(this).data("select2-data")))}),this.setVal(b),this.triggerChange()},data:function(b,c){var e,f,d=this;return 0===arguments.length?this.selection.children(".select2-search-choice").map(function(){return a(this).data("select2-data")}).get():(f=this.data(),b||(b=[]),e=a.map(b,function(a){return d.opts.id(a)}),this.setVal(e),this.updateSelection(b),this.clearSearch(),c&&this.triggerChange(this.buildChangeDetails(f,this.data())),void 0)}}),a.fn.select2=function(){var d,e,f,g,h,c=Array.prototype.slice.call(arguments,0),i=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],j=["opened","isFocused","container","dropdown"],k=["val","data"],l={search:"externalSearch"};return this.each(function(){if(0===c.length||"object"==typeof c[0])d=0===c.length?{}:a.extend({},c[0]),d.element=a(this),"select"===d.element.get(0).tagName.toLowerCase()?h=d.element.prop("multiple"):(h=d.multiple||!1,"tags"in d&&(d.multiple=h=!0)),e=h?new window.Select2["class"].multi:new window.Select2["class"].single,e.init(d);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(p(c[0],i)<0)throw"Unknown method: "+c[0];if(g=b,e=a(this).data("select2"),e===b)return;if(f=c[0],"container"===f?g=e.container:"dropdown"===f?g=e.dropdown:(l[f]&&(f=l[f]),g=e[f].apply(e,c.slice(1))),p(c[0],j)>=0||p(c[0],k)>=0&&1==c.length)return!1}}),g===b?this:g},a.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(a,b,c,d){var e=[];return E(a.text,c.term,e,d),e.join("")},formatSelection:function(a,c,d){return a?d(a.text):b},sortResults:function(a){return a},formatResultCssClass:function(a){return a.css},formatSelectionCssClass:function(){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(a){return a==b?null:a.id},matcher:function(a,b){return o(""+b).toUpperCase().indexOf(o(""+a).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:M,escapeMarkup:F,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(a){return a},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return b},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(a){var b="ontouchstart"in window||navigator.msMaxTouchPoints>0;return b?a.opts.minimumResultsForSearch<0?!1:!0:!0}},a.fn.select2.locales=[],a.fn.select2.locales.en={formatMatches:function(a){return 1===a?"One result is available, press enter to select it.":a+" results are available, use up and down arrow keys to navigate." +},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(){return"Loading failed"},formatInputTooShort:function(a,b){var c=b-a.length;return"Please enter "+c+" or more character"+(1==c?"":"s")},formatInputTooLong:function(a,b){var c=a.length-b;return"Please delete "+c+" character"+(1==c?"":"s")},formatSelectionTooBig:function(a){return"You can only select "+a+" item"+(1==a?"":"s")},formatLoadMore:function(){return"Loading more results\u2026"},formatSearching:function(){return"Searching\u2026"}},a.extend(a.fn.select2.defaults,a.fn.select2.locales.en),a.fn.select2.ajaxDefaults={transport:a.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:G,local:H,tags:I},util:{debounce:w,markMatch:E,escapeMarkup:F,stripDiacritics:o},"class":{"abstract":d,single:e,multi:f}}}}(jQuery); \ No newline at end of file diff --git a/static/client/js/plugins/select2_locale_ru.js b/static/client/js/plugins/select2_locale_ru.js new file mode 100644 index 00000000..2a6c7702 --- /dev/null +++ b/static/client/js/plugins/select2_locale_ru.js @@ -0,0 +1,23 @@ +/** + * Select2 Russian translation. + * + * @author Uriy Efremochkin + */ +(function ($) { + "use strict"; + + $.fn.select2.locales['ru'] = { + formatNoMatches: function () { return "Совпадений не найдено"; }, + formatInputTooShort: function (input, min) { return "Пожалуйста, введите еще хотя бы" + character(min - input.length); }, + formatInputTooLong: function (input, max) { return "Пожалуйста, введите на" + character(input.length - max) + " меньше"; }, + formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit%10 == 1 && limit%100 != 11 ? "а" : "ов"); }, + formatLoadMore: function (pageNumber) { return "Загрузка данных…"; }, + formatSearching: function () { return "Поиск…"; } + }; + + $.extend($.fn.select2.defaults, $.fn.select2.locales['ru']); + + function character (n) { + return " " + n + " символ" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 20) ? n%10 > 1 ? "a" : "" : "ов"); + } +})(jQuery); diff --git a/static/client/js/regions.js b/static/client/js/regions.js new file mode 100644 index 00000000..e69de29b diff --git a/static/client/js/rejs/banners.js b/static/client/js/rejs/banners.js new file mode 100644 index 00000000..70e4998b --- /dev/null +++ b/static/client/js/rejs/banners.js @@ -0,0 +1,113 @@ +(function () { + "use strict"; + + var API_URL_ROOT = "/expo-b/get-banners/"; + + var getUrl = function () { + var search = []; + + var parts = /^\/([^\/]+)(?:\/|$)/i.exec(location.pathname); + if (parts) { + search.push("catalog=" + encodeURIComponent(parts[1])); + } else { + search.push("catalog="); + } + + var elements = $("[id^=\"expo_b_\"]"); + for (var j = 0; j < elements.length; j++) { + search.push("places=" + encodeURIComponent($(elements[j]).attr("id"))); + } + + var data = window.sendData; + if (data instanceof Object) { + for (var key in data) { + if (data.hasOwnProperty(key)) { + var value = data[key]; + + if (value instanceof Array) { + for (var i = 0, l = value.length; i < l; i++) { + search.push(encodeURIComponent(key) + "=" + encodeURIComponent(value[i])); + } + } else { + search.push(encodeURIComponent(key) + "=" + encodeURIComponent(value)); + } + } + } + } + + return API_URL_ROOT + "?" + search.join("&"); + }; + + var getBanners = function (url, callback) { + var xhr = new XMLHttpRequest(); + xhr.open("GET", url, true); + + xhr.onreadystatechange = function (event) { + if (event.target.readyState === 4) { + if (event.target.status === 200) { + try { + callback(JSON.parse(event.target.responseText)); + } catch (error) { + // do nothing + } + } + } + }; + + xhr.send(); + }; + + var addBanner = function (banner) { + var parent = document.getElementById(banner.id); + + if (parent) { + if (banner.is_popup) { + if (banner.is_img) { + parent.innerHTML = + "
            " + + "\""
            "; + } else if (banner.is_html) { + parent.innerHTML = banner.text; + } + + $("#expo-form-popup").on("submit", function(e) { + e.preventDefault(); + window.location = $("#expo-form-popup").attr("action"); + }); + + setTimeout(function(){ + $.fancybox.open([{"href": "#" + banner.id}], {}); + }, 5000); + } else { + if (banner.is_img) { + var a = document.createElement("a"); + a.href = banner.url; + + var img = document.createElement("img"); + img.src = banner.img; + img.alt = banner.alt; + + a.appendChild(img); + parent.appendChild(a); + } else if (banner.is_html) { + parent.innerHTML = banner.text; + } + } + } + + }; + + var insertBanners = function (data) { + if (data instanceof Array) { + for (var i = 0, l = data.length; i < l; i++) { + addBanner(data[i]); + } + } + }; + + var main = function () { + getBanners(getUrl(), insertBanners); + }; + + window.addEventListener("load", main); +})(); diff --git a/static/client/js/rejs/tops.js b/static/client/js/rejs/tops.js new file mode 100644 index 00000000..31bee27b --- /dev/null +++ b/static/client/js/rejs/tops.js @@ -0,0 +1,69 @@ +(function () { + "use strict"; + + var API_URL_ROOT = "/expo-b/get-tops/"; + var PARENT_ID = "expo_top_events"; + + var getUrl = function () { + var search = []; + + var parts = /^\/([^\/]+)(?:\/|$)/i.exec(location.pathname); + if (parts) { + search.push("catalog=" + encodeURIComponent(parts[1])); + } else { + search.push("catalog="); + } + + var data = window.sendData; + if (data instanceof Object) { + for (var key in data) { + if (data.hasOwnProperty(key)) { + var value = data[key]; + + if (value instanceof Array) { + for (var i = 0, l = value.length; i < l; i++) { + search.push(encodeURIComponent(key) + "=" + encodeURIComponent(value[i])); + } + } else { + search.push(encodeURIComponent(key) + "=" + encodeURIComponent(value)); + } + } + } + } + + return API_URL_ROOT + "?" + search.join("&"); + }; + + var getTops = function (url, callback) { + var xhr = new XMLHttpRequest(); + xhr.open("GET", url, true); + + xhr.onreadystatechange = function (event) { + if (event.target.readyState === 4) { + if (event.target.status === 200) { + try { + callback(event.target.responseText); + } catch (error) { + // do nothing + } + } + } + }; + + xhr.send(); + }; + + var insertTops = function (text) { + var parent = document.getElementById(PARENT_ID); + + if (parent) { + parent.innerHTML = text; + } + }; + + var main = function () { + getTops(getUrl(), insertTops); + }; + + window.addEventListener("load", main); +})(); diff --git a/static/client/js/scripts.js b/static/client/js/scripts.js new file mode 100644 index 00000000..33867516 --- /dev/null +++ b/static/client/js/scripts.js @@ -0,0 +1,154 @@ +$(document).ready(function () { + + + //$('ul.about_block_menu li.m_01').click(function () { + // $(this).parents('ul').find('li').removeClass('active'); + //$(this).addClass('active'); + //$(this).parents('ul').removeClass('about_active'); + //$('div.about_block').removeClass('about_show'); + //$('div.team_about_block').addClass('about_show'); + //$('div.parnters_about_block').removeClass('about_show'); + //$('div.contacts_about_block').removeClass('about_show'); + //$('div.review_about_block').removeClass('about_show'); + // + //$('div.team_about_block_text').addClass('about_show'); + //$('div.parnters_about_block_text').removeClass('about_show'); + //$('div.contacts_about_block_text').removeClass('about_show'); + //$('div.review_about_block_text').removeClass('about_show'); + // return false; + //}); + // + //$('ul.about_block_menu li.m_02').click(function () { + // $(this).parents('ul').find('li').removeClass('active'); + //$(this).addClass('active'); + //$(this).parents('ul').removeClass('about_active'); + //$('div.about_block').removeClass('about_show'); + //$('div.team_about_block').removeClass('about_show'); + //$('div.parnters_about_block').addClass('about_show'); + //$('div.contacts_about_block').removeClass('about_show'); + //$('div.review_about_block').removeClass('about_show'); + // + //$('div.team_about_block_text').removeClass('about_show'); + //$('div.parnters_about_block_text').addClass('about_show'); + //$('div.contacts_about_block_text').removeClass('about_show'); + //$('div.review_about_block_text').removeClass('about_show'); + // return false; + //}); + // + //$('ul.about_block_menu li.m_03').click(function () { + // $(this).parents('ul').find('li').removeClass('active'); + //$(this).addClass('active'); + //$(this).parents('ul').removeClass('about_active'); + //$('div.about_block').removeClass('about_show'); + //$('div.team_about_block').removeClass('about_show'); + //$('div.parnters_about_block').removeClass('about_show'); + //$('div.contacts_about_block').addClass('about_show'); + //$('div.review_about_block').removeClass('about_show'); + // + //$('div.team_about_block_text').removeClass('about_show'); + //$('div.parnters_about_block_text').removeClass('about_show'); + //$('div.contacts_about_block_text').addClass('about_show'); + //$('div.review_about_block_text').removeClass('about_show'); + // return false; + //}); + // + //$('ul.about_block_menu li.m_04').click(function () { + // $(this).parents('ul').find('li').removeClass('active'); + //$(this).addClass('active'); + //$(this).parents('ul').removeClass('about_active'); + //$('div.about_block').removeClass('about_show'); + //$('div.team_about_block').removeClass('about_show'); + //$('div.parnters_about_block').removeClass('about_show'); + //$('div.contacts_about_block').removeClass('about_show'); + //$('div.review_about_block').addClass('about_show'); + // + //$('div.team_about_block_text').removeClass('about_show'); + //$('div.parnters_about_block_text').removeClass('about_show'); + //$('div.contacts_about_block_text').removeClass('about_show'); + //$('div.review_about_block_text').addClass('about_show'); + // return false; + //}); + // + //$('ul.about_block_menu li.m_05').click(function () { + // $(this).parents('ul').find('li').removeClass('active'); + //$(this).parents('ul').addClass('about_active'); + //$('div.about_block').addClass('about_show'); + //$('div.team_about_block').removeClass('about_show'); + //$('div.parnters_about_block').removeClass('about_show'); + //$('div.contacts_about_block').removeClass('about_show'); + //$('div.review_about_block').removeClass('about_show'); + // + //$('div.team_about_block_text').removeClass('about_show'); + //$('div.parnters_about_block_text').removeClass('about_show'); + //$('div.contacts_about_block_text').removeClass('about_show'); + //$('div.review_about_block_text').removeClass('about_show'); + // return false; + //}); + + + + + $("div.ht-main_1").each(function () { + $(this).width($('div.serv-links').width()); + }); + + $(window).resize(function () { + + $("div.ht-main_1").each(function () { + $(this).width($('div.serv-links').width()); + }); + + }); + + + $("a.small_link").click(function(){ + $("#large img").hide().attr({"src": $(this).attr("href"), "title": $("> img", this).attr("title")}); + return false; + }); + $("#large>img").load(function(){$("#large>img:hidden").fadeIn("slow")}); + + + setTimeout(function () { + $('a.subscribe_link').click(); + }, 3000); + + + $('.subscribe_success').click(function () { + $('div.subscribe_before').hide(); + $('div.subscribe_after').show(); + setTimeout(function () { + $('a.fancybox-close').click(); + }, 2000); + return false; + }); + + + + + + + var number_subjects_list = $("div.subjects_list ul li").length; + + var number_subjects_list_x = number_subjects_list -5; + + $('div.subjects_list ul li:gt(4)').hide(); + + $('div.subjects_list span i').text(number_subjects_list_x); + + if (number_subjects_list > 5) { + $('div.subjects_list').addClass('more'); + + } + else { + + } + + $('div.subjects_list span').click(function () { + $(this).parents('div.subjects_list').removeClass('more'); + $(this).parents('div.subjects_list').find('li').show(); + return false; + }); + + + +}); \ No newline at end of file diff --git a/static/client/js/selectivizr-min.js b/static/client/js/selectivizr-min.js new file mode 100644 index 00000000..5adda2fa --- /dev/null +++ b/static/client/js/selectivizr-min.js @@ -0,0 +1,5 @@ +/*! + * selectivizr v1.0.2 - (c) Keith Clark, freely distributable under the terms of the MIT license. + * selectivizr.com + */ +(function(j){function A(a){return a.replace(B,h).replace(C,function(a,d,b){for(var a=b.split(","),b=0,e=a.length;b0){var a=l,f,e=s.substring(0,e).replace(H,i);if(e==i||e.charAt(e.length-1)==o)e+="*";try{f=t(e)}catch(k){}if(f){e=0;for(c=f.length;e-1&&(a=a.substring(0,l));if(a.charAt(0)==":")switch(a.slice(1)){case "root":c=function(a){return b?a!=p:a==p};break;case "target":if(m==8){c=function(a){function c(){var d=location.hash,e=d.slice(1);return b?d==i||a.id!=e:d!=i&&a.id==e}k(j,"hashchange",function(){g(a,d,c())});return c()};break}return!1;case "checked":c=function(a){J.test(a.type)&&k(a,"propertychange",function(){event.propertyName=="checked"&&g(a,d,a.checked!==b)});return a.checked!==b};break;case "disabled":b=!b;case "enabled":c=function(c){if(K.test(c.tagName))return k(c,"propertychange",function(){event.propertyName=="$disabled"&&g(c,d,c.a===b)}),q.push(c),c.a=c.disabled,c.disabled===b;return a==":enabled"?b:!b};break;case "focus":e="focus",f="blur";case "hover":e||(e="mouseenter",f="mouseleave");c=function(a){k(a,b?f:e,function(){g(a,d,!0)});k(a,b?e:f,function(){g(a,d,!1)});return b};break;default:if(!L.test(a))return!1}return{className:d,b:c}}function w(a){return M+"-"+(m==6&&N?O++:a.replace(P,function(a){return a.charCodeAt(0)}))}function D(a){return a.replace(x,h).replace(Q,o)}function g(a,c,d){var b=a.className,c=u(b,c,d);if(c!=b)a.className=c,a.parentNode.className+=i}function u(a,c,d){var b=RegExp("(^|\\s)"+c+"(\\s|$)"),e=b.test(a);return d?e?a:a+o+c:e?a.replace(b,h).replace(x,h):a}function k(a,c,d){a.attachEvent("on"+c,d)}function r(a,c){if(/^https?:\/\//i.test(a))return c.substring(0,c.indexOf("/",8))==a.substring(0,a.indexOf("/",8))?a:null;if(a.charAt(0)=="/")return c.substring(0,c.indexOf("/",8))+a;var d=c.split(/[?#]/)[0];a.charAt(0)!="?"&&d.charAt(d.length-1)!="/"&&(d=d.substring(0,d.lastIndexOf("/")+1));return d+a}function y(a){if(a)return n.open("GET",a,!1),n.send(),(n.status==200?n.responseText:i).replace(R,i).replace(S,function(c,d,b,e,f){return y(r(b||f,a))}).replace(T,function(c,d,b){d=d||i;return" url("+d+r(b,a)+d+") "});return i}function U(){var a,c;a=f.getElementsByTagName("BASE");for(var d=a.length>0?a[0].href:f.location.href,b=0;b0&&setInterval(function(){for(var a=0,c=q.length;a8||!n)){var z={NW:"*.Dom.select",MooTools:"$$",DOMAssistant:"*.$",Prototype:"$$",YAHOO:"*.util.Selector.query",Sizzle:"*",jQuery:"*",dojo:"*.query"},t,q=[],O=0,N=!0,M="slvzr",R=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,S=/@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))[^;]*;/g,T=/\burl\(\s*(["']?)(?!data:)([^"')]+)\1\s*\)/g,L=/^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/,B=/:(:first-(?:line|letter))/g,C=/(^|})\s*([^\{]*?[\[:][^{]+)/g,G=/([ +~>])|(:[a-z-]+(?:\(.*?\)+)?)|(\[.*?\])/g,H=/(:not\()?:(hover|enabled|disabled|focus|checked|target|active|visited|first-line|first-letter)\)?/g,P=/[^\w-]/g,K=/^(INPUT|SELECT|TEXTAREA|BUTTON)$/,J=/^(checkbox|radio)$/,v=m>6?/[\$\^*]=(['"])\1/:null,E=/([(\[+~])\s+/g,F=/\s+([)\]+~])/g,Q=/\s+/g,x=/^\s*((?:[\S\s]*\S)?)\s*$/,i="",o=" ",h="$1";(function(a,c){function d(){try{p.doScroll("left")}catch(a){setTimeout(d,50);return}b("poll")}function b(d){if(!(d.type=="readystatechange"&&f.readyState!="complete")&&((d.type=="load"?a:f).detachEvent("on"+d.type,b,!1),!e&&(e=!0)))c.call(a,d.type||d)}var e=!1,g=!0;if(f.readyState=="complete")c.call(a,i);else{if(f.createEventObject&&p.doScroll){try{g=!a.frameElement}catch(h){}g&&d()}k(f,"readystatechange",b);k(a,"load",b)}})(j,function(){for(var a in z){var c,d,b=j;if(j[a]){for(c=z[a].replace("*",a).split(".");(d=c.shift())&&(b=b[d]););if(typeof b=="function"){t=b;U();break}}}})}}})(this); \ No newline at end of file diff --git a/static/client/js/sendfilter.js b/static/client/js/sendfilter.js new file mode 100644 index 00000000..2bcd81c9 --- /dev/null +++ b/static/client/js/sendfilter.js @@ -0,0 +1,16 @@ +jQuery(function(){ + $('.pw-place form').submit(function() { + $(this).find('.places-list li.level2 label span input:checked').each(function() { + $(this).parents().eq(2).find('ul li input:checked').each(function() { + $(this).prop('checked', false); + } + ); + }); + $(this).find('.places-list li.level1 label span input:checked').each(function() { + $(this).parents().eq(3).find('ul input:checked').each(function() { + $(this).prop('checked', false); + }); + }); + return false; + }); +}); \ No newline at end of file diff --git a/static/client/js/vendor.js b/static/client/js/vendor.js new file mode 100644 index 00000000..3342562d --- /dev/null +++ b/static/client/js/vendor.js @@ -0,0 +1,4567 @@ +// Avoid `console` errors in browsers that lack a console. +(function() { + var method; + var noop = function () {}; + var methods = [ + 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', + 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', + 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', + 'timeStamp', 'trace', 'warn' + ]; + var length = methods.length; + var console = (window.console = window.console || {}); + + while (length--) { + method = methods[length]; + + // Only stub undefined methods. + if (!console[method]) { + console[method] = noop; + } + } +}()); + +// Place any jQuery/helper plugins in here. + +/* +Copyright 2014 Igor Vaynberg + +Version: 3.5.1 Timestamp: Tue Jul 22 18:58:56 EDT 2014 + +This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU +General Public License version 2 (the "GPL License"). You may choose either license to govern your +use of this software only upon the condition that you accept all of the terms of either the Apache +License or the GPL License. + +You may obtain a copy of the Apache License and the GPL License at: + +http://www.apache.org/licenses/LICENSE-2.0 +http://www.gnu.org/licenses/gpl-2.0.html + +Unless required by applicable law or agreed to in writing, software distributed under the Apache License +or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, +either express or implied. See the Apache License and the GPL License for the specific language governing +permissions and limitations under the Apache License and the GPL License. +*/ +!function(a){"undefined"==typeof a.fn.each2&&a.extend(a.fn,{each2:function(b){for(var c=a([0]),d=-1,e=this.length;++dc;c+=1)if(r(a,b[c]))return c;return-1}function q(){var b=a(l);b.appendTo("body");var c={width:b.width()-b[0].clientWidth,height:b.height()-b[0].clientHeight};return b.remove(),c}function r(a,c){return a===c?!0:a===b||c===b?!1:null===a||null===c?!1:a.constructor===String?a+""==c+"":c.constructor===String?c+""==a+"":!1}function s(b,c){var d,e,f;if(null===b||b.length<1)return[];for(d=b.split(c),e=0,f=d.length;f>e;e+=1)d[e]=a.trim(d[e]);return d}function t(a){return a.outerWidth(!1)-a.width()}function u(c){var d="keyup-change-value";c.on("keydown",function(){a.data(c,d)===b&&a.data(c,d,c.val())}),c.on("keyup",function(){var e=a.data(c,d);e!==b&&c.val()!==e&&(a.removeData(c,d),c.trigger("keyup-change"))})}function v(c){c.on("mousemove",function(c){var d=i;(d===b||d.x!==c.pageX||d.y!==c.pageY)&&a(c.target).trigger("mousemove-filtered",c)})}function w(a,c,d){d=d||b;var e;return function(){var b=arguments;window.clearTimeout(e),e=window.setTimeout(function(){c.apply(d,b)},a)}}function x(a,b){var c=w(a,function(a){b.trigger("scroll-debounced",a)});b.on("scroll",function(a){p(a.target,b.get())>=0&&c(a)})}function y(a){a[0]!==document.activeElement&&window.setTimeout(function(){var d,b=a[0],c=a.val().length;a.focus();var e=b.offsetWidth>0||b.offsetHeight>0;e&&b===document.activeElement&&(b.setSelectionRange?b.setSelectionRange(c,c):b.createTextRange&&(d=b.createTextRange(),d.collapse(!1),d.select()))},0)}function z(b){b=a(b)[0];var c=0,d=0;if("selectionStart"in b)c=b.selectionStart,d=b.selectionEnd-c;else if("selection"in document){b.focus();var e=document.selection.createRange();d=document.selection.createRange().text.length,e.moveStart("character",-b.value.length),c=e.text.length-d}return{offset:c,length:d}}function A(a){a.preventDefault(),a.stopPropagation()}function B(a){a.preventDefault(),a.stopImmediatePropagation()}function C(b){if(!h){var c=b[0].currentStyle||window.getComputedStyle(b[0],null);h=a(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:c.fontSize,fontFamily:c.fontFamily,fontStyle:c.fontStyle,fontWeight:c.fontWeight,letterSpacing:c.letterSpacing,textTransform:c.textTransform,whiteSpace:"nowrap"}),h.attr("class","select2-sizer"),a("body").append(h)}return h.text(b.val()),h.width()}function D(b,c,d){var e,g,f=[];e=a.trim(b.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&f.push(this)})),e=a.trim(c.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(g=d(this),g&&f.push(g))})),b.attr("class",f.join(" "))}function E(a,b,c,d){var e=o(a.toUpperCase()).indexOf(o(b.toUpperCase())),f=b.length;return 0>e?(c.push(d(a)),void 0):(c.push(d(a.substring(0,e))),c.push(""),c.push(d(a.substring(e,e+f))),c.push(""),c.push(d(a.substring(e+f,a.length))),void 0)}function F(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})}function G(c){var d,e=null,f=c.quietMillis||100,g=c.url,h=this;return function(i){window.clearTimeout(d),d=window.setTimeout(function(){var d=c.data,f=g,j=c.transport||a.fn.select2.ajaxDefaults.transport,k={type:c.type||"GET",cache:c.cache||!1,jsonpCallback:c.jsonpCallback||b,dataType:c.dataType||"json"},l=a.extend({},a.fn.select2.ajaxDefaults.params,k);d=d?d.call(h,i.term,i.page,i.context):null,f="function"==typeof f?f.call(h,i.term,i.page,i.context):f,e&&"function"==typeof e.abort&&e.abort(),c.params&&(a.isFunction(c.params)?a.extend(l,c.params.call(h)):a.extend(l,c.params)),a.extend(l,{url:f,dataType:c.dataType,data:d,success:function(a){var b=c.results(a,i.page,i);i.callback(b)},error:function(a,b,c){var d={hasError:!0,jqXHR:a,textStatus:b,errorThrown:c};i.callback(d)}}),e=j.call(h,l)},f)}}function H(b){var d,e,c=b,f=function(a){return""+a.text};a.isArray(c)&&(e=c,c={results:e}),a.isFunction(c)===!1&&(e=c,c=function(){return e});var g=c();return g.text&&(f=g.text,a.isFunction(f)||(d=g.text,f=function(a){return a[d]})),function(b){var g,d=b.term,e={results:[]};return""===d?(b.callback(c()),void 0):(g=function(c,e){var h,i;if(c=c[0],c.children){h={};for(i in c)c.hasOwnProperty(i)&&(h[i]=c[i]);h.children=[],a(c.children).each2(function(a,b){g(b,h.children)}),(h.children.length||b.matcher(d,f(h),c))&&e.push(h)}else b.matcher(d,f(c),c)&&e.push(c)},a(c().results).each2(function(a,b){g(b,e.results)}),b.callback(e),void 0)}}function I(c){var d=a.isFunction(c);return function(e){var f=e.term,g={results:[]},h=d?c(e):c;a.isArray(h)&&(a(h).each(function(){var a=this.text!==b,c=a?this.text:this;(""===f||e.matcher(f,c))&&g.results.push(a?this:{id:this,text:this})}),e.callback(g))}}function J(b,c){if(a.isFunction(b))return!0;if(!b)return!1;if("string"==typeof b)return!0;throw new Error(c+" must be a string, function, or falsy value")}function K(b,c){if(a.isFunction(b)){var d=Array.prototype.slice.call(arguments,2);return b.apply(c,d)}return b}function L(b){var c=0;return a.each(b,function(a,b){b.children?c+=L(b.children):c++}),c}function M(a,c,d,e){var h,i,j,k,l,f=a,g=!1;if(!e.createSearchChoice||!e.tokenSeparators||e.tokenSeparators.length<1)return b;for(;;){for(i=-1,j=0,k=e.tokenSeparators.length;k>j&&(l=e.tokenSeparators[j],i=a.indexOf(l),!(i>=0));j++);if(0>i)break;if(h=a.substring(0,i),a=a.substring(i+l.length),h.length>0&&(h=e.createSearchChoice.call(this,h,c),h!==b&&null!==h&&e.id(h)!==b&&null!==e.id(h))){for(g=!1,j=0,k=c.length;k>j;j++)if(r(e.id(h),e.id(c[j]))){g=!0;break}g||d(h)}}return f!==a?a:void 0}function N(){var b=this;a.each(arguments,function(a,c){b[c].remove(),b[c]=null})}function O(b,c){var d=function(){};return d.prototype=new b,d.prototype.constructor=d,d.prototype.parent=b.prototype,d.prototype=a.extend(d.prototype,c),d}if(window.Select2===b){var c,d,e,f,g,h,j,k,i={x:0,y:0},c={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(a){switch(a=a.which?a.which:a){case c.LEFT:case c.RIGHT:case c.UP:case c.DOWN:return!0}return!1},isControl:function(a){var b=a.which;switch(b){case c.SHIFT:case c.CTRL:case c.ALT:return!0}return a.metaKey?!0:!1},isFunctionKey:function(a){return a=a.which?a.which:a,a>=112&&123>=a}},l="
            ",m={"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03c9":"\u03c9","\u03c2":"\u03c3"};j=a(document),g=function(){var a=1;return function(){return a++}}(),d=O(Object,{bind:function(a){var b=this;return function(){a.apply(b,arguments)}},init:function(c){var d,e,f=".select2-results";this.opts=c=this.prepareOpts(c),this.id=c.id,c.element.data("select2")!==b&&null!==c.element.data("select2")&&c.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=a("",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(c.element.attr("id")||"autogen"+g()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",c.element.attr("title")),this.body=a("body"),D(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",c.element.attr("style")),this.container.css(K(c.containerCss,this.opts.element)),this.container.addClass(K(c.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",A),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),D(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(K(c.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",A),this.results=d=this.container.find(f),this.search=e=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",A),v(this.results),this.dropdown.on("mousemove-filtered",f,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",f,this.bind(function(a){this._touchEvent=!0,this.highlightUnderEvent(a)})),this.dropdown.on("touchmove",f,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",f,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),x(80,this.results),this.dropdown.on("scroll-debounced",f,this.bind(this.loadMoreIfNeeded)),a(this.container).on("change",".select2-input",function(a){a.stopPropagation()}),a(this.dropdown).on("change",".select2-input",function(a){a.stopPropagation()}),a.fn.mousewheel&&d.mousewheel(function(a,b,c,e){var f=d.scrollTop();e>0&&0>=f-e?(d.scrollTop(0),A(a)):0>e&&d.get(0).scrollHeight-d.scrollTop()+e<=d.height()&&(d.scrollTop(d.get(0).scrollHeight-d.height()),A(a))}),u(e),e.on("keyup-change input paste",this.bind(this.updateResults)),e.on("focus",function(){e.addClass("select2-focused")}),e.on("blur",function(){e.removeClass("select2-focused")}),this.dropdown.on("mouseup",f,this.bind(function(b){a(b.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(b),this.selectHighlighted(b))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(a){a.stopPropagation()}),this.nextSearchTerm=b,a.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==c.maximumInputLength&&this.search.attr("maxlength",c.maximumInputLength);var h=c.element.prop("disabled");h===b&&(h=!1),this.enable(!h);var i=c.element.prop("readonly");i===b&&(i=!1),this.readonly(i),k=k||q(),this.autofocus=c.element.prop("autofocus"),c.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",c.searchInputPlaceholder)},destroy:function(){var a=this.opts.element,c=a.data("select2"),d=this;this.close(),a.length&&a[0].detachEvent&&a.each(function(){this.detachEvent("onpropertychange",d._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,c!==b&&(c.container.remove(),c.liveRegion.remove(),c.dropdown.remove(),a.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?a.attr({tabindex:this.elementTabIndex}):a.removeAttr("tabindex"),a.show()),N.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(a){return a.is("option")?{id:a.prop("value"),text:a.text(),element:a.get(),css:a.attr("class"),disabled:a.prop("disabled"),locked:r(a.attr("locked"),"locked")||r(a.data("locked"),!0)}:a.is("optgroup")?{text:a.attr("label"),children:[],element:a.get(),css:a.attr("class")}:void 0},prepareOpts:function(c){var d,e,f,h,i=this;if(d=c.element,"select"===d.get(0).tagName.toLowerCase()&&(this.select=e=c.element),e&&a.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in c)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a ","
            "," ","
              ","
            ","
            "].join(""));return b},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var c,d,e;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),c=this.search.get(0),c.createTextRange?(d=c.createTextRange(),d.collapse(!1),d.select()):c.setSelectionRange&&(e=this.search.val().length,c.setSelectionRange(e,e))),""===this.search.val()&&this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(a.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){a("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),N.call(this,"selection","focusser")},initContainer:function(){var b,h,d=this.container,e=this.dropdown,f=g();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=b=d.find(".select2-choice"),this.focusser=d.find(".select2-focusser"),b.find(".select2-chosen").attr("id","select2-chosen-"+f),this.focusser.attr("aria-labelledby","select2-chosen-"+f),this.results.attr("id","select2-results-"+f),this.search.attr("aria-owns","select2-results-"+f),this.focusser.attr("id","s2id_autogen"+f),h=a("label[for='"+this.opts.element.attr("id")+"']"),this.focusser.prev().text(h.text()).attr("for",this.focusser.attr("id"));var i=this.opts.element.attr("title");this.opts.element.attr("title",i||h.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(a("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(a){if(this.isInterfaceEnabled()&&229!=a.keyCode){if(a.which===c.PAGE_UP||a.which===c.PAGE_DOWN)return A(a),void 0;switch(a.which){case c.UP:case c.DOWN:return this.moveHighlight(a.which===c.UP?-1:1),A(a),void 0;case c.ENTER:return this.selectHighlighted(),A(a),void 0;case c.TAB:return this.selectHighlighted({noFocus:!0}),void 0;case c.ESC:return this.cancel(a),A(a),void 0}}})),this.search.on("blur",this.bind(function(){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(a){if(this.isInterfaceEnabled()&&a.which!==c.TAB&&!c.isControl(a)&&!c.isFunctionKey(a)&&a.which!==c.ESC){if(this.opts.openOnEnter===!1&&a.which===c.ENTER)return A(a),void 0;if(a.which==c.DOWN||a.which==c.UP||a.which==c.ENTER&&this.opts.openOnEnter){if(a.altKey||a.ctrlKey||a.shiftKey||a.metaKey)return;return this.open(),A(a),void 0}return a.which==c.DELETE||a.which==c.BACKSPACE?(this.opts.allowClear&&this.clear(),A(a),void 0):void 0}})),u(this.focusser),this.focusser.on("keyup-change input",this.bind(function(a){if(this.opts.minimumResultsForSearch>=0){if(a.stopPropagation(),this.opened())return;this.open()}})),b.on("mousedown touchstart","abbr",this.bind(function(a){this.isInterfaceEnabled()&&(this.clear(),B(a),this.close(),this.selection.focus())})),b.on("mousedown touchstart",this.bind(function(c){n(b),this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),A(c)})),e.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),b.on("focus",this.bind(function(a){A(a)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(a.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(b){var c=this.selection.data("select2-data");if(c){var d=a.Event("select2-clearing");if(this.opts.element.trigger(d),d.isDefaultPrevented())return;var e=this.getPlaceholderOption();this.opts.element.val(e?e.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),b!==!1&&(this.opts.element.trigger({type:"select2-removed",val:this.id(c),choice:c}),this.triggerChange({removed:c}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var c=this;this.opts.initSelection.call(null,this.opts.element,function(a){a!==b&&null!==a&&(c.updateSelection(a),c.close(),c.setPlaceholder(),c.nextSearchTerm=c.opts.nextSearchTerm(a,c.search.val()))})}},isPlaceholderOptionSelected:function(){var a;return this.getPlaceholder()===b?!1:(a=this.getPlaceholderOption())!==b&&a.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val()},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments),c=this;return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(a,b){var d=a.find("option").filter(function(){return this.selected&&!this.disabled});b(c.optionToData(d))}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=c.val(),f=null;b.query({matcher:function(a,c,d){var g=r(e,b.id(d));return g&&(f=d),g},callback:a.isFunction(d)?function(){d(f)}:a.noop})}),b},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var a=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&a!==b){if(this.select&&this.getPlaceholderOption()===b)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(a)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(a,b,c){var d=0,e=this;if(this.findHighlightableChoices().each2(function(a,b){return r(e.id(b.data("select2-data")),e.opts.element.val())?(d=a,!1):void 0}),c!==!1&&(b===!0&&d>=0?this.highlight(d):this.highlight(0)),b===!0){var g=this.opts.minimumResultsForSearch;g>=0&&this.showSearch(L(a.results)>=g)}},showSearch:function(b){this.showSearchInput!==b&&(this.showSearchInput=b,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!b),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!b),a(this.dropdown,this.container).toggleClass("select2-with-searchbox",b))},onSelect:function(a,b){if(this.triggerSelect(a)){var c=this.opts.element.val(),d=this.data();this.opts.element.val(this.id(a)),this.updateSelection(a),this.opts.element.trigger({type:"select2-selected",val:this.id(a),choice:a}),this.nextSearchTerm=this.opts.nextSearchTerm(a,this.search.val()),this.close(),b&&b.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),r(c,this.id(a))||this.triggerChange({added:a,removed:d})}},updateSelection:function(a){var d,e,c=this.selection.find(".select2-chosen");this.selection.data("select2-data",a),c.empty(),null!==a&&(d=this.opts.formatSelection(a,c,this.opts.escapeMarkup)),d!==b&&c.append(d),e=this.opts.formatSelectionCssClass(a,c),e!==b&&c.addClass(e),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var a,c=!1,d=null,e=this,f=this.data();if(0===arguments.length)return this.opts.element.val();if(a=arguments[0],arguments.length>1&&(c=arguments[1]),this.select)this.select.val(a).find("option").filter(function(){return this.selected}).each2(function(a,b){return d=e.optionToData(b),!1}),this.updateSelection(d),this.setPlaceholder(),c&&this.triggerChange({added:d,removed:f});else{if(!a&&0!==a)return this.clear(c),void 0;if(this.opts.initSelection===b)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(a),this.opts.initSelection(this.opts.element,function(a){e.opts.element.val(a?e.id(a):""),e.updateSelection(a),e.setPlaceholder(),c&&e.triggerChange({added:a,removed:f})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(a){var c,d=!1;return 0===arguments.length?(c=this.selection.data("select2-data"),c==b&&(c=null),c):(arguments.length>1&&(d=arguments[1]),a?(c=this.data(),this.opts.element.val(a?this.id(a):""),this.updateSelection(a),d&&this.triggerChange({added:a,removed:c})):this.clear(d),void 0)}}),f=O(d,{createContainer:function(){var b=a(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html(["
              ","
            • "," "," ","
            • ","
            ","
            ","
              ","
            ","
            "].join(""));return b},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments),c=this;return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(a,b){var d=[];a.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(a,b){d.push(c.optionToData(b))}),b(d)}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=s(c.val(),b.separator),f=[];b.query({matcher:function(c,d,g){var h=a.grep(e,function(a){return r(a,b.id(g))}).length;return h&&f.push(g),h},callback:a.isFunction(d)?function(){for(var a=[],c=0;c0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.open(),this.focusSearch(),b.preventDefault()))})),this.container.on("focus",b,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var c=this;this.opts.initSelection.call(null,this.opts.element,function(a){a!==b&&null!==a&&(c.updateSelection(a),c.close(),c.clearSearch())})}},clearSearch:function(){var a=this.getPlaceholder(),c=this.getMaxSearchWidth();a!==b&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(a).addClass("select2-default"),this.search.width(c>0?c:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(a.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(b){var c=[],d=[],e=this;a(b).each(function(){p(e.id(this),c)<0&&(c.push(e.id(this)),d.push(this))}),b=d,this.selection.find(".select2-search-choice").remove(),a(b).each(function(){e.addSelectedChoice(this)}),e.postprocessResults()},tokenize:function(){var a=this.search.val();a=this.opts.tokenizer.call(this,a,this.data(),this.bind(this.onSelect),this.opts),null!=a&&a!=b&&(this.search.val(a),a.length>0&&this.open())},onSelect:function(a,c){this.triggerSelect(a)&&""!==a.text&&(this.addSelectedChoice(a),this.opts.element.trigger({type:"selected",val:this.id(a),choice:a}),this.nextSearchTerm=this.opts.nextSearchTerm(a,this.search.val()),this.clearSearch(),this.updateResults(),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(a,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:a}),c&&c.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(c){var j,k,d=!c.locked,e=a("
          • "),f=a("
          • "),g=d?e:f,h=this.id(c),i=this.getVal();j=this.opts.formatSelection(c,g.find("div"),this.opts.escapeMarkup),j!=b&&g.find("div").replaceWith("
            "+j+"
            "),k=this.opts.formatSelectionCssClass(c,g.find("div")),k!=b&&g.addClass(k),d&&g.find(".select2-search-choice-close").on("mousedown",A).on("click dblclick",this.bind(function(b){this.isInterfaceEnabled()&&(this.unselect(a(b.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),A(b),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),g.data("select2-data",c),g.insertBefore(this.searchContainer),i.push(h),this.setVal(i)},unselect:function(b){var d,e,c=this.getVal();if(b=b.closest(".select2-search-choice"),0===b.length)throw"Invalid argument: "+b+". Must be .select2-search-choice";if(d=b.data("select2-data")){var f=a.Event("select2-removing");if(f.val=this.id(d),f.choice=d,this.opts.element.trigger(f),f.isDefaultPrevented())return!1;for(;(e=p(this.id(d),c))>=0;)c.splice(e,1),this.setVal(c),this.select&&this.postprocessResults();return b.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(d),choice:d}),this.triggerChange({removed:d}),!0}},postprocessResults:function(a,b,c){var d=this.getVal(),e=this.results.find(".select2-result"),f=this.results.find(".select2-result-with-children"),g=this;e.each2(function(a,b){var c=g.id(b.data("select2-data"));p(c,d)>=0&&(b.addClass("select2-selected"),b.find(".select2-result-selectable").addClass("select2-selected"))}),f.each2(function(a,b){b.is(".select2-result-selectable")||0!==b.find(".select2-result-selectable:not(.select2-selected)").length||b.addClass("select2-selected")}),-1==this.highlight()&&c!==!1&&g.highlight(0),!this.opts.createSearchChoice&&!e.filter(".select2-result:not(.select2-selected)").length>0&&(!a||a&&!a.more&&0===this.results.find(".select2-no-results").length)&&J(g.opts.formatNoMatches,"formatNoMatches")&&this.results.append("
          • "+K(g.opts.formatNoMatches,g.opts.element,g.search.val())+"
          • ")},getMaxSearchWidth:function(){return this.selection.width()-t(this.search)},resizeSearch:function(){var a,b,c,d,e,f=t(this.search);a=C(this.search)+10,b=this.search.offset().left,c=this.selection.width(),d=this.selection.offset().left,e=c-(b-d)-f,a>e&&(e=c-f),40>e&&(e=c-f),0>=e&&(e=a),this.search.width(Math.floor(e))},getVal:function(){var a;return this.select?(a=this.select.val(),null===a?[]:a):(a=this.opts.element.val(),s(a,this.opts.separator))},setVal:function(b){var c;this.select?this.select.val(b):(c=[],a(b).each(function(){p(this,c)<0&&c.push(this)}),this.opts.element.val(0===c.length?"":c.join(this.opts.separator)))},buildChangeDetails:function(a,b){for(var b=b.slice(0),a=a.slice(0),c=0;c0&&c--,a.splice(d,1),d--);return{added:b,removed:a}},val:function(c,d){var e,f=this;if(0===arguments.length)return this.getVal();if(e=this.data(),e.length||(e=[]),!c&&0!==c)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),d&&this.triggerChange({added:this.data(),removed:e}),void 0;if(this.setVal(c),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),d&&this.triggerChange(this.buildChangeDetails(e,this.data()));else{if(this.opts.initSelection===b)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(b){var c=a.map(b,f.id);f.setVal(c),f.updateSelection(b),f.clearSearch(),d&&f.triggerChange(f.buildChangeDetails(e,f.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var b=[],c=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){b.push(c.opts.id(a(this).data("select2-data")))}),this.setVal(b),this.triggerChange()},data:function(b,c){var e,f,d=this;return 0===arguments.length?this.selection.children(".select2-search-choice").map(function(){return a(this).data("select2-data")}).get():(f=this.data(),b||(b=[]),e=a.map(b,function(a){return d.opts.id(a)}),this.setVal(e),this.updateSelection(b),this.clearSearch(),c&&this.triggerChange(this.buildChangeDetails(f,this.data())),void 0)}}),a.fn.select2=function(){var d,e,f,g,h,c=Array.prototype.slice.call(arguments,0),i=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],j=["opened","isFocused","container","dropdown"],k=["val","data"],l={search:"externalSearch"};return this.each(function(){if(0===c.length||"object"==typeof c[0])d=0===c.length?{}:a.extend({},c[0]),d.element=a(this),"select"===d.element.get(0).tagName.toLowerCase()?h=d.element.prop("multiple"):(h=d.multiple||!1,"tags"in d&&(d.multiple=h=!0)),e=h?new window.Select2["class"].multi:new window.Select2["class"].single,e.init(d);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(p(c[0],i)<0)throw"Unknown method: "+c[0];if(g=b,e=a(this).data("select2"),e===b)return;if(f=c[0],"container"===f?g=e.container:"dropdown"===f?g=e.dropdown:(l[f]&&(f=l[f]),g=e[f].apply(e,c.slice(1))),p(c[0],j)>=0||p(c[0],k)>=0&&1==c.length)return!1}}),g===b?this:g},a.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(a,b,c,d){var e=[];return E(a.text,c.term,e,d),e.join("")},formatSelection:function(a,c,d){return a?d(a.text):b},sortResults:function(a){return a},formatResultCssClass:function(a){return a.css},formatSelectionCssClass:function(){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(a){return a==b?null:a.id},matcher:function(a,b){return o(""+b).toUpperCase().indexOf(o(""+a).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:M,escapeMarkup:F,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(a){return a},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return b},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(a){var b="ontouchstart"in window||navigator.msMaxTouchPoints>0;return b?a.opts.minimumResultsForSearch<0?!1:!0:!0}},a.fn.select2.locales=[],a.fn.select2.locales.en={formatMatches:function(a){return 1===a?"One result is available, press enter to select it.":a+" results are available, use up and down arrow keys to navigate." +},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(){return"Loading failed"},formatInputTooShort:function(a,b){var c=b-a.length;return"Please enter "+c+" or more character"+(1==c?"":"s")},formatInputTooLong:function(a,b){var c=a.length-b;return"Please delete "+c+" character"+(1==c?"":"s")},formatSelectionTooBig:function(a){return"You can only select "+a+" item"+(1==a?"":"s")},formatLoadMore:function(){return"Loading more results\u2026"},formatSearching:function(){return"Searching\u2026"}},a.extend(a.fn.select2.defaults,a.fn.select2.locales.en),a.fn.select2.ajaxDefaults={transport:a.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:G,local:H,tags:I},util:{debounce:w,markMatch:E,escapeMarkup:F,stripDiacritics:o},"class":{"abstract":d,single:e,multi:f}}}}(jQuery); +/** + * Select2 Russian translation. + * + * @author Uriy Efremochkin + */ +(function ($) { + "use strict"; + + $.fn.select2.locales['ru'] = { + formatNoMatches: function () { return "Совпадений не найдено"; }, + formatInputTooShort: function (input, min) { return "Пожалуйста, введите еще хотя бы" + character(min - input.length); }, + formatInputTooLong: function (input, max) { return "Пожалуйста, введите на" + character(input.length - max) + " меньше"; }, + formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit%10 == 1 && limit%100 != 11 ? "а" : "ов"); }, + formatLoadMore: function (pageNumber) { return "Загрузка данных…"; }, + formatSearching: function () { return "Поиск…"; } + }; + + $.extend($.fn.select2.defaults, $.fn.select2.locales['ru']); + + function character (n) { + return " " + n + " символ" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 20) ? n%10 > 1 ? "a" : "" : "ов"); + } +})(jQuery); + +/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ +/* Written by Andrew Stromnov (stromnov@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['ru'] = { + closeText: 'Закрыть', + prevText: '<Пред', + nextText: 'След>', + currentText: 'Сегодня', + monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь', + 'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'], + monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн', + 'Июл','Авг','Сен','Окт','Ноя','Дек'], + dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'], + dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'], + dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'], + weekHeader: 'Нед', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ru']); +}); + +/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net) + * Licensed under the MIT License (LICENSE.txt). + * + * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. + * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. + * Thanks to: Seamus Leahy for adding deltaX and deltaY + * + * Version: 3.0.6 + * + * Requires: 1.2.2+ + */ +(function(a){function d(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)}var b=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=b.length;c;)a.event.fixHooks[b[--c]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],d,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery); + +/* + * Swiper 2.4+ - Mobile Touch Slider + * http://www.idangero.us/sliders/swiper/ + * + * Copyright 2012-2013, Vladimir Kharlampidi + * The iDangero.us + * http://www.idangero.us/ + * + * Licensed under GPL & MIT + * + * Updated on: December 6, 2013 +*/ +var Swiper=function(f,b){function h(a,b){return document.querySelectorAll?(b||document).querySelectorAll(a):jQuery(a,b)}function g(){var c=A-m;b.freeMode&&(c=A-m);b.slidesPerView>a.slides.length&&(c=0);0>c&&(c=0);return c}function l(){function c(c){var d=new Image;d.onload=function(){a.imagesLoaded++;a.imagesLoaded==a.imagesToLoad.length&&(a.reInit(),b.onImagesReady&&a.fireCallback(b.onImagesReady,a))};d.src=c}var d=a.h.addEventListener;a.browser.ie10?(d(a.wrapper,a.touchEvents.touchStart,B),d(document, +a.touchEvents.touchMove,C),d(document,a.touchEvents.touchEnd,D)):(a.support.touch&&(d(a.wrapper,"touchstart",B),d(a.wrapper,"touchmove",C),d(a.wrapper,"touchend",D)),b.simulateTouch&&(d(a.wrapper,"mousedown",B),d(document,"mousemove",C),d(document,"mouseup",D)));b.autoResize&&d(window,"resize",a.resizeFix);q();a._wheelEvent=!1;if(b.mousewheelControl){void 0!==document.onmousewheel&&(a._wheelEvent="mousewheel");try{WheelEvent("wheel"),a._wheelEvent="wheel"}catch(e){}a._wheelEvent||(a._wheelEvent="DOMMouseScroll"); +a._wheelEvent&&d(a.container,a._wheelEvent,P)}b.keyboardControl&&d(document,"keydown",Q);if(b.updateOnImagesReady)for(a.imagesToLoad=h("img",a.container),d=0;d=v&&r[0]<=v+h&&r[1]>=g&&r[1]<=g+m&&(e=!0)}if(!e)return}if(k){if(37==b||39==b)c.preventDefault?c.preventDefault(): +c.returnValue=!1;39==b&&a.swipeNext();37==b&&a.swipePrev()}else{if(38==b||40==b)c.preventDefault?c.preventDefault():c.returnValue=!1;40==b&&a.swipeNext();38==b&&a.swipePrev()}}function P(c){var d=a._wheelEvent,e=0;if(c.detail)e=-c.detail;else if("mousewheel"==d)if(k)if(Math.abs(c.wheelDeltaX)>Math.abs(c.wheelDeltaY))e=c.wheelDeltaX;else return;else if(Math.abs(c.wheelDeltaY)>Math.abs(c.wheelDeltaX))e=c.wheelDeltaY;else return;else if("DOMMouseScroll"==d)e=-c.detail;else if("wheel"==d)if(k)if(Math.abs(c.deltaX)> +Math.abs(c.deltaY))e=-c.deltaX;else return;else if(Math.abs(c.deltaY)>Math.abs(c.deltaX))e=-c.deltaY;else return;if(b.freeMode){if(d=a.getWrapperTranslate()+e,0e?a.swipeNext():a.swipePrev()),V=(new Date).getTime();b.autoplay&&a.stopAutoplay(!0);c.preventDefault?c.preventDefault():c.returnValue=!1;return!1}function T(c){a.allowSlideClick&&(W(c), +a.fireCallback(b.onSlideClick,a,c))}function U(c){W(c);a.fireCallback(b.onSlideTouch,a,c)}function W(c){if(c.currentTarget)a.clickedSlide=c.currentTarget;else{c=c.srcElement;do if(-1Math.abs(d-a.touches.startX)));"undefined"!==typeof y||k||(y=!!(y||Math.abs(e-a.touches.startY)c?m/2:a.positions.current*c),a.positions.current<-g()&&(d=(a.touches.current-a.touches.start)*b.touchRatio+(g()+a.positions.start), +c=(m+d)/m,d=a.positions.current-d*(1-c)/2,e=-g()-m/2,a.positions.current=d=c?e:d)),b.resistance&&"100%"==b.resistance&&(0b.moveStartThreshold||N?(N=!0,a.setWrapperTranslate(a.positions.current)):a.positions.current=a.positions.start:a.setWrapperTranslate(a.positions.current), +(b.freeMode||b.watchActiveIndex)&&a.updateActiveSlide(a.positions.current),b.grabCursor&&(a.container.style.cursor="move",a.container.style.cursor="grabbing",a.container.style.cursor="-moz-grabbin",a.container.style.cursor="-webkit-grabbing"),G||(G=a.touches.current),J||(J=(new Date).getTime()),a.velocity=(a.touches.current-G)/((new Date).getTime()-J)/2,2>Math.abs(a.touches.current-G)&&(a.velocity=0),G=a.touches.current,J=(new Date).getTime(),a.callPlugins("onTouchMoveEnd"),b.onTouchMove&&a.fireCallback(b.onTouchMove, +a),!1}}function D(c){y&&a.swipeReset();if(!b.onlyExternal&&a.isTouched){a.isTouched=!1;b.grabCursor&&(a.container.style.cursor="move",a.container.style.cursor="grab",a.container.style.cursor="-moz-grab",a.container.style.cursor="-webkit-grab");a.positions.current||0===a.positions.current||(a.positions.current=a.positions.start);b.followFinger&&a.setWrapperTranslate(a.positions.current);a.times.end=(new Date).getTime();a.touches.diff=a.touches.current-a.touches.start;a.touches.abs=Math.abs(a.touches.diff); +a.positions.diff=a.positions.current-a.positions.start;a.positions.abs=Math.abs(a.positions.diff);var d=a.positions.diff,e=a.positions.abs;c=a.times.end-a.times.start;5>e&&300>c&&!1==a.allowLinks&&(b.freeMode||0==e||a.swipeReset(),b.preventLinks&&(a.allowLinks=!0),b.onSlideClick&&(a.allowSlideClick=!0));setTimeout(function(){b.preventLinks&&(a.allowLinks=!0);b.onSlideClick&&(a.allowSlideClick=!0)},100);var f=g();if(!a.isMoved&&b.freeMode)a.isMoved=!1,b.onTouchEnd&&a.fireCallback(b.onTouchEnd,a);else if(!a.isMoved|| +0n&&(d=n),h=0,I=v=!0):d=0);0!=a.velocity&&(e=Math.abs((d-a.positions.current)/a.velocity));a.setWrapperTranslate(d); +a.setWrapperTransition(e);b.momentumBounce&&v&&a.wrapperTransitionEnd(function(){I&&(b.onMomentumBounce&&a.fireCallback(b.onMomentumBounce,a),a.callPlugins("onMomentumBounce"),a.setWrapperTranslate(h),a.setWrapperTransition(300))});a.updateActiveSlide(d)}(!b.freeModeFluid||300<=c)&&a.updateActiveSlide(a.positions.current);b.onTouchEnd&&a.fireCallback(b.onTouchEnd,a)}else{H=0>d?"toNext":"toPrev";"toNext"==H&&300>=c&&(30>e||!b.shortSwipes?a.swipeReset():a.swipeNext(!0));"toPrev"==H&&300>=c&&(30>e|| +!b.shortSwipes?a.swipeReset():a.swipePrev(!0));f=0;if("auto"==b.slidesPerView){for(var d=Math.abs(a.getWrapperTranslate()),l=v=0;ld){f=n;break}f>m&&(f=m)}else f=s*b.slidesPerView;"toNext"==H&&300=0.5*f?a.swipeNext(!0):a.swipeReset());"toPrev"==H&&300=0.5*f?a.swipePrev(!0):a.swipeReset());if(b.onTouchEnd)b.onTouchEnd(a)}a.callPlugins("onTouchEnd")}}function K(c,d,e){function f(){g+=h;(m="toNext"==k? +g>c:gc?"toNext":"toPrev",m="toNext"==k?g>c:gm){for(w=0;w<=Math.floor(t/(m+a.wrapperLeft));w++)0===w?a.snapGrid.push(n+a.wrapperLeft):a.snapGrid.push(n+a.wrapperLeft+m*w);a.slidesGrid.push(n+a.wrapperLeft)}else a.snapGrid.push(l),a.slidesGrid.push(l);l+=t/2+u/2}else{if(t>m)for(w=0;w<=Math.floor(t/m);w++)a.snapGrid.push(n+m*w);else a.snapGrid.push(n);a.slidesGrid.push(n)}n+=t;g+=f;h+=q}b.calculateHeight&&(a.height=p);k?(A=g+a.wrapperRight+a.wrapperLeft,e.style.width=g+"px",e.style.height=a.height+ +"px"):(A=h+a.wrapperTop+a.wrapperBottom,e.style.width=a.width+"px",e.style.height=h+"px")}else if(b.scrollContainer)e.style.width="",e.style.height="",p=a.slides[0].getWidth(!0),g=a.slides[0].getHeight(!0),A=k?p:g,e.style.width=p+"px",e.style.height=g+"px",s=k?p:g;else{if(b.calculateHeight){g=p=0;k||(a.container.style.height="");e.style.height="";for(r=0;r=a.snapGrid[e]&&-ca.snapGrid[e]&&-c=a.snapGrid[e]&&-c=a.snapGrid[a.snapGrid.length-1]&&(d=-a.snapGrid[a.snapGrid.length-1]);c<=-g()&&(d=-g())}else d=0>c?Math.round(c/d)*d:0;b.scrollContainer&&(d=0>c?c:0);d<-g()&&(d=-g());b.scrollContainer&&m>s&&(d=0);if(d==c)return!1;K(d,"reset");return!0};a.swipeTo=function(c,d,e){c=parseInt(c,10);a.callPlugins("onSwipeTo", +{index:c,speed:d});b.loop&&(c+=a.loopedSlides);var f=a.getWrapperTranslate();if(!(c>a.slides.length-1||0>c)){var h;h="auto"==b.slidesPerView?-a.slidesGrid[c]:-c*s;h<-g()&&(h=-g());if(h==f)return!1;K(h,"to",{index:c,speed:d,runCallbacks:!1===e?!1:!0});return!0}};a._queueStartCallbacks=!1;a._queueEndCallbacks=!1;a.updateActiveSlide=function(c){if(a.initialized&&0!=a.slides.length){a.previousIndex=a.activeIndex;"undefined"==typeof c&&(c=a.getWrapperTranslate());0a.activeIndex){for(var d=0;da.slidesGrid[d]&&-ca.activeIndex&&(a.activeIndex=0);if(a.slides[a.activeIndex]){a.calcVisibleSlides(c);e=RegExp("\\s*"+b.slideActiveClass);f=RegExp("\\s*"+b.slideVisibleClass); +for(d=0;d=a.slides.length-2*d&&(a.activeLoopIndex=a.slides.length-2*d-a.activeLoopIndex),0>a.activeLoopIndex&&(a.activeLoopIndex=a.slides.length-2*d+a.activeLoopIndex)):a.activeLoopIndex= +a.activeIndex;b.pagination&&a.updatePagination(c)}}};a.createPagination=function(c){b.paginationClickable&&a.paginationButtons&&X();a.paginationContainer=b.pagination.nodeType?b.pagination:h(b.pagination)[0];if(b.createPagination){var d="",e=a.slides.length;b.loop&&(e-=2*a.loopedSlides);for(var f=0;f";a.paginationContainer.innerHTML=d}a.paginationButtons=h("."+b.paginationElementClass,a.paginationContainer); +c||a.updatePagination();a.callPlugins("onCreatePagination");if(b.paginationClickable)for(c=a.paginationButtons,d=0;da.slides.length)&&h("."+b.paginationActiveClass,a.paginationContainer)){var d=a.paginationButtons;if(0!=d.length){for(var e=0;eg&&(g=a.slides.length-2*a.loopedSlides+g);b.loop&&g>=a.slides.length-2*a.loopedSlides&&(g=a.slides.length-2*a.loopedSlides-g,g=Math.abs(g));c.push(g)}for(e=0;e=-c&&g<=-c+m&&(n=!0),e<=-c&&g>=-c+m&&(n=!0)):(g>-c&&g<=-c+m&&(n=!0),e>=-c&&e<-c+m&&(n= +!0),e<-c&&g>-c+m&&(n=!0));n&&d.push(a.slides[h])}0==d.length&&(d=[a.slides[a.activeIndex]]);a.visibleSlides=d};var E=void 0;a.startAutoplay=function(){if("undefined"!==typeof E)return!1;b.autoplay&&(a.callPlugins("onAutoplayStart"),O())};a.stopAutoplay=function(c){E&&clearTimeout(E);E=void 0;c&&!b.autoplayDisableOnInteraction&&a.wrapperTransitionEnd(function(){O()});a.callPlugins("onAutoplayStop")};a.loopCreated=!1;a.removeLoopedSlides=function(){if(a.loopCreated)for(var b=0;ba.slides.length&&(a.loopedSlides=a.slides.length);var c="",d="",e,f="",g=a.slides.length,h=Math.floor(a.loopedSlides/g),n=a.loopedSlides%g;for(e=0;e=g&&(k=e-g*Math.floor(e/g));f+=a.slides[k].outerHTML}for(e=0;e=a.slides.length-a.loopedSlides)&&a.slides[e].setData("looped",!0);a.callPlugins("onCreateLoop")}};a.fixLoop=function(){var c;a.activeIndexa.slides.length-2*b.slidesPerView&&(c=-a.slides.length+a.activeIndex+a.loopedSlides,a.swipeTo(c,0,!1))};a.loadSlides=function(){var c= +"";a.activeLoaderIndex=0;for(var d=b.loader.slides,e=b.loader.loadAllSlides?d.length:b.slidesPerView*(1+b.loader.surroundGroups),f=0;f'+d[f]+"");a.wrapper.innerHTML=c;a.calcSlides(!0);b.loader.loadAllSlides||a.wrapperTransitionEnd(a.reloadSlides,!0)};a.reloadSlides=function(){var c=b.loader.slides,d=parseInt(a.activeSlide().data("swiperindex"),10);if(!(0> +d||d>c.length-1)){a.activeLoaderIndex=d;var e=Math.max(0,d-b.slidesPerView*b.loader.surroundGroups),f=Math.min(d+b.slidesPerView*(1+b.loader.surroundGroups)-1,c.length-1);0'+c[d]+"";a.wrapper.innerHTML=g}else{for(var g=1E3,h=0,d= +0;df?a.wrapper.removeChild(a.slides[d]):(g=Math.min(k,g),h=Math.max(k,h))}for(d=e;d<=f;d++)dh&&(e=document.createElement(b.slideElement),e.className=b.slideClass,e.setAttribute("data-swiperindex",d),e.innerHTML=c[d],a.wrapper.appendChild(e))}a.reInit(!0)}};a.calcSlides(); +0f}(),ie10:window.navigator.msPointerEnabled}}; +(window.jQuery||window.Zepto)&&function(f){f.fn.swiper=function(b){b=new Swiper(f(this)[0],b);f(this).data("swiper",b);return b}}(window.jQuery||window.Zepto);"undefined"!==typeof module&&(module.exports=Swiper); +/* == jquery mousewheel plugin == Version: 3.1.11, License: MIT License (MIT) */ +!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.11",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b)["offsetParent"in a.fn?"offsetParent":"parent"]();return c.length||(c=a("body")),parseInt(c.css("fontSize"),10)},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}); +/* == malihu jquery custom scrollbar plugin == Version: 3.0.4, License: MIT License (MIT) */ +(function(b,a,c){(function(d){d(jQuery)}(function(j){var g="mCustomScrollbar",d="mCS",m=".mCustomScrollbar",h={setWidth:false,setHeight:false,setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:true,autoHideScrollbar:false,autoExpandScrollbar:false,alwaysShowScrollbar:0,snapAmount:null,snapOffset:0,mouseWheel:{enable:true,scrollAmount:"auto",axis:"y",preventDefault:false,deltaFactor:"auto",normalizeDelta:false,invert:false,disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{enable:false,scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:true,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoExpandHorizontalScroll:false,autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:true,updateOnImageLoad:true,updateOnSelectorChange:false},theme:"light",callbacks:{onScrollStart:false,onScroll:false,onTotalScroll:false,onTotalScrollBack:false,whileScrolling:false,onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:true,onOverflowY:false,onOverflowX:false,onOverflowYNone:false,onOverflowXNone:false},live:false,liveSelector:null},l=0,o={},f=function(p){if(o[p]){clearTimeout(o[p]);i._delete.call(null,o[p])}},k=(b.attachEvent&&!b.addEventListener)?1:0,n=false,e={init:function(q){var q=j.extend(true,{},h,q),p=i._selector.call(this);if(q.live){var s=q.liveSelector||this.selector||m,r=j(s);if(q.live==="off"){f(s);return}o[s]=setTimeout(function(){r.mCustomScrollbar(q);if(q.live==="once"&&r.length){f(s)}},500)}else{f(s)}q.setWidth=(q.set_width)?q.set_width:q.setWidth;q.setHeight=(q.set_height)?q.set_height:q.setHeight;q.axis=(q.horizontalScroll)?"x":i._findAxis.call(null,q.axis);q.scrollInertia=q.scrollInertia>0&&q.scrollInertia<17?17:q.scrollInertia;if(typeof q.mouseWheel!=="object"&&q.mouseWheel==true){q.mouseWheel={enable:true,scrollAmount:"auto",axis:"y",preventDefault:false,deltaFactor:"auto",normalizeDelta:false,invert:false}}q.mouseWheel.scrollAmount=!q.mouseWheelPixels?q.mouseWheel.scrollAmount:q.mouseWheelPixels;q.mouseWheel.normalizeDelta=!q.advanced.normalizeMouseWheelDelta?q.mouseWheel.normalizeDelta:q.advanced.normalizeMouseWheelDelta;q.scrollButtons.scrollType=i._findScrollButtonsType.call(null,q.scrollButtons.scrollType);i._theme.call(null,q);return j(p).each(function(){var u=j(this);if(!u.data(d)){u.data(d,{idx:++l,opt:q,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:false,tweenRunning:false,sequential:{},langDir:u.css("direction"),cbOffsets:null,trigger:null});var w=u.data(d).opt,v=u.data("mcs-axis"),t=u.data("mcs-scrollbar-position"),x=u.data("mcs-theme");if(v){w.axis=v}if(t){w.scrollbarPosition=t}if(x){w.theme=x;i._theme.call(null,w)}i._pluginMarkup.call(this);e.update.call(null,u)}})},update:function(q){var p=q||i._selector.call(this);return j(p).each(function(){var t=j(this);if(t.data(d)){var v=t.data(d),u=v.opt,r=j("#mCSB_"+v.idx+"_container"),s=[j("#mCSB_"+v.idx+"_dragger_vertical"),j("#mCSB_"+v.idx+"_dragger_horizontal")];if(!r.length){return}if(v.tweenRunning){i._stop.call(null,t)}if(t.hasClass("mCS_disabled")){t.removeClass("mCS_disabled")}if(t.hasClass("mCS_destroyed")){t.removeClass("mCS_destroyed")}i._maxHeight.call(this);i._expandContentHorizontally.call(this);if(u.axis!=="y"&&!u.advanced.autoExpandHorizontalScroll){r.css("width",i._contentWidth(r.children()))}v.overflowed=i._overflowed.call(this);i._scrollbarVisibility.call(this);if(u.autoDraggerLength){i._setDraggerLength.call(this)}i._scrollRatio.call(this);i._bindEvents.call(this);var w=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];if(u.axis!=="x"){if(!v.overflowed[0]){i._resetContentPosition.call(this);if(u.axis==="y"){i._unbindEvents.call(this)}else{if(u.axis==="yx"&&v.overflowed[1]){i._scrollTo.call(this,t,w[1].toString(),{dir:"x",dur:0,overwrite:"none"})}}}else{if(s[0].height()>s[0].parent().height()){i._resetContentPosition.call(this)}else{i._scrollTo.call(this,t,w[0].toString(),{dir:"y",dur:0,overwrite:"none"});v.contentReset.y=null}}}if(u.axis!=="y"){if(!v.overflowed[1]){i._resetContentPosition.call(this);if(u.axis==="x"){i._unbindEvents.call(this)}else{if(u.axis==="yx"&&v.overflowed[0]){i._scrollTo.call(this,t,w[0].toString(),{dir:"y",dur:0,overwrite:"none"})}}}else{if(s[1].width()>s[1].parent().width()){i._resetContentPosition.call(this)}else{i._scrollTo.call(this,t,w[1].toString(),{dir:"x",dur:0,overwrite:"none"});v.contentReset.x=null}}}i._autoUpdate.call(this)}})},scrollTo:function(r,q){if(typeof r=="undefined"||r==null){return}var p=i._selector.call(this);return j(p).each(function(){var u=j(this);if(u.data(d)){var x=u.data(d),w=x.opt,v={trigger:"external",scrollInertia:w.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:false,timeout:60,callbacks:true,onStart:true,onUpdate:true,onComplete:true},s=j.extend(true,{},v,q),y=i._arr.call(this,r),t=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;y[0]=i._to.call(this,y[0],"y");y[1]=i._to.call(this,y[1],"x");if(s.moveDragger){y[0]*=x.scrollRatio.y;y[1]*=x.scrollRatio.x}s.dur=t;setTimeout(function(){if(y[0]!==null&&typeof y[0]!=="undefined"&&w.axis!=="x"&&x.overflowed[0]){s.dir="y";s.overwrite="all";i._scrollTo.call(this,u,y[0].toString(),s)}if(y[1]!==null&&typeof y[1]!=="undefined"&&w.axis!=="y"&&x.overflowed[1]){s.dir="x";s.overwrite="none";i._scrollTo.call(this,u,y[1].toString(),s)}},s.timeout)}})},stop:function(){var p=i._selector.call(this);return j(p).each(function(){var q=j(this);if(q.data(d)){i._stop.call(null,q)}})},disable:function(q){var p=i._selector.call(this);return j(p).each(function(){var r=j(this);if(r.data(d)){var t=r.data(d),s=t.opt;i._autoUpdate.call(this,"remove");i._unbindEvents.call(this);if(q){i._resetContentPosition.call(this)}i._scrollbarVisibility.call(this,true);r.addClass("mCS_disabled")}})},destroy:function(){var p=i._selector.call(this);return j(p).each(function(){var s=j(this);if(s.data(d)){var u=s.data(d),t=u.opt,q=j("#mCSB_"+u.idx),r=j("#mCSB_"+u.idx+"_container"),v=j(".mCSB_"+u.idx+"_scrollbar");if(t.live){f(p)}i._autoUpdate.call(this,"remove");i._unbindEvents.call(this);i._resetContentPosition.call(this);s.removeData(d);i._delete.call(null,this.mcs);v.remove();q.replaceWith(r.contents());s.removeClass(g+" _"+d+"_"+u.idx+" mCS-autoHide mCS-dir-rtl mCS_no_scrollbar mCS_disabled").addClass("mCS_destroyed")}})}},i={_selector:function(){return(typeof j(this)!=="object"||j(this).length<1)?m:this},_theme:function(s){var r=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],q=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],p=["minimal","minimal-dark"],u=["minimal","minimal-dark"],t=["minimal","minimal-dark"];s.autoDraggerLength=j.inArray(s.theme,r)>-1?false:s.autoDraggerLength;s.autoExpandScrollbar=j.inArray(s.theme,q)>-1?false:s.autoExpandScrollbar;s.scrollButtons.enable=j.inArray(s.theme,p)>-1?false:s.scrollButtons.enable;s.autoHideScrollbar=j.inArray(s.theme,u)>-1?true:s.autoHideScrollbar;s.scrollbarPosition=j.inArray(s.theme,t)>-1?"outside":s.scrollbarPosition},_findAxis:function(p){return(p==="yx"||p==="xy"||p==="auto")?"yx":(p==="x"||p==="horizontal")?"x":"y"},_findScrollButtonsType:function(p){return(p==="stepped"||p==="pixels"||p==="step"||p==="click")?"stepped":"stepless"},_pluginMarkup:function(){var y=j(this),x=y.data(d),r=x.opt,t=r.autoExpandScrollbar?" mCSB_scrollTools_onDrag_expand":"",B=["
            ","
            "],u=r.axis==="yx"?"mCSB_vertical_horizontal":r.axis==="x"?"mCSB_horizontal":"mCSB_vertical",w=r.axis==="yx"?B[0]+B[1]:r.axis==="x"?B[1]:B[0],v=r.axis==="yx"?"
            ":"",s=r.autoHideScrollbar?" mCS-autoHide":"",p=(r.axis!=="x"&&x.langDir==="rtl")?" mCS-dir-rtl":"";if(r.setWidth){y.css("width",r.setWidth)}if(r.setHeight){y.css("height",r.setHeight)}r.setLeft=(r.axis!=="y"&&x.langDir==="rtl")?"989999px":r.setLeft;y.addClass(g+" _"+d+"_"+x.idx+s+p).wrapInner("
            ");var q=j("#mCSB_"+x.idx),z=j("#mCSB_"+x.idx+"_container");if(r.axis!=="y"&&!r.advanced.autoExpandHorizontalScroll){z.css("width",i._contentWidth(z.children()))}if(r.scrollbarPosition==="outside"){if(y.css("position")==="static"){y.css("position","relative")}y.css("overflow","visible");q.addClass("mCSB_outside").after(w)}else{q.addClass("mCSB_inside").append(w);z.wrap(v)}i._scrollButtons.call(this);var A=[j("#mCSB_"+x.idx+"_dragger_vertical"),j("#mCSB_"+x.idx+"_dragger_horizontal")];A[0].css("min-height",A[0].height());A[1].css("min-width",A[1].width())},_contentWidth:function(p){return Math.max.apply(Math,p.map(function(){return j(this).outerWidth(true)}).get())},_expandContentHorizontally:function(){var q=j(this),s=q.data(d),r=s.opt,p=j("#mCSB_"+s.idx+"_container");if(r.advanced.autoExpandHorizontalScroll&&r.axis!=="y"){p.css({position:"absolute",width:"auto"}).wrap("
            ").css({width:(Math.ceil(p[0].getBoundingClientRect().right+0.4)-Math.floor(p[0].getBoundingClientRect().left)),position:"relative"}).unwrap()}},_scrollButtons:function(){var s=j(this),u=s.data(d),t=u.opt,q=j(".mCSB_"+u.idx+"_scrollbar:first"),r=["","","",""],p=[(t.axis==="x"?r[2]:r[0]),(t.axis==="x"?r[3]:r[1]),r[2],r[3]];if(t.scrollButtons.enable){q.prepend(p[0]).append(p[1]).next(".mCSB_scrollTools").prepend(p[2]).append(p[3])}},_maxHeight:function(){var t=j(this),w=t.data(d),v=w.opt,r=j("#mCSB_"+w.idx),q=t.css("max-height"),s=q.indexOf("%")!==-1,p=t.css("box-sizing");if(q!=="none"){var u=s?t.parent().height()*parseInt(q)/100:parseInt(q);if(p==="border-box"){u-=((t.innerHeight()-t.height())+(t.outerHeight()-t.innerHeight()))}r.css("max-height",Math.round(u))}},_setDraggerLength:function(){var u=j(this),s=u.data(d),p=j("#mCSB_"+s.idx),v=j("#mCSB_"+s.idx+"_container"),y=[j("#mCSB_"+s.idx+"_dragger_vertical"),j("#mCSB_"+s.idx+"_dragger_horizontal")],t=[p.height()/v.outerHeight(false),p.width()/v.outerWidth(false)],q=[parseInt(y[0].css("min-height")),Math.round(t[0]*y[0].parent().height()),parseInt(y[1].css("min-width")),Math.round(t[1]*y[1].parent().width())],r=k&&(q[1]q.height(),p>q.width()]},_resetContentPosition:function(){var t=j(this),v=t.data(d),u=v.opt,q=j("#mCSB_"+v.idx),r=j("#mCSB_"+v.idx+"_container"),s=[j("#mCSB_"+v.idx+"_dragger_vertical"),j("#mCSB_"+v.idx+"_dragger_horizontal")];i._stop(t);if((u.axis!=="x"&&!v.overflowed[0])||(u.axis==="y"&&v.overflowed[0])){s[0].add(r).css("top",0);i._scrollTo(t,"_resetY")}if((u.axis!=="y"&&!v.overflowed[1])||(u.axis==="x"&&v.overflowed[1])){var p=dx=0;if(v.langDir==="rtl"){p=q.width()-r.outerWidth(false);dx=Math.abs(p/v.scrollRatio.x)}r.css("left",p);s[1].css("left",dx);i._scrollTo(t,"_resetX")}},_bindEvents:function(){var r=j(this),t=r.data(d),s=t.opt;if(!t.bindEvents){i._draggable.call(this);if(s.contentTouchScroll){i._contentDraggable.call(this)}if(s.mouseWheel.enable){function q(){p=setTimeout(function(){if(!j.event.special.mousewheel){q()}else{clearTimeout(p);i._mousewheel.call(r[0])}},1000)}var p;q()}i._draggerRail.call(this);i._wrapperScroll.call(this);if(s.advanced.autoScrollOnFocus){i._focus.call(this)}if(s.scrollButtons.enable){i._buttons.call(this)}if(s.keyboard.enable){i._keyboard.call(this)}t.bindEvents=true}},_unbindEvents:function(){var s=j(this),t=s.data(d),p=d+"_"+t.idx,u=".mCSB_"+t.idx+"_scrollbar",r=j("#mCSB_"+t.idx+",#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,"+u+" .mCSB_draggerContainer,#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal,"+u+">a"),q=j("#mCSB_"+t.idx+"_container");if(t.bindEvents){j(a).unbind("."+p);r.each(function(){j(this).unbind("."+p)});clearTimeout(s[0]._focusTimeout);i._delete.call(null,s[0]._focusTimeout);clearTimeout(t.sequential.step);i._delete.call(null,t.sequential.step);clearTimeout(q[0].onCompleteTimeout);i._delete.call(null,q[0].onCompleteTimeout);t.bindEvents=false}},_scrollbarVisibility:function(q){var t=j(this),v=t.data(d),u=v.opt,p=j("#mCSB_"+v.idx+"_container_wrapper"),r=p.length?p:j("#mCSB_"+v.idx+"_container"),w=[j("#mCSB_"+v.idx+"_scrollbar_vertical"),j("#mCSB_"+v.idx+"_scrollbar_horizontal")],s=[w[0].find(".mCSB_dragger"),w[1].find(".mCSB_dragger")];if(u.axis!=="x"){if(v.overflowed[0]&&!q){w[0].add(s[0]).add(w[0].children("a")).css("display","block");r.removeClass("mCS_no_scrollbar_y mCS_y_hidden")}else{if(u.alwaysShowScrollbar){if(u.alwaysShowScrollbar!==2){s[0].add(w[0].children("a")).css("display","none")}r.removeClass("mCS_y_hidden")}else{w[0].css("display","none");r.addClass("mCS_y_hidden")}r.addClass("mCS_no_scrollbar_y")}}if(u.axis!=="y"){if(v.overflowed[1]&&!q){w[1].add(s[1]).add(w[1].children("a")).css("display","block");r.removeClass("mCS_no_scrollbar_x mCS_x_hidden")}else{if(u.alwaysShowScrollbar){if(u.alwaysShowScrollbar!==2){s[1].add(w[1].children("a")).css("display","none")}r.removeClass("mCS_x_hidden")}else{w[1].css("display","none");r.addClass("mCS_x_hidden")}r.addClass("mCS_no_scrollbar_x")}}if(!v.overflowed[0]&&!v.overflowed[1]){t.addClass("mCS_no_scrollbar")}else{t.removeClass("mCS_no_scrollbar")}},_coordinates:function(q){var p=q.type;switch(p){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return[q.originalEvent.pageY,q.originalEvent.pageX];break;case"touchstart":case"touchmove":case"touchend":var r=q.originalEvent.touches[0]||q.originalEvent.changedTouches[0];return[r.pageY,r.pageX];break;default:return[q.pageY,q.pageX]}},_draggable:function(){var u=j(this),s=u.data(d),p=s.opt,r=d+"_"+s.idx,t=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],v=j("#mCSB_"+s.idx+"_container"),w=j("#"+t[0]+",#"+t[1]),A,y,z;w.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r,function(E){E.stopImmediatePropagation();E.preventDefault();if(!i._mouseBtnLeft(E)){return}n=true;if(k){a.onselectstart=function(){return false}}x(false);i._stop(u);A=j(this);var F=A.offset(),G=i._coordinates(E)[0]-F.top,B=i._coordinates(E)[1]-F.left,D=A.height()+F.top,C=A.width()+F.left;if(G0&&B0){y=G;z=B}i._onDragClasses(A,"active",p.autoExpandScrollbar)}).bind("touchmove."+r,function(C){C.stopImmediatePropagation();C.preventDefault();var D=A.offset(),E=i._coordinates(C)[0]-D.top,B=i._coordinates(C)[1]-D.left;q(y,z,E,B)});j(a).bind("mousemove."+r+" pointermove."+r+" MSPointerMove."+r,function(C){if(A){var D=A.offset(),E=i._coordinates(C)[0]-D.top,B=i._coordinates(C)[1]-D.left;if(y===E){return}q(y,z,E,B)}}).add(w).bind("mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(B){if(A){i._onDragClasses(A,"active",p.autoExpandScrollbar);A=null}n=false;if(k){a.onselectstart=null}x(true)});function x(B){var C=v.find("iframe");if(!C.length){return}var D=!B?"none":"auto";C.css("pointer-events",D)}function q(D,E,G,B){v[0].idleTimer=p.scrollInertia<233?250:0;if(A.attr("id")===t[1]){var C="x",F=((A[0].offsetLeft-E)+B)*s.scrollRatio.x}else{var C="y",F=((A[0].offsetTop-D)+G)*s.scrollRatio.y}i._scrollTo(u,F.toString(),{dir:C,drag:true})}},_contentDraggable:function(){var y=j(this),K=y.data(d),I=K.opt,F=d+"_"+K.idx,v=j("#mCSB_"+K.idx),z=j("#mCSB_"+K.idx+"_container"),w=[j("#mCSB_"+K.idx+"_dragger_vertical"),j("#mCSB_"+K.idx+"_dragger_horizontal")],E,G,L,M,C=[],D=[],H,A,u,t,J,x,r=0,q,s=I.axis==="yx"?"none":"all";z.bind("touchstart."+F+" pointerdown."+F+" MSPointerDown."+F,function(N){if(!i._pointerTouch(N)||n){return}var O=z.offset();E=i._coordinates(N)[0]-O.top;G=i._coordinates(N)[1]-O.left}).bind("touchmove."+F+" pointermove."+F+" MSPointerMove."+F,function(Q){if(!i._pointerTouch(Q)||n){return}Q.stopImmediatePropagation();A=i._getTime();var P=v.offset(),S=i._coordinates(Q)[0]-P.top,U=i._coordinates(Q)[1]-P.left,R="mcsLinearOut";C.push(S);D.push(U);if(K.overflowed[0]){var O=w[0].parent().height()-w[0].height(),T=((E-S)>0&&(S-E)>-(O*K.scrollRatio.y))}if(K.overflowed[1]){var N=w[1].parent().width()-w[1].width(),V=((G-U)>0&&(U-G)>-(N*K.scrollRatio.x))}if(T||V){Q.preventDefault()}x=I.axis==="yx"?[(E-S),(G-U)]:I.axis==="x"?[null,(G-U)]:[(E-S),null];z[0].idleTimer=250;if(K.overflowed[0]){B(x[0],r,R,"y","all",true)}if(K.overflowed[1]){B(x[1],r,R,"x",s,true)}});v.bind("touchstart."+F+" pointerdown."+F+" MSPointerDown."+F,function(N){if(!i._pointerTouch(N)||n){return}N.stopImmediatePropagation();i._stop(y);H=i._getTime();var O=v.offset();L=i._coordinates(N)[0]-O.top;M=i._coordinates(N)[1]-O.left;C=[];D=[]}).bind("touchend."+F+" pointerup."+F+" MSPointerUp."+F,function(P){if(!i._pointerTouch(P)||n){return}P.stopImmediatePropagation();u=i._getTime();var N=v.offset(),T=i._coordinates(P)[0]-N.top,V=i._coordinates(P)[1]-N.left;if((u-A)>30){return}J=1000/(u-H);var Q="mcsEaseOut",R=J<2.5,W=R?[C[C.length-2],D[D.length-2]]:[0,0];t=R?[(T-W[0]),(V-W[1])]:[T-L,V-M];var O=[Math.abs(t[0]),Math.abs(t[1])];J=R?[Math.abs(t[0]/4),Math.abs(t[1]/4)]:[J,J];var U=[Math.abs(z[0].offsetTop)-(t[0]*p((O[0]/J[0]),J[0])),Math.abs(z[0].offsetLeft)-(t[1]*p((O[1]/J[1]),J[1]))];x=I.axis==="yx"?[U[0],U[1]]:I.axis==="x"?[null,U[1]]:[U[0],null];q=[(O[0]*4)+I.scrollInertia,(O[1]*4)+I.scrollInertia];var S=parseInt(I.contentTouchScroll)||0;x[0]=O[0]>S?x[0]:0;x[1]=O[1]>S?x[1]:0;if(K.overflowed[0]){B(x[0],q[0],Q,"y",s,false)}if(K.overflowed[1]){B(x[1],q[1],Q,"x",s,false)}});function p(P,N){var O=[N*1.5,N*2,N/1.5,N/2];if(P>90){return N>4?O[0]:O[3]}else{if(P>60){return N>3?O[3]:O[2]}else{if(P>30){return N>8?O[1]:N>6?O[0]:N>4?N:O[2]}else{return N>8?N:O[3]}}}}function B(P,R,S,O,N,Q){if(!P){return}i._scrollTo(y,P.toString(),{dur:R,scrollEasing:S,dir:O,overwrite:N,drag:Q})}},_mousewheel:function(){var w=j(this),v=w.data(d);if(v){var p=v.opt,s=d+"_"+v.idx,q=j("#mCSB_"+v.idx),x=[j("#mCSB_"+v.idx+"_dragger_vertical"),j("#mCSB_"+v.idx+"_dragger_horizontal")],t=j("#mCSB_"+v.idx+"_container").find("iframe"),r=q;if(t.length){t.each(function(){var y=this;if(u(y)){r=r.add(j(y).contents().find("body"))}})}r.bind("mousewheel."+s,function(C,G){i._stop(w);if(i._disableMousewheel(w,C.target)){return}var E=p.mouseWheel.deltaFactor!=="auto"?parseInt(p.mouseWheel.deltaFactor):(k&&C.deltaFactor<100)?100:C.deltaFactor||100;if(p.axis==="x"||p.mouseWheel.axis==="x"){var z="x",F=[Math.round(E*v.scrollRatio.x),parseInt(p.mouseWheel.scrollAmount)],B=p.mouseWheel.scrollAmount!=="auto"?F[1]:F[0]>=q.width()?q.width()*0.9:F[0],H=Math.abs(j("#mCSB_"+v.idx+"_container")[0].offsetLeft),D=x[1][0].offsetLeft,A=x[1].parent().width()-x[1].width(),y=C.deltaX||C.deltaY||G}else{var z="y",F=[Math.round(E*v.scrollRatio.y),parseInt(p.mouseWheel.scrollAmount)],B=p.mouseWheel.scrollAmount!=="auto"?F[1]:F[0]>=q.height()?q.height()*0.9:F[0],H=Math.abs(j("#mCSB_"+v.idx+"_container")[0].offsetTop),D=x[0][0].offsetTop,A=x[0].parent().height()-x[0].height(),y=C.deltaY||G}if((z==="y"&&!v.overflowed[0])||(z==="x"&&!v.overflowed[1])){return}if(p.mouseWheel.invert){y=-y}if(p.mouseWheel.normalizeDelta){y=y<0?-1:1}if((y>0&&D!==0)||(y<0&&D!==A)||p.mouseWheel.preventDefault){C.stopImmediatePropagation();C.preventDefault()}i._scrollTo(w,(H-(y*B)).toString(),{dir:z})})}function u(z){var y=null;try{var B=z.contentDocument||z.contentWindow.document;y=B.body.innerHTML}catch(A){}return(y!==null)}},_disableMousewheel:function(r,t){var p=t.nodeName.toLowerCase(),q=r.data(d).opt.mouseWheel.disableOver,s=["select","textarea"];return j.inArray(p,q)>-1&&!(j.inArray(p,s)>-1&&!j(t).is(":focus"))},_draggerRail:function(){var s=j(this),t=s.data(d),q=d+"_"+t.idx,r=j("#mCSB_"+t.idx+"_container"),u=r.parent(),p=j(".mCSB_"+t.idx+"_scrollbar .mCSB_draggerContainer");p.bind("touchstart."+q+" pointerdown."+q+" MSPointerDown."+q,function(v){n=true}).bind("touchend."+q+" pointerup."+q+" MSPointerUp."+q,function(v){n=false}).bind("click."+q,function(z){if(j(z.target).hasClass("mCSB_draggerContainer")||j(z.target).hasClass("mCSB_draggerRail")){i._stop(s);var w=j(this),y=w.find(".mCSB_dragger");if(w.parent(".mCSB_scrollTools_horizontal").length>0){if(!t.overflowed[1]){return}var v="x",x=z.pageX>y.offset().left?-1:1,A=Math.abs(r[0].offsetLeft)-(x*(u.width()*0.9))}else{if(!t.overflowed[0]){return}var v="y",x=z.pageY>y.offset().top?-1:1,A=Math.abs(r[0].offsetTop)-(x*(u.height()*0.9))}i._scrollTo(s,A.toString(),{dir:v,scrollEasing:"mcsEaseInOut"})}})},_focus:function(){var r=j(this),t=r.data(d),s=t.opt,p=d+"_"+t.idx,q=j("#mCSB_"+t.idx+"_container"),u=q.parent();q.bind("focusin."+p,function(x){var w=j(a.activeElement),y=q.find(".mCustomScrollBox").length,v=0;if(!w.is(s.advanced.autoScrollOnFocus)){return}i._stop(r);clearTimeout(r[0]._focusTimeout);r[0]._focusTimer=y?(v+17)*y:0;r[0]._focusTimeout=setTimeout(function(){var C=[w.offset().top-q.offset().top,w.offset().left-q.offset().left],B=[q[0].offsetTop,q[0].offsetLeft],z=[(B[0]+C[0]>=0&&B[0]+C[0]=0&&B[0]+C[1]a");q.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(z){z.preventDefault();if(!i._mouseBtnLeft(z)){return}var y=j(this).attr("class");p.type=v.scrollButtons.scrollType;switch(z.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if(p.type==="stepped"){return}n=true;w.tweenRunning=false;x("on",y);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if(p.type==="stepped"){return}n=false;if(p.dir){x("off",y)}break;case"click":if(p.type!=="stepped"||w.tweenRunning){return}x("on",y);break}function x(A,B){p.scrollAmount=v.snapAmount||v.scrollButtons.scrollAmount;i._sequentialScroll.call(this,u,A,B)}})},_keyboard:function(){var u=j(this),t=u.data(d),q=t.opt,x=t.sequential,s=d+"_"+t.idx,r=j("#mCSB_"+t.idx),w=j("#mCSB_"+t.idx+"_container"),p=w.parent(),v="input,textarea,select,datalist,keygen,[contenteditable='true']";r.attr("tabindex","0").bind("blur."+s+" keydown."+s+" keyup."+s,function(D){switch(D.type){case"blur":if(t.tweenRunning&&x.dir){y("off",null)}break;case"keydown":case"keyup":var A=D.keyCode?D.keyCode:D.which,B="on";if((q.axis!=="x"&&(A===38||A===40))||(q.axis!=="y"&&(A===37||A===39))){if(((A===38||A===40)&&!t.overflowed[0])||((A===37||A===39)&&!t.overflowed[1])){return}if(D.type==="keyup"){B="off"}if(!j(a.activeElement).is(v)){D.preventDefault();D.stopImmediatePropagation();y(B,A)}}else{if(A===33||A===34){if(t.overflowed[0]||t.overflowed[1]){D.preventDefault();D.stopImmediatePropagation()}if(D.type==="keyup"){i._stop(u);var C=A===34?-1:1;if(q.axis==="x"||(q.axis==="yx"&&t.overflowed[1]&&!t.overflowed[0])){var z="x",E=Math.abs(w[0].offsetLeft)-(C*(p.width()*0.9))}else{var z="y",E=Math.abs(w[0].offsetTop)-(C*(p.height()*0.9))}i._scrollTo(u,E.toString(),{dir:z,scrollEasing:"mcsEaseInOut"})}}else{if(A===35||A===36){if(!j(a.activeElement).is(v)){if(t.overflowed[0]||t.overflowed[1]){D.preventDefault();D.stopImmediatePropagation()}if(D.type==="keyup"){if(q.axis==="x"||(q.axis==="yx"&&t.overflowed[1]&&!t.overflowed[0])){var z="x",E=A===35?Math.abs(p.width()-w.outerWidth(false)):0}else{var z="y",E=A===35?Math.abs(p.height()-w.outerHeight(false)):0}i._scrollTo(u,E.toString(),{dir:z,scrollEasing:"mcsEaseInOut"})}}}}}break}function y(F,G){x.type=q.keyboard.scrollType;x.scrollAmount=q.snapAmount||q.keyboard.scrollAmount;if(x.type==="stepped"&&t.tweenRunning){return}i._sequentialScroll.call(this,u,F,G)}})},_sequentialScroll:function(r,u,s){var w=r.data(d),q=w.opt,y=w.sequential,x=j("#mCSB_"+w.idx+"_container"),p=y.type==="stepped"?true:false;switch(u){case"on":y.dir=[(s==="mCSB_buttonRight"||s==="mCSB_buttonLeft"||s===39||s===37?"x":"y"),(s==="mCSB_buttonUp"||s==="mCSB_buttonLeft"||s===38||s===37?-1:1)];i._stop(r);if(i._isNumeric(s)&&y.type==="stepped"){return}t(p);break;case"off":v();if(p||(w.tweenRunning&&y.dir)){t(true)}break}function t(z){var F=y.type!=="stepped",J=!z?1000/60:F?q.scrollInertia/1.5:q.scrollInertia,B=!z?2.5:F?7.5:40,I=[Math.abs(x[0].offsetTop),Math.abs(x[0].offsetLeft)],E=[w.scrollRatio.y>10?10:w.scrollRatio.y,w.scrollRatio.x>10?10:w.scrollRatio.x],C=y.dir[0]==="x"?I[1]+(y.dir[1]*(E[1]*B)):I[0]+(y.dir[1]*(E[0]*B)),H=y.dir[0]==="x"?I[1]+(y.dir[1]*parseInt(y.scrollAmount)):I[0]+(y.dir[1]*parseInt(y.scrollAmount)),G=y.scrollAmount!=="auto"?H:C,D=!z?"mcsLinear":F?"mcsLinearOut":"mcsEaseInOut",A=!z?false:true;if(z&&J<17){G=y.dir[0]==="x"?I[1]:I[0]}i._scrollTo(r,G.toString(),{dir:y.dir[0],scrollEasing:D,dur:J,onComplete:A});if(z){y.dir=false;return}clearTimeout(y.step);y.step=setTimeout(function(){t()},J)}function v(){clearTimeout(y.step);i._stop(r)}},_arr:function(r){var q=j(this).data(d).opt,p=[];if(typeof r==="function"){r=r()}if(!(r instanceof Array)){p[0]=r.y?r.y:r.x||q.axis==="x"?null:r;p[1]=r.x?r.x:r.y||q.axis==="y"?null:r}else{p=r.length>1?[r[0],r[1]]:q.axis==="x"?[null,r[0]]:[r[0],null]}if(typeof p[0]==="function"){p[0]=p[0]()}if(typeof p[1]==="function"){p[1]=p[1]()}return p},_to:function(v,w){if(v==null||typeof v=="undefined"){return}var C=j(this),B=C.data(d),u=B.opt,D=j("#mCSB_"+B.idx+"_container"),r=D.parent(),F=typeof v;if(!w){w=u.axis==="x"?"x":"y"}var q=w==="x"?D.outerWidth(false):D.outerHeight(false),x=w==="x"?D.offset().left:D.offset().top,E=w==="x"?D[0].offsetLeft:D[0].offsetTop,z=w==="x"?"left":"top";switch(F){case"function":return v();break;case"object":if(v.nodeType){var A=w==="x"?j(v).offset().left:j(v).offset().top}else{if(v.jquery){if(!v.length){return}var A=w==="x"?v.offset().left:v.offset().top}}return A-x;break;case"string":case"number":if(i._isNumeric.call(null,v)){return Math.abs(v)}else{if(v.indexOf("%")!==-1){return Math.abs(q*parseInt(v)/100)}else{if(v.indexOf("-=")!==-1){return Math.abs(E-parseInt(v.split("-=")[1]))}else{if(v.indexOf("+=")!==-1){var s=(E+parseInt(v.split("+=")[1]));return s>=0?0:Math.abs(s)}else{if(v.indexOf("px")!==-1&&i._isNumeric.call(null,v.split("px")[0])){return Math.abs(v.split("px")[0])}else{if(v==="top"||v==="left"){return 0}else{if(v==="bottom"){return Math.abs(r.height()-D.outerHeight(false))}else{if(v==="right"){return Math.abs(r.width()-D.outerWidth(false))}else{if(v==="first"||v==="last"){var y=D.find(":"+v),A=w==="x"?j(y).offset().left:j(y).offset().top;return A-x}else{if(j(v).length){var A=w==="x"?j(v).offset().left:j(v).offset().top;return A-x}else{D.css(z,v);e.update.call(null,C[0]);return}}}}}}}}}}break}},_autoUpdate:function(q){var t=j(this),F=t.data(d),z=F.opt,v=j("#mCSB_"+F.idx+"_container");if(q){clearTimeout(v[0].autoUpdate);i._delete.call(null,v[0].autoUpdate);return}var s=v.parent(),p=[j("#mCSB_"+F.idx+"_scrollbar_vertical"),j("#mCSB_"+F.idx+"_scrollbar_horizontal")],D=function(){return[p[0].is(":visible")?p[0].outerHeight(true):0,p[1].is(":visible")?p[1].outerWidth(true):0]},E=y(),x,u=[v.outerHeight(false),v.outerWidth(false),s.height(),s.width(),D()[0],D()[1]],H,B=G(),w;C();function C(){clearTimeout(v[0].autoUpdate);v[0].autoUpdate=setTimeout(function(){if(z.advanced.updateOnSelectorChange){x=y();if(x!==E){r();E=x;return}}if(z.advanced.updateOnContentResize){H=[v.outerHeight(false),v.outerWidth(false),s.height(),s.width(),D()[0],D()[1]];if(H[0]!==u[0]||H[1]!==u[1]||H[2]!==u[2]||H[3]!==u[3]||H[4]!==u[4]||H[5]!==u[5]){r();u=H}}if(z.advanced.updateOnImageLoad){w=G();if(w!==B){v.find("img").each(function(){A(this.src)});B=w}}if(z.advanced.updateOnSelectorChange||z.advanced.updateOnContentResize||z.advanced.updateOnImageLoad){C()}},60)}function G(){var I=0;if(z.advanced.updateOnImageLoad){I=v.find("img").length}return I}function A(L){var I=new Image();function K(M,N){return function(){return N.apply(M,arguments)}}function J(){this.onload=null;r()}I.onload=K(I,J);I.src=L}function y(){if(z.advanced.updateOnSelectorChange===true){z.advanced.updateOnSelectorChange="*"}var I=0,J=v.find(z.advanced.updateOnSelectorChange);if(z.advanced.updateOnSelectorChange&&J.length>0){J.each(function(){I+=j(this).height()+j(this).width()})}return I}function r(){clearTimeout(v[0].autoUpdate);e.update.call(null,t[0])}},_snapAmount:function(r,p,q){return(Math.round(r/p)*p-q)},_stop:function(p){var r=p.data(d),q=j("#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal");q.each(function(){i._stopTween.call(this)})},_scrollTo:function(q,s,u){var I=q.data(d),E=I.opt,D={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:false,dur:E.scrollInertia,overwrite:"all",callbacks:true,onStart:true,onUpdate:true,onComplete:true},u=j.extend(D,u),G=[u.dur,(u.drag?0:u.dur)],v=j("#mCSB_"+I.idx),B=j("#mCSB_"+I.idx+"_container"),K=E.callbacks.onTotalScrollOffset?i._arr.call(q,E.callbacks.onTotalScrollOffset):[0,0],p=E.callbacks.onTotalScrollBackOffset?i._arr.call(q,E.callbacks.onTotalScrollBackOffset):[0,0];I.trigger=u.trigger;if(s==="_resetY"&&!I.contentReset.y){if(t("onOverflowYNone")){E.callbacks.onOverflowYNone.call(q[0])}I.contentReset.y=1}if(s==="_resetX"&&!I.contentReset.x){if(t("onOverflowXNone")){E.callbacks.onOverflowXNone.call(q[0])}I.contentReset.x=1}if(s==="_resetY"||s==="_resetX"){return}if((I.contentReset.y||!q[0].mcs)&&I.overflowed[0]){if(t("onOverflowY")){E.callbacks.onOverflowY.call(q[0])}I.contentReset.x=null}if((I.contentReset.x||!q[0].mcs)&&I.overflowed[1]){if(t("onOverflowX")){E.callbacks.onOverflowX.call(q[0])}I.contentReset.x=null}if(E.snapAmount){s=i._snapAmount(s,E.snapAmount,E.snapOffset)}switch(u.dir){case"x":var x=j("#mCSB_"+I.idx+"_dragger_horizontal"),z="left",C=B[0].offsetLeft,H=[v.width()-B.outerWidth(false),x.parent().width()-x.width()],r=[s,s===0?0:(s/I.scrollRatio.x)],L=K[1],J=p[1],A=L>0?L/I.scrollRatio.x:0,w=J>0?J/I.scrollRatio.x:0;break;case"y":var x=j("#mCSB_"+I.idx+"_dragger_vertical"),z="top",C=B[0].offsetTop,H=[v.height()-B.outerHeight(false),x.parent().height()-x.height()],r=[s,s===0?0:(s/I.scrollRatio.y)],L=K[0],J=p[0],A=L>0?L/I.scrollRatio.y:0,w=J>0?J/I.scrollRatio.y:0;break}if(r[1]<0||(r[0]===0&&r[1]===0)){r=[0,0]}else{if(r[1]>=H[1]){r=[H[0],H[1]]}else{r[0]=-r[0]}}if(!q[0].mcs){F()}clearTimeout(B[0].onCompleteTimeout);if(!I.tweenRunning&&((C===0&&r[0]>=0)||(C===H[0]&&r[0]<=H[0]))){return}i._tweenTo.call(null,x[0],z,Math.round(r[1]),G[1],u.scrollEasing);i._tweenTo.call(null,B[0],z,Math.round(r[0]),G[0],u.scrollEasing,u.overwrite,{onStart:function(){if(u.callbacks&&u.onStart&&!I.tweenRunning){if(t("onScrollStart")){F();E.callbacks.onScrollStart.call(q[0])}I.tweenRunning=true;i._onDragClasses(x);I.cbOffsets=y()}},onUpdate:function(){if(u.callbacks&&u.onUpdate){if(t("whileScrolling")){F();E.callbacks.whileScrolling.call(q[0])}}},onComplete:function(){if(u.callbacks&&u.onComplete){if(E.axis==="yx"){clearTimeout(B[0].onCompleteTimeout)}var M=B[0].idleTimer||0;B[0].onCompleteTimeout=setTimeout(function(){if(t("onScroll")){F();E.callbacks.onScroll.call(q[0])}if(t("onTotalScroll")&&r[1]>=H[1]-A&&I.cbOffsets[0]){F();E.callbacks.onTotalScroll.call(q[0])}if(t("onTotalScrollBack")&&r[1]<=w&&I.cbOffsets[1]){F();E.callbacks.onTotalScrollBack.call(q[0])}I.tweenRunning=false;B[0].idleTimer=0;i._onDragClasses(x,"hide")},M)}}});function t(M){return I&&E.callbacks[M]&&typeof E.callbacks[M]==="function"}function y(){return[E.callbacks.alwaysTriggerOffsets||C>=H[0]+L,E.callbacks.alwaysTriggerOffsets||C<=-J]}function F(){var O=[B[0].offsetTop,B[0].offsetLeft],P=[x[0].offsetTop,x[0].offsetLeft],M=[B.outerHeight(false),B.outerWidth(false)],N=[v.height(),v.width()];q[0].mcs={content:B,top:O[0],left:O[1],draggerTop:P[0],draggerLeft:P[1],topPct:Math.round((100*Math.abs(O[0]))/(Math.abs(M[0])-N[0])),leftPct:Math.round((100*Math.abs(O[1]))/(Math.abs(M[1])-N[1])),direction:u.dir}}},_tweenTo:function(r,u,s,q,B,t,K){var K=K||{},H=K.onStart||function(){},C=K.onUpdate||function(){},I=K.onComplete||function(){},z=i._getTime(),x,v=0,E=r.offsetTop,F=r.style,A;if(u==="left"){E=r.offsetLeft}var y=s-E;r._mcsstop=0;if(t!=="none"){D()}p();function J(){if(r._mcsstop){return}if(!v){H.call()}v=i._getTime()-z;G();if(v>=r._mcstime){r._mcstime=(v>r._mcstime)?v+x-(v-r._mcstime):v+x-1;if(r._mcstime0){r._mcscurrVal=w(r._mcstime,E,y,q,B);F[u]=Math.round(r._mcscurrVal)+"px"}else{F[u]=s+"px"}C.call()}function p(){x=1000/60;r._mcstime=v+x;A=(!b.requestAnimationFrame)?function(L){G();return setTimeout(L,0.01)}:b.requestAnimationFrame;r._mcsid=A(J)}function D(){if(r._mcsid==null){return}if(!b.requestAnimationFrame){clearTimeout(r._mcsid)}else{b.cancelAnimationFrame(r._mcsid)}r._mcsid=null}function w(N,M,R,Q,O){switch(O){case"linear":case"mcsLinear":return R*N/Q+M;break;case"mcsLinearOut":N/=Q;N--;return R*Math.sqrt(1-N*N)+M;break;case"easeInOutSmooth":N/=Q/2;if(N<1){return R/2*N*N+M}N--;return -R/2*(N*(N-2)-1)+M;break;case"easeInOutStrong":N/=Q/2;if(N<1){return R/2*Math.pow(2,10*(N-1))+M}N--;return R/2*(-Math.pow(2,-10*N)+2)+M;break;case"easeInOut":case"mcsEaseInOut":N/=Q/2;if(N<1){return R/2*N*N*N+M}N-=2;return R/2*(N*N*N+2)+M;break;case"easeOutSmooth":N/=Q;N--;return -R*(N*N*N*N-1)+M;break;case"easeOutStrong":return R*(-Math.pow(2,-10*N/Q)+1)+M;break;case"easeOut":case"mcsEaseOut":default:var P=(N/=Q)*N,L=P*N;return M+R*(0.499999999999997*L*P+-2.5*P*P+5.5*L+-6.5*P+4*N)}}},_getTime:function(){if(b.performance&&b.performance.now){return b.performance.now()}else{if(b.performance&&b.performance.webkitNow){return b.performance.webkitNow()}else{if(Date.now){return Date.now()}else{return new Date().getTime()}}}},_stopTween:function(){var p=this;if(p._mcsid==null){return}if(!b.requestAnimationFrame){clearTimeout(p._mcsid)}else{b.cancelAnimationFrame(p._mcsid)}p._mcsid=null;p._mcsstop=1},_delete:function(r){try{delete r}catch(q){r=null}},_mouseBtnLeft:function(p){return !(p.which&&p.which!==1)},_pointerTouch:function(q){var p=q.originalEvent.pointerType;return !(p&&p!=="touch"&&p!==2)},_isNumeric:function(p){return !isNaN(parseFloat(p))&&isFinite(p)}};j.fn[g]=function(p){if(e[p]){return e[p].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof p==="object"||!p){return e.init.apply(this,arguments)}else{j.error("Method "+p+" does not exist")}}};j[g]=function(p){if(e[p]){return e[p].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof p==="object"||!p){return e.init.apply(this,arguments)}else{j.error("Method "+p+" does not exist")}}};j[g].defaults=h;b[g]=true;j(b).load(function(){j(m)[g]()})}))}(window,document)); +/*! + * fancyBox - jQuery Plugin + * version: 2.1.5 (Fri, 14 Jun 2013) + * @requires jQuery v1.6 or later + * + * Examples at http://fancyapps.com/fancybox/ + * License: www.fancyapps.com/fancybox/#license + * + * Copyright 2012 Janis Skarnelis - janis@fancyapps.com + * + */ + +(function (window, document, $, undefined) { + "use strict"; + + var H = $("html"), + W = $(window), + D = $(document), + F = $.fancybox = function () { + F.open.apply( this, arguments ); + }, + IE = navigator.userAgent.match(/msie/i), + didUpdate = null, + isTouch = document.createTouch !== undefined, + + isQuery = function(obj) { + return obj && obj.hasOwnProperty && obj instanceof $; + }, + isString = function(str) { + return str && $.type(str) === "string"; + }, + isPercentage = function(str) { + return isString(str) && str.indexOf('%') > 0; + }, + isScrollable = function(el) { + return (el && !(el.style.overflow && el.style.overflow === 'hidden') && ((el.clientWidth && el.scrollWidth > el.clientWidth) || (el.clientHeight && el.scrollHeight > el.clientHeight))); + }, + getScalar = function(orig, dim) { + var value = parseInt(orig, 10) || 0; + + if (dim && isPercentage(orig)) { + value = F.getViewport()[ dim ] / 100 * value; + } + + return Math.ceil(value); + }, + getValue = function(value, dim) { + return getScalar(value, dim) + 'px'; + }; + + $.extend(F, { + // The current version of fancyBox + version: '2.1.5', + + defaults: { + padding : 15, + margin : 20, + + width : 800, + height : 600, + minWidth : 100, + minHeight : 100, + maxWidth : 9999, + maxHeight : 9999, + pixelRatio: 1, // Set to 2 for retina display support + + autoSize : true, + autoHeight : false, + autoWidth : false, + + autoResize : true, + autoCenter : !isTouch, + fitToView : true, + aspectRatio : false, + topRatio : 0.5, + leftRatio : 0.5, + + scrolling : 'auto', // 'auto', 'yes' or 'no' + wrapCSS : '', + + arrows : true, + closeBtn : true, + closeClick : false, + nextClick : false, + mouseWheel : true, + autoPlay : false, + playSpeed : 3000, + preload : 3, + modal : false, + loop : true, + + ajax : { + dataType : 'html', + headers : { 'X-fancyBox': true } + }, + iframe : { + scrolling : 'auto', + preload : true + }, + swf : { + wmode: 'transparent', + allowfullscreen : 'true', + allowscriptaccess : 'always' + }, + + keys : { + next : { + 13 : 'left', // enter + 34 : 'up', // page down + 39 : 'left', // right arrow + 40 : 'up' // down arrow + }, + prev : { + 8 : 'right', // backspace + 33 : 'down', // page up + 37 : 'right', // left arrow + 38 : 'down' // up arrow + }, + close : [27], // escape key + play : [32], // space - start/stop slideshow + toggle : [70] // letter "f" - toggle fullscreen + }, + + direction : { + next : 'left', + prev : 'right' + }, + + scrollOutside : true, + + // Override some properties + index : 0, + type : null, + href : null, + content : null, + title : null, + + // HTML templates + tpl: { + wrap : '
            ', + image : '', + iframe : '', + error : '

            The requested content cannot be loaded.
            Please try again later.

            ', + closeBtn : '
            ', + next : '', + prev : '' + }, + + // Properties for each animation type + // Opening fancyBox + openEffect : 'fade', // 'elastic', 'fade' or 'none' + openSpeed : 250, + openEasing : 'swing', + openOpacity : true, + openMethod : 'zoomIn', + + // Closing fancyBox + closeEffect : 'fade', // 'elastic', 'fade' or 'none' + closeSpeed : 250, + closeEasing : 'swing', + closeOpacity : true, + closeMethod : 'zoomOut', + + // Changing next gallery item + nextEffect : 'elastic', // 'elastic', 'fade' or 'none' + nextSpeed : 250, + nextEasing : 'swing', + nextMethod : 'changeIn', + + // Changing previous gallery item + prevEffect : 'elastic', // 'elastic', 'fade' or 'none' + prevSpeed : 250, + prevEasing : 'swing', + prevMethod : 'changeOut', + + // Enable default helpers + helpers : { + overlay : true, + title : true + }, + + // Callbacks + onCancel : $.noop, // If canceling + beforeLoad : $.noop, // Before loading + afterLoad : $.noop, // After loading + beforeShow : $.noop, // Before changing in current item + afterShow : $.noop, // After opening + beforeChange : $.noop, // Before changing gallery item + beforeClose : $.noop, // Before closing + afterClose : $.noop // After closing + }, + + //Current state + group : {}, // Selected group + opts : {}, // Group options + previous : null, // Previous element + coming : null, // Element being loaded + current : null, // Currently loaded element + isActive : false, // Is activated + isOpen : false, // Is currently open + isOpened : false, // Have been fully opened at least once + + wrap : null, + skin : null, + outer : null, + inner : null, + + player : { + timer : null, + isActive : false + }, + + // Loaders + ajaxLoad : null, + imgPreload : null, + + // Some collections + transitions : {}, + helpers : {}, + + /* + * Static methods + */ + + open: function (group, opts) { + if (!group) { + return; + } + + if (!$.isPlainObject(opts)) { + opts = {}; + } + + // Close if already active + if (false === F.close(true)) { + return; + } + + // Normalize group + if (!$.isArray(group)) { + group = isQuery(group) ? $(group).get() : [group]; + } + + // Recheck if the type of each element is `object` and set content type (image, ajax, etc) + $.each(group, function(i, element) { + var obj = {}, + href, + title, + content, + type, + rez, + hrefParts, + selector; + + if ($.type(element) === "object") { + // Check if is DOM element + if (element.nodeType) { + element = $(element); + } + + if (isQuery(element)) { + obj = { + href : element.data('fancybox-href') || element.attr('href'), + title : element.data('fancybox-title') || element.attr('title'), + isDom : true, + element : element + }; + + if ($.metadata) { + $.extend(true, obj, element.metadata()); + } + + } else { + obj = element; + } + } + + href = opts.href || obj.href || (isString(element) ? element : null); + title = opts.title !== undefined ? opts.title : obj.title || ''; + + content = opts.content || obj.content; + type = content ? 'html' : (opts.type || obj.type); + + if (!type && obj.isDom) { + type = element.data('fancybox-type'); + + if (!type) { + rez = element.prop('class').match(/fancybox\.(\w+)/); + type = rez ? rez[1] : null; + } + } + + if (isString(href)) { + // Try to guess the content type + if (!type) { + if (F.isImage(href)) { + type = 'image'; + + } else if (F.isSWF(href)) { + type = 'swf'; + + } else if (href.charAt(0) === '#') { + type = 'inline'; + + } else if (isString(element)) { + type = 'html'; + content = element; + } + } + + // Split url into two pieces with source url and content selector, e.g, + // "/mypage.html #my_id" will load "/mypage.html" and display element having id "my_id" + if (type === 'ajax') { + hrefParts = href.split(/\s+/, 2); + href = hrefParts.shift(); + selector = hrefParts.shift(); + } + } + + if (!content) { + if (type === 'inline') { + if (href) { + content = $( isString(href) ? href.replace(/.*(?=#[^\s]+$)/, '') : href ); //strip for ie7 + + } else if (obj.isDom) { + content = element; + } + + } else if (type === 'html') { + content = href; + + } else if (!type && !href && obj.isDom) { + type = 'inline'; + content = element; + } + } + + $.extend(obj, { + href : href, + type : type, + content : content, + title : title, + selector : selector + }); + + group[ i ] = obj; + }); + + // Extend the defaults + F.opts = $.extend(true, {}, F.defaults, opts); + + // All options are merged recursive except keys + if (opts.keys !== undefined) { + F.opts.keys = opts.keys ? $.extend({}, F.defaults.keys, opts.keys) : false; + } + + F.group = group; + + return F._start(F.opts.index); + }, + + // Cancel image loading or abort ajax request + cancel: function () { + var coming = F.coming; + + if (!coming || false === F.trigger('onCancel')) { + return; + } + + F.hideLoading(); + + if (F.ajaxLoad) { + F.ajaxLoad.abort(); + } + + F.ajaxLoad = null; + + if (F.imgPreload) { + F.imgPreload.onload = F.imgPreload.onerror = null; + } + + if (coming.wrap) { + coming.wrap.stop(true, true).trigger('onReset').remove(); + } + + F.coming = null; + + // If the first item has been canceled, then clear everything + if (!F.current) { + F._afterZoomOut( coming ); + } + }, + + // Start closing animation if is open; remove immediately if opening/closing + close: function (event) { + F.cancel(); + + if (false === F.trigger('beforeClose')) { + return; + } + + F.unbindEvents(); + + if (!F.isActive) { + return; + } + + if (!F.isOpen || event === true) { + $('.fancybox-wrap').stop(true).trigger('onReset').remove(); + + F._afterZoomOut(); + + } else { + F.isOpen = F.isOpened = false; + F.isClosing = true; + + $('.fancybox-item, .fancybox-nav').remove(); + + F.wrap.stop(true, true).removeClass('fancybox-opened'); + + F.transitions[ F.current.closeMethod ](); + } + }, + + // Manage slideshow: + // $.fancybox.play(); - toggle slideshow + // $.fancybox.play( true ); - start + // $.fancybox.play( false ); - stop + play: function ( action ) { + var clear = function () { + clearTimeout(F.player.timer); + }, + set = function () { + clear(); + + if (F.current && F.player.isActive) { + F.player.timer = setTimeout(F.next, F.current.playSpeed); + } + }, + stop = function () { + clear(); + + D.unbind('.player'); + + F.player.isActive = false; + + F.trigger('onPlayEnd'); + }, + start = function () { + if (F.current && (F.current.loop || F.current.index < F.group.length - 1)) { + F.player.isActive = true; + + D.bind({ + 'onCancel.player beforeClose.player' : stop, + 'onUpdate.player' : set, + 'beforeLoad.player' : clear + }); + + set(); + + F.trigger('onPlayStart'); + } + }; + + if (action === true || (!F.player.isActive && action !== false)) { + start(); + } else { + stop(); + } + }, + + // Navigate to next gallery item + next: function ( direction ) { + var current = F.current; + + if (current) { + if (!isString(direction)) { + direction = current.direction.next; + } + + F.jumpto(current.index + 1, direction, 'next'); + } + }, + + // Navigate to previous gallery item + prev: function ( direction ) { + var current = F.current; + + if (current) { + if (!isString(direction)) { + direction = current.direction.prev; + } + + F.jumpto(current.index - 1, direction, 'prev'); + } + }, + + // Navigate to gallery item by index + jumpto: function ( index, direction, router ) { + var current = F.current; + + if (!current) { + return; + } + + index = getScalar(index); + + F.direction = direction || current.direction[ (index >= current.index ? 'next' : 'prev') ]; + F.router = router || 'jumpto'; + + if (current.loop) { + if (index < 0) { + index = current.group.length + (index % current.group.length); + } + + index = index % current.group.length; + } + + if (current.group[ index ] !== undefined) { + F.cancel(); + + F._start(index); + } + }, + + // Center inside viewport and toggle position type to fixed or absolute if needed + reposition: function (e, onlyAbsolute) { + var current = F.current, + wrap = current ? current.wrap : null, + pos; + + if (wrap) { + pos = F._getPosition(onlyAbsolute); + + if (e && e.type === 'scroll') { + delete pos.position; + + wrap.stop(true, true).animate(pos, 200); + + } else { + wrap.css(pos); + + current.pos = $.extend({}, current.dim, pos); + } + } + }, + + update: function (e) { + var type = (e && e.type), + anyway = !type || type === 'orientationchange'; + + if (anyway) { + clearTimeout(didUpdate); + + didUpdate = null; + } + + if (!F.isOpen || didUpdate) { + return; + } + + didUpdate = setTimeout(function() { + var current = F.current; + + if (!current || F.isClosing) { + return; + } + + F.wrap.removeClass('fancybox-tmp'); + + if (anyway || type === 'load' || (type === 'resize' && current.autoResize)) { + F._setDimension(); + } + + if (!(type === 'scroll' && current.canShrink)) { + F.reposition(e); + } + + F.trigger('onUpdate'); + + didUpdate = null; + + }, (anyway && !isTouch ? 0 : 300)); + }, + + // Shrink content to fit inside viewport or restore if resized + toggle: function ( action ) { + if (F.isOpen) { + F.current.fitToView = $.type(action) === "boolean" ? action : !F.current.fitToView; + + // Help browser to restore document dimensions + if (isTouch) { + F.wrap.removeAttr('style').addClass('fancybox-tmp'); + + F.trigger('onUpdate'); + } + + F.update(); + } + }, + + hideLoading: function () { + D.unbind('.loading'); + + $('#fancybox-loading').remove(); + }, + + showLoading: function () { + var el, viewport; + + F.hideLoading(); + + el = $('
            ').click(F.cancel).appendTo('body'); + + // If user will press the escape-button, the request will be canceled + D.bind('keydown.loading', function(e) { + if ((e.which || e.keyCode) === 27) { + e.preventDefault(); + + F.cancel(); + } + }); + + if (!F.defaults.fixed) { + viewport = F.getViewport(); + + el.css({ + position : 'absolute', + top : (viewport.h * 0.5) + viewport.y, + left : (viewport.w * 0.5) + viewport.x + }); + } + }, + + getViewport: function () { + var locked = (F.current && F.current.locked) || false, + rez = { + x: W.scrollLeft(), + y: W.scrollTop() + }; + + if (locked) { + rez.w = locked[0].clientWidth; + rez.h = locked[0].clientHeight; + + } else { + // See http://bugs.jquery.com/ticket/6724 + rez.w = isTouch && window.innerWidth ? window.innerWidth : W.width(); + rez.h = isTouch && window.innerHeight ? window.innerHeight : W.height(); + } + + return rez; + }, + + // Unbind the keyboard / clicking actions + unbindEvents: function () { + if (F.wrap && isQuery(F.wrap)) { + F.wrap.unbind('.fb'); + } + + D.unbind('.fb'); + W.unbind('.fb'); + }, + + bindEvents: function () { + var current = F.current, + keys; + + if (!current) { + return; + } + + // Changing document height on iOS devices triggers a 'resize' event, + // that can change document height... repeating infinitely + W.bind('orientationchange.fb' + (isTouch ? '' : ' resize.fb') + (current.autoCenter && !current.locked ? ' scroll.fb' : ''), F.update); + + keys = current.keys; + + if (keys) { + D.bind('keydown.fb', function (e) { + var code = e.which || e.keyCode, + target = e.target || e.srcElement; + + // Skip esc key if loading, because showLoading will cancel preloading + if (code === 27 && F.coming) { + return false; + } + + // Ignore key combinations and key events within form elements + if (!e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey && !(target && (target.type || $(target).is('[contenteditable]')))) { + $.each(keys, function(i, val) { + if (current.group.length > 1 && val[ code ] !== undefined) { + F[ i ]( val[ code ] ); + + e.preventDefault(); + return false; + } + + if ($.inArray(code, val) > -1) { + F[ i ] (); + + e.preventDefault(); + return false; + } + }); + } + }); + } + + if ($.fn.mousewheel && current.mouseWheel) { + F.wrap.bind('mousewheel.fb', function (e, delta, deltaX, deltaY) { + var target = e.target || null, + parent = $(target), + canScroll = false; + + while (parent.length) { + if (canScroll || parent.is('.fancybox-skin') || parent.is('.fancybox-wrap')) { + break; + } + + canScroll = isScrollable( parent[0] ); + parent = $(parent).parent(); + } + + if (delta !== 0 && !canScroll) { + if (F.group.length > 1 && !current.canShrink) { + if (deltaY > 0 || deltaX > 0) { + F.prev( deltaY > 0 ? 'down' : 'left' ); + + } else if (deltaY < 0 || deltaX < 0) { + F.next( deltaY < 0 ? 'up' : 'right' ); + } + + e.preventDefault(); + } + } + }); + } + }, + + trigger: function (event, o) { + var ret, obj = o || F.coming || F.current; + + if (!obj) { + return; + } + + if ($.isFunction( obj[event] )) { + ret = obj[event].apply(obj, Array.prototype.slice.call(arguments, 1)); + } + + if (ret === false) { + return false; + } + + if (obj.helpers) { + $.each(obj.helpers, function (helper, opts) { + if (opts && F.helpers[helper] && $.isFunction(F.helpers[helper][event])) { + F.helpers[helper][event]($.extend(true, {}, F.helpers[helper].defaults, opts), obj); + } + }); + } + + D.trigger(event); + }, + + isImage: function (str) { + return isString(str) && str.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i); + }, + + isSWF: function (str) { + return isString(str) && str.match(/\.(swf)((\?|#).*)?$/i); + }, + + _start: function (index) { + var coming = {}, + obj, + href, + type, + margin, + padding; + + index = getScalar( index ); + obj = F.group[ index ] || null; + + if (!obj) { + return false; + } + + coming = $.extend(true, {}, F.opts, obj); + + // Convert margin and padding properties to array - top, right, bottom, left + margin = coming.margin; + padding = coming.padding; + + if ($.type(margin) === 'number') { + coming.margin = [margin, margin, margin, margin]; + } + + if ($.type(padding) === 'number') { + coming.padding = [padding, padding, padding, padding]; + } + + // 'modal' propery is just a shortcut + if (coming.modal) { + $.extend(true, coming, { + closeBtn : false, + closeClick : false, + nextClick : false, + arrows : false, + mouseWheel : false, + keys : null, + helpers: { + overlay : { + closeClick : false + } + } + }); + } + + // 'autoSize' property is a shortcut, too + if (coming.autoSize) { + coming.autoWidth = coming.autoHeight = true; + } + + if (coming.width === 'auto') { + coming.autoWidth = true; + } + + if (coming.height === 'auto') { + coming.autoHeight = true; + } + + /* + * Add reference to the group, so it`s possible to access from callbacks, example: + * afterLoad : function() { + * this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : ''); + * } + */ + + coming.group = F.group; + coming.index = index; + + // Give a chance for callback or helpers to update coming item (type, title, etc) + F.coming = coming; + + if (false === F.trigger('beforeLoad')) { + F.coming = null; + + return; + } + + type = coming.type; + href = coming.href; + + if (!type) { + F.coming = null; + + //If we can not determine content type then drop silently or display next/prev item if looping through gallery + if (F.current && F.router && F.router !== 'jumpto') { + F.current.index = index; + + return F[ F.router ]( F.direction ); + } + + return false; + } + + F.isActive = true; + + if (type === 'image' || type === 'swf') { + coming.autoHeight = coming.autoWidth = false; + coming.scrolling = 'visible'; + } + + if (type === 'image') { + coming.aspectRatio = true; + } + + if (type === 'iframe' && isTouch) { + coming.scrolling = 'scroll'; + } + + // Build the neccessary markup + coming.wrap = $(coming.tpl.wrap).addClass('fancybox-' + (isTouch ? 'mobile' : 'desktop') + ' fancybox-type-' + type + ' fancybox-tmp ' + coming.wrapCSS).appendTo( coming.parent || 'body' ); + + $.extend(coming, { + skin : $('.fancybox-skin', coming.wrap), + outer : $('.fancybox-outer', coming.wrap), + inner : $('.fancybox-inner', coming.wrap) + }); + + $.each(["Top", "Right", "Bottom", "Left"], function(i, v) { + coming.skin.css('padding' + v, getValue(coming.padding[ i ])); + }); + + F.trigger('onReady'); + + // Check before try to load; 'inline' and 'html' types need content, others - href + if (type === 'inline' || type === 'html') { + if (!coming.content || !coming.content.length) { + return F._error( 'content' ); + } + + } else if (!href) { + return F._error( 'href' ); + } + + if (type === 'image') { + F._loadImage(); + + } else if (type === 'ajax') { + F._loadAjax(); + + } else if (type === 'iframe') { + F._loadIframe(); + + } else { + F._afterLoad(); + } + }, + + _error: function ( type ) { + $.extend(F.coming, { + type : 'html', + autoWidth : true, + autoHeight : true, + minWidth : 0, + minHeight : 0, + scrolling : 'no', + hasError : type, + content : F.coming.tpl.error + }); + + F._afterLoad(); + }, + + _loadImage: function () { + // Reset preload image so it is later possible to check "complete" property + var img = F.imgPreload = new Image(); + + img.onload = function () { + this.onload = this.onerror = null; + + F.coming.width = this.width / F.opts.pixelRatio; + F.coming.height = this.height / F.opts.pixelRatio; + + F._afterLoad(); + }; + + img.onerror = function () { + this.onload = this.onerror = null; + + F._error( 'image' ); + }; + + img.src = F.coming.href; + + if (img.complete !== true) { + F.showLoading(); + } + }, + + _loadAjax: function () { + var coming = F.coming; + + F.showLoading(); + + F.ajaxLoad = $.ajax($.extend({}, coming.ajax, { + url: coming.href, + error: function (jqXHR, textStatus) { + if (F.coming && textStatus !== 'abort') { + F._error( 'ajax', jqXHR ); + + } else { + F.hideLoading(); + } + }, + success: function (data, textStatus) { + if (textStatus === 'success') { + coming.content = data; + + F._afterLoad(); + } + } + })); + }, + + _loadIframe: function() { + var coming = F.coming, + iframe = $(coming.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime())) + .attr('scrolling', isTouch ? 'auto' : coming.iframe.scrolling) + .attr('src', coming.href); + + // This helps IE + $(coming.wrap).bind('onReset', function () { + try { + $(this).find('iframe').hide().attr('src', '//about:blank').end().empty(); + } catch (e) {} + }); + + if (coming.iframe.preload) { + F.showLoading(); + + iframe.one('load', function() { + $(this).data('ready', 1); + + // iOS will lose scrolling if we resize + if (!isTouch) { + $(this).bind('load.fb', F.update); + } + + // Without this trick: + // - iframe won't scroll on iOS devices + // - IE7 sometimes displays empty iframe + $(this).parents('.fancybox-wrap').width('100%').removeClass('fancybox-tmp').show(); + + F._afterLoad(); + }); + } + + coming.content = iframe.appendTo( coming.inner ); + + if (!coming.iframe.preload) { + F._afterLoad(); + } + }, + + _preloadImages: function() { + var group = F.group, + current = F.current, + len = group.length, + cnt = current.preload ? Math.min(current.preload, len - 1) : 0, + item, + i; + + for (i = 1; i <= cnt; i += 1) { + item = group[ (current.index + i ) % len ]; + + if (item.type === 'image' && item.href) { + new Image().src = item.href; + } + } + }, + + _afterLoad: function () { + var coming = F.coming, + previous = F.current, + placeholder = 'fancybox-placeholder', + current, + content, + type, + scrolling, + href, + embed; + + F.hideLoading(); + + if (!coming || F.isActive === false) { + return; + } + + if (false === F.trigger('afterLoad', coming, previous)) { + coming.wrap.stop(true).trigger('onReset').remove(); + + F.coming = null; + + return; + } + + if (previous) { + F.trigger('beforeChange', previous); + + previous.wrap.stop(true).removeClass('fancybox-opened') + .find('.fancybox-item, .fancybox-nav') + .remove(); + } + + F.unbindEvents(); + + current = coming; + content = coming.content; + type = coming.type; + scrolling = coming.scrolling; + + $.extend(F, { + wrap : current.wrap, + skin : current.skin, + outer : current.outer, + inner : current.inner, + current : current, + previous : previous + }); + + href = current.href; + + switch (type) { + case 'inline': + case 'ajax': + case 'html': + if (current.selector) { + content = $('
            ').html(content).find(current.selector); + + } else if (isQuery(content)) { + if (!content.data(placeholder)) { + content.data(placeholder, $('
            ').insertAfter( content ).hide() ); + } + + content = content.show().detach(); + + current.wrap.bind('onReset', function () { + if ($(this).find(content).length) { + content.hide().replaceAll( content.data(placeholder) ).data(placeholder, false); + } + }); + } + break; + + case 'image': + content = current.tpl.image.replace('{href}', href); + break; + + case 'swf': + content = ''; + embed = ''; + + $.each(current.swf, function(name, val) { + content += ''; + embed += ' ' + name + '="' + val + '"'; + }); + + content += ''; + break; + } + + if (!(isQuery(content) && content.parent().is(current.inner))) { + current.inner.append( content ); + } + + // Give a chance for helpers or callbacks to update elements + F.trigger('beforeShow'); + + // Set scrolling before calculating dimensions + current.inner.css('overflow', scrolling === 'yes' ? 'scroll' : (scrolling === 'no' ? 'hidden' : scrolling)); + + // Set initial dimensions and start position + F._setDimension(); + + F.reposition(); + + F.isOpen = false; + F.coming = null; + + F.bindEvents(); + + if (!F.isOpened) { + $('.fancybox-wrap').not( current.wrap ).stop(true).trigger('onReset').remove(); + + } else if (previous.prevMethod) { + F.transitions[ previous.prevMethod ](); + } + + F.transitions[ F.isOpened ? current.nextMethod : current.openMethod ](); + + F._preloadImages(); + }, + + _setDimension: function () { + var viewport = F.getViewport(), + steps = 0, + canShrink = false, + canExpand = false, + wrap = F.wrap, + skin = F.skin, + inner = F.inner, + current = F.current, + width = current.width, + height = current.height, + minWidth = current.minWidth, + minHeight = current.minHeight, + maxWidth = current.maxWidth, + maxHeight = current.maxHeight, + scrolling = current.scrolling, + scrollOut = current.scrollOutside ? current.scrollbarWidth : 0, + margin = current.margin, + wMargin = getScalar(margin[1] + margin[3]), + hMargin = getScalar(margin[0] + margin[2]), + wPadding, + hPadding, + wSpace, + hSpace, + origWidth, + origHeight, + origMaxWidth, + origMaxHeight, + ratio, + width_, + height_, + maxWidth_, + maxHeight_, + iframe, + body; + + // Reset dimensions so we could re-check actual size + wrap.add(skin).add(inner).width('auto').height('auto').removeClass('fancybox-tmp'); + + wPadding = getScalar(skin.outerWidth(true) - skin.width()); + hPadding = getScalar(skin.outerHeight(true) - skin.height()); + + // Any space between content and viewport (margin, padding, border, title) + wSpace = wMargin + wPadding; + hSpace = hMargin + hPadding; + + origWidth = isPercentage(width) ? (viewport.w - wSpace) * getScalar(width) / 100 : width; + origHeight = isPercentage(height) ? (viewport.h - hSpace) * getScalar(height) / 100 : height; + + if (current.type === 'iframe') { + iframe = current.content; + + if (current.autoHeight && iframe.data('ready') === 1) { + try { + if (iframe[0].contentWindow.document.location) { + inner.width( origWidth ).height(9999); + + body = iframe.contents().find('body'); + + if (scrollOut) { + body.css('overflow-x', 'hidden'); + } + + origHeight = body.outerHeight(true); + } + + } catch (e) {} + } + + } else if (current.autoWidth || current.autoHeight) { + inner.addClass( 'fancybox-tmp' ); + + // Set width or height in case we need to calculate only one dimension + if (!current.autoWidth) { + inner.width( origWidth ); + } + + if (!current.autoHeight) { + inner.height( origHeight ); + } + + if (current.autoWidth) { + origWidth = inner.width(); + } + + if (current.autoHeight) { + origHeight = inner.height(); + } + + inner.removeClass( 'fancybox-tmp' ); + } + + width = getScalar( origWidth ); + height = getScalar( origHeight ); + + ratio = origWidth / origHeight; + + // Calculations for the content + minWidth = getScalar(isPercentage(minWidth) ? getScalar(minWidth, 'w') - wSpace : minWidth); + maxWidth = getScalar(isPercentage(maxWidth) ? getScalar(maxWidth, 'w') - wSpace : maxWidth); + + minHeight = getScalar(isPercentage(minHeight) ? getScalar(minHeight, 'h') - hSpace : minHeight); + maxHeight = getScalar(isPercentage(maxHeight) ? getScalar(maxHeight, 'h') - hSpace : maxHeight); + + // These will be used to determine if wrap can fit in the viewport + origMaxWidth = maxWidth; + origMaxHeight = maxHeight; + + if (current.fitToView) { + maxWidth = Math.min(viewport.w - wSpace, maxWidth); + maxHeight = Math.min(viewport.h - hSpace, maxHeight); + } + + maxWidth_ = viewport.w - wMargin; + maxHeight_ = viewport.h - hMargin; + + if (current.aspectRatio) { + if (width > maxWidth) { + width = maxWidth; + height = getScalar(width / ratio); + } + + if (height > maxHeight) { + height = maxHeight; + width = getScalar(height * ratio); + } + + if (width < minWidth) { + width = minWidth; + height = getScalar(width / ratio); + } + + if (height < minHeight) { + height = minHeight; + width = getScalar(height * ratio); + } + + } else { + width = Math.max(minWidth, Math.min(width, maxWidth)); + + if (current.autoHeight && current.type !== 'iframe') { + inner.width( width ); + + height = inner.height(); + } + + height = Math.max(minHeight, Math.min(height, maxHeight)); + } + + // Try to fit inside viewport (including the title) + if (current.fitToView) { + inner.width( width ).height( height ); + + wrap.width( width + wPadding ); + + // Real wrap dimensions + width_ = wrap.width(); + height_ = wrap.height(); + + if (current.aspectRatio) { + while ((width_ > maxWidth_ || height_ > maxHeight_) && width > minWidth && height > minHeight) { + if (steps++ > 19) { + break; + } + + height = Math.max(minHeight, Math.min(maxHeight, height - 10)); + width = getScalar(height * ratio); + + if (width < minWidth) { + width = minWidth; + height = getScalar(width / ratio); + } + + if (width > maxWidth) { + width = maxWidth; + height = getScalar(width / ratio); + } + + inner.width( width ).height( height ); + + wrap.width( width + wPadding ); + + width_ = wrap.width(); + height_ = wrap.height(); + } + + } else { + width = Math.max(minWidth, Math.min(width, width - (width_ - maxWidth_))); + height = Math.max(minHeight, Math.min(height, height - (height_ - maxHeight_))); + } + } + + if (scrollOut && scrolling === 'auto' && height < origHeight && (width + wPadding + scrollOut) < maxWidth_) { + width += scrollOut; + } + + inner.width( width ).height( height ); + + wrap.width( width + wPadding ); + + width_ = wrap.width(); + height_ = wrap.height(); + + canShrink = (width_ > maxWidth_ || height_ > maxHeight_) && width > minWidth && height > minHeight; + canExpand = current.aspectRatio ? (width < origMaxWidth && height < origMaxHeight && width < origWidth && height < origHeight) : ((width < origMaxWidth || height < origMaxHeight) && (width < origWidth || height < origHeight)); + + $.extend(current, { + dim : { + width : getValue( width_ ), + height : getValue( height_ ) + }, + origWidth : origWidth, + origHeight : origHeight, + canShrink : canShrink, + canExpand : canExpand, + wPadding : wPadding, + hPadding : hPadding, + wrapSpace : height_ - skin.outerHeight(true), + skinSpace : skin.height() - height + }); + + if (!iframe && current.autoHeight && height > minHeight && height < maxHeight && !canExpand) { + inner.height('auto'); + } + }, + + _getPosition: function (onlyAbsolute) { + var current = F.current, + viewport = F.getViewport(), + margin = current.margin, + width = F.wrap.width() + margin[1] + margin[3], + height = F.wrap.height() + margin[0] + margin[2], + rez = { + position: 'absolute', + top : margin[0], + left : margin[3] + }; + + if (current.autoCenter && current.fixed && !onlyAbsolute && height <= viewport.h && width <= viewport.w) { + rez.position = 'fixed'; + + } else if (!current.locked) { + rez.top += viewport.y; + rez.left += viewport.x; + } + + rez.top = getValue(Math.max(rez.top, rez.top + ((viewport.h - height) * current.topRatio))); + rez.left = getValue(Math.max(rez.left, rez.left + ((viewport.w - width) * current.leftRatio))); + + return rez; + }, + + _afterZoomIn: function () { + var current = F.current; + + if (!current) { + return; + } + + F.isOpen = F.isOpened = true; + + F.wrap.css('overflow', 'visible').addClass('fancybox-opened'); + + F.update(); + + // Assign a click event + if ( current.closeClick || (current.nextClick && F.group.length > 1) ) { + F.inner.css('cursor', 'pointer').bind('click.fb', function(e) { + if (!$(e.target).is('a') && !$(e.target).parent().is('a')) { + e.preventDefault(); + + F[ current.closeClick ? 'close' : 'next' ](); + } + }); + } + + // Create a close button + if (current.closeBtn) { + $(current.tpl.closeBtn).appendTo(F.skin).bind('click.fb', function(e) { + e.preventDefault(); + + F.close(); + }); + } + + // Create navigation arrows + if (current.arrows && F.group.length > 1) { + if (current.loop || current.index > 0) { + $(current.tpl.prev).appendTo(F.outer).bind('click.fb', F.prev); + } + + if (current.loop || current.index < F.group.length - 1) { + $(current.tpl.next).appendTo(F.outer).bind('click.fb', F.next); + } + } + + F.trigger('afterShow'); + + // Stop the slideshow if this is the last item + if (!current.loop && current.index === current.group.length - 1) { + F.play( false ); + + } else if (F.opts.autoPlay && !F.player.isActive) { + F.opts.autoPlay = false; + + F.play(); + } + }, + + _afterZoomOut: function ( obj ) { + obj = obj || F.current; + + $('.fancybox-wrap').trigger('onReset').remove(); + + $.extend(F, { + group : {}, + opts : {}, + router : false, + current : null, + isActive : false, + isOpened : false, + isOpen : false, + isClosing : false, + wrap : null, + skin : null, + outer : null, + inner : null + }); + + F.trigger('afterClose', obj); + } + }); + + /* + * Default transitions + */ + + F.transitions = { + getOrigPosition: function () { + var current = F.current, + element = current.element, + orig = current.orig, + pos = {}, + width = 50, + height = 50, + hPadding = current.hPadding, + wPadding = current.wPadding, + viewport = F.getViewport(); + + if (!orig && current.isDom && element.is(':visible')) { + orig = element.find('img:first'); + + if (!orig.length) { + orig = element; + } + } + + if (isQuery(orig)) { + pos = orig.offset(); + + if (orig.is('img')) { + width = orig.outerWidth(); + height = orig.outerHeight(); + } + + } else { + pos.top = viewport.y + (viewport.h - height) * current.topRatio; + pos.left = viewport.x + (viewport.w - width) * current.leftRatio; + } + + if (F.wrap.css('position') === 'fixed' || current.locked) { + pos.top -= viewport.y; + pos.left -= viewport.x; + } + + pos = { + top : getValue(pos.top - hPadding * current.topRatio), + left : getValue(pos.left - wPadding * current.leftRatio), + width : getValue(width + wPadding), + height : getValue(height + hPadding) + }; + + return pos; + }, + + step: function (now, fx) { + var ratio, + padding, + value, + prop = fx.prop, + current = F.current, + wrapSpace = current.wrapSpace, + skinSpace = current.skinSpace; + + if (prop === 'width' || prop === 'height') { + ratio = fx.end === fx.start ? 1 : (now - fx.start) / (fx.end - fx.start); + + if (F.isClosing) { + ratio = 1 - ratio; + } + + padding = prop === 'width' ? current.wPadding : current.hPadding; + value = now - padding; + + F.skin[ prop ]( getScalar( prop === 'width' ? value : value - (wrapSpace * ratio) ) ); + F.inner[ prop ]( getScalar( prop === 'width' ? value : value - (wrapSpace * ratio) - (skinSpace * ratio) ) ); + } + }, + + zoomIn: function () { + var current = F.current, + startPos = current.pos, + effect = current.openEffect, + elastic = effect === 'elastic', + endPos = $.extend({opacity : 1}, startPos); + + // Remove "position" property that breaks older IE + delete endPos.position; + + if (elastic) { + startPos = this.getOrigPosition(); + + if (current.openOpacity) { + startPos.opacity = 0.1; + } + + } else if (effect === 'fade') { + startPos.opacity = 0.1; + } + + F.wrap.css(startPos).animate(endPos, { + duration : effect === 'none' ? 0 : current.openSpeed, + easing : current.openEasing, + step : elastic ? this.step : null, + complete : F._afterZoomIn + }); + }, + + zoomOut: function () { + var current = F.current, + effect = current.closeEffect, + elastic = effect === 'elastic', + endPos = {opacity : 0.1}; + + if (elastic) { + endPos = this.getOrigPosition(); + + if (current.closeOpacity) { + endPos.opacity = 0.1; + } + } + + F.wrap.animate(endPos, { + duration : effect === 'none' ? 0 : current.closeSpeed, + easing : current.closeEasing, + step : elastic ? this.step : null, + complete : F._afterZoomOut + }); + }, + + changeIn: function () { + var current = F.current, + effect = current.nextEffect, + startPos = current.pos, + endPos = { opacity : 1 }, + direction = F.direction, + distance = 200, + field; + + startPos.opacity = 0.1; + + if (effect === 'elastic') { + field = direction === 'down' || direction === 'up' ? 'top' : 'left'; + + if (direction === 'down' || direction === 'right') { + startPos[ field ] = getValue(getScalar(startPos[ field ]) - distance); + endPos[ field ] = '+=' + distance + 'px'; + + } else { + startPos[ field ] = getValue(getScalar(startPos[ field ]) + distance); + endPos[ field ] = '-=' + distance + 'px'; + } + } + + // Workaround for http://bugs.jquery.com/ticket/12273 + if (effect === 'none') { + F._afterZoomIn(); + + } else { + F.wrap.css(startPos).animate(endPos, { + duration : current.nextSpeed, + easing : current.nextEasing, + complete : F._afterZoomIn + }); + } + }, + + changeOut: function () { + var previous = F.previous, + effect = previous.prevEffect, + endPos = { opacity : 0.1 }, + direction = F.direction, + distance = 200; + + if (effect === 'elastic') { + endPos[ direction === 'down' || direction === 'up' ? 'top' : 'left' ] = ( direction === 'up' || direction === 'left' ? '-' : '+' ) + '=' + distance + 'px'; + } + + previous.wrap.animate(endPos, { + duration : effect === 'none' ? 0 : previous.prevSpeed, + easing : previous.prevEasing, + complete : function () { + $(this).trigger('onReset').remove(); + } + }); + } + }; + + /* + * Overlay helper + */ + + F.helpers.overlay = { + defaults : { + closeClick : true, // if true, fancyBox will be closed when user clicks on the overlay + speedOut : 200, // duration of fadeOut animation + showEarly : true, // indicates if should be opened immediately or wait until the content is ready + css : {}, // custom CSS properties + locked : !isTouch, // if true, the content will be locked into overlay + fixed : true // if false, the overlay CSS position property will not be set to "fixed" + }, + + overlay : null, // current handle + fixed : false, // indicates if the overlay has position "fixed" + el : $('html'), // element that contains "the lock" + + // Public methods + create : function(opts) { + opts = $.extend({}, this.defaults, opts); + + if (this.overlay) { + this.close(); + } + + this.overlay = $('
            ').appendTo( F.coming ? F.coming.parent : opts.parent ); + this.fixed = false; + + if (opts.fixed && F.defaults.fixed) { + this.overlay.addClass('fancybox-overlay-fixed'); + + this.fixed = true; + } + }, + + open : function(opts) { + var that = this; + + opts = $.extend({}, this.defaults, opts); + + if (this.overlay) { + this.overlay.unbind('.overlay').width('auto').height('auto'); + + } else { + this.create(opts); + } + + if (!this.fixed) { + W.bind('resize.overlay', $.proxy( this.update, this) ); + + this.update(); + } + + if (opts.closeClick) { + this.overlay.bind('click.overlay', function(e) { + if ($(e.target).hasClass('fancybox-overlay')) { + if (F.isActive) { + F.close(); + } else { + that.close(); + } + + return false; + } + }); + } + + this.overlay.css( opts.css ).show(); + }, + + close : function() { + var scrollV, scrollH; + + W.unbind('resize.overlay'); + + if (this.el.hasClass('fancybox-lock')) { + $('.fancybox-margin').removeClass('fancybox-margin'); + + scrollV = W.scrollTop(); + scrollH = W.scrollLeft(); + + this.el.removeClass('fancybox-lock'); + + W.scrollTop( scrollV ).scrollLeft( scrollH ); + } + + $('.fancybox-overlay').remove().hide(); + + $.extend(this, { + overlay : null, + fixed : false + }); + }, + + // Private, callbacks + + update : function () { + var width = '100%', offsetWidth; + + // Reset width/height so it will not mess + this.overlay.width(width).height('100%'); + + // jQuery does not return reliable result for IE + if (IE) { + offsetWidth = Math.max(document.documentElement.offsetWidth, document.body.offsetWidth); + + if (D.width() > offsetWidth) { + width = D.width(); + } + + } else if (D.width() > W.width()) { + width = D.width(); + } + + this.overlay.width(width).height(D.height()); + }, + + // This is where we can manipulate DOM, because later it would cause iframes to reload + onReady : function (opts, obj) { + var overlay = this.overlay; + + $('.fancybox-overlay').stop(true, true); + + if (!overlay) { + this.create(opts); + } + + if (opts.locked && this.fixed && obj.fixed) { + if (!overlay) { + this.margin = D.height() > W.height() ? $('html').css('margin-right').replace("px", "") : false; + } + + obj.locked = this.overlay.append( obj.wrap ); + obj.fixed = false; + } + + if (opts.showEarly === true) { + this.beforeShow.apply(this, arguments); + } + }, + + beforeShow : function(opts, obj) { + var scrollV, scrollH; + + if (obj.locked) { + if (this.margin !== false) { + $('*').filter(function(){ + return ($(this).css('position') === 'fixed' && !$(this).hasClass("fancybox-overlay") && !$(this).hasClass("fancybox-wrap") ); + }).addClass('fancybox-margin'); + + this.el.addClass('fancybox-margin'); + } + + scrollV = W.scrollTop(); + scrollH = W.scrollLeft(); + + this.el.addClass('fancybox-lock'); + + W.scrollTop( scrollV ).scrollLeft( scrollH ); + } + + this.open(opts); + }, + + onUpdate : function() { + if (!this.fixed) { + this.update(); + } + }, + + afterClose: function (opts) { + // Remove overlay if exists and fancyBox is not opening + // (e.g., it is not being open using afterClose callback) + //if (this.overlay && !F.isActive) { + if (this.overlay && !F.coming) { + this.overlay.fadeOut(opts.speedOut, $.proxy( this.close, this )); + } + } + }; + + /* + * Title helper + */ + + F.helpers.title = { + defaults : { + type : 'float', // 'float', 'inside', 'outside' or 'over', + position : 'bottom' // 'top' or 'bottom' + }, + + beforeShow: function (opts) { + var current = F.current, + text = current.title, + type = opts.type, + title, + target; + + if ($.isFunction(text)) { + text = text.call(current.element, current); + } + + if (!isString(text) || $.trim(text) === '') { + return; + } + + title = $('
            ' + text + '
            '); + + switch (type) { + case 'inside': + target = F.skin; + break; + + case 'outside': + target = F.wrap; + break; + + case 'over': + target = F.inner; + break; + + default: // 'float' + target = F.skin; + + title.appendTo('body'); + + if (IE) { + title.width( title.width() ); + } + + title.wrapInner(''); + + //Increase bottom margin so this title will also fit into viewport + F.current.margin[2] += Math.abs( getScalar(title.css('margin-bottom')) ); + break; + } + + title[ (opts.position === 'top' ? 'prependTo' : 'appendTo') ](target); + } + }; + + // jQuery plugin initialization + $.fn.fancybox = function (options) { + var index, + that = $(this), + selector = this.selector || '', + run = function(e) { + var what = $(this).blur(), idx = index, relType, relVal; + + if (!(e.ctrlKey || e.altKey || e.shiftKey || e.metaKey) && !what.is('.fancybox-wrap')) { + relType = options.groupAttr || 'data-fancybox-group'; + relVal = what.attr(relType); + + if (!relVal) { + relType = 'rel'; + relVal = what.get(0)[ relType ]; + } + + if (relVal && relVal !== '' && relVal !== 'nofollow') { + what = selector.length ? $(selector) : that; + what = what.filter('[' + relType + '="' + relVal + '"]'); + idx = what.index(this); + } + + options.index = idx; + + // Stop an event from bubbling if everything is fine + if (F.open(what, options) !== false) { + e.preventDefault(); + } + } + }; + + options = options || {}; + index = options.index || 0; + + if (!selector || options.live === false) { + that.unbind('click.fb-start').bind('click.fb-start', run); + + } else { + D.undelegate(selector, 'click.fb-start').delegate(selector + ":not('.fancybox-item, .fancybox-nav')", 'click.fb-start', run); + } + + this.filter('[data-fancybox-start=1]').trigger('click'); + + return this; + }; + + // Tests that need a body at doc ready + D.ready(function() { + var w1, w2; + + if ( $.scrollbarWidth === undefined ) { + // http://benalman.com/projects/jquery-misc-plugins/#scrollbarwidth + $.scrollbarWidth = function() { + var parent = $('
            ').appendTo('body'), + child = parent.children(), + width = child.innerWidth() - child.height( 99 ).innerWidth(); + + parent.remove(); + + return width; + }; + } + + if ( $.support.fixedPosition === undefined ) { + $.support.fixedPosition = (function() { + var elem = $('
            ').appendTo('body'), + fixed = ( elem[0].offsetTop === 20 || elem[0].offsetTop === 15 ); + + elem.remove(); + + return fixed; + }()); + } + + $.extend(F.defaults, { + scrollbarWidth : $.scrollbarWidth(), + fixed : $.support.fixedPosition, + parent : $('body') + }); + + //Get real width of page scroll-bar + w1 = $(window).width(); + + H.addClass('fancybox-lock-test'); + + w2 = $(window).width(); + + H.removeClass('fancybox-lock-test'); + + $("").appendTo("head"); + }); + +}(window, document, jQuery)); +/*! http://mths.be/placeholder v2.0.7 by @mathias */ +;(function(window, document, $) { + + var isInputSupported = 'placeholder' in document.createElement('input'); + var isTextareaSupported = 'placeholder' in document.createElement('textarea'); + var prototype = $.fn; + var valHooks = $.valHooks; + var propHooks = $.propHooks; + var hooks; + var placeholder; + + if (isInputSupported && isTextareaSupported) { + + placeholder = prototype.placeholder = function() { + return this; + }; + + placeholder.input = placeholder.textarea = true; + + } else { + + placeholder = prototype.placeholder = function() { + var $this = this; + $this + .filter((isInputSupported ? 'textarea' : ':input') + '[placeholder]') + .not('.placeholder') + .bind({ + 'focus.placeholder': clearPlaceholder, + 'blur.placeholder': setPlaceholder + }) + .data('placeholder-enabled', true) + .trigger('blur.placeholder'); + return $this; + }; + + placeholder.input = isInputSupported; + placeholder.textarea = isTextareaSupported; + + hooks = { + 'get': function(element) { + var $element = $(element); + + var $passwordInput = $element.data('placeholder-password'); + if ($passwordInput) { + return $passwordInput[0].value; + } + + return $element.data('placeholder-enabled') && $element.hasClass('placeholder') ? '' : element.value; + }, + 'set': function(element, value) { + var $element = $(element); + + var $passwordInput = $element.data('placeholder-password'); + if ($passwordInput) { + return $passwordInput[0].value = value; + } + + if (!$element.data('placeholder-enabled')) { + return element.value = value; + } + if (value == '') { + element.value = value; + // Issue #56: Setting the placeholder causes problems if the element continues to have focus. + if (element != safeActiveElement()) { + // We can't use `triggerHandler` here because of dummy text/password inputs :( + setPlaceholder.call(element); + } + } else if ($element.hasClass('placeholder')) { + clearPlaceholder.call(element, true, value) || (element.value = value); + } else { + element.value = value; + } + // `set` can not return `undefined`; see http://jsapi.info/jquery/1.7.1/val#L2363 + return $element; + } + }; + + if (!isInputSupported) { + valHooks.input = hooks; + propHooks.value = hooks; + } + if (!isTextareaSupported) { + valHooks.textarea = hooks; + propHooks.value = hooks; + } + + $(function() { + // Look for forms + $(document).delegate('form', 'submit.placeholder', function() { + // Clear the placeholder values so they don't get submitted + var $inputs = $('.placeholder', this).each(clearPlaceholder); + setTimeout(function() { + $inputs.each(setPlaceholder); + }, 10); + }); + }); + + // Clear placeholder values upon page reload + $(window).bind('beforeunload.placeholder', function() { + $('.placeholder').each(function() { + this.value = ''; + }); + }); + + } + + function args(elem) { + // Return an object of element attributes + var newAttrs = {}; + var rinlinejQuery = /^jQuery\d+$/; + $.each(elem.attributes, function(i, attr) { + if (attr.specified && !rinlinejQuery.test(attr.name)) { + newAttrs[attr.name] = attr.value; + } + }); + return newAttrs; + } + + function clearPlaceholder(event, value) { + var input = this; + var $input = $(input); + if (input.value == $input.attr('placeholder') && $input.hasClass('placeholder')) { + if ($input.data('placeholder-password')) { + $input = $input.hide().next().show().attr('id', $input.removeAttr('id').data('placeholder-id')); + // If `clearPlaceholder` was called from `$.valHooks.input.set` + if (event === true) { + return $input[0].value = value; + } + $input.focus(); + } else { + input.value = ''; + $input.removeClass('placeholder'); + input == safeActiveElement() && input.select(); + } + } + } + + function setPlaceholder() { + var $replacement; + var input = this; + var $input = $(input); + var id = this.id; + if (input.value == '') { + if (input.type == 'password') { + if (!$input.data('placeholder-textinput')) { + try { + $replacement = $input.clone().attr({ 'type': 'text' }); + } catch(e) { + $replacement = $('').attr($.extend(args(this), { 'type': 'text' })); + } + $replacement + .removeAttr('name') + .data({ + 'placeholder-password': $input, + 'placeholder-id': id + }) + .bind('focus.placeholder', clearPlaceholder); + $input + .data({ + 'placeholder-textinput': $replacement, + 'placeholder-id': id + }) + .before($replacement); + } + $input = $input.removeAttr('id').hide().prev().attr('id', id).show(); + // Note: `$input[0] != input` now! + } + $input.addClass('placeholder'); + $input[0].value = $input.attr('placeholder'); + } else { + $input.removeClass('placeholder'); + } + } + + function safeActiveElement() { + // Avoid IE9 `document.activeElement` of death + // https://github.com/mathiasbynens/jquery-placeholder/pull/99 + try { + return document.activeElement; + } catch (err) {} + } + +}(this, document, jQuery)); + +/* + * jQuery PhotoTag plugin 1.3 + * + * Copyright (c) 2012 Karl Mendes + * http://karlmendes.com + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * + * Revision: + * Customized for Expomap +*/ +// Limit scope pollution from any deprecated API +(function() { + + var matched, browser; + +// Use of jQuery.browser is frowned upon. +// More details: http://api.jquery.com/jQuery.browser +// jQuery.uaMatch maintained for back-compat + jQuery.uaMatch = function( ua ) { + ua = ua.toLowerCase(); + + var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || + /(webkit)[ \/]([\w.]+)/.exec( ua ) || + /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || + /(msie) ([\w.]+)/.exec( ua ) || + ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || + []; + + return { + browser: match[ 1 ] || "", + version: match[ 2 ] || "0" + }; + }; + + matched = jQuery.uaMatch( navigator.userAgent ); + browser = {}; + + if ( matched.browser ) { + browser[ matched.browser ] = true; + browser.version = matched.version; + } + +// Chrome is Webkit, but Webkit is also Safari. + if ( browser.chrome ) { + browser.webkit = true; + } else if ( browser.webkit ) { + browser.safari = true; + } + + jQuery.browser = browser; + + jQuery.sub = function() { + function jQuerySub( selector, context ) { + return new jQuerySub.fn.init( selector, context ); + } + jQuery.extend( true, jQuerySub, this ); + jQuerySub.superclass = this; + jQuerySub.fn = jQuerySub.prototype = this(); + jQuerySub.fn.constructor = jQuerySub; + jQuerySub.sub = this.sub; + jQuerySub.fn.init = function init( selector, context ) { + if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { + context = jQuerySub( context ); + } + + return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); + }; + jQuerySub.fn.init.prototype = jQuerySub.fn; + var rootjQuerySub = jQuerySub(document); + return jQuerySub; + }; + +})(); +(function($) { + + $.fn.photoTag = function( options ){ + + var defaultOptions = { + //requestTagsUrl: '/photo/existing-tags/', + deleteTagsUrl: '/photo/delete-tag/', + addTagUrl: '/add-tag.php', + parametersForNewTag: { + name: { + parameterKey: 'name', + isAutocomplete: true, + label: 'Name' + } + }, + parametersForRequest : ['image-id','album-id'], + literals:{ + communicationProblem: 'Произошла ошибка. Изменения не сохранены.', + saveTag: 'Добавить', + cancelTag: '', + addNewTag: 'Отметить человека', + removeTag: 'X' + }, + tag: { + tagIdParameter: 'tag-id', + defaultWidth: 100, + defaultHeight: 100, + isResizable: true, + minWidth: 50, + minHeight: 50, + maxWidth: 150, + maxHeight: 150, + cssClass: 'photoTag-tag', + idPrefix: 'photoTag-tag_', + showDeleteLinkOnTag: true, + deleteLinkCssClass: 'photoTag-delete', + deleteLinkIdPrefix: 'photoTag-delete_', + flashAfterCreation: true, + newTagFormWidth: 170, + newTagFormClass: 'photoTag-newTagForm' + }, + imageWrapBox: { + cssClass: 'photoTag-wrap', + idPrefix: 'photoTag-wrap_', + addNewLinkIdPrefix: 'photoTag-add_', + controlPaneIdPrefix: 'photoTag-cpanel_', + showTagList: true, + tagListCssClass: 'photoTag-taglist', + tagListIdPrefix: 'photoTag-taglist_', + tagListRemoveItemIdPrefix: 'photoTag-removeTag', + canvasIdPrefix: 'photoTag-canvas_', + controlPanelHeight: 25 + }, + showAddTagLinks: true, + externalAddTagLinks: { + bind: true, + selector: ".addTag" + }, + isEnabledToEditTags: true, + manageError: 'internal function, user can bind a new one. function(response)', + beforeTagRequest: 'bind by user, function( parameters )' + }; + + var cache = { + tags: {} + }; + + var options = $.extend(true,defaultOptions,options); + + var getParametersForImage = function( imageElement ){ + var parameters = {}; + $.each(options.parametersForRequest,function( i, key){ + var parameterValue = imageElement.attr('data-'+key); + if(parameterValue) + parameters[key] = parameterValue; + }); + return parameters; + }; + function mover(elem){ + elem.parent().css({'overflow':'visible'}); + elem.parent().find('.utag-bot, .utag-top, .utag-right, .utag-left').show(); + elem.parent().find('.utag-bot').css({ + 'top': elem.parent().css('height') + }); + elem.parent().find('.utag-right').css({ + 'height': elem.parent().css('height'), + 'left': elem.parent().css('width') + }); + elem.parent().find('.utag-left').css({ + 'height': elem.parent().css('height') + }); + elem.parent().stop().animate({ opacity: 1.0 }, 500); + }; + function mleave(elem){ + + elem.parent().stop().animate({ opacity: 0.0 }, 500, function() { + elem.parent().css({'overflow':'hidden'}); + }); + elem.parent().find('.utag-bot, .utag-top, .utag-right, .utag-left').hide(); + }; + function moverie(elem){ + elem.css({'overflow':'visible'}); + elem.find('.utag-bot, .utag-top, .utag-right, .utag-left').show(); + elem.find('.utag-bot').css({ + 'top': elem.css('height') + }); + elem.find('.utag-right').css({ + 'height': elem.css('height'), + 'left': elem.css('width') + }); + elem.find('.utag-left').css({ + 'height': elem.css('height') + }); + elem.stop().animate({ opacity: 1.0 }, 500); + }; + function mleaveie(elem){ + + elem.stop().animate({ opacity: 0.0 }, 500, function() { + elem.css({'overflow':'hidden'}); + }); + elem.find('.utag-bot, .utag-top, .utag-right, .utag-left').hide(); + }; + function registerHighlightHovers() { + $('.highlight-tag').each(function() { + $(this).mouseenter( + function() { + moverie($('#photoTag-tag_'+$(this).attr('tag-id'))); + } + ).mouseleave( + function() { + mleaveie($('#photoTag-tag_'+$(this).attr('tag-id'))); + } + ); + }); + }; + + var manageError = function( response ){ + if( $.isFunction(options.manageError) ) + options.manageError(response); + else{ + if(response.message) + alert(response.message); + else + alert(options.literals.communicationProblem); + } + }; + + var registerEventsForDeleteLink = function( link, image ){ + link.click( + function(e){ + e.preventDefault(); + var tagId = link.attr('href').substring(1); + var parameters = getParametersForImage(image); + parameters[options.tag.tagIdParameter] = tagId; + $.getJSON(options.deleteTagsUrl,parameters, + function( data ){ + if(!data.result) + manageError(data); + } + ); + $('#' + options.tag.deleteLinkIdPrefix + tagId).parents().eq(1).remove(); + $('#' + options.imageWrapBox.tagListRemoveItemIdPrefix + tagId).parent().remove(); + //Удаляем запятую последнего элемента в списке: + var comma=$('span.comma'); + var hltag=$('a.highlight-tag'); + $('ul.photoTag-taglist li').last().find(comma).remove(); + $('ul.photoTag-taglist li').last().find(hltag).mouseover( + function() { + mover($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ).mouseleave( + function() { + mleave($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ); + return false; + } + ); + + }; + + + var registerEventsForAddTagLink = function( link, image, image_id ){ + $(link).click(function(e){ + e.preventDefault(); + if($('#' + options.tag.idPrefix + 'expo').length == 0){ + hideAllTags(image_id); + $('#' + options.imageWrapBox.idPrefix + image_id).append(createExpoTag(image)); + prepareExpoTagBox($('#' + options.tag.idPrefix + 'expo'),image,image_id); + } + }); + }; + + var dragOrResizeEventHandler = function( e, ui ){ + var $this = $(this); + var tagPosition = $(this).position(); + var x = tagPosition.left; + var y = tagPosition.top; + if($("#expoTagBoxForm")){ + $("#expoTagBoxForm").css({ + 'top':y, + 'left':x + $(this).width() + 10 + }); + }; + $('#photoTag-tag_expo .utag-right').css({ + 'height': $(this).height(), + 'left': $(this).width() + }); + $('#photoTag-tag_expo .utag-left').css({ + 'height': $(this).height() + }); + $('#photoTag-tag_expo .utag-bot').css({ + 'top': $(this).height() + }); + + + } + var dragStartHandler = function( e, ui ) { + if($("#expoTagBoxForm")){ + $("#expoTagBoxForm").css({ + 'display':'none' + }); + }; + }; + var dragStopHandler = function( e, ui ) { + var $this = $(this); + var tagPosition = $(this).position(); + var x = tagPosition.left; + var y = tagPosition.top; + if($("#expoTagBoxForm")){ + $("#expoTagBoxForm").css({ + 'display':'block', + 'top':y, + 'left':x + $(this).width() + 10 + }); + }; + }; + + var prepareExpoTagBox = function( expoTagBox, image, image_id ){ + expoTagBox.draggable({ + containment: image, + cursor: 'move', + drag: dragOrResizeEventHandler, + start: dragStartHandler, + stop: dragStopHandler, + grid: [1,1] + }); + expoTagBox.resizable({ + handles: 'n, e, s, w, ne, se, sw, nw', + maxHeight: image.height(), + maxWidth: image.width(), + minHeight: options.tag.minHeight, + minWidth: options.tag.minWidth, + containment: image, + resize: dragOrResizeEventHandler + }); + createNewTagForm(expoTagBox,image,image_id); + $('.utag-bot').css({ + 'top': options.tag.defaultWidth + }); + $('.utag-right').css({ + 'height': options.tag.defaultHeight, + 'left': options.tag.defaultWidth + }); + $('.utag-left').css({ + 'height': options.tag.defaultHeight + }); + + }; + + var createNewTagForm = function( expoTagBox, image, image_id ){ + var form = $('
            '); + var newTagFormBox = $('
            '); + var expoTagBoxPosition = $(expoTagBox).position(); + newTagFormBox.css({ + 'position':'absolute', + 'top': expoTagBoxPosition.top, + 'left': expoTagBoxPosition.left + expoTagBox.width() + 10, + 'width' : options.tag.newTagFormWidth + }); + newTagFormBox.append($('
            ')); + var imageWrapper = $("#" + options.imageWrapBox.idPrefix + image_id); + imageWrapper.append(newTagFormBox); + $('#expoNewTagFormContent').append(form); + $.each(options.parametersForNewTag,function( i, properties ){ + var input = $('
            '); + if(properties.label){ + var label = $(''); + var div = $('
            '); + label.append(properties.label); + $('#expoNewTagForm').append(label); + }; + $('#expoNewTagForm').append(input); + $('#expoInput_name').bind( "keydown", function( event ) { + if ( event.keyCode === $.ui.keyCode.TAB && + $( this ).data( "ui-autocomplete" ).menu.active ) { + event.preventDefault(); + } + }) + .autocomplete({ + appendTo: $('.ptListHolder'), + minLength: 1, + source: function (request, response) { + var term = $.ui.autocomplete.escapeRegex(request.term) + , startsWithMatcher = new RegExp("^" + term, "i") + , startsWith = $.grep(photoTagData, function(value) { + return startsWithMatcher.test(value.label || value.value || value); + }) + , containsMatcher = new RegExp(term, "i") + , contains = $.grep(photoTagData, function (value) { + return $.inArray(value, startsWith) < 0 && + containsMatcher.test(value.label || value.value || value); + }); + + response(startsWith.concat(contains)); + }, + focus: function() { + return false; + }, + select: function( event, ui){ + $('#hidden_expoInput_name').val(ui.item.id); + } + }); + $('#expoInput_name').parent().append($('')); + + + }); + var submit = $(''); + $('#expoNewTagForm').append(submit); + var hiddenInput = $(""); + $('#expoNewTagForm').append(hiddenInput); + var cancel = $(''); + cancel.click(function(e){ + e.preventDefault(); + removeNewExpoTag(); + showAllTags(image_id); + return false; + }); + $('#expoNewTagForm').append(cancel); + $('#expoNewTagForm').submit(function(e){ + e.preventDefault(); + var expoTagBox = $('#'+options.tag.idPrefix+'expo'); + var tag = { + left: expoTagBox.position().left, + top: expoTagBox.position().top, + width: expoTagBox.width(), + height: expoTagBox.height() + } + $.getJSON(options.addTagUrl+'?'+$.param(tag) + '&' + $(this).serialize(),function(response){ + if(response.result != undefined && !response.result){ + manageError(response); + return; + } + var tagBox = createTagBoxFromJSON(response.tag,image); + $('#' + options.imageWrapBox.idPrefix + image_id).append(tagBox); + registerHighlightHovers(); + extendTagBoxAttributes(tagBox,response.tag,image,image_id); + }); + removeNewExpoTag(); + showAllTags(image_id); + }); + + }; + + var removeNewExpoTag = function(){ + $('#'+options.tag.idPrefix+'expo').remove(); + $('#expoTagBoxForm').remove(); + }; + + var createTagBox = function( tagId, dimension, position, opacity ){ + var tagBox = $('
            '); + var css = { + 'position': 'absolute', + 'top': Math.round(position.top) + 'px', + 'left': Math.round(position.left) + 'px', + 'height': dimension.height + 'px', + 'width': dimension.width + 'px', + 'opacity': opacity + }; + tagBox.css(css); + tagBox.append(' 
            '); + return tagBox + }; + + var createTagBoxFromJSON = function( tagJSON, image ){ + if( !(tagJSON.height && tagJSON.width) ){ + tagJSON.height = options.tag.defaultHeight; + tagJSON.width = options.tag.defaultWidth; + }; + var dimension = {width: tagJSON.width,height: tagJSON.height}; + var position = {top: tagJSON.top,left: tagJSON.left}; + var tagBox = createTagBox(tagJSON.id,dimension,position,0); + + var innerElement = $("
            "); + innerElement.append(tagJSON.text.replace(/ /g, ' ')); + tagBox.append(innerElement); + + if(options.isEnabledToEditTags && tagJSON.isDeleteEnable && options.tag.showDeleteLinkOnTag){ + var deleteLink = $(''); + registerEventsForDeleteLink(deleteLink,image); + }; + + + tagBox.find('.taghover').append(deleteLink); + return tagBox; + } + + var createTagItemForList = function( tagJSON, image ){ + //Если список меток не пустой - добавляем запятую и пробел после предыдущего человека: + if ($('.photoTag-taglist').html().length>0) { + $('.photoTag-taglist li').last().append(', '); + }; + var item = $('
          • '); + if(tagJSON.url){ + var link = $(''+ tagJSON.text +''); + item.append(link); + }else{ + item.append(tagJSON.text); + } + if(tagJSON.isDeleteEnable){ + var deleteLink = $('  '); + registerEventsForDeleteLink(deleteLink,image); + item.append(deleteLink); + } + var hltag=$('a.highlight-tag'); + $('ul.photoTag-taglist li').last().find(hltag).mouseover( + function() { + mover($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ).mouseleave( + function() { + mleave($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ); + return item; + } + + var createExpoTag = function( image, image_id ){ + var dimension = {width: options.tag.defaultWidth,height: options.tag.defaultHeight}; + var position = { + top: (image.height()/2-dimension.height/2), + left: (image.width()/2-dimension.width/2) + }; + cache.expoId++; + var expoTagBox = createTagBox('expo',dimension,position,1); + return expoTagBox; + }; + + var hideAllTags = function( image_id ){ + $.each(cache.tags[image_id],function(){ + $(this).css({'opacity':0.0}); + $(this).hide(); + }); + }; + + var showAllTags = function( image_id ){ + $.each(cache.tags[image_id],function(){ + $(this).show(); + }); + } + + var createAddTagLink = function( image, image_id ){ + var addTagLink = $(''+ options.literals.addNewTag +''); + registerEventsForAddTagLink(addTagLink,image,image_id); + return addTagLink; + }; + + var wrapImage = function( image, image_id ){ + var imageHeight = image.height(); + var imageWidth = image.width(); + var canvas = $('
            '); + var wrapper = $('
            '); + canvas.append(wrapper); + var controlPane = $('
            '); + canvas.append(controlPane); + image.wrap(canvas); + if(!options.externalAddTagLinks.bind) + $('#' + options.imageWrapBox.controlPaneIdPrefix + image_id).append(createAddTagLink(image,image_id)); + else{ + var externalAddLinks = $(options.externalAddTagLinks.selector); + externalAddLinks.each(function(){ + registerEventsForAddTagLink(this,image,image_id); + }); + } + var container = $('
            '); + $('#' + options.imageWrapBox.canvasIdPrefix + image_id).wrap(container); + if(options.imageWrapBox.showTagList){ + var tagList = $('
              '); + $('.pg-photo-descr#imgid'+image_id).append(tagList); + } + } + + var extendTagBoxAttributes = function( tagBox, tagJSON, image, image_id ){ + if(options.tag.flashAfterCreation){ + $(tagBox).css({'opacity':1.0}); + + $(tagBox).stop().animate({ opacity: 0.0 }, 800); + }; + if(options.imageWrapBox.showTagList){ + var tagItemForList = createTagItemForList(tagJSON,image); + $('#'+options.imageWrapBox.tagListIdPrefix+image_id).append(tagItemForList); + var hltag=$('a.highlight-tag'); + $('ul.photoTag-taglist li').last().find(hltag).mouseover( + function() { + mover($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ).mouseleave( + function() { + mleave($('#photoTag-tag_'+$(this).attr('tag-id')).find('.taghover')); + } + ); + }; + } + + var prepareImage = function( imageDetailsJSON, image ){ + wrapImage(image,imageDetailsJSON.id); + var cachedInstance = cache.tags[imageDetailsJSON.id] = {}; + $.each(imageDetailsJSON.Tags,function(){ + var tagBox = createTagBoxFromJSON(this,image); + + cachedInstance[this.id] = tagBox; + $('#' + options.imageWrapBox.idPrefix + imageDetailsJSON.id).append(tagBox); + registerHighlightHovers(); + + extendTagBoxAttributes(tagBox,this,image,imageDetailsJSON.id); + }); + }; + + this.each(function(){ + var $this = $(this); + + var parameters = getParametersForImage($this); + + if( !$.isFunction(options.beforeTagRequest) || options.beforeTagRequest(parameters) ){ + $.getJSON( + options.requestTagsUrl, + parameters, + function( response ){ + if(response.result != undefined && !response.result){ + manageError(response); + return; + } + if(response.options){ + options = $.extend(true,options,response.options); + } + $.each(response.Image,function(){ + prepareImage(this,$this); + }); + } + ); + } + }); + + return this; + }; +})(jQuery); + +//dna.js v0.2.9 ~~ dnajs.org/license.html +var dna={clone:function(a,b,c){var d={fade:!1,top:!1,container:null,empty:!1,html:!1,callback:null};$.extend(d,c);var e=dna.store.getTemplate(a);e.nested&&!d.container&&dna.core.berserk("Container missing for nested template: "+a),d.empty&&dna.empty(a);for(var f=b instanceof Array?b:[b],g=$(),h=0;h0&&c(window,a.split(".")),d}},dna.ui={toElem:function(a,b){return a instanceof jQuery?a:$(a?a.target:b)},deleteElem:function(a){return dna.ui.toElem(a,this).remove()},slideFade:function(a,b,c){function d(){a.css(h)}var e={opacity:0,transition:"opacity 0s ease 0s"},f={opacity:1,transition:"opacity 0.4s ease-in"},g={opacity:0,transition:"opacity 0.4s ease-out"},h={transition:"opacity 0s ease 0s"};return window.setTimeout(d,1e3),c?a.css(e).hide().slideDown({complete:b}).css(f):a.css(g).slideUp({complete:b}),a},slideFadeIn:function(a,b){return dna.ui.slideFade(a,b,!0)},slideFadeOut:function(a,b){return dna.ui.slideFade(a,b,!1)},slideFadeToggle:function(a,b){return dna.ui.slideFade(a,b,a.is(":hidden"))},slideFadeDelete:function(a){return dna.ui.slideFadeOut(a,dna.ui.deleteElem)},slidingFlasher:function(a,b){return a.is(":hidden")?dna.ui.slideFadeIn(a,b):a.hide().fadeIn()}},dna.compile={regexDnaField:/^[\s]*(~~|\{\{).*(~~|\}\})[\s]*$/,regexDnaBasePair:/~~|{{|}}/,regexDnaBasePairs:/~~|\{\{|\}\}/g,setupNucleotide:function(a){return void 0===a.data().dnaRules&&(a.data().dnaRules={}),a.addClass("dna-nucleotide")},isDnaField:function(){var a=$(this)[0].childNodes[0];return a&&a.nodeValue&&a.nodeValue.match(dna.compile.regexDnaField)},field:function(){var a=dna.compile.setupNucleotide($(this));return a.data().dnaRules.text=$.trim(a.text()).replace(dna.compile.regexDnaBasePairs,""),a.empty()},propsAndAttrs:function(){function a(){if(/^data-dna-prop-/.test(this.name))c.push(this.name.replace(/^data-dna-prop-/,""),this.value.replace(dna.compile.regexDnaBasePairs,""));else{if(3!==this.value.split(dna.compile.regexDnaBasePair).length)return;d.push(this.name.replace(/^data-dna-attr-/,""),this.value.split(dna.compile.regexDnaBasePair))}e.push(this.name)}var b=$(this),c=[],d=[],e=[];return $.each(b.get(0).attributes,a),c.length>0&&(dna.compile.setupNucleotide(b).data().dnaRules.props=c),d.length>0&&(dna.compile.setupNucleotide(b).data().dnaRules.attrs=d),b.removeAttr(e.join(" "))},getDataField:function(a,b){return $.trim(a.data("dna-"+b).replace(dna.compile.regexDnaBasePairs,""))},subTemplateName:function(a,b){var c=a instanceof jQuery?dna.getClone(a).data().dnaRules.template:a;return c+"-"+b+"-instance"},rules:function(a,b,c){function d(){var a=dna.compile.setupNucleotide($(this)),d=dna.compile.getDataField(a,b);a.data().dnaRules[b]=c?d.split(","):d}return a.filter("[data-dna-"+b+"]").each(d).removeAttr("data-dna-"+b)},template:function(a){function b(){$(this).data().dnaRules={template:$(this).attr("id")}}var c=$("#"+a);c.length||dna.core.berserk("Template not found: "+a),c.find(".dna-template").addBack().each(b).removeAttr("id");var d=c.find("*").addBack();return d.filter(dna.compile.isDnaField).each(dna.compile.field),dna.compile.rules(d,"array").addClass("dna-array"),dna.compile.rules(d,"class",!0),dna.compile.rules(d,"require"),dna.compile.rules(d,"missing"),dna.compile.rules(d,"truthy"),dna.compile.rules(d,"falsey"),d.each(dna.compile.propsAndAttrs),dna.store.stash(c)}},dna.store={templates:{},stash:function(a){function b(){var a=$(this),b=a.data().dnaRules.template,c={name:b,elem:a,container:a.parent().addClass("dna-container").addClass("dna-contains-"+b),nested:0!==a.parent().closest(".dna-clone").length,index:a.index(),clones:0};dna.store.templates[b]=c,a.removeClass("dna-template").addClass("dna-clone").addClass(b).detach()}function c(){var a=$(this),b=a.data().dnaRules.array,c=dna.compile.subTemplateName(d,b);dna.compile.setupNucleotide(a.parent()).data().dnaRules.loop={name:c,field:b},a.data().dnaRules.template=c}var d=a.data().dnaRules.template;return a.find(".dna-template").addBack().each(b),a.find(".dna-array").each(c).each(b),dna.store.templates[d]},getTemplate:function(a){return dna.store.templates[a]||dna.compile.template(a)}},dna.events={initializers:[],elementSetup:function(a,b){function c(){dna.util.apply($(this).data("dna-setup"),[$(this),b])}var d="[data-dna-setup]",e=a?a.find(d).addBack(d):$(".dna-setup");return e.each(c).addClass("dna-initialized")},runInitializers:function(a,b){function c(){dna.util.apply(this.func,[(this.selector?a.find(this.selector).addBack(this.selector):a).addClass("dna-initialized")].concat(this.params))}return dna.events.elementSetup(a,b),$.each(dna.events.initializers,c),a},runner:function(a,b,c){return a=a.closest("[data-dna-"+b+"]"),dna.util.apply(a.data("dna-"+b),[a,c])},handle:function(a){return dna.events.runner($(a.target),a.type.replace("key","key-"),a)},handleEnterKey:function(a){return 13===a.which?dna.events.runner($(a.target),"enter-key",a):null},setup:function(){$(document).click(dna.events.handle).change(dna.events.handle).keyup(dna.events.handle).keyup(dna.events.handleEnterKey).keydown(dna.events.handle).keypress(dna.events.handle),dna.events.elementSetup()}},$(dna.events.setup),dna.core={inject:function(a,b,c,d){function e(a,e){function f(a){return-1!==$.inArray(typeof a,h)}var g="object"==typeof b?dna.util.value(b,e):"[count]"===e?c:"[value]"===e?b:null,h=["string","number","boolean"];f(g)&&(a=d.html?a.html(g):a.text(g))}function f(a,c){for(var d=0;d1&&(a.toggleClass(c[1],e),c[2]&&a.toggleClass(c[2],!e))}function i(a,c){var d=dna.util.value(b,c.field);d&&dna.clone(c.name,d,{container:a})}function j(){var a=$(this),c=a.data().dnaRules;c.text&&e(a,c.text),c.props&&f(a,c.props),c.attrs&&g(a,c.attrs),c.class&&h(a,c.class),c.require&&a.toggle(void 0!==dna.util.value(b,c.require)),c.missing&&a.toggle(void 0===dna.util.value(b,c.missing)),c.truthy&&a.toggle(dna.util.realTruth(dna.util.value(b,c.truthy))),c.falsey&&a.toggle(!dna.util.realTruth(dna.util.value(b,c.falsey))),c.loop&&i(a,c.loop)}return a.find(".dna-array").remove(),a.find(".dna-nucleotide").addBack(".dna-nucleotide").each(j),a.data("dna-model",b)},replicate:function(a,b,c,d){var e=a.elem.clone(!0,!0);a.clones++,dna.core.inject(e,b,c,d);var f=".dna-contains-"+a.name,g=d.container?d.container.find(f).addBack(f):a.container;return g[d.top?"prepend":"append"](e),dna.events.runInitializers(e,b),d.callback&&d.callback(e,b),d.fade&&dna.ui.slideFadeIn(e),e},unload:function(a,b,c){b.error||dna.clone(a,b,c)},berserk:function(a){throw"dna.js error -> "+a}}; +var map; + +function mapInit() { + var canvas = document.getElementById('map-canvas'); + var coords = canvas.getAttribute('data-coords'); + var commaPos = coords.indexOf(','); + var lat = parseFloat(coords.substring(0, commaPos)); + var lng = parseFloat(coords.substring(commaPos + 1, coords.length)); + var myLatlng = new google.maps.LatLng(lat, lng); + var mapOptions = { + zoom: 15, + center: myLatlng + }; + map = new google.maps.Map(canvas, mapOptions); + + var marker = new google.maps.Marker({ + position: myLatlng, + map: map + }); +} +/* */ +function addError(inputId, msg){ + var $input = $('#reg_form '+ inputId); + var $error = $("
              ").attr("class", "pwf-msg").append( + $("
              ").attr("class", "msg-error").append(msg) + ); + + $input.parent().parent().append($error) + +} + +function placeInput(width){ + $('#id_country').val('159').select2({ + placeholder: "Ваша страна", + width: width + }); + + $('#id_city').select2({ + placeholder: "Ваш город", + width: width, + ajax: { + + url: "/city/get-city/", + dataType: "json", + quietMillis: 200, + + data: function(term, page, country){ + var country = $('#id_country').val() + return {term: term, + page: page, + country: country}; + }, + + results: function (data) { + var results = []; + $.each(data, function(index, item){ + results.push({ + id: item.id, + text: item.label + }); + }); + return {results: results}; + } + }, + initSelection : function(element, callback) { + var id= $(element).val(); + var text = $(element).attr('data-init-text'); + callback({id: id, text:text}); + + } + + }); + +} + +!function ($) { + + var $win = $(window); + var $html = $('html'); + var $body = $('body'); + var $doc = $(document); + + + $.widget( "custom.catcomplete", $.ui.autocomplete, { + _renderMenu: function( ul, items ) { + var that = this, + currentCategory = ""; + $.each( items, function( index, item ) { + if ( item.category != currentCategory ) { + ul.append( "
            • " + item.category + "
            • " ); + currentCategory = item.category; + } + that._renderItemData( ul, item ); + }); + } + }); + + /* submiting registration form */ + $(function () { + + + $('#send_message_form').on('submit', function(event){ + event.preventDefault(); + $this = $(this); + var formData = $this.serialize(); + var url = $this.attr('action') + $.post(url, formData, function(data){ + if (data.success){ + $.fancybox.close(); + $this.find('#id_body').val('') + } + }); + }); + $('#reply_form').on('submit', function(event){ + event.preventDefault(); + $this = $(this); + var formData = $this.serialize(); + var reply_message = $('#reply_message').val() + var url = '/profile/messages/reply/'+reply_message+'/' + + $.post(url, formData, function(data){ + if (data.success){ + $.fancybox.close(); + $this.find('#id_recipient').val('') + $this.find('#id_body').val('') + } + }); + + }); + + $('.visit, .unvisit').on('click', function(event){ + event.preventDefault(); + var $this = $(this); + var url = $(this).attr('href'); + $.get(url, function(data){ + if (data.not_authorized){ + $.fancybox.open('#pw-login'); + } + else{ + if(data.success){ + if(data.in){ + if($this.hasClass('visit')){ + $this.hide(); + $this.siblings('.unvisit').show() + } + } + else{ + if($this.hasClass('unvisit')){ + $this.hide(); + $this.siblings('.visit').show() + } + } + } + } + }); + + }); + + + /* + $('#reg_form').on('submit', function(event){ + event.preventDefault(); + var formData = $(this).serialize(); + var url = '/register/'; + console.log(url); + + + $.post(url, formData, function(data){ + if(data.success){ + //register success + + // remove input values + $('#reg_form input').each(function(i){ + $(this).val(""); + }); + // close popup + $.fancybox.open('#pw-reg-complete'); + //$.fancybox.close(); + + } + else{ + console.log(data); + // hide help messages + $("#reg_form .msg-help:visible").hide(); + // delete previous errors + $("#reg_form .msg-error").parent().remove(); + + // generate new errors + var form_inputs = ['first_name', 'last_name', 'email', 'password1', 'password2'] + for(var i= 0; i < form_inputs.length; i++){ + if(form_inputs[i] in data){ + var input_id = '#id_'+form_inputs[i]; + addError(input_id, data[form_inputs[i]]) + } + } + } + }); + + }); + */ + /* submiting change password form */ + $('#paswd_change').on('submit', function(event){ + event.preventDefault(); + var formData = $(this).serialize(); + var url = '/profile/change-password/'; + var $form = $(this); + $.post(url, formData, function(data){ + if (data.success){ + $('#paswd_change .mf-success').fadeIn(300); + setTimeout(function(){ + $('#paswd_change .mf-success').fadeOut(300); + }, 3000); + $form.find('#id_old password').val('') + + } + else{ + // remove previous error + $('#paswd_change .mf-error').parent().remove(); + // add new error + var $element = $("
              ").attr("class", "mf-line").append( + $("
              ").attr("class", "mf-error").append(data.errors[0])) + $form.find('.mf-buttons-line').before($element); + } + }); + }); + $('.reg').on('click', function(event){ + event.preventDefault(); + $('.register').click(); + }); + + + /* ******************************************* + * Нестандартное оформление для поля select + * Изменено 24.04.2014 + * */ + $.fn.customSelect = function () { + return $(this).each(function() { + + var $this = $(this); + var $options = $this.children('option'); + var numberOfOptions = $this.children('option').length; + var $selected = $(":selected", $this); + + $this.addClass('s-hidden'); + + $this.wrap('
              '); + $this.after('
              '); + + var $styledSelect = $this.next('div.custom-select-wrap'); + var $styledSelectText = $styledSelect.children('.custom-select-text'); + var soText = $selected.length != 0 ? $selected.text() : $this.children('option').eq(0).text(); + + $styledSelectText.text(soText); + + if ( $options.index($selected) == 0 && (!$this.children('option').eq(0).val() || !$this.children('option').eq(0).attr('value')) ) { + $styledSelectText.addClass('placeholder'); + } + + var $menu = $('
              ').insertAfter($styledSelect); + var $optionsWrap = $menu.find('.scroll-content'); + + var $list = $('
                ').appendTo($optionsWrap); + + for (var i = 0; i < numberOfOptions; i++) { + var oText = ($this.children('option').eq(i).text() != '') ? $this.children('option').eq(i).html() : ' '; + $('
              • ', { + html: oText, + 'data-value': $this.children('option').eq(i).val() + }).appendTo($list); + } + + var $listItems = $list.children('li'); + + $styledSelect.on('click', function(e) { + e.stopPropagation(); + $('div.custom-select-wrap.active').not(this).each(function() { + $(this).removeClass('active').next('.options').hide(); + }); + if (!$this.prop('disabled')) { + $(this).toggleClass('active').next('.options').toggle(); + } + }); + + $listItems.on('click', function(e) { + var $el = $(this); + e.stopPropagation(); + $styledSelectText.text($el.text()); + $styledSelect.removeClass('active'); + $this.val($el.data('value')); + if ( $el.index() == 0 && (!$this.children('option').eq(0).val() || !$this.children('option').eq(0).attr('value')) ) { + $styledSelectText.addClass('placeholder'); + } else { + $styledSelectText.removeClass('placeholder'); + } + $menu.hide(); + }); + + if ($.fn.mCustomScrollbar) { + var customSelectScrollOptions = { + scrollInertia: 200, + contentTouchScroll: true, + scrollButtons: { + enable: false + }, + advanced:{ + autoScrollOnFocus:false, + updateOnContentResize: true + } + }; + + var $scrollContainer = $menu.find('div.cs-scroll-container'); + $scrollContainer.mCustomScrollbar(customSelectScrollOptions); + } + + $(document).on('click', function() { + $styledSelect.removeClass('active'); + $menu.hide(); + }); + + $this.on('change', function () { + var $cThis = $(this); + var selectedIndex = $cThis.prop('selectedIndex'); + var Text = $cThis.children('option').eq(selectedIndex).text(); + $styledSelectText.text(Text); + if ( selectedIndex == 0 && (!$this.children('option').eq(0).val() || !$this.children('option').eq(0).attr('value')) ) { + $styledSelectText.addClass('placeholder'); + } else { + $styledSelectText.removeClass('placeholder'); + } + }); + + }); + }; + $("select:not([multiple])").each(function () { + var $el = $(this); + if (!$el.hasClass('select2')) { + $el.customSelect(); + } + }); + + + + /* Обработка autocomplete в полях поиска + * используется jQuery UI Autocomplete + * */ + /* Галереи-слайдеры на главной + * использован плагин Swiper + * http://www.idangero.us/sliders/swiper/api.php + * */ + $('#mp-recent-expo').each(function () { + var $reContainer = $(this); + var $reSwipeWrap = $reContainer.children('ul'); + var $reSwipeItems = $reSwipeWrap.children('li'); + var $reControls = $reContainer.children('div.re-controls'); + var $recPrev = $reControls.children('a.prev'); + var $recNext = $reControls.children('a.next'); + + if ($reSwipeItems.length > 1) { + $reControls.addClass('enabled'); + $reSwipeItems.css({ + display: 'block' + }); + $reContainer.height($reSwipeItems.eq(0).height()); + var $reSwiper = $reContainer.swiper({ + speed: 500, + mode:'horizontal', + loop: false, + simulateTouch: false, + autoplay:4200, + onInit: function () { + $recPrev.addClass('disabled'); + }, + onSlideChangeStart: function (swiper) { + $reContainer.animate({ + height: $reSwipeItems.eq(swiper.activeIndex).children('div.re-body').height() + }, 300); + if (swiper.activeIndex == 0) { + if (!$recPrev.hasClass('disabled')) { + $recPrev.addClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } else if (swiper.activeIndex == swiper.slides.length-1) { + if (!$recNext.hasClass('disabled')) { + $recNext.addClass('disabled'); + } + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + } else { + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } + } + }); + + $recPrev.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipePrev(); + } + return false; + }); + $recNext.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipeNext(); + } + return false; + }); + } + + }); + + $('#mp-photo-gallery').each(function () { + var $reContainer = $(this); + var $reSwipeWrap = $reContainer.children('ul'); + var $reSwipeItems = $reSwipeWrap.children('li'); + var $reControls = $reContainer.children('div.re-controls'); + var $recPrev = $reControls.children('a.prev'); + var $recNext = $reControls.children('a.next'); + + if ($reSwipeItems.length > 1) { + $reControls.addClass('enabled'); + var $reSwiper = $reContainer.swiper({ + speed: 500, + mode:'horizontal', + loop: false, + simulateTouch: false, + onInit: function (swiper) { + $recPrev.addClass('disabled'); + }, + onSlideChangeStart: function (swiper) { + var $descrs = $reSwipeItems.find('div.pgi-descr'); + $descrs.animate({ + height: 'hide', + opacity: 'hide' + }, 500); + if (swiper.activeIndex == 0) { + if (!$recPrev.hasClass('disabled')) { + $recPrev.addClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } else if (swiper.activeIndex == swiper.slides.length-1) { + if (!$recNext.hasClass('disabled')) { + $recNext.addClass('disabled'); + } + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + } else { + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } + }, + onSlideChangeEnd: function (swiper) { + var $descrs = $reSwipeItems.find('div.pgi-descr'); + $descrs.eq(swiper.activeIndex).slideDown(250); + } + }); + + $recPrev.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipePrev(); + } + return false; + }); + $recNext.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipeNext(); + } + return false; + }); + } + }); + + $('#ps-photo-gallery').each(function () { + var $reContainer = $(this); + var $reSwipeWrap = $reContainer.children('ul'); + var $reSwipeItems = $reSwipeWrap.children('li'); + var $reControls = $reContainer.children('div.re-controls'); + var $recPrev = $reControls.children('a.prev'); + var $recNext = $reControls.children('a.next'); + + if ($reSwipeItems.length > 1) { + $reControls.addClass('enabled'); + $reSwipeItems.css({ + display: 'block' + }); + var $reSwiper = $reContainer.swiper({ + speed: 500, + mode:'horizontal', + calculateHeight: true, + loop: false, + simulateTouch: false, + onInit: function (swiper) { + $recPrev.addClass('disabled'); + }, + onSlideChangeStart: function (swiper) { + if (swiper.activeIndex == 0) { + if (!$recPrev.hasClass('disabled')) { + $recPrev.addClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } else if (swiper.activeIndex == swiper.slides.length-1) { + if (!$recNext.hasClass('disabled')) { + $recNext.addClass('disabled'); + } + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + } else { + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } + } + }); + + $recPrev.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipePrev(); + } + return false; + }); + $recNext.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipeNext(); + } + return false; + }); + } + + }); + + $('#s-slide-gallery').each(function () { + var $reContainer = $(this); + var $reSwipeWrap = $reContainer.children('ul'); + var $reSwipeItems = $reSwipeWrap.children('li'); + var $reControls = $reContainer.children('div.re-controls'); + var $recPrev = $reControls.children('a.prev'); + var $recNext = $reControls.children('a.next'); + + if ($reSwipeItems.length > 4) { + $reControls.addClass('enabled'); + $reSwipeItems.css({ + display: 'block' + }); + + $win.on('resize', function () { + $reContainer.height($reSwipeItems.eq(0).height()); + }).trigger('resize'); + + var $reSwiper = $reContainer.swiper({ + slidesPerView: 4, + slidesPerGroup: 4, + speed: 500, + mode:'horizontal', + calculateHeight: true, + loop: false, + simulateTouch: false, + onInit: function (swiper) { + $recPrev.addClass('disabled'); + }, + onSlideChangeStart: function (swiper) { + if (swiper.activeIndex == 0) { + if (!$recPrev.hasClass('disabled')) { + $recPrev.addClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } else if (swiper.activeIndex == swiper.slides.length-4) { + if (!$recNext.hasClass('disabled')) { + $recNext.addClass('disabled'); + } + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + } else { + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } + } + }); + + $recPrev.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipePrev(); + } + return false; + }); + $recNext.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipeNext(); + } + return false; + }); + + } + + }); + + $('.sli-slides').each(function () { + var $reContainer = $(this); + var $reSwipeWrap = $reContainer.children('ul'); + var $reSwipeItems = $reSwipeWrap.children('li'); + var $reControls = $reContainer.children('div.re-controls'); + var $recPrev = $reControls.children('a.prev'); + var $recNext = $reControls.children('a.next'); + + if ($reSwipeItems.length > 4) { + $reControls.addClass('enabled'); + $reSwipeItems.css({ + display: 'block' + }); + + $win.on('resize', function () { + $reContainer.css({ + height: $reSwipeItems.eq(0).height() + }); + }).trigger('resize'); + + var $reSwiper = $reContainer.swiper({ + slidesPerView: 4, + slidesPerGroup: 4, + calculateHeight: true, + speed: 500, + mode:'horizontal', + loop: false, + simulateTouch: false, + onInit: function (swiper) { + $recPrev.addClass('disabled'); + }, + onSlideChangeStart: function (swiper) { + if (swiper.activeIndex == 0) { + if (!$recPrev.hasClass('disabled')) { + $recPrev.addClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } else if (swiper.activeIndex == swiper.slides.length-4) { + if (!$recNext.hasClass('disabled')) { + $recNext.addClass('disabled'); + } + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + } else { + if ($recPrev.hasClass('disabled')) { + $recPrev.removeClass('disabled'); + } + if ($recNext.hasClass('disabled')) { + $recNext.removeClass('disabled'); + } + } + } + }); + + $recPrev.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipePrev(); + } + return false; + }); + $recNext.on('click', function () { + if (!$(this).hasClass('disabled')) { + $reSwiper.swipeNext(); + } + return false; + }); + + } + + }); + + /* Открытие popup диалогов */ + var fbPopupOptions = { + padding: 0, + fitToView: false + }; + + $('a.pw-open').fancybox(fbPopupOptions); + + /* Обработка placeholder для старых браузеров */ + $('input[placeholder], textarea[placeholder]').placeholder(); + + /* показ сообщений помощи в полях диалогов*/ + $doc.on('focus', 'form.pw-form input[type="text"], form.pw-form input[type="password"]', function (event) { + var $input = $(this); + var $fLine = $input.closest(".pwf-line"); + var $help = $fLine.find('div.msg-help'); + var $error = $fLine.find('div.msg-error'); + var $error2 = $(this).parent().parent().parent().find('.mf-error'); + $error.parent().remove(); + $error2.parent().remove(); + + if ($help.is(':hidden')) { + $help.fadeIn(300); + } + }); + + $doc.on('blur', 'form.pw-form input[type="text"], form.pw-form input[type="password"]', function (event) { + var $input = $(this); + var $fLine = $input.closest(".pwf-line"); + var $help = $fLine.find('div.msg-help'); + if ($help.is(':visible')) { + $help.fadeOut(300); + } + }); + + + /* Custom scroll + * использован плагин malihu-custom-scrollbar-plugin + * http://manos.malihu.gr/jquery-custom-content-scroller/ + * */ + var customScrollOptions = { + scrollInertia: 200, + contentTouchScroll: true, + scrollButtons: { + enable: false + }, + advanced:{ + updateOnContentResize: true + } + }; + + + $('div.scroll-container').each(function () { + var $scrollContainer = $(this); + $scrollContainer.mCustomScrollbar(customScrollOptions); + }); + + /* Открыть диалог подписки на нужной вкладке */ + $('#subscribe-sm').each(function () { + var $container = $(this); + var $links = $container.find('a'); + + $links.on('click', function () { + var $link = $(this); + var index = $links.index(this); + var popupSubscribe = $('#pw-subscribe'); + + $.fancybox(popupSubscribe, fbPopupOptions); + var $tabs = popupSubscribe.find('ul.tabs > li'); + $tabs.eq(index).trigger('click'); + return false; + }); + }); + + /* Обработка поведения вкладок */ + $("ul.tabs > li").on('click', function () { + var $curTab = $(this); + var $parentUl = $curTab.closest('ul'); + var index = $parentUl.children('li').index(this); + var $contentUl = $parentUl.siblings('.tabs-content'); + var $link = $curTab.find("a"); + var $popupSubscr = $curTab.closest('#pw-subscribe'); + + if (!$curTab.hasClass('active')) { + if ($popupSubscr.length) { + $contentUl = $popupSubscr.find('.tabs-content'); + } + var $activeTab = $parentUl.children('li.active'); + var $activeTContent = $contentUl.find('li.active'); + var $currentTContent = $contentUl.children('li').eq(index); + + $activeTab.removeClass("active"); + $activeTContent.removeClass("active"); + $curTab.addClass("active"); + $currentTContent.addClass("active"); + } + + $link.blur(); + closeSelectBox(); + return false; + }); + + /* Показ подписей картинок в деталях фото галерей */ + $('#cli-pg').each(function () { + var $wrap = $(this); + var $link = $wrap.find('a'); + $link.on({ + mouseenter: function () { + var $el = $(this); + var $title = $el.find('.pg-title'); + + $title + .stop(true, true) + .slideDown(300, function () { + $title.css({ + display: 'block' + }); + }); + }, + mouseleave: function () { + var $el = $(this); + var $title = $el.find('.pg-title'); + + $title + .stop(true, true) + .slideUp(300); + } + }); + }); + + $('#map-canvas').each(function () { + var $mapCanvas = $(this); + if(!$mapCanvas.is(':hidden')) { + google.maps.event.addDomListener(window, 'load', mapInit); + $mapCanvas.data('init', true); + } + }); + + $('a.toggle-map').on({ + click: function () { + var $tLink = $(this); + var $tContainer = $tLink.closest('.i-address'); + var $mapWrap = $tContainer.children('.i-map'); + var $mapCanvas = $('#map-canvas'); + var $hlink = $tContainer.find('header a.toggle-map'); + + if ($mapWrap.is(':hidden')) { + $mapWrap + .stop(true, true) + .animate({ + opacity: 'show', + height: 'show' + }, 300, function () { + if(!$mapCanvas.data('init')) { + mapInit(); + $mapCanvas.data('init', true); + } + $tContainer.addClass('map-opened'); + }); + } else { + $mapWrap + .stop(true, true) + .animate({ + opacity: 'hide', + height: 'hide' + }, 300, function () { + $tContainer.removeClass('map-opened'); + }); + } + return false; + } + }); + + $('ul.messages-list').each(function () { + var $mList = $(this); + var $mItems = $mList.children('li'); + + $mItems.on({ + mouseenter: function () { + var $item = $(this); + var $mButtons = $item.find('div.mi-buttons'); + + $mButtons + .stop(true, true) + .animate({ + opacity: 'show', + height: 'show' + }, 250); + }, + mouseleave: function () { + var $item = $(this); + var $mButtons = $item.find('div.mi-buttons'); + + $mButtons + .stop(true, true) + .animate({ + opacity: 'hide', + height: 'hide' + }, 250); + } + }); + }); + + $('.set-sect > header').on('click', function () { + var $trigger = $(this); + var $container = $trigger.closest('.set-sect'); + var $fBody = $container.children('div.set-sect-body'); + + if ($fBody.is(':visible')) { + $fBody + .stop(true, true) + .animate({ + height: 'hide', + opacity: 'hide' + }, 300, function () { + $container.addClass('closed') + }); + } else { + $fBody + .stop(true, true) + .animate({ + height: 'show', + opacity: 'show' + }, 300, function () { + $container.removeClass('closed') + }); + } + }); + + + $('input[type="checkbox"].annoncesFlag').each(function () { + var $check = $(this); + + $check.on('change', function () { + var $aInputsWrap = $check.closest('div.mf-announces').children('div.mf-announces-body'); + var $inputs = $aInputsWrap.find('input, select, textarea'); + var $selectBox = $aInputsWrap.find('div.c-select-box'); + + if ($check.prop('checked')) { + $aInputsWrap.removeClass('disabled'); + $selectBox.removeClass('disabled'); + $inputs.prop('disabled', false); + } else { + $aInputsWrap.addClass('disabled'); + $selectBox.addClass('disabled'); + $inputs.prop('disabled', true); + } + }).trigger('change'); + }); + $('a.icb-edit-profile').on('click', function () { + var $editBtn = $(this); + var $exitBtn = $editBtn.next('a.icb-exit-edit'); + var $editable = $('div.p-editable'); + + $editBtn.css({ + display: 'none' + }); + $exitBtn.css({ + display: 'inline-block' + }); + $editable.addClass('pe-active'); + + return false; + }); + + $('a.icb-exit-edit').on('click', function () { + var $exitBtn = $(this); + var $editBtn = $exitBtn.prev('a.icb-edit-profile'); + var $editable = $('div.p-editable'); + + $editBtn.css({ + display: 'inline-block' + }); + $exitBtn.css({ + display: 'none' + }); + $editable.removeClass('pe-active'); + + return false; + }); + + + + + + /* Временная функция для указания файла */ + $('input[type="file"]').each(function () { + var $iFile = $(this); + var $ifContainer = $iFile.closest('.input-file'); + var $inpText = $ifContainer.children('.file-text'); + + if ($iFile.val() != "") { + $inpText.text($iFile.val()); + $inpText.removeClass('placeholder'); + } else { + $inpText.text($inpText.data('placeholder')); + $inpText.addClass('placeholder'); + } + + $iFile.on({ + change: function () { + if ($iFile.val() != "") { + $inpText.text($iFile.val()); + $inpText.removeClass('placeholder'); + } else { + $inpText.text($inpText.data('placeholder')); + $inpText.addClass('placeholder'); + } + } + }); + }); + + + + /* Добавление секций "Статистика за" на нажатие кнопки "добавить данные за другой период" */ + $('form.af-statistic div.mf-stat').each(function () { + var $statWrap = $(this); + var $addButtonWrap = $statWrap.children('.mf-stat-add-button'); + var $addButton = $addButtonWrap.find('a.icon-add'); + + $addButton.on('click', function () { + var $statItem = $statWrap.children('.mf-stat-item'); + var numItems = $statItem.length; + var numYears = $statItem.eq(0).find('select').eq(0).find('option').length-1; + + var $cloneItem = $statItem.eq(0).clone(); + var $selects = $cloneItem.find('select'); + var $inputs = $cloneItem.find('input'); + + $inputs.val(''); + $selects.each(function () { + var $el = $(this); + var $cWrap = $el.closest('.custom-select'); + var $cloneSel = $el.clone(); + $cloneSel.insertAfter($cWrap); + $cloneSel.customSelect(); + $cWrap.remove(); + }); + + $cloneItem.insertBefore($addButtonWrap); + + if (numItems == numYears - 1){ + $addButtonWrap.hide(); + } + return false; + }) + }); + + + /* + * Управление расписанием проведения выставки + * */ + + /* Пeреключение между общим временем для всех дней и уникальным для каждого дня */ + $('input[type="checkbox"].w-time-switcher').each(function () { + var $switch = $(this); + var $wTimeContainer = $switch.closest('.mf-field'); + + function checkSwitch () { + var $tLines = $wTimeContainer.find('div.w-time'); + var $firstTimeLine = $tLines.eq(0); + var $ftlSelects = $firstTimeLine.find('select'); + + $tLines.each(function (index) { + var $timeLine = $(this); + if (index != 0) { + var $selects = $timeLine.find('select'); + + for (var i = 1; i < $selects.length; i++ ) { + $selects.eq(i).prop('selectedIndex', $ftlSelects.eq(i).prop('selectedIndex')).trigger('change'); + } + } + }); + + if ($switch.prop('checked')) { + $tLines.removeClass('show'); + } else { + $tLines.addClass('show'); + } + } + + checkSwitch(); + $switch.on('change', checkSwitch); + }); + + function getDateStr(date) { + return (date.getDate() < 10 ? '0' : '') + date.getDate() + '.' + (date.getMonth() < 9 ? '0' : '') + (date.getMonth() + 1) + '.' + date.getFullYear(); + } + + /* Построение сетки расписания в зависимости от выбранного диапазона дат */ + $('#dates-range').each(function () { + var $dRange = $(this); + var $dateFrom = $dRange.find('input.dateFrom'); + var $dateTo = $dRange.find('input.dateTo'); + var startDay = new Date(); + var endDay = new Date(); + var $wtSchedule = $('#work-time'); + + function numScheduleDays() { + return (endDay - startDay)/(1000*60*60*24) + 1; + } + + function drawSchedule() { + var $timeLines = $wtSchedule.children('.w-time'); + var $timeLine = $timeLines.eq(0); + var $datesSelect = $timeLine.find('select').eq(0); + var $switch = $timeLine.find('input[type="checkbox"].w-time-switcher'); + + startDay = $dateFrom.datepicker('getDate') ? $dateFrom.datepicker('getDate') : new Date(); + endDay = $dateTo.datepicker('getDate') ? $dateTo.datepicker('getDate') : new Date(); + var numDays = numScheduleDays(); + + var $selects = $timeLine.find('select'); + $timeLines.filter(':not(:first)').remove(); + + $datesSelect.each(function () { + var date = startDay; + var $select = $(this); + var $cWrap = $select.closest('.custom-select'); + var $option = $('