.corner {
  width: 22px;
  height: 500px;
  position: relative;
  background: url("/images/corners.png") no-repeat;
}

.border {
  position: relative;
  overflow: hidden;
  height: 8px;
}

.border .corner {
  top: -338px;
  left: -8px;
}

.border .corner.right {
  float: right;
  left: 14px;
}
.border .corner.left { float: left; }

.border.bottom .corner { top: -330px; }

.search-form .border { height: 10px !important; margin: 0 !important; }
.search-form .border .corner, .branch .item .border .corner { top: -370px !important; left: -10px !important;}
.search-form .border.bottom .corner, .branch .item .border.bottom .corner { top: -360px !important; }
.search-form .border .corner.right, .branch .item .border .corner.right, .wide-cabinet .folder-block .border .corner.right { left: 12px !important; }
.branch .border, .wide-cabinet .folder-block .border { height: 10px !important;}
.wide-cabinet .folder-block .border .corner { top: -410px; left: -12px; }
.wide-cabinet .folder-block .border .corner.right { top: -410px; }
.wide-cabinet .folder-block .border.bottom .corner { top: -400px; }

.top_left, .top_right, .bottom_right, .bottom_left {
  height: 8px;
  width: 8px;
  overflow: hidden;
  position: absolute;
  z-index: 1;
}
.top_left DIV, .top_right DIV, .bottom_right DIV, .bottom_left DIV {
  height: 500px;
  width: 16px;
  position: relative;
  background: url("/images/corners.png") no-repeat;
}
.top_right DIV { left: -100%; }
.bottom_left DIV { top: -100%; }
.bottom_right DIV { top: -100%; left: -100%; }

.top_left, .top_right { top: 0; }
.top_right, .bottom_right { right: 0; }
.bottom_right, .bottom_left { bottom: 0; }
.bottom_left, .top_left { left: 0; }

#poll .top_left, #poll .top_right, #poll .bottom_right, #poll .bottom_left {
  height: 10px;
  width: 9px;
}
#poll .top_left DIV, #poll .top_right DIV, #poll .bottom_right DIV, #poll .bottom_left DIV { width: 18px; }
#poll .top_left DIV { top: -90px; }
#poll .top_right DIV { left: -100%; top: -90px; }
#poll .bottom_left DIV { top: -100px; }
#poll .bottom_right DIV { top: -100px; left: -100%; }

#poll .top_left, #poll .top_right { top: -1px; }
#poll .top_right, #poll .bottom_right { right: -1px; }
#poll .bottom_right, #poll .bottom_left { bottom: -1px; }
#poll .bottom_left, #poll .top_left { left: -1px; }


#wide-content .corners-top, #wide-content .corners-bottom {
  background: #fff;
  height: 8px;
  position: relative;
}
#wide-content .corners-top { margin-top: -8px;}
#wide-content .corners-bottom { margin-bottom: -8px;}

.corner10 { height: 10px; width: 10px; }
.corner10 DIV { width: 20px; }

#wide-content .place .top_right DIV, #calendar .top_left DIV, #calendar .top_right DIV, #wide-content .search-form .top_right DIV, #wide-content .search-form .top_left DIV { top: -50px; }
#wide-content .place .bottom_right DIV, #calendar .bottom_left DIV, #calendar .bottom_right DIV, #wide-content .search-form .bottom_right DIV, #wide-content .search-form .bottom_left DIV { top: -60px; }
#wide-content .pages .top_right, #wide-content .pages .top_left, #wide-content .pages .bottom_right, #wide-content .pages .bottom_left, #main-menu .top_left, #main-menu .top_right, #main-menu .bottom_left, #main-menu .bottom_right, .periods .top_right, .periods .top_left, .periods .bottom_right, .periods .bottom_left, .term .top_right, .term .top_left, .term .bottom_right, .term .bottom_left, .tip .top_right, .tip .top_left {
  width: 5px;
  height: 5px;
}

#wide-content .pages .top_right DIV, #wide-content .pages .top_left DIV, #wide-content .periods .top_right DIV, #wide-content .periods .top_left DIV, .term .top_right DIV, .term .top_left DIV { top: -30px; width: 10px;}
#wide-content .pages .bottom_right DIV, #wide-content .pages .bottom_left DIV, #wide-content .periods .bottom_right DIV, #wide-content .periods .bottom_left DIV, .term .bottom_right DIV, .term .bottom_left DIV { top: -35px; width: 10px; }

.index .periods .top_right DIV, .index .periods .top_left DIV { top: -275px; width: 10px; }

.index .periods .bottom_right DIV, .index .periods .bottom_left DIV { top: -280px; width: 10px; }

#main-menu .top_left DIV, #main-menu .top_right DIV {
  top: -225px;
  width: 10px;
}
#main-menu .bottom_left DIV, #main-menu .bottom_right DIV {
  top: -230px;
  width: 10px;
}

.tip.tipform .top_right, .tip.tipform .top_left, .tip .bottom_right, .tip .bottom_left {
  width: 6px;
  height: 6px;
}
.tip .top_left DIV, .tip .top_right DIV { top: -250px; }
.tip .bottom_left DIV, .tip .bottom_right DIV { top: -255px; }
.tip .top_right { right: -5px; }
.tip .top_left { left: -1px; }
.tip .bottom_left DIV, .tip .bottom_right DIV, .tip.tipform .top_left DIV, .tip.tipform .top_right DIV { width: 12px;}

.tip .top_left DIV { background: none;}
.tip.tipform .top_left DIV { background: url("/images/corners.png");}
.tip.tipform .top_left DIV, .tip.tipform .top_right DIV { top: -300px; }
.tip .bottom_left DIV, .tip .bottom_right DIV { top: -306px; }
.tip.tipform .top_right, .tip.tipform .top_left { top: -1px;}
.tip .bottom_right, .tip .bottom_left { bottom: -1px;}
.tip.tipform .top_right, .tip .bottom_right { right: -6px; }
.tip.tipform .top_left, .tip .bottom_left { left: -6px; }

.term .top_right DIV, .term .top_left DIV, .term .bottom_right DIV, .term .bottom_left DIV { background: none; }

.hightlightingTerms .term .top_right DIV, .hightlightingTerms .term .top_left DIV, .hightlightingTerms .term .bottom_right DIV, .hightlightingTerms .term .bottom_left DIV { background: url("/images/corners.png") no-repeat; }


.button-top-right, .button-top-left, .button-bottom-right, .button-bottom-left {
  position: absolute;
  overflow: hidden;
  width: 10px;
  height: 10px;
}
.button-top-right DIV, .button-top-left DIV, .button-bottom-right DIV, .button-bottom-left DIV {
  background: url("/images/corners.png") no-repeat;
  width: 20px;
  height: 500px;
  position: relative;
}

.button-top-left, .button-bottom-left { left: 0;}
.button-top-right, .button-bottom-right { right: 0;}
.button-top-left, .button-top-right { top: 0;}
.button-bottom-left, .button-bottom-right { bottom: 0;}

.button-top-left DIV, .button-top-right DIV { top: -50px;}
.button-bottom-left DIV, .button-bottom-right DIV { top: -60px;}

.button-top-right DIV, .button-bottom-right DIV { left: -100%; }

#wide-content .periods .bubble .top_right DIV, #wide-content .periods .bubble .top_left DIV { top: -11px;}
#wide-content .periods .bubble .top_left DIV { left: -9px; width: 1000px;}
#wide-content .bubble .bottom_right DIV { top: 0;}
