/*
	 CSS-Tricks Example
	 by Chris Coyier
	 http://css-tricks.com
*/

* {
    margin: 0px;
    padding: 0px;
}

body {
    font-family: Geneva, Arial, Helvetica, sans-serif;
    line-height: 15px;
}
html, body, #bg, #bg table, #bg td, #cont {
    height:100%;
    width:100%;
    overflow:hidden;
}
.h21 {
    font-size: 15px;
    line-height: 43px;
    color: #333333;
    font-weight: bold;
    text-shadow: 0px 1px 1px #FFF;
    background-image: url(images/header.png);
    background-repeat: repeat;
    background-position: center top;
    height: 43px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 20px;
    position: relative;
    margin: 0px;
}
.h22 {
    font-size: 15px;
    line-height: 43px;
    color: #333333;
    font-weight: bold;
    text-shadow: 0px 1px 1px #FFF;
    background-image: url(images/header2.png);
    background-repeat: repeat;
    background-position: center top;
    height: 43px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 20px;
    position: relative;
    margin: 0px;
}
.h2s {
    font-size: 15px;
    line-height: 43px;
    color: #333333;
    font-weight: bold;
    text-shadow: 0px 1px 1px #FFF;
    background-image: url(images/headers.png);
    background-repeat: repeat;
    background-position: center top;
    height: 43px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 20px;
    position: relative;
    margin: 0px;
}
.clear {
    clear: both;
}

a.eng {
    position: absolute;
    background-image: url(images/us.png);
    background-repeat: no-repeat;
    background-position: center center;
    height: 25px;
    width: 25px;
    text-indent: -99999px;
    outline: none;
    top: 10px;
    right: 40px;
}
a.ru {
    position: absolute;
    background-image: url(images/ru.png);
    background-repeat: no-repeat;
    background-position: center center;
    height: 25px;
    width: 25px;
    text-indent: -99999px;
    outline: none;
    top: 10px;
    right: 40px;
}

a.close {
    position: absolute;
    background-image: url(images/close.png);
    background-repeat: no-repeat;
    background-position: center center;
    height: 25px;
    width: 25px;
    text-indent: -99999px;
    outline: none;
    top: 10px;
    right: 10px;
}

.message {
    display:block;
    font-size: 12px;
    margin-top: 15px;
    margin-bottom: 10px;

}


#bg div {
    height:200%;
    left:-50%;
    position:absolute;
    top:-50%;
    width:200%;
}

#bg td {
    text-align:center;
    vertical-align:middle;
}

#bg img {
    margin:0 auto;
    min-height:50%;
    min-width:50%;
}

#cont {
    position:absolute;
    top:0;
    left:0;
    z-index:70;
    overflow:auto;
}
.box2 {
    position: absolute;
    left: 55%;
    top: 50%;

}
.about {
    width: 197px;
    height: 198px;
    padding: 0px;
    background-image: url(images/about.png);
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    left: 60%;
    top: 50%;
    margin-left: -99px;
    /* Half the width of the DIV tag which is 50 pixels */
    margin-top: -99px;
    /* Half the height of the DIV tag which is also 50 pixels */
}

.lock {
    width: 197px;
    height: 198px;
    padding: 0px;
    background-image: url(images/lock.png);
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    left: 35%;
    top: 50%;
    margin-left: -99px;
    /* Half the width of the DIV tag which is 50 pixels */
    margin-top: -99px;
    /* Half the height of the DIV tag which is also 50 pixels */
}

.form {
    width: 387px;
    padding: 0px;
    position: absolute;
    left: 50%;
    top: 50%;
    display: none;
    /* Half the width of the DIV tag which is 388 pixels */
    margin-left: -194px;

    /* Half the height of the DIV tag which is also 216 pixels */
    margin-top: -108px;

    margin-right: auto;
    margin-bottom: 0;
}
.forms {
    width: 587px;
    padding: 0px;
    position: absolute;
    left: 50%;
    top: 50%;
    display: none;
    /* Half the width of the DIV tag which is 388 pixels */
    margin-left: -294px;

    /* Half the height of the DIV tag which is also 216 pixels */
    margin-top: -188px;

    margin-right: auto;
    margin-bottom: 0;
}


