* {margin:0;padding:0;outline:none} /* обнуляем все элементы */
/* общие стили */
html {font-size:75%;height:100%}
body {font:normal 1em/1.3 arial, helvetica, sans-serif;
		color:#333;
		height:100%;
		background:#f0f0f0}
a {color:#000;
	font-size:1.5em;}
a:hover {text-decoration:none}
abbr {border-bottom:1px dotted #2b82dc;
		cursor:help}
h1, h2, h3, h4, h5, h6 {font-weight:normal;line-height:1;margin:4px 0 12px;}
h1 {font-size:3.5em;color:#ffffff}
p {text-align:justify;word-spacing:.1ex;line-height:1.6;margin-bottom:1em}
/*выделения для вставки кода*/
#codding {text-align:justify;word-spacing:.1ex;line-height:1.3;margin-bottom:1em;color:black;background-color:#CCCCCC;border:1px solid #fff;}
ul {list-style:none}
ol {list-style-position:inside}
header, nav, section, article, aside, footer {display:block;position:relative}
/* выравниваем страницу по центру, делаем отступы и цвет фона */
#main {width:950px;
		min-height:100%;
		padding:0px;
		margin:0 auto;
		background-color: #ffffff;
}
/* пишем класс для шапки - header */
.h {overflow:hidden;height:100px;padding:35px 220px 0;border-bottom:1px solid #bbb;
	background: linear-gradient(to top, #666666 0%, #003366 100%);
	background: -webkit-linear-gradient(bottom, #666666 0%, #003366 100%);
	background: -moz-linear-gradient(bottom, #666666 0%, #003366 100%);
	background: -o-linear-gradient(bottom, #666666 0%, #003366 100%);
	background: -ms-linear-gradient(bottom, #666666 0%, #003366 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003366', endColorstr='#666666',GradientType=0);}
/* меню навигации */
#nav,#nav ul {
    list-style: none outside none;
    margin: 0;
    padding: 0;
}
#nav {
    background: url('img/menu_bg.png') no-repeat scroll 0 0 transparent;
    clear: both;
    font-size: 10px;
    height: 55px;
    padding: 0 0 0 0px;
    position: relative;
    width: 950px;
}
#nav ul {
    background-color: #222;
    border:1px solid #222;
    border-radius: 0 5px 5px 5px;
    border-width: 0 1px 1px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
    left: -9999px;
    overflow: hidden;
    position: absolute;
    top: -9999px;
    z-index: 2;
 
    -moz-transform: scaleY(0);
    -ms-transform: scaleY(0);
    -o-transform: scaleY(0);
    -webkit-transform: scaleY(0);
   transform: scaleY(0);
 
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
 
    -moz-transition: -moz-transform 0.1s linear;
    -ms-transition: -ms-transform 0.1s linear;
    -o-transition: -o-transform 0.1s linear;
    -webkit-transition: -webkit-transform 0.1s linear;
    transition: transform 0.1s linear;
}
#nav li {
    background: url('img/menu_line.png') no-repeat scroll right 5px transparent;
    float: left;
    position: relative;
}
#nav li a {
    color: #FFFFFF;
    display: block;
    float: left;
    font-weight: normal;
    height: 30px;
    padding: 23px 20px 0;
    position: relative;
    text-decoration: none;
    text-shadow: 1px 1px 1px #000000;
}
#nav li:hover > a {
    color: #00B4FF;
}
#nav li:hover, #nav a:focus, #nav a:hover, #nav a:active {
    background: none repeat scroll 0 0 #121212;
    outline: 0 none;
}
#nav li:hover ul.subs {
    left: 0;
    top: 53px;
    width: 180px;
 
    -moz-transform: scaleY(1);
    -ms-transform: scaleY(1);
    -o-transform: scaleY(1);
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
}
#nav ul li {
    background: none;
    width: 100%;
}
#nav ul li a {
    float: none;
}
#nav ul li:hover > a {
    background-color: #121212;
    color: #00B4FF;
}
#lavalamp {
    background: url('img/lavalamp.png') no-repeat scroll 0 0 transparent;
    height: 16px;
    left: 23px;
    position: absolute;
    top: 0px;
    width: 84px;
 
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}
#lavalamp:hover {
    -moz-transition-duration: 3000s;
    -ms-transition-duration: 3000s;
    -o-transition-duration: 3000s;
    -webkit-transition-duration: 3000s;
    transition-duration: 3000s;
}
#nav li:nth-of-type(1):hover ~ #lavalamp {

    left: 13px;
}
#nav li:nth-of-type(2):hover ~ #lavalamp {
    left: 135px;
}
#nav li:nth-of-type(3):hover ~ #lavalamp {
    left: 265px;
}
#nav li:nth-of-type(4):hover ~ #lavalamp {
    left: 365px;
}
#nav li:nth-of-type(5):hover ~ #lavalamp {
    left: 465px;
}


/* область основного контента */
section {overflow:hidden;padding:20px; font-size:1.2em;}
/* стиль для картинки */
.image {width:600px;margin:10px 10;padding-left:175px; height:200px;}
 
section section {float:left;width:400px;min-height:250px;border-right:1px dotted #CCCCCC;}
/* правая часть */
aside {overflow:hidden;width:250px;padding:0 30px}
/* нижняя часть - footer */
footer {height:40px;padding:25px 25px 0;margin:20px 0 0;border-top:1px solid #bbb}
/* стили для выделения областей HTML */
.tag {position:absolute;right:6px;top:0px;font-size:11px;font-style:normal}
#contenttext{list-style-type:square;font-size:1.2em; list-style-position:inside;line-height:2;margin-left:20px;}
#view{margin-left:20px;}
td, tr{border:2px solid #CCCCCC;min-width:50px; padding-left:5px;}