.dialog {
 margin-left:12px; /* default, width of left corner */
}

dialog.green {padding:0;}

.dialog .content,
.dialog .t,
.dialog .b,
.dialog .b div {
 background:url(../images/bluebox.gif) no-repeat top right;
}

.dialog.blue .content,
.dialog.blue .t,
.dialog.blue .b,
.dialog.blue .b div {
 background-image:url(../images/bluebox.gif);
}

.dialog.beige .content,
.dialog.beige .t,
.dialog.beige .b,
.dialog.beige .b div {
 background-image:url(../images/beigebox.gif);
}

.dialog.green .content,
.dialog.green .t,
.dialog.green .b,
.dialog.green .b div {
 background-image:url(../images/greenbox.gif);
}

.dialog.red .content,
.dialog.red .t,
.dialog.red .b,
.dialog.red .b div {
 background-image:url(../images/redbox.gif);
}

.dialog.white .content,
.dialog.white .t,
.dialog.white .b,
.dialog.white .b div {
 background-image:url(../images/whitebox.gif);
}

.dialog.bluewhite .content,
.dialog.bluewhite .t,
.dialog.bluewhite .b,
.dialog.bluewhite .b div {
 background-image:url(../images/bluewhitebox.gif);
}

.dialog .content {
 position:relative;
 zoom:1;
 _overflow-y:hidden;
 padding:0px 12px 0px 0px;
}

.dialog .t {
 /* top+left vertical slice */
 position:absolute;
 left:0px;
 top:0px;
 width:12px; /* top slice width */
 margin-left:-12px;
 height:100%;
 _height:1600px; /* arbitrary long height, IE 6 */
 background-position:top left;
}

.dialog .b {
 /* bottom */
 position:relative;
 width:100%;
}

.dialog .b,
.dialog .b div {
 height:8px; /* height of bottom cap/shade */
 font-size:1px;
}

.dialog.green .b,
.dialog.green .b div {
 height:0px; /* height of bottom cap/shade */
 font-size:0px;
}

.dialog .b {
 background-position:bottom right;
}

.dialog .b div {
 position:relative;
 width:12px; /* bottom corner width */
 margin-left:-12px;
 background-position:bottom left;
}

.dialog .hd,
.dialog .bd,
.dialog .ft {
 position:relative;
}

.dialog .wrapper {
 /* extra content protector - preventing vertical overflow (past background) */
 position:static;
 max-height:1000px;
 overflow:auto; /* note that overflow:auto causes a rather annoying redraw "lag" in Firefox 2, and may degrade performance. Might be worth trying without if you aren't worried about height/overflow issues. */
}

.dialog p {
 margin:0px; /* margins will blow out backgrounds, leaving whitespace. */
 padding:8px;
}
