.dialog {
    position: absolute;
    font: normal 11px verdana;
    max-width: 650px; /* based on background image dimensions */
    margin-left: 16px;
    z-index: 100001;
    color: #333;
}

.dialog .content {
    position: relative;
    background: transparent url('/img/dialog/dialog_bg.png') no-repeat top right;
    padding: 12px 40px 17px 20px;
    zoom: 1.0;
    _overflow-y: hidden;
}

.dialog .content .top {
    position: absolute;
    left: 0;
    top: 0;
    background: transparent url('/img/dialog/dialog_bg.png') no-repeat top left;
    margin-left: -16px;
    width: 16px;
    height: 100%;
    _height: 2000px; /* arbitrary long, IE 6 */
}

.dialog .btm, .dialog .btm div {
    position: relative;
    height: 16px;
}

.dialog .btm {
    background: transparent url('/img/dialog/dialog_bg.png') no-repeat bottom right;
}

.dialog .btm div {
    background: transparent url('/img/dialog/dialog_bg.png') no-repeat bottom left;
    width: 16px;
    margin-left: -16px;
}

.dialog .content .close {
    text-align: right;
    margin-right: -18px;
}

.dialog .content .close a {
    color: #999;
    font-size: 10px;
    text-decoration: none;
}

.dialog .content .close a:hover {
    color: #666;
}

.dialog h1 {
    font: normal 18px Trebuchet MS, Verdana, Tahoma, san-serif;
    margin: 2px 0 12px 0;
}


#overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    min-height: 100%;
    background-color: #eee;
    opacity: 0.7;
    -moz-opacity: 0.7;
    filter: alpha(opacity=70); /* IE */
}

button.dlg { 
    border: none; 
    cursor: pointer; 
    font: bold 10px verdana;
    color: #eee;
    padding: 0 10px 0 0;
    background: transparent url('/img/dialog/btn_grey.png') no-repeat right;
    width: auto; /* IE */
    overflow: visible; /* IE */
    _margin-left: 6px; /* IE */
}

button.dlg span { 
    position: relative;
    margin-left: -3px;
    display: block;
    white-space: nowrap; 
    padding: 0 0 0 10px;
    background: #e4e4e4 url('/img/dialog/btn_grey.png') no-repeat left;
    line-height: 16px;
    height: 19px;
    _margin-top: 2px; /* IE */
}

button.dlg:hover,  button.dlg span:hover {
    color: #fff;
}