body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,p,blockquote,th,td{margin:0;padding:0;}
table{border-collapse:collapse;border-spacing:0;font-size:100%;}
fieldset,img{border:0;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
ol,ul {list-style:none;}
caption,th {text-align:left;}
/* h1,h2,h3,h4,h5,h6{font-size:100%;} */
q:before,q:after{content:'';}
input, select, textarea {font-family:arial, sans-serif;}

body {
    font-family: arial, sans-serif;
    font-size: 100%;
    text-align: center; /* for center wrap in IE */
}

#wrap {
    position: relative;
    top: 31px;
    border-left: 1px solid #999;
    border-right: 1px solid #999;
    margin: 0 auto;
    /*height: 90%;*/
    width: 90%; 
    min-width: 900px;
    max-width: 1000px;
    text-align: left; /* for center wrap in IE */
}


/*
html #wrap {
    width: expression(document.body.clientWidth > 1000 ? '1000px' : (document.body.clientWidth < 900 ? '900px' : 'auto');
} 
*/

/*
a { 
    color: #0000C0; 
    text-decoration: underline;
}
*/

/* Top of page */
#toplinks {
    position:  absolute;
    display: block;
    top: 0px;
    height: 28px;
    width: 100%;
    text-align: right;
    font-size: 90%;
    font-weight: bold; 
    color: #fff;
    background-color:  #0099FF;
    padding-top: 0.4em;
    /* z-index: 50; */
}

#toplinks a {
    color: #fff;
    padding: 0 5px 0 2px;
    text-decoration: none;
}

#box {
    position:relative;
    margin: 0 auto 40px auto;
    width: 700px;
    /* background: #dbdbdb url("../images/sb_bg.png") repeat-x top; */
    background: #ffffff url("../images/sb_bg.png") repeat-x top;
}
#box div.top {
    width: 100%;
    height: 17px;
    background: transparent url('../images/sb_top_left.png') no-repeat left top;
}
#box div.top div {
    position: relative;
    height: 17px;
    background: transparent url('../images/sb_top_right.png') no-repeat right top;
}
#box div.left {
    background: transparent url('../images/sb_left.png') repeat-y left;
}
#box div.content {
    overflow: auto;
    background: transparent url('../images/sb_right.png') repeat-y right;
    position: relative;
    padding: 2px 23px 25px 23px;
    margin: -2px 0 -36px 0;
}
* html #box div.content {
    height: 1%; 
}
#box div.bottom {
    clear: both;
    height: 38px;
    background: transparent url('../images/sb_bottom_left.png') no-repeat left bottom;
}
#box div.bottom div {
    position: relative;
    height: 38px;
    background: transparent url('../images/sb_bottom_right.png') no-repeat right bottom;
}
#box p {
    font-weight: bold;
}

#box h2 {
    font-weight: bold;
    color:  #0064ea;
}

#box #logo {
    margin-top: 10px;
    height: 130px;
	/* background: transparent url("../images/logo.png") no-repeat top; */
}

/* Page bottom */
#bottomlinks {
    position: static;
    width: 100%;
    height: 70px;
    bottom: 0px;
    padding-top: 1.0em;
    padding-bottom: 1.0em;
    font-size: 90%;
    line-height: 100%;
    text-align: center;
    clear: both;
    background-color: #B8DAF0;
}

#bottomlinks a {
  text-decoration: none;
  color: #000;
}

#bottomlinks a:hover {
  text-decoration: underline;
}


#modal {
    top: 0;
    left:0;
    position: absolute;
    width: 100%;
    height: 100%;
    background: #333;
    visibility: hidden;
    z-index: 100;
}
.dialog {
    background: #ffffff url("../images/sb_bg.png") repeat-x top;
    visibility: hidden;
    z-index: 200;
    padding: 16px;
    color: #333;
}
.dialog fieldset {
    border: 1px solid #777;
    padding: 6px 5px 10px 15px;
    margin-bottom: 6px;
}
.dialog legend {
    font-weight: bold;
}
.dialog label {
    font-size: 90%;
}
.dialog input, .dialog select {
    font-size: 85%;
    height: auto;
    width: auto;
}
.dialog input.checkbox {
    clear: both;
    display: inline;
    height: auto;
    width: auto;
    padding: 2px 0 0 0;
}
.dialog button {
    font-size: 85%;
    float: right;
    margin: 10px 5px 0 0;
}


