.ub_cont {
	position: absolute; z-index: 10000; overflow: hidden;
	
-webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
-moz-box-shadow:    3px 3px 5px rgba(0, 0, 0, 0.5);
box-shadow:         3px 3px 5px rgba(0, 0, 0, 0.5);
}
.ub_head {background-color: #ffffff; position: relative; top: 0; left: 0; height: 90px; border: 1px solid #999999; border-bottom: none;}

.ub_head, .ub_status {-moz-user-select: none; user-select: none;}

.ub_close, .ub_max {position: absolute; top: 2px; width: 18px; height: 18px; display: block; cursor: pointer; text-decoration: none;}
.ub_close:hover, .ub_max:hover {text-decoration: none;}
.ub_close {right: 2px; background: url('/img/close.gif') no-repeat 0 0; }
.ub_close:hover {background: url('/img/close.gif') no-repeat 0 -18px;}

.ub_max {right: 22px; background: url('/img/w_max.gif') no-repeat 0 0;}
.ub_max:hover {background: url('/img/w_max.gif') no-repeat 0 -18px;}

.ub_title {padding: 3px 42px 3px 3px; color: #fff; background-color: #134F5C; font-weight: bold; font-size: 13px; cursor: move;}
.ub_panel {height: 36px; border-bottom: 1px solid #999; background-color: #F1F1F1; position: relative;}
.ub_panel_tabs {height: 38px; border: none;}

.ub_no_elements {font-size: 14px; padding: 15px; font-weight: bold; color: #666; text-align: center;}

.ub_body { position: absolute; clear: both; background-color: #fff; background-repeat: no-repeat; background-position: center center; background-image: url('/img/sp.gif'); border-left: 1px solid #999; border-right: 1px solid #999; overflow-y: scroll;}

.ub_tools_panel {position: absolute; top: 63px; left: 0; border-left: 1px solid #999; height: 2000px; background-color: #F1F1F1; z-index: 5000;}
.ub_tools_panel_name {font-size: 13px; font-weight: bold; color: #333; padding: 5px 5px 5px 8px; background-color: #ccc; margin: 5px 8px 0 0;}

.ub_status {position: absolute; bottom: 0; left: 0; height: 20px; width: 100%; background-color: #F1F1F1; z-index: 6000;}
.ub_status_inner {border: 1px solid #999; position: relative; height: 18px;}
.ub_status_corner {height: 100%; width: 18px; background: url('/img/corner.gif') no-repeat bottom right; cursor: se-resize; float: right;}

.ub_load_block {position: absolute; bottom: 2px; left: 1px; height: 50px; width: 160px; background-color: #F1F1F1;}
.ub_load_block form {margin: 0; padding: 0; position: relative;}
.ub_load_button {height: 30px; width: 106px; overflow: hidden; position: relative; top: 13px; left: 8px; cursor: pointer; background: url('/img/upload_icon.gif') no-repeat 0 0;}
.ub_load_button input { opacity: 0; font-size: 50px; cursor: pointer; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0); position: absolute; top: 0; right: 0;}
.ub_load_bar {position: relative; top: 13px; left: 8px; background: url('/img/file-loader.gif') no-repeat 0 18px; height: 30px; font-size: 11px; color: #444;}

.ub_block {float: left; padding: 10px; width: 180px; height: 180px;}

/* Навигация по табам */
.ub_tabs {float:left; clear: both; width: 100%; background:#DAE0D2 url('/img/imp_bg.gif') repeat-x bottom;}
.ub_tabs ul {float:left; margin:0; padding: 5px 5px 0 5px; list-style:none;}
.ub_tabs li {float:left; background: url('/img/left.gif') no-repeat left top; margin:0; padding:0 0 0 9px;}
.ub_tabs a {float:left; display:block; background:url('/img/right.gif') no-repeat right top; padding:5px 10px 4px 2px; text-decoration:none; font-weight:bold; color:#765; font-size: 13px;}
.ub_tabs a:hover {color:#333;}
.ub_tabs li.ub_tab_current {background-image:url("/img/left_on.gif");}
.ub_tabs li.ub_tab_current a {background-image:url("/img/right_on.gif"); color:#333; padding-bottom:5px;}

/* ImageBrowser */
#ib_window_cont .ub_block {padding: 10px; width: auto; height: auto; background-color: #fff;}
.ub_img {width: 120px; height: 120px; display: block; border: 2px solid #ccc; position: relative; background-repeat: no-repeat; background-position: center center; outline: none; background-color: #fff;}
.ub_img:hover {border: 2px solid #FFE599;}
#ib_window_cont .ub_load_block {height: 36px; width: 180px; background: none; position: absolute; bottom: 3px; left: 3px;}
#ib_window_cont .ub_load_button {top: 5px; left: 3px;}
#ib_window_cont .ub_load_bar {top: 5px; left: 3px;}

.ub_img div.ub_img_close {visibility: hidden; position: absolute; top: 2px; right: 2px; cursor: pointer; height: 18px; width: 18px; background: url('/img/close.gif') no-repeat 0 0;}
.ub_img div.ub_img_resize {visibility: hidden; position: absolute; bottom: 2px; right: 2px; cursor: pointer; height: 18px; width: 18px; background: url('/img/resize.gif') no-repeat 0 0;}
.ub_img:hover div {visibility: visible;}

.ub_panel_help {font-size: 11px; padding: 4px 5px; color: #666;}

#ib_window_cont .cur_image {background-color: #FFE599;}

/* Resize panel */
#resize_panel {border: 5px solid #ddd; background-color: #fff; position: absolute; display: none; z-index: 50000;}
#resize_panel .mode_select {padding: 5px 5px 7px 5px; background-color: #eee; border-bottom: 1px solid #ddd;}
#resize_panel .resize_source {padding: 10px; text-align: center; background-color: #222;}
#resize_panel .resize_source img { -ms-interpolation-mode:bicubic; }

#resize_panel .r_buttons {padding: 5px; background-color: #eee; border-top: 1px solid #ddd; text-align: right;}
#resize_panel .r_buttons button {margin: 0 0 0 5px;}

#resize_panel .r_preload {position: absolute; visibility: hidden; top: 0; left: 0; height: 1px; width; 1px; overflow: hidden;}

#resize_panel #blinds_cont {position: absolute; display: none; overflow: hidden;}

#resize_panel .blinds {background-color: #000; opacity: 0.8; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=80); overflow: hidden;}
#resize_panel .b_focus {cursor: move; display: block; overflow: hidden;}

#resize_panel .blinds_hor * {float: left; height: 100%;}
#resize_panel .blinds_ver * {width: 100%;}