html {
    overflow: hidden;
}

body {
    margin: 0;
    font-family: sans-serif;
}

div#map {
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 27px;
}

div#footer {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 27px;
    width: 100%;
    padding: 0;
    z-index: 100;
    background-color: #ffffff;
    background-image: url('bg.png');
    background-repeat: repeat-x;
    font-size: 12px;
}

fieldset {
    padding: 0;
    border: none;
}

div#footer input#gridref {
    margin: 3px 0 0 0;
    font-size: 12px;
    width: 300px;
    border: solid 1px #cccccc;
    border-right: none;
    height: 17px;
    letter-spacing: 1px;
    padding-left: 2px;
}

div#footer div#submit {
    margin: 3px 0 0 0;
    font-size: 12px;
    position: absolute;
    top: 0;
    left: 303px;
    height: 19px;
    width: 20px;
    border: solid 1px #cccccc;
    border-left: none;
    background-color: #ffffff;
    background-image: url('search.png');
    background-repeat: no-repeat;
    cursor: pointer;
}

ul#Menu {
    list-style-type: none;
    position: absolute;
    right: 0px;
    bottom: 0;
    margin: 0;
    padding: 0;//2px 0 5px 0;
    height: 27px;
    line-height: 27px; 
}

ul#Menu li {
    display: block;
    float: left;
    padding: 0 6px 0 6px;
    border-top: none;
    border-right: none;
    border-bottom: none;
    height: 27px;
    border-left: solid 1px #cccccc;
}

ul#Menu li:hover {
    cursor: pointer;
}

div#footer ul#gridSquareColorMenu {
    margin: 0;
    list-style-type: none;
    display: none;
    padding: 0px;
    border: solid 1px #cccccc;
    position: absolute;
    bottom: 26px;
    right: 174px;
    background-color: #ffffff;  
    width: 128px;
}

div#footer ul#gridSquareColorMenu li {
    margin: 2px;
    float: left;
    width: 15px;
    height: 15px; 
    border: solid 1px #eaeaea;
}

div#footer ul#gridSquareColorMenu li:hover {
    border: solid 1px #000000;
    cursor: pointer;
}

div#footer ul#selectMenu {
    margin: 0;
    list-style-type: none;
    display: none;
    padding: 0px;
    border: solid 1px #cccccc;
    position: absolute;
    bottom: 26px;
    right: 118px;
    background-color: #ffffff;
}

div#footer ul#selectMenu li {
    padding: 5px 15px 5px 15px;
    display: block;
}

div#footer ul#selectMenu li:hover {
    background-color: #eaeaea;
    cursor: pointer;
}

div#footer ul#mapMenu {
    margin: 0;
    list-style-type: none;
    display: none;
    padding: 0px;
    border: solid 1px #cccccc;
    position: absolute;
    bottom: 26px;
    right: 44px;
    background-color: #ffffff;
}

div#footer ul#mapMenu li {
    padding: 5px 15px 5px 15px;
    display: block;
}

div#footer ul#mapMenu li:hover {
    background-color: #eaeaea;
    cursor: pointer;
}

div#footer ul#gridMenu {
    margin: 0;
    list-style-type: none;
    display: none;
    padding: 0px;
    border: solid 1px #cccccc;
    position: absolute;
    bottom: 26px;
    right: 0px;
    background-color: #ffffff;
}

div#footer ul#gridMenu li {
    padding: 5px 15px 5px 15px;
    display: block;
}

div#footer ul#gridMenu li:hover {
    background-color: #eaeaea;
    cursor: pointer;
}  

div#footer ul#gisMenu {
    margin: 0;
    list-style-type: none;
    display: none;
    padding: 0px;
    border: solid 1px #cccccc;
    position: absolute;
    bottom: 26px;
    right: 174px;
    background-color: #ffffff;
}

div#footer ul#gisMenu li {
    padding: 5px 5px 5px 5px;
    display: block;
}