html,
body {
	height:100%;
}

body {
	font-family: Helvetica, Arial, sans-serif;
	font-weight: 300;
	color: #4D4D4D;
	font-size: 62.5%;
	background: #fff;
}

div.wrapper {
	position: absolute;
	width:100%;
	height:100%;
	min-height:100%;
	z-index:55;
}
nav.slide a {
    display: block;
    width: 23px;
    height: 45px;
    text-indent: -9999px;
}
nav.slide {
    display: none;
    position: absolute;
    margin: -371px 0 0 -481px;
    top: 50%;
    left: 50%;
        width: 959px;
    height: 674px;
    z-index: 10;
}
nav.slide a#action-prev-page {
    position: absolute;
    top: 50%;
    left: 0px;
    margin-top: -22px;
    background: url(../img/prev.jpg);
}
nav.slide a#action-next-page {
    position: absolute;
    top: 50%;
    right: 0px;
    margin-top: -22px;
    background: url(../img/next.jpg);
}
nav.slide a#action-zoom-out {
    position: absolute;
    top: 0px;
    left: 50%;
    width: 123px;
    height: 34px;
    margin-left: -62px;
    background: url(../img/zoomout.jpg);
}
div.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 674px;
    margin: -330px 0 0 -452px;
   /* border: 1px solid #dfdfdf;*/
    overflow: hidden;
    z-index: 50;
}
nav.thumbgrid {
    display: block;
    width: 900px;
    height: 674px;
    margin: -1px 0 0 -1px;
    z-index: 5;
    background-image: url(../img/home.jpg);
}
section.full {
    width: 900px;
    height: 674px;
    background: #fff;
    position: absolute;
    top: 0px;
    left: 0;
    z-index: 4;
    display: none;
}
nav.thumbgrid > a {
    display: block;
    float: left;
    width: 448px;
    height: 337px;
    border: 1px solid #fff;
    overflow: hidden;
    z-index: 60;
}
nav.thumbgrid > a:hover {
    /*border: 1px solid #dfdfdf;*/
}
footer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 20px;
    margin: 350px 0 0 -450px;
    z-index: 10000;
    text-align: right;
}
.page-display{
    text-indent: -9999px;
    width: 900px;
    height: 674px;
}
ul{
    padding: 0;
    margin: 0;
    list-style-type: none;
}
#cell1 .page-display{
    background:url(../img/1.jpg) no-repeat;
    
}
#cell2 .page-display{
    background:url(../img/2.jpg) no-repeat;
}
#cell3 .page-display{
    background:url(../img/3.jpg) no-repeat;
}
#cell4 .page-display{
    background:url(../img/4.jpg) no-repeat;
}
#window-loading {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #FFF;
}
#window-loading .loading-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 142px;
    margin: -71px 0 0 -75px;
    text-align: center;
}
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}
 
.clearfix {
    display: block;
}
 
html[xmlns] .clearfix {
    display: block;
}
 
* html .clearfix {
    height: 1%;
}


/* webkit ------ */

@media screen and (max-device-width: 780px) {

    body.mobile html,body {
        height:auto;
    }

    body.mobile div.wrapper {
        position:relative;
        height:auto;
    }

    body.mobile div.wrapper nav.thumbgrid {
        display:none;
    }

    body.mobile div.wrapper div.frame {
/*      position:relative; */
        top:0;
        left:0;
        margin:0 auto;
        height:auto;
        border:none;
        overflow:visible;
    }

    body.mobile div.wrapper div.frame section.full {
        display:none;
        position:relative;
        top:0;
        left:0;
        margin:0;
        height:674px;
        overflow:hidden;
    }

    body.mobile div.wrapper div.frame section.full.mobile {
        display:block;
        margin:10px;
        /*border:solid 1px #000;*/
    }

    body.mobile div.wrapper div.frame section.full.mobile img.img {
        display:none;
    }

    body.mobile div.wrapper div.frame section.full.mobile div.page-display {
        z-index:20;
        position:absolute;
        top:0px;
        left:0px;
        width:900px;
        height:674px;
    }

    body.mobile div.wrapper nav.slide {
        display:none;
    }

    body.mobile div.wrapper footer {
        display:none;
    }

    body.mobile #qpreloader,
    body.mobile #qLoverlay {
        display:none !important;
    }

}

/* ---- webkit --> iphone ---- */

@media screen and (max-device-width: 560px) {
    div.wrapper div.frame {
        margin:0;
    }
}

/* blackberry ------ */

@media screen and (max-width: 650px) {

    html,body {
        height:auto;
    }

    div.wrapper {
        position:relative;
        height:auto;
    }

    div.wrapper nav.thumbgrid {
        display:none;
    }

    div.wrapper div.frame {
        position:relative;
        top:0;
        left:0;
        margin:0 auto;
        height:auto;
        border:none;
        overflow:visible;
    }

    div.wrapper div.frame section.full {
        display:none;
        position:relative;
        top:0;
        left:0;
        margin:0;
        height:674px;
        overflow:hidden;
    }

    div.wrapper div.frame section.full.mobile {
        display:block;
        margin:10px;
        border:solid 1px #000;
    }

    div.wrapper div.frame section.full.mobile img.img {
        display:none;
    }

    div.wrapper div.frame section.full.mobile div.page-display {
        z-index:20;
        position:absolute;
        top:0px;
        left:0px;
        width:900px;
        height:674px;
    }

    div.wrapper nav.slide {
        display:none;
    }

    div.wrapper footer {
        display:none;
    }

    #qpreloader,
    #qLoverlay {
        display:none !important;
    }

}