HTML, BODY, IMG, H1, H2, H3, H4, A, TABLE, TR, TD, DIV, FORM, UL, OL, LI {margin: 0; padding: 0;}
P,UL {margin: 0 0 20px 0;}
LI {margin-left: 20px;}
P.nospace {margin: 0;}
IMG {border: none;}
TD {vertical-align: middle;}

H1 {margin: 0 0 15px -1px; color: #e42a1b; font-size: 160%; font-weight: normal;}

A:link    {color: #5B6F7B;}
A:visited {color: #5B6F7B;}
A:hover   {color: #e42a1b;}
A:active  {color: #e42a1b;}

#web A:hover  {color: #820024;}
#web A:active {color: #820024;}

#a {width:100%; height:100%; min-width:980px;}

#no_images_found {max-width: 500px;}
#unknown_format {margin-left: 6px; margin-top: 166px; position: absolute;}

#imgFile {width: 350px}
#imgFile ,#imgUrl {margin: 7px 0;}

#searchMode {color: #e42a1b; font-size: 1.1em; font-weight: bold; text-transform: uppercase;}
#searchMode.ru {left:166px; }
#searchMode a {color: #5B6F7B; font-weight: bold; text-decoration: underline; }
#searchMode a:hover {color: #e42a1b; text-decoration: underline;}
#searchMode a:active {color: #e42a1b; text-decoration: underline; }

#web #searchMode a:hover {color: #e42a1b; text-decoration: underline; }
#web #searchMode a:active {color: #e42a1b; text-decoration: underline; }
#web .error,#web .red {color: #820024;}
#web .pages a.active {color: #820024;}
#web .pages_bottom a.active {color: #820024;}

.pages a.active {color:#e42a1b; }
.pages_bottom a.active {color:#e42a1b; }
.pages_similar a.active {color:#e42a1b; }

.webTable {margin-top:30px; width:52em;}
.webTable td.imgRowTd {vertical-align:top; width:100px;}
.webTable .imgRowTd .imgItem {margin-right: 0;}
.webTable .infoItem {weight:100px;}/* ??? */
.webTable td {vertical-align:top;}
.webTable .title {font-size: 1.4em; font-weight: normal; color: #820024; margin-bottom: 10px;}
.webTable .title a {font-weight: normal; color: #820024; text-decoration: none;}
.webTable .title a:hover {color: #820024;}
.webTable .links {left:0; bottom:0; font-size: 1.1em; color: #820024;}
.webTable .links a {color: #820024;}

.error,.red {color: #e42a1b;}

.title {clear:both;}

/* background is for IE7 */

.imagePreview {position: relative; background-color:#fff; border: solid 1px #e9e9e9; }
.imagePreview .content {padding: 10px; width:250px; } /* height ~ 310px */
.imagePreview .content .aimg {display: block; margin-bottom:10px; text-align: center; display: table-cell; vertical-align: middle;}
.imagePreview .content .aimg img {display: block; margin: 0 auto;}
.imagePreview .ltext {margin-top:10px; float: left;}
.imagePreview .rtext {margin-top:10px; float: right; text-align: right; width: 50%; max-width: 50%; height: 2.5em; max-height: 2.5em; overflow: hidden;}
.imagePreview .text {clear: both;}
.imagePreview .rel {position: relative; margin: 0 auto;}

.imgRowTd {padding-bottom: 20px;}

.imgItem {width: 124px; float: left; margin-right: 13px;}
.imgItem .shadowOuter {display: block; width:124px; height:124px;}
.imgItem .shadow {display: block; width:124px; height:124px; position: relative;}
.imgItem .shadow .rightTop {position: absolute; right:0;top:0; display: block; width:8px; height:8px; background: url(/img/results_bg/conor_right_top_1.gif) no-repeat;}
.imgItem .shadow .right {position: absolute; right:0;top:8px; display: block; width:8px; height:108px; background: url(/img/results_bg/middle_right_1.gif) repeat-y;}
.imgItem .shadow .rightBtm {position: absolute; right:0;bottom:0; display: block; width:8px; height:8px; background: url(/img/results_bg/conor_right_bot_1.gif) no-repeat bottom left;}
.imgItem .shadow .btm {position: absolute; left:8px;bottom:0; display: block; width:108px; height:8px; background: url(/img/results_bg/middle_bottom_1.gif) repeat-x bottom left;}
.imgItem .shadow .btmLeft {position: absolute; left:0;bottom:0; display: block; width:8px; height:8px; background: url(/img/results_bg/conor_left_bot_1.gif) no-repeat bottom left;}
.imgItem .b {width: 110px; height: 110px; background-color:#fff; border: solid 1px #e9e9e9; padding: 2px;}
.imgItem .im {width: 110px; height: 110px; display: table; overflow: hidden;}
.imgItem .im  a {display:block;}
.imgItem .im .im1 {display: table-cell; vertical-align: middle; text-align: center;}
.imgItem .im .im1 .im2 {display: block; margin: 0 auto;}
.imgItem .rel {position: relative; margin: 0 auto;}
.imgItem .text {margin-left: 3px; clear: both;}
.imgItem .ltext {float: left; padding: 0 0 0 3px;}
.imgItem .rtext {float: right; padding: 0 8px 0 0; text-align: right;}

.infoItem {width: 100px;}

#web #results .webTable td.imgRowTd {width:131px;}
#web #results .imgItem {width:124px;}
#web #results .imgItem .shadowOuter {width:127px; height:124px;}
#web #results .imgItem .shadow {width:124px; height:124px;}

#web #results .imgItem .shadow .right { height:108px; }
#web #results .imgItem .shadow .btm { width:108px; }
#web #results .imgItem .b { width: 110px; height: 110px; }
#web #results .imgItem .im { width: 110px; height: 110px; }
#results .imgItem .preview { max-width: 110px; max-height: 110px; }
#results_similar .imgItem .preview { max-width: 110px; max-height: 110px; }


/* new for mobile version */

body {width:238px; color: #5B6F7B; background-color: #FFFFFF; font-family: Arial, Tahoma, sans-serif; font-size: 70%;}

#logo {position:absolute; left:6px; top:14px; width:198px; height:17px;}
#boy {position:absolute; left:6px; top:45px; width:64px; height:91px;}

#results {position: relative; padding:10px 0 0 6px; width:226px;}
#results_similar {position: relative; padding:10px 0 0 6px; width:206px;}
#beforeResults {height:65px; width:226px;}

#newSearch {position:absolute; text-align:right; left:125px; top:0; width:100px;}

#welcome #searchMode {left:130px; position:absolute; top:45px; width:100px;}
#ModeResults #searchMode {left:0px; position:absolute; top:0px; width:100px;}

#searchForm {position:absolute; left:6px; top:155px; padding-top:10px; width:226px;}
#beforeRec {height:245px; width:226px;}

.pages {position:absolute; text-align:right; right:0; top:0;}
.pages_bottom {width:225px;}

.layout {border-spacing: 0; border-width: 0; empty-cells: show; border-collapse: collapse; width:100px;}
.table .webTable {border-spacing: 0; border-width: 0; empty-cells: show; border-collapse: collapse; width:238px;}

.results_newSearch {position:absolute; left:6px; top:45px;}
.button_search {position: absolute; left: 127px; top: 67px;}
.button_search_error {position: absolute; left: 127px; top: 78px;}
.description {font-size: 1.1em; width: 105px;}
.recogmission {padding-left:6px; width:226px; clear:both;}
.textBlock {padding:40px 0 0 6px;}
.newSearch {display: block; padding-top:4px;}
