* {
border: 0;
margin: 0;
padding: 0;
}

body, html { 
width:100%;
height:100%;
margin:0 auto;
padding:0;
background:#3a3a3a;
background-image:url(../images/bg.gif);
}

body, font, td, p, ul {
	color: #333;
	font-size: 11px;
	font-family: Tahoma, Verdana, Helvetica, sans-serif;
	text-align: justify;
	
}

:link {
	color: #1b4f88; text-decoration: none;
	}

:visited { 
	color: #1b4f88; text-decoration: none;
	}

:link:hover, :visited:hover {
	color: #d7242d; text-decoration: underline;
	}

:link:active, :link:active { 
	color: #1b4f88; text-decoration: none;
	}

h1, h2, h3 h4, h5, h6 {
    font-family: Tahoma, verdana, sans-serif;
    margin: 0.5em 0 0.2em 0;
}

h1 { font-size: 160%; font-weight: normal; }
h2 { font-size: 150%; }
h3 { font-size: 120%; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
h4 { font-size: 100%; }
h5 { font-size: 90%; font-weight: normal;}
h6 { font-size: 90%; }

HR {
 border: none; /* Убираем границу для браузера Firefox */
 color: #f3f3f3; /* Цвет линии для браузера Internet Explorer */
 background-color: #f3f3f3; /* Цвет линии для браузера Firefox и Opera */
 height: 2px; /* Толщина линии */
 float:right;
 margin-bottom:10px;
 width:77%;
 clear:both;
}

#wraper {
width:990px;
position:relative;
margin:0 auto;
padding:5px;
background-color:white;
}

#header { 
width:990px; 
height:100px;
background-color:black;
background-image:url(../images/logo.gif);
}

#bar {
width:990px;
height:35px;
background: #1b4f88; text-decoration:underline;
}

div#bar .login {
float:left;
}

div#bar .poisk {
float:right;
}

div#bar ul {
margin:0;
padding:10px;
list-style:none; 
}
div#bar li {
display:inline;
}

div#bar a {
font-family: Tahoma, Verdana, Helvetica, sans-serif;
font-size: 11px;
color: #fff;
margin: 0 10px;
text-decoration: none;
}

div#bar a:hover { 
text-decoration:underline; 
}

#content {
width:990px;
margin:0 auto;
background-color:white;
}

#main {
width:520px;
min-height:400px;
float:left;
background-color:white;
}

div#main .mainline {
width:520px;
height:15px;
background-image: url(../images/blocktopline.gif);
background-repeat: no-repeat;
}

div#main .main2 {
float:left;
padding:0px 5px 10px 5px;
}

div#main .main2 img { 
margin : 10px 10px 10px 0px; 
background: url(../images/shadow.png) right bottom no-repeat; padding: 0 0 8px 0;
width:130px;
height:190px;
}

div#main .mainnav {
padding:0px 10px 0px 0px;
}

div#main h4 {
color: #333;
font-size: 12px;
font-family: Tahoma, verdana, sans-serif; 
font-weight: bold;
padding:10px 0px 2px 10px;
clear:both;
}

div#main h4 a {
color: #333;
text-decoration: none;
}

div#main h4 a:hover {
background: #d7242d;
color: #fff;
text-decoration: none;
}

.main3 {
float:left;
padding:0px 5px 10px 5px;
}

#block1 {
width: 200px;
margin-left:30px;
float:left;
margin-bottom:10px;
background-color:white;
}

div#block1 .line {
width:190px;
height:15px;
background-image: url(../images/blockline.gif);
background-repeat: no-repeat;	
}

div#block1 .block1 {
padding: 0px 10px 0px 10px;
}

div#block1 h4, #block1 p {
padding:12px 0px 0px 10px;
}

div#block1 ul {
margin:0;
padding:10px;
list-style: square;
list-style-position: outside;
}

div#block1 HR {
 border: none; /* Убираем границу для браузера Firefox */
 color: #f3f3f3; /* Цвет линии для браузера Internet Explorer */
 background-color: #f3f3f3; /* Цвет линии для браузера Firefox и Opera */
 height: 1px; /* Толщина линии */
 float:right;
 margin-bottom:10px;
 width:100%;
 clear:both;
}

#block2 {
width: 240px;
float:right;
margin-bottom:10px;
background-color:white;
}

div#block2 .line {
width:240px;
height:15px;
background-image: url(../images/blockline.gif);
background-repeat: no-repeat;	
}

div#block2 .block2 {
padding:10px 0px 10px 0px;
}

div#block2 h4, #block2 p {
padding:12px 0px 0px 10px;
}

#footer {
width:990px;
height:50px;
clear:both;
margin-bottom:8px;
background:#f6f6f6 url(../images/footer.gif);
}


#login_form {
    position: absolute;
    width: 24%;
    left: 38%;
    top: 85px;
    background: #fff;
    border:solid #eee 5px;
    display: none;
    z-index: 99;
    overflow: hidden;
}

#login_form #border
{
   border:1px solid #c4c4c4;
   padding:15px;
   padding-left:65px
}

#login_form a
{
    font:11px Tahoma, Verdana;
    text-decoration: none;
    color:#2887c3;
}

#login_form a { text-decoration: underline; }
#login_form a:hover { text-decoration: none; }

.btn {
height:16px;
border-color:#c2e254 #9bb838 #9bb838 #c2e254;
border-style:solid;
border-width:1px;
background:#ffffff;
cursor:pointer;
}

.btn:hover {
border-color:#fff;
border-style:solid;
border-width:1px;
background:#F8F8FF;
}

.btn:focus {
background:#fff;
border-color:#fff;
border-style:solid;
border-width:1px;
}

.hint {
background-color:#FFFFFF;
line-height:10px;
color:black;
font-family:verdana;
font-size:11px;
width:auto;
border-top:1px solid red;
border-right:1px solid red;
border-bottom:1px solid red;
border-left:5px solid red;
margin:0px;
padding:8px;
position:absolute;
visibility:hidden;
}