/* 
 * Body, exta
 */

html, body{
    overflow: hidden; /* Hide window scrollbars, as they brake gallery scrolling */
}

body {
    margin: 0px;
    padding: 0px;
}


/*
 * Header box 
 */

div#header{
    width: 930px;
    height: 32px;
    margin: 0px auto;
    padding-top: 28px;
    padding-left: 65px;
}

div#header h1{
    padding: 0px;
    margin: 0px;
}

span#header_brand{
    font-size: 26px;
}


/* 
 * Content box and content during loading box
 */

div#content,
div#content_preloading
{
    width: 930px;
    height: 565px;
}

div#content{
    position: relative;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

div#content_preloading{
    position: fixed;
    top: 70px;
    z-index: 20;
    display: none;
}

span.content_corner_tl,
span.content_corner_tr, 
span.content_corner_bl, 
span.content_corner_br{
    position: absolute;
    width: 13px;
    height: 13px;
    display: block;
    /* margin-bottom: -1px this is for IE */
    background-repeat: no-repeat;
}

span.content_corner_tl{
    top: 0px;
    left: 0px;
    background-image: url(../images/content-corner-tl.gif);
}

span.content_corner_tr{
    top: 0px;
    right: 0px;
    background-image: url(../images/content-corner-tr.gif);
}

span.content_corner_bl{
    bottom: 0px;
    left: 0px;
    background-image: url(../images/content-corner-bl.gif); 
}

span.content_corner_br{
    bottom: 0px;
    right: 0px;
    background-image: url(../images/content-corner-br.gif); 
}


/* 
 * Gallery
 */

/* Gallery switches */

#gallery_switches {
    display: block;
    padding: 17px 25px 17px 25px;
    margin: 0px;
    width: 880px;
    height: 16px;
}

.gallery_switch,
.gallery_switches_label
{
    display: block;
    float: left;
    height: 16px;
    line-height: 16px;
    font-size: 12px;
}

.gallery_switches_label {
    padding-right: 10px;
}

.gallery_switch{
    position: relative; 
    padding-left: 10px;
    padding-right: 10px;
}

.gallery_switch .new_mark{
    font-size: 8px;
    position: relative;
    top: -4px;
    left: 2px;
}


/* Gallery photos */

#gallery_photos_viewport{
    position: relative;
    overflow: auto;  /* Scrollbar is being disabled in js, because we use custom one */
    width: 926px;
    height: 515px;
    margin-left: 2px;
    margin-right: 2px;
}

#gallery_photos{
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 10000px; /*This should be overwritten to correct value on item style attribute */
    padding: 0px;
    margin: 0px;
}

#gallery_photos .gallery_photo,
#gallery_photos .gallery_separator
{
    float: left;
    margin: 0px 2px 0px 2px;
}

#gallery_photos .gallery_separator{
    float: left;
    width: 100px;
}

#gallery_photos img{
    height: 400px;
}



/* Gallery scrollbar */

#gallery_scrollbar {
    display: none; /* Is going to be changed during js scrollbar initialization */
    position: absolute;
    left: 150px;
    bottom: 65px;
    height: 12px;
    width: auto;
    z-index: 10;
}

#gallery_scrollbar_left {
    width: 19px;
    height: 12px;
    background-image: url(../images/scrollbar-left.png); 
    cursor: pointer;
}

#gallery_scrollbar_space {
    position: absolute;
    left: 19px;
    top: 0px;
    width: 588px;
    height: 12px;
    background-image: url(../images/scrollbar-space.png);
    background-repeat: repeat-x;
}

#gallery_scrollbar_right {
    position: absolute;
    left: 607px;
    top: 0px;
    width: 19px;
    height: 12px;
    background-image: url(../images/scrollbar-right.png);
    cursor: pointer;
}

#gallery_scroller {
    position: absolute;
    top: 1px;
    left: -4px;
    height: 10px;
    width: auto;
    cursor: move;
}

#gallery_scroller_left {
    position: relative;
    width: 14px;
    height: 10px;
    z-index: 1;
    background-image: url(../images/scroller-left.png);
}

#gallery_scroller_space {
    position: relative;
    top: -10px;
    left: 14px;
    width: 35px;
    height: 10px;
    background-image: url(../images/scroller-space.png);
    background-repeat: repeat-x;
}

#gallery_scroller_right {
    position: relative;
    top: -20px;
    left: 49px;
    width: 14px;
    height: 10px;
    background-image: url(../images/scroller-right.png);
}


/* Gallery controlls */

#gallery_controls {
    display: none; /* Is changed by js controls initialization script */
    position: absolute;
    bottom: 30px;
    left: 0px;
    width: 50px;
    height: 20px;
    z-index: 10;
    opacity: 0.6;
}

#gallery_play_button {
    width: 14px;
    height: 14px;
    margin-top: 3px;
    margin-left: 32px;
    background-image: url(../images/button-play.png);
    cursor: pointer;
}

.playing#gallery_play_button {
    background-image: url(../images/button-pause.png);
}


/* Site menu */

#site_menu {
    display: block;
    position: absolute;
    bottom: 30px;
    right: 0px;
    width: 90px;
    margin: 0px;
    z-index: 10;
    opacity: 0.6;
    list-style: none;
    text-align: right;
}

.site_menu_topic {
    display: block;
    line-height: 14px;
    margin: 4px 0px 0px 0px;
    padding: 3px 0px 2px 0px;
}

.site_menu_topic a{
    display: block;
    margin-right: 8px;
    font-size: 12px;
}


/* Topic page */

#topic_header{
    height: 40px;
    padding: 5px 25px 5px 25px;
}

#topic_header h2{
    margin-top: 10px;
}

#close_button{
    position: absolute;
    top: 15px;
    right: 15px;
    width: 14px;
    height: 11px;
}

#topic_viewport{
    height: 475px;
    margin: 0px 25px 25px 25px;
    overflow: auto;
}


/* Photo page */

.photo_title{
    padding-top: 8px;
    text-align: center;
    font-size: 15px;
}

#photo_box{
    height: 500px;
    margin-left: auto;
    margin-right: auto;
}

.photo_description{
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.photo_description td {
    padding: 0px 5px 0px 5px;
    font-size: 11px;
}

.photo_description .description {
    padding-top: 3px;
}

/* FOOTER */

div#footer{
    width: 930px;
    margin: 0px auto;
    padding-right: 15px;
    text-align: right;
}

div#footer p{
    font-size: 7pt;
}
