/*© lns.pnpi.spb.ru/sov-pc/, 2009 | sov-pc@lns.pnpi.spb.ru */

* {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    padding: 1% 0 1%;
    background: #fff;
    color: #333;
    font-family: "Helvetica", Times New Roman, Arial, Verdana, sans-serif;
}

#container {
    width: 760px;
    margin: 0 auto;
    border: 1px solid #999;
    background: #D6F7FE;
}

#header {
    background: url(header2.png) no-repeat;
    width: 760px;
    height: 150px;
}

.img1 {
    width: 140px;
    height: 140px;
    margin: 5px 5px;
    float: left;
}

.img2 {
    width: 160px;
    height: 228px;
    border: 1px solid #999;
}

.img3 {
    width: 500px;
    height: 375px;
    margin: 5px 5px 5px 15px;
}

#nav {
    background: url(nav-bg.png) repeat-x;
    color: #D61F84;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.8em;
    text-align: center;
}

#nav ul {
    list-style-type: none;
}

#nav li {
    display: inline;
    margin: 0 4px;
}

#nav li a {
    color: #281EF4;
}

#nav li a:hover {
    color: #D61F84;
}

a {
    text-decoration: none;
}

#tex {
    width: 560px;
    font-size: 15px;
    color: #000;
    margin: 10px auto;
    float: left;
}

#tex h2 {
    font-size: 24px;
    color: #000;
    margin: 5px 10px;
    text-align: center;
}

#tex h3 {
    font-size: 20px;
    width: 500px;
    color: #000;
    margin: 5px 10px;
    text-align: center;
}

#tex ul {
    color: #000;
    margin: 5px 10px;
    float: left;
    list-style-type: none;
}

#tex li {
    margin: 5px 10px;
}

#tex p {
    text-align: justify;
    text-indent: 1.5em;
    margin: 0;
    padding: 0 15px;
    line-height: 1.4em; 
}

#tex table {
margin: 5px 10px;
}

#tex a {
    color: #281EF4;
    text-decoration: underline;
}

#tex a:hover {
    color: #D61F84;
    text-decoration: underline;
}

#text {
    width: 750px;
    font-size: 16px;
    color: #000;
    margin: 10px auto;
    float: left;
}

#text h2 {
    font-size: 24px;
    color: #000;
    margin: 5px 10px;
    text-align: center;
}

#text h3 {
    font-size: 20px;
    color: #000;
    margin: 5px 10px;
    text-align: center;
}

#text h4 {
    font-size: 14px;
    color: #000;
    margin: 5px 10px;
    text-align: center;
}

#text ul {
    color: #000;
    margin: 5px 10px;
    float: left;
    list-style-type: none;
}

#text li {
    margin: 5px 10px;
}

#text p {
    text-align: justify;
    text-indent: 1.5em;
    margin: 0;
    padding: 0 15px;
}

#text a {
    color: #281EF4;
}

#text a:hover {
    color: #D61F84;
}

#news {
    background: #ffc;
    width: 180px;
    color: #665;
    margin: 10px 10px;
    float: right;
}

#news h3 {
    font-size: 20px;
    text-align: center;
}

#news ul {
    list-style-type: none;
}

#news li {
    font-size: 75%;
    padding: 5px 10px;
}

#footer {
    background: #3168BB;
    color: #fff;
    height: 25px;
    font-size: 12px;
    padding: 10px 0;
    clear: both;
}

#footer a {
    color: #ff0;
}

#footer a:hover {
    color: #fff;
}

#footer p {
    padding: 2px;
    text-align: center;
}

.clearfloat {
    clear: both;
}

.errorlist {
    margin: 0;
    padding: 0;
    border: 0;
    width: 130px;
    text-indent: 0;
    line-height: 1em;
    text-align: center;
    color: red;
    display: block;
    font-size: 13px;
}

.ui-autocomplete {
    max-height: 200px;
    max-width: 500px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    /* add padding to account for vertical scrollbar */
    padding-right: 20px;
}

/* IE 6 doesn't support max-height
     * we use height instead, but this forces the menu to always be this tall
     */
* html .ui-autocomplete {
    height: 200px;
    width: 500px;
}

.ui-widget {
    font-size: 13px;
}