.form2 {
    width: 800px;
    padding: 0px;
    position: absolute;
    left: 50%;
    top: 50%;

    /* Half the width of the DIV tag which is 388 pixels */
    margin-left: -264px;

    /* Half the height of the DIV tag which is also 216 pixels */
    margin-top: -308px;

    margin-right: auto;
    margin-bottom: 0;
}


.form3 {
    width: 387px;
    padding: 0px;
    position: absolute;
    left: 50%;
    top: 50%;
    /* Half the width of the DIV tag which is 388 pixels */
    margin-left: -64px;

    /* Half the height of the DIV tag which is also 216 pixels */
    margin-top: -108px;

    margin-right: auto;
    margin-bottom: 0;
}
.show {
    display: inline;
}

.box {
    position: absolute;
    left: 40%;
    top: 50%;

}
.box3 {
    position: absolute;
    left: 50%;
    top: 50%;

}
.formcont {
    margin: 0px;
    overflow: hidden;
    position: relative;
}
.formfooter {
    background-image: url(images/footer.png);
    background-repeat: no-repeat;
    background-position: center top;
    margin: 0px;
    padding: 0px;
    height: 13px;
}

.formfooter2 {
    background-image: url(images/footer2.png);
    background-repeat: no-repeat;
    background-position: center top;
    margin: 0px;
    padding: 0px;
    height: 13px;
}
.formfooters {
    background-image: url(images/footers.png);
    background-repeat: no-repeat;
    background-position: center top;
    margin: 0px;
    padding: 0px;
    height: 13px;
}
#signin_menus {
    height: 400px;
    border:none;
    text-align:left;
    margin: 0px;
    color:#333;
    font-size:12px;
    background-image: url(images/form-bgs.png);
    background-repeat: repeat-y;
    background-position: center bottom;
    overflow: hidden;
    padding-top: 0px;
    padding-right: 20px;
    padding-bottom: 0px;
    padding-left: 20px;
}

#signin_menu {
    height: 190px;
    border:none;
    text-align:left;
    margin: 0px;
    color:#333;
    font-size:12px;
    background-image: url(images/form-bg.png);
    background-repeat: repeat-y;
    background-position: center bottom;
    overflow: hidden;
    padding-top: 0px;
    padding-right: 20px;
    padding-bottom: 0px;
    padding-left: 20px;
}

#signin_menu2 {
    height: 650px;
    border:none;
    text-align:left;
    margin: 0px;
    color:#333;
    font-size:12px;
    background-image: url(images/form-bg2.png);
    background-repeat: repeat-y;
    background-position: center bottom;
    overflow: hidden;
    padding-top: 0px;
    padding-right: 20px;
    padding-bottom: 0px;
    padding-left: 20px;
}

#signin_menu input[type=text], #signin_menu input[type=password] {
    float: right;
    -moz-border-radius:4px;
    -webkit-border-radius:4px;
    border:1px solid #C6C6C6;
    font-size:13px;
    margin:5px 0px 5px;
    *margin:0px;
    padding:5px;
    width:180px;
}
#signin_menu input[type=file]
{  
    float: right;
    -moz-border-radius:4px;
    -webkit-border-radius:4px;
    border:1px solid #C6C6C6;
    font-size:13px;
    margin:5px 0px 5px;
    *margin:0px;
    padding:5px;
    width:192px;
}
#signin_menu p {
    margin:10px 0 10px;
    *margin:5px 0 5px;
    clear: both;
}
#signin_menu a {
    color:#6AC;
}
#signin_menu label {
    margin:10px 0px 0px;
    float: left;
    font-weight:normal;
}
#signin_menu p.remember {
    float: right;
    clear: none;
    padding:0;
}
#signin_menu a.forgot {
    margin-top: 10px;
    float: left;
    display: inline;
    line-height: 24px;
    color: #666666;
    text-decoration: none;
    background-image: url(images/reset.png);
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 18px;
    font-weight: bold;
}

