html {height: 100%;}
body {font: 76% Arial, Helvetica, sans-serif;color: #000000;background: #d9d9d9 url(images/background.jpg) repeat-x;line-height:130%;margin: 0;padding: 0;text-align: center;height: 100%;}

#nav {
	height: 38px;
	margin:0 auto;
	padding:0;
	position: relative;
	top: 40px;
	width: 754px;
}

#nav ul {
	margin:0 auto;
	padding:0;
	text-align: center;
	width:750px;
}
#nav ul li {
	display: inline;
}
#nav ul li a span {
	display: none;
}

#nav ul li a#tab1, 
#nav ul li a#tab2, 
#nav ul li a#tab3, 
#nav ul li a#tab4,
#nav ul li a#tab5	{display: block; float:left; padding:0px;}

#nav ul li a#tab1	{width: 102px;height: 38px;background: url(images/button-gallery-s.gif) no-repeat scroll 0 0; margin:5px 40px 5px 0px;}
#nav ul li a#tab2	{width: 117px;height: 38px;background: url(images/button-aboutme-s.gif) no-repeat scroll 0 0; margin:5px 40px 5px 0px;}
#nav ul li a#tab3	{width: 102px;height: 38px;background: url(images/button-links-s.gif) no-repeat scroll 0 0; margin:5px 40px 5px 0px;}
#nav ul li a#tab4	{width: 102px;height: 38px;background: url(images/button-contact-s.gif) no-repeat scroll 0 0; margin:5px 40px 5px 0px;}
#nav ul li a#tab5	{width: 102px;height: 38px;background: url(images/button-news-s.gif) no-repeat scroll 0 0; margin:5px 0px 5px 0px;}

#nav ul li a#tab1:hover	{background: url(images/button-gallery-h.gif) no-repeat scroll 0 0;}
#nav ul li a#tab2:hover	{background: url(images/button-aboutme-h.gif) no-repeat scroll 0 0;}
#nav ul li a#tab3:hover	{background: url(images/button-links-h.gif) no-repeat scroll 0 0;}
#nav ul li a#tab4:hover	{background: url(images/button-contact-h.gif) no-repeat scroll 0 0;}
#nav ul li a#tab5:hover	{background: url(images/button-news-h.gif) no-repeat scroll 0 0;}

#nav ul li a#tab1.crrnt	{background: url(images/button-gallery-a.gif) no-repeat scroll 0 0;}
#nav ul li a#tab2.crrnt	{background: url(images/button-aboutme-a.gif) no-repeat scroll 0 0;}
#nav ul li a#tab3.crrnt	{background: url(images/button-links-a.gif) no-repeat scroll 0 0;}
#nav ul li a#tab4.crrnt	{background: url(images/button-contact-a.gif) no-repeat scroll 0 0;}
#nav ul li a#tab5.crrnt	{background: url(images/button-news-a.gif) no-repeat scroll 0 0;}

#content				{position: relative; margin: 50px auto 10px auto; padding:10px;}

body.pics #content 		{width:750px;}
body.text #content 		{width:750px; text-align:left; margin-top:65px;}

body.pics #content a.btg,
body.text #content a 		{font-family: Arial, Helvetica, sans-serif; color: #0000FF; text-decoration:underline; float: none;}

body.text #content #nf a						{float:none;}
body.text #good-places a						{float: none;}
body.text #good-places a img					{margin-right: 20px;vertical-align: middle;}

body.pics #content a.back,
body.text #content a.back 		{margin-right:150px;}

#gallery				{border: 2px solid #BBB;width:780px; height: 460px; float:none; margin:0 auto;padding:0;}

body.text img.left 				{margin: 0 15px 15px 0;} /* Po chasovoj strelke - verh, pravo, niz, levo*/
body.text img.right	 	{
	float: right; /* Perenosit obekt v pravuyu storonu */
	margin-top: 15px;
	margin-right: 0;
	margin-bottom: 15px;
	margin-left: 15px;
}
body.text img.center			{margin:15px 0 0 250px;}
body.pics #content a img.gal	{margin:0px 15px 15px 0px; padding: 0px; float: left;}
body.pics #content a img.gal-nm	{margin:0px 0px 15px 0px;  padding: 0px; float: left;}

body.pics ul.gallery-row		{margin: 7px 0px; padding: 0px;}
body.pics ul.gallery-row li		{list-style:none; display: inline; margin: 7px 0px; padding: 0px;}

a img {border:none;}

#col1 {float:left; clear:none;}
#col2 {float:left;clear:none;}
#col2 p.first {margin-top:0px;}

#footer {clear: both; font-size:9px; text-align:center;margin-top:15px;}
