#draggerarea { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10001; }
#draggerarea[id] { position: fixed; }

#molduradrag { position: absolute; z-index: 10000; overflow: hidden; }
/* / #molduradrag[id] { position: fixed; } /* */
#molduradrag .bordas { height: 100%; }
#molduradrag .titlebar { white-space: nowrap; }

.windig { position: absolute; top: 0; left: 0; z-index: 50; -moz-user-select: none; }
/* / .windig[class] { position: fixed; } /* */
.windig .titlebar { cursor: move; }
.windig .titlebar span { display: block; height: 100%; white-space: nowrap; }
.telacheia .titlebar { cursor: default; }
.windig .botoes { position: absolute; top: 0; right: 0; z-index: 2; }
.windig .botoes a { display: block; float: left; overflow: hidden; text-indent: -1000px; text-decoration: none; }
.windig iframe { width: 100%; position: relative; z-index: 1; background: white; }
.windig .resizex { width: 6px; cursor: w-resize; position: absolute; top: 0; right: 0; height: 100%; z-index: 5; }
.windig .resizey { height: 6px; cursor: n-resize; position: absolute; left: 0; bottom: 0; width: 100%; z-index: 5; }
.windig .resizez { width: 6px; height: 6px; cursor: nw-resize; position: absolute; right: 0; bottom: 0; z-index: 5; }

/* / .redimensionando, .arrastando { opacity: 0.7; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50); } /* */


/* Minimizar a janela -- a propriedade "bottom" é definida pelo JavaScript */
.minimizada { overflow: hidden; cursor: pointer;
  top: auto !important; left: auto !important; right: 0 !important; z-index: 1000 !important; }
.minimizada[class] { position: fixed; }
.minimizada .resizer { display: none; }


/* Janela maximizada */
.telacheia { top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; cursor: default; padding: 0; margin: 0; }
.telacheia[class] { position: fixed; }



/* ## Formatação */
.windig .titlebar { position: relative; height: 31px; z-index: 2; background: url('img/basetemplate/top.png') repeat-x 0 0;
  font: 12px verdana, sans-serif; }
.windig .titlebar span { width: 100%; overflow: hidden; padding: 6px 0 0 7px; color: white; }

.windig .botoes { padding: 6px 4px 0 3px; background: url('img/basetemplate/top.png') repeat-x 0 0; }
.windig .botoes a { width: 19px; height: 19px; margin-right: 1px; }
.windig .botoes a.min { background: url('img/basetemplate/minimizar.gif') no-repeat 0 0; }
.windig .botoes a.max { background: url('img/basetemplate/maximizar.gif') no-repeat 0 0; }
.windig .botoes a.close { background: url('img/basetemplate/fechar.gif') no-repeat 0 0; }
.telacheia .botoes a.max { background-image: url('img/basetemplate/restaurar.gif'); }

.windig .fundo1 { background: url('img/basetemplate/left.png') repeat-y left top; }
.windig .fundo2 { background: url('img/basetemplate/right.png') repeat-y right top; }
.windig .fundo3 { background: url('img/basetemplate/bot.png') repeat-x left bottom; }
.windig .fundo4 { padding: 0 4px 3px; position: relative; }

.windig .borda1 { position: absolute; top: 0; left: 0; z-index: 3; background: url('img/basetemplate/topleft.png'); width: 4px; height: 31px; font-size: 1px; }
.windig .borda2 { position: absolute; top: 0; right: 0; z-index: 3; background: url('img/basetemplate/topright.png'); width: 4px; height: 31px; font-size: 1px; }
.windig .borda3 { position: absolute; bottom: 0; left: 0; z-index: 4; background: url('img/basetemplate/botleft.png'); width: 4px; height: 3px; font-size: 1px; }
.windig .borda4 { position: absolute; bottom: 0; right: 0; z-index: 4; background: url('img/basetemplate/botright.png'); width: 4px; height: 3px; font-size: 1px; }
/* Regra especial para o Internet Explorer */ * html .minimizada .borda3, * html .minimizada .borda4 { bottom: -1px; }

#draggerarea { background: url('nothing.gif'); }
#draggerarea.moving { cursor: move; }
#draggerarea.resizingx { cursor: w-resize; }
#draggerarea.resizingy { cursor: n-resize; }
#draggerarea.resizingz { cursor: nw-resize; }


/* Moldura sendo arrastada/redimensionada */
#molduradrag .titlebar { display: none; }
#molduradrag .fundo1 { } #molduradrag .fundo2 { } #molduradrag .fundo3 { } #molduradrag .fundo4 { }

#molduradrag .borda1 { position: absolute; top: 0; left: 0; width: 100%; z-index: 3; height: 1px; font-size: 1px; background: black; }
#molduradrag .borda2 { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 3; height: 1px; font-size: 1px; background: black; }
#molduradrag .borda3 { position: absolute; top: 0; left: 0; height: 100%; z-index: 3; width: 1px; font-size: 1px; background: black; }
#molduradrag .borda4 { position: absolute; top: 0; right: 0; height: 100%; z-index: 3; width: 1px; font-size: 1px; background: black; }


/* Janela minimizada */
.minimizada { width: 200px !important; height: 31px !important; }
.minimizada .titlebar { cursor: pointer; }