.remember input {
    -moz-border-radius:4px;
    -webkit-border-radius:4px;
    background:#39d url('images/bg-btn.png') repeat-x scroll 0 0;
    border:1px solid #B5B5B5;
    color:#222;
    text-shadow: 0px 1px 1px #FFF;
    *filter: Shadow(Color=#FFFFFF,
        Direction=180,
        Strength=1);
    padding:4px 10px 5px;
    font-size:11px;
    margin: 0 0px 0 3px;
    font-weight:bold;
}

#signin_submit::-moz-focus-inner {
    padding:0;
    border:0;
}
#signin_submit:hover, #signin_submit:focus {
    background-position:0 -5px;
    cursor:pointer;
}

#focus-stealer      { position: absolute; left: -9999px; }





#nav a {
    color: #333;
}
#nav {
    margin: 0;
    padding: 7px 6px 0;
    background: #7d7d7d url(images/gradient.png) repeat-x 0 -110px;
    line-height: 100%;
    font-size: 13px;
    border-radius: 1em;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;

    -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
    -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
}
#nav li {
    padding: 0 0 8px;
    float: left;
    position: relative;
    list-style: none;
}


/* main level link */
#nav a {
    font-weight: bold;
    color: #e7e5e5;
    text-decoration: none;
    display: block;
    padding:  8px 20px;
    margin: 0;

    -webkit-border-radius: 1.6em;
    -moz-border-radius: 1.6em;

    text-shadow: 0 1px 1px rgba(0,0,0, .3);
}
#nav a:hover {
    background: #000;
    color: #fff;
}

/* main level link hover */
#nav .current a, #nav li:hover > a {
    background: #666 url(images/gradient.png) repeat-x 0 -40px;
    color: #444;

    -webkit-box-shadow: 0 1px 1px rgba(0,0,0, .2);
    -moz-box-shadow: 0 1px 1px rgba(0,0,0, .2);
    box-shadow: 0 1px 1px rgba(0,0,0, .2);

    text-shadow: 0 1px 0 rgba(255,255,255, 1);
}

/* sub levels link hover */
#nav ul li:hover a, #nav li:hover li a {
    background: none;
    border: none;
    color: #666;

    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}
#nav ul a:hover {
    background: #0078ff url(images/gradient.png) repeat-x 0 -100px !important;
    color: #fff !important;
    border-radius: 7px;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;

    text-shadow: 0 1px 1px rgba(0,0,0, .1);
}

/* dropdown */
#nav li:hover > ul {
    display: block;
}

/* level 2 list */
#nav ul {
    display: none;

    margin: 0;
    padding: 0;
    width: 185px;
    position: absolute;
    top: 29px;
    left: 0;
    background: #ddd url(images/gradient.png) repeat-x 0 0;
    border: solid 1px #b4b4b4;
    z-index:1;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;

    -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .3);
    -moz-box-shadow: 0 1px 3px rgba(0,0,0, .3);
    box-shadow: 0 1px 3px rgba(0,0,0, .3);
}
#nav ul li {
    float: none;
    margin: 0;
    padding: 0;
}

#nav ul a {
    font-weight: normal;
    text-shadow: 0 1px 0 #fff;
}

/* level 3+ list */
#nav ul ul {
    left: 181px;
    top: -3px;
}

/* rounded corners of first and last link */
#nav ul li:first-child > a {
    -webkit-border-top-left-radius: 9px;
    -moz-border-radius-topleft: 9px;

    -webkit-border-top-right-radius: 9px;
    -moz-border-radius-topright: 9px;
}
#nav ul li:last-child > a {
    -webkit-border-bottom-left-radius: 9px;
    -moz-border-radius-bottomleft: 9px;

    -webkit-border-bottom-right-radius: 9px;
    -moz-border-radius-bottomright: 9px;
}

/* clearfix */
#nav:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}
#nav {
    display: inline-block;
}
html[xmlns] #nav {
    display: block;
}

* html #nav {
    height: 1%;
}
