/**
 * Ministry of Foreign Affairs, Islamic Republic of Iran
 * 
 * @author vahid darnandi <vahid.master1990@yahoo.com>
 * @copyright rights reserved.
 * @date July 20, 2011
 * @revision 442
 * Last Update: 1390-10-09 By Ahmad Yousefi
 * 
 */
html {
    color: #000;
}
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, td {
    margin: 0;
    padding: 0;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
fieldset, img, a img {
    border: 0;
}
address, caption, cite, code, dfn, em, strong, th, var, optgroup {
    font-style: inherit;
    font-weight: inherit;
}
del, ins {
    text-decoration: none;
}
caption, th {
    text-align: right;
}
h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: normal;
}
q:before, q:after {
    content: '';
}
abbr, acronym {
    border: 0;
    font-variant: normal;
}
sup {
    vertical-align: baseline;
}
sub {
    vertical-align: baseline;
}
legend {
    color: #000;
}
input, button, textarea, select, optgroup, option {
    font-family: Tahoma;
    font-size: 11px;
    font-style: inherit;
    font-weight: inherit;
}
input, button, textarea, select {
    font-size: 100%;
}
a {
    text-decoration: none;
    color: #005691;
}
a:hover {
    color: #910000;
}
a:active, a:focus {
    outline: none;
}
button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
}
:-moz-any-link:focus {
    outline: none;
}
ul {
    list-style: none;
}
/*****************************************/

.TDW_zero {
    line-height: 0 !important;
    font-size: 0 !important;
    padding: 0 !important;
}
.TDW_overflow {
    overflow: hidden; 
    zoom: 1; 
    position: relative;
}

.TDW_clr {
    clear: both !important;
}

.TDW_hidden {
    display: none !important;
}
.TDW_rtl {
    direction: rtl !important;
    text-align: right !important;
}
.TDW_ltr {
    direction: ltr !important;
    text-align: left !important;
}

/*****************************************/

body {
    background-color: #1e4070;
    padding: 0;
    margin: 0;
    color: #333;
    text-align: center;
    font-family: Tahoma;
    font-size: 11px;
    line-height: 1.5em;
    cursor: default;
}

#TDW_wrapper {
    width: 990px;
    margin: 0 auto;
    direction: rtl;
    text-align: right;
}

#TDW_container_wrapper {
    background: #fff url(images/bgs.png) 0 0 repeat-y;
    margin-bottom: 5px;
}
#TDW_container {
    width: 980px;
    margin: 0 auto;
    direction: rtl;
}
#TDW_container_bottom {
    height: 12px;
    background: url(images/bgs.png) -1980px 0 no-repeat;
}

#TDW_homelink {
    width: 90px;
    height: 90px;
    position: absolute;
    right: 40px;
    top: 17px;
}

#TDW_exMenu_wrapper {
    position: absolute;
    top: 89px;
    left: 0;
    height: 32px;
    background: url(images/hloops.png) 0 -80px repeat-x; 
    zoom: 1; 
}
#TDW_exMenu_left {
    background: url(images/hloops.png) 0 0 no-repeat;
}
#TDW_exMenu_right {
    height: 32px;
    width: 800px;
    background: url(images/hloops.png) right -160px no-repeat;
}
#TDW_exMenu {
    width: 800px;
    height: 32px;
    list-style: none;
    left: 19px !important;
    direction:rtl;
}
#TDW_exMenu a {
    color: #fff;
    position: relative;
    text-align: right;
}
#TDW_exMenu a:hover, #TDW_exMenu a.mainMenuParentBtnFocused {
    color: #1e4070; 
    text-shadow: -1px 1px 0 rgba(255,255,255,0.3); 
    background: #a6bee1 url(images/exmenu_over.png) 0 0 repeat-x;
    top: -1px;
    padding-bottom: 12px;
}
.TDW_menu_home_link {
    background: url(images/icon_home.png) no-repeat right 7px;
    padding-right: 22px;
}
.TDW_menu_home_link:hover {
    background: url(images/icon_home_over.png) right 7px no-repeat !important;
}

#TDW_latestnews_wrapper {
    margin-bottom: 10px;
}
#TDW_latestnews_head_wrapper {
    height: 28px;
    background: #74a0de url(images/hloops.png) 0 -268px repeat-x;
}
#TDW_latestnews_head_left {
    height: 28px;
    background: url(images/hloops.png) 0 -240px no-repeat;
}
.TDW_latestnews {
    width: 50%;
    float: right;
    padding-top: 6px;
}
#TDW_latestnews_border {
    background: url(images/dot.gif) 0 0 repeat-y;
}
.TDW_latestnews_list {
    list-style: none;
    background: url(images/bullet_plus_red.png) 99% 8px no-repeat;
    padding: 2px 14px 5px 5px;
}
.TDW_latestnews_text {
    padding: 3px 0 0;
    text-align: justify;
}

#TDW_facilities_wrapper {
    margin-bottom: 10px;
}
.TDW_facility_btns {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 13px;
    background: #748091 url(images/facilities_btns.png) 0 0 no-repeat;
    cursor: pointer;
}
.TDW_facility_btns:hover {
    background-color: #a01717;
}
#TDW_facility_next {
    left: 5px;
    background-position: 0 -20px;
}
#TDW_facility_next:hover {
    background-position: 0 -60px;
}
.TDW_facility_next_disable {
    background-position: 0 -100px !important;
    cursor: default !important;
    background-color: #666 !important;
}
#TDW_facility_prev {
    left: 28px;
    background-position: 0 0px;
}
#TDW_facility_prev:hover {
    background-position: 0 -40px;
}
.TDW_facility_prev_disable {
    background-position: 0 -80px !important;
    cursor: default !important;
    background-color: #666 !important;
}
#TDW_facilities {
    position: relative; 
    zoom: 1; 
    overflow: hidden;
}
.TDW_facility {
    width: 180px;
    float: right;
    background: url(images/dot.gif) 0 0 repeat-y;
}
.TDW_facility_inner {
    padding: 5px;
}
.TDW_facility_img {
    padding: 0 0 7px;
}
.TDW_facility_link {
    font-weight: bold;
}
.TDW_facility_text {
    padding: 2px 0 0;
    text-align: justify;
}
.TDW_facility_more {
    padding: 5px 0;
    text-align: left;
}
.TDW_facility_more a {
    float: left;
    display: block;
    padding-right: 6px;
    background: url(images/bullet_arrow_red.gif) right 8px no-repeat;
}
#TDW_sitemap_wrapper {
    float:right;
}
.TDW_sitemap 
{
    float: left; 
    zoom: 1; 
    padding: 5px 5px 0 28px;
}
.TDW_sitemap_title {
    font-weight: bold;
    color: #9b2b28;
    padding-bottom: 5px;
}
.TDW_sitemap_ul {
    padding: 0 5px 15px;
    list-style: none;
}
.TDW_sitemap_ul li {
    background: url(images/bullet_arrow_gray.gif) right 7px no-repeat;
    padding-right: 7px;
}

#TDW_footer_wrapper {
    color: #d2d9e2;
    padding: 10px 30px 20px 0; 
    text-shadow: -1px 1px 0 rgba(0,0,0,0.4); 
}

#TDW_minister {
    margin-bottom: 5px;
}
#TDW_minister_content {
    background: url(images/hloops.png) 0 -296px repeat-x;
}
#TDW_minister_image {
    height: 147px;
    position: relative;
    background: url(images/side_minister_image.png) 7px 7px no-repeat;
}
#TDW_minister_ul {
    position: absolute;
    bottom: 10px;
    right: 165px;
    list-style: none;
}
#TDW_minister_ul li {
    background: url(images/bullet_plus_gray.png) right 8px no-repeat;
    padding: 2px 10px 2px 0;
}

#TDW_search {
    background: #85abe2 url(images/boxes.png) -968px 0 no-repeat; 
    zoom: 1; 
    margin-bottom: 10px;
}
#TDW_search_bottom {
    background: url(images/boxes.png) -1210px bottom no-repeat; 
    zoom: 1; 
}
#TDW_search_content {
    padding: 7px;
    background: url(images/search_input.png) 62px 7px no-repeat;
    height: 27px;
    position: relative;
}
#TDW_search_input {
    position: absolute;
    border: none !important;
    top: 9px;
    right: 14px;
    width: 140px;
    height: 20px;
    color: #555;
    background: none;
}
.TDW_search_more {
    position: absolute;
    top: 7px;
    right: 184px;
    border-right: 2px solid #aac4eb;
    width: 50px;
    font-size: 10px;
    display: block;
    color: #fff;
    padding: 0 5px 5px 0;
    line-height: 1.1em;
    cursor: pointer;
}
.TDW_search_button {
    line-height: 1.1em;
    position: absolute;
    top: 6px;
    right: 184px;
    border-right: 2px solid #aac4eb;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: transparent;
    width: 50px;
    font-size: 10px;
    padding: 0 5px 5px 0;
    line-height: 1em;
    background-color: transparent;
    color: #FFFFFF;
    height: 10px;
}

.TDW_sidebox {
    margin-bottom: 10px;
    background: url(images/boxes.png) -726px 0 no-repeat;
    padding-top: 10px;
}
.TDW_sidebox_content {
    background: #e5edf7 url(images/sidebox_bg.png) 0 bottom repeat-x;
    padding: 7px 5px 0;
    text-align: justify;
    font-size: 11px;
}
.TDW_sidebox_content img {
    padding: 0 0 0 5px;
}
.TDW_sidebox_more {
    text-align: left;
    padding: 3px 0 0 2px;
}
.TDW_sidebox_ul {
    list-style: none;
}
.TDW_sidebox_ul li {
    background: url(images/bullet_arrow_gray.gif) right 10px no-repeat;
    padding: 3px 7px 3px 0;
}

.TDW_gallery {
    height: 196px;
    background: url(images/side_gallery_bg.png) 0 0 no-repeat;
    margin-bottom: 10px;
}
.TDW_gallery_inner {
    padding: 15px 12px 0;
}
#TDW_gallery_sidebox {
    position: relative;
    width: 220px;
    height: 140px;
    margin: 0 auto;
    overflow: hidden;
}
#TDW_slideshow_gallery_controls {
    height: 30px;
    position: relative;
    width: 220px;
    margin: 0 auto;
}
.TDW_slideshow_news_image {
    border: none;
}

.TDW_links {
    margin-bottom: 10px;
    background: url(images/boxes.png) -242px 0 repeat-y;
}
.TDW_links_top {
    background: url(images/boxes.png) 0 0 no-repeat;
}
.TDW_links_bottom {
    background: url(images/boxes.png) -484px bottom no-repeat;
    padding: 14px 5px; 
    zoom: 1; 
}
.TDW_links_content {
    text-align: center;
}
.TDW_links_content img {
    margin: 0 auto;
    padding: 14px 0 0;
}


#TDW_top_wrapper {
    height: 48px;
    position: relative;
    background: #dbe5f4 url(images/hloops.png) 0 -112px repeat-x; 
    zoom: 1; 
    z-index: 50;
}
#TDW_top_left {
    height: 48px;
    background: url(images/hloops.png) 0 -32px no-repeat;
}
#TDW_top_right {
    position: relative;
    height: 48px;
    background: url(images/hloops.png) right -192px no-repeat;
}
#TDW_topMenu {
    height: 48px;
    list-style: none;
    right: 10px !important;
}
#TDW_topMenu li {
    background: url(images/menu_sep.png) 0 0 no-repeat;
    padding-left: 3px;
}
#TDW_topMenu a {
    color: #4e4e4e; 
    text-shadow: -1px 1px 0 rgba(255,255,255,0.5); 
    position: relative;
    text-align: right;
    padding: 19px 8px 18px !important;
    background: url(images/menu_over.png) 0 -200px repeat-x;
    font-weight: bold;
}
#TDW_topMenu a:hover, #TDW_topMenu a.mainMenuParentBtnFocused {
    color: #fff; 
    text-shadow: -1px 1px 0 rgba(0,0,0,0.4); 
    background-color: #88a7e7;
    background-position: 0 0;
}

#TDW_language_wapper {
    position: absolute;
    left: 5px;
    top: 23px;
    width: 125px;
    z-index: 10; 
    zoom: 1; 
    height: 25px;
    overflow: hidden;
}
#TDW_language_active {
    display: block;
    float: left;
    height: 24px;
    background: #a01d21 url(images/language_bg.png) right 0 no-repeat;
    color: #fff;
}
#TDW_language_active_text {
    padding: 2px 15px 0;
    display: block;
}
#TDW_languages {
    list-style: none;
    background-color: #d2e0f2;
    top: 26px;
    -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
}
.TDW_language {
    background-color: #edf3fa; 
    text-shadow: 1px 1px 0 rgba(255,255,255,0.7); 
    margin-bottom: 2px;
    color: #333;
    border: 1px solid #c2c9d2;
    border-left: none;
    border-top: none;
    cursor: pointer;
}
.TDW_language a {
    padding: 3px 10px;
    display: block;
}

.TDW_section_wrapper {
    margin-bottom: 10px;
}

.TDW_section_head {
    height: 73px;
    background: #709cdc url(images/test_title.png) 0 0 no-repeat;
}
.TDW_section_inner {
    padding: 45px 190px 0 50px;
}
.TDW_section_inner ul {
    height: 28px;
    background-color: #5a7fb6;
    -moz-border-radius: 5px 5px 0 0;
}
.TDW_section_inner li {
    float: right;
    padding: 6px 5px 4px;
    margin-right: 5px;
}
.TDW_section_inner a {
    color: #d2e0f2;
}
.TDW_section_inner a:hover {
    color: #fff;
    border-bottom: 1px dotted #d2e0f2;
}
.TDW_section_body {
    background: url(images/test_title.png) 0 -73px no-repeat;
    padding: 15px 10px 0;
}
.TDW_section_links li {
    margin-bottom: 7px;
    background: #fafafa;
}
.TDW_section_links img {
    padding: 4px;
    background: #eee;
    border: 1px solid #e9e9e9;
    margin-left: 7px;
}
.TDW_section_links_desc {
    padding: 5px 0;
}

.TDW_post_wrapper {
    margin-bottom: 20px;
}
.TDW_post_head {
    height: 28px;
    background: #6394da url(images/hloops.png) 0 -443px no-repeat;
}
.TDW_post_head_right {
    height: 28px;
    background: url(images/content_title_right.png) right 0 no-repeat; 
    zoom: 1; 
}
.TDW_post_head_text {
    padding: 5px 40px 0 0;
    color: #fff;
    font-weight: bold; 
    text-shadow: -1px 1px 0 rgba(0,0,0,0.4); 
}
.TDW_post_body {
    padding: 0 7px 15px;
    line-height: 1.9em;
    font-size: 12px;
    text-align: justify;
}
.TDW_post_body img{float:right;}	
.TDW_post_highlight {
    background-color: rgb(238, 243, 250);
    border: 1px solid #a5c9f3;
    padding: 6px 10px;
    margin-bottom: 10px;
}
.TDW_post_image {
    float: left;
    margin-right: 10px;
    padding: 4px;
    background-color: #eee;
}
.TDW_album_highlight {
    background-color: #f7f7f7;
    border: 1px solid #eee;
    padding: 6px 10px;
    margin-bottom: 10px;
}
#TDW_album_wrapper {
    padding-bottom: 20px;
}
#TDW_album_body {
    padding: 1px 10px 0 1px;
}
.TDW_album_headline {
    margin: 0px 10px 20px 0px;
    float: left;
}
#TDW_album_title {
    font-weight: bold;
    padding: 15px 0 10px; 
    text-shadow: -1px 1px 0 rgba(255,255,255,0.8); 
}
#TDW_album_desc {
    text-align: justify;
}
.TDW_album_thumbs {
    text-align:right;	
}
.TDW_album_thumb {
    width: 100px;
    min-height: 100px;
    border: 1px solid #eaeaea;
    display: -moz-inline-stack;
    display: inline-block;
    vertical-align: top;
    margin: 6px 0 6px 10px; 
    zoom: 1; 
    _height: 100px;
    text-align: center;
    background: #f2f2f2;
    line-height: 1.5em;
    position: relative;
    cursor: pointer;
}
.TDW_album_thumb img {
    margin: 0 auto 0 auto;
    border: 1px solid #c9c9c9;
    position: absolute;
    left: 5px;
    top: 5px;
    z-index: 1;
}
#TDW_content_wrapper {
    background: #fff url(images/middle_bg.png) 0 0 repeat-y;
}
#TDW_content {
    padding: 6px 11px 0;
}
.TDW_homepage #TDW_post_wrapper {
    width: 720px;
    float: left;
}
#TDW_side_wrapper {
    width: 242px;
    float: right;
}
#TDW_content_top {
    padding: 10px 0;
}

#TDW_content_bottom {
    height: 20px;
    background: url(images/middle_bottom.png) 0 0 no-repeat;
}

#TDW_worldmap {
    width: 720px;
    height: 485px;
    margin: 0 auto;
}

#TDW_slideshow_news_wrapper {
    width: 720px;
    background: #dce6f5 url(images/slideshow_bg_lt.png) 0 0 no-repeat; 
    zoom: 1; 
    margin-bottom: 10px;
}
#TDW_slideshow_news_bottom {
    background: url(images/slideshow_bg_rb.png) right bottom no-repeat;
    padding: 20px 0 0 20px;
}
#TDW_slideshow_news {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative; 
    zoom: 1; 
    height: 271px;
    overflow: hidden;
}
.TDW_slideshow_news_slide {
    width: 700px;
    height: 271px; 
    zoom: 1; 
}
.TDW_slideshow_news_slide span {
    width: 448px;
    height: 267px;
    border: 1px solid #e9f0f9;
    display: block;
    float: left;
    background-color: #e0e9f6;
}
.TDW_slideshow_news_image {
    float: left;
    border: 1px solid #fff; 
    zoom: 1; 
    width: 450px;
    height: 265px;
}
.TDW_slideshow_gallery_image {
    width: 220px;
    height: 140px;
    margin: 0 auto;
}
.TDW_slideshow_news_info {
    width: 237px;
    float: right;
    padding-top: 40px;
}
.TDW_slideshow_news_title {
    background: #fff url(images/boxes.png) -1689px 0 repeat-y;
}
.TDW_slideshow_news_title_top {
    background: url(images/boxes.png) -1452px 0 no-repeat;
}
.TDW_slideshow_news_title_bottom {
    background: url(images/boxes.png) -1926px bottom no-repeat;
    padding: 7px 10px 9px 7px;
    text-align: right;
    font-weight: bold;
    color: #4b4a43;
    line-height: 1.8em; 
    zoom: 1; 
}
.TDW_slideshow_news_text {
    padding: 5px 7px 0 6px;
    color: #313131;
    text-align: justify;
}
.TDW_slideshow_news_more {
    padding: 7px 0 0;
    text-align: left;
}
.TDW_slideshow_news_more a {
    display: inline;
    background: url(images/bullet_arrow_gray.gif) right 6px no-repeat;
    padding-right: 7px;
}
#TDW_slideshow_news_controls {
    height: 30px;
    position: relative;
    width: 450px;
    float: left;
}
.TDW_slideshow_news_player {
    width: 448px;
    height: 267px;
    border: 1px solid #e9f0f9;
    display: block;
    float: left;
    background-color: #e0e9f6;
}
.TDW_slideshow_titles {
    padding: 7px 1px 0 0;
    font-size: 10px;
    line-height: 1.2em;
}

#TDW_slideshow_wrapper {
    width: 480px;
    background: url(images/bgs.png) -4589px 0 repeat-y;
}
#TDW_slideshow_top {
    height: 9px;
    background: url(images/bgs.png) -5069px 0 no-repeat;
}
#TDW_slideshow_bottom {
    height: 9px;
    background: url(images/bgs.png) -5069px -9px no-repeat;
}
#TDW_slideshow {
    position: relative;
    overflow: hidden;
    height: 237px; 
    zoom: 1; 
}
#TDW_slideshow_pic {
    width: 448px;
    height: 198px;
    margin: 6px auto 10px;
    background: #aaa;
    position: relative;
    border: 1px solid;
    border-color: #868686 #767676 #767676 #868686;
    overflow: hidden;
}
#TDW_slideshow_hint {
    position: relative;
    width: 448px;
    top: -21px;
    color: #444;
}
#TDW_slideshow_controls {
    position: relative;
    width: 448px;
    right: 16px;
}
.TDW_slideshow_dots {
    float: right;
    padding: 0 15px 0 0;
    list-style: none; 
    zoom: 1; 
    height: 20px;
    overflow: hidden;
}
.TDW_slideshow_dots_dot {
    width: 12px;
    height: 12px;
    background-color: #85868f;
    border: 2px solid #9798a0;
    cursor: pointer; 
    zoom: 1; 
    position: absolute;
}
#TDW_slideshow_gallery_controls .TDW_slideshow_dots_dot {
    width: 6px;
    height: 6px;
}
.TDW_slideshow_dots_dot:hover {
    background-color: #6192d9;
    border-color: #79a2df;
}
.TDW_slideshow_dots_active {
    background-color: #ae1414 !important;
    border-color: #c65b5b !important;
    cursor: default;
}
.TDW_slideshow_dots_waiting {
    background: url(images/slideshow_loading.gif) 0 0 no-repeat;
}
#TDW_slideshow_archive {
    display: block;
    float: left;
    width: 69px;
    height: 18px;
    margin: -2px auto 0 0;
    background: #c4c4c4 url(images/bgs.png) -5069px -29px no-repeat;
}
#TDW_slideshow_archive:hover {
    background-position: -5138px -29px;
}
#TDW_slideshow_pic_mover {
    zoom: 1; 
    background: #f9f9f9;
}



/* Menu */
/* ----[ LINKS ]----*/

/* all menu links */
.nav a {
    text-decoration: none;
    display: block;
    padding: 10px 8px;
}
#subMenusContainer a {
    display: block;
    padding: 5px 8px 8px;
}
/* Just main menu links --[for non-javascript users this applies to submenu links as well]*/
.nav a {
    margin: 0;
    float: left;
}

/* Just sub menu links */
#subMenusContainer a, .nav li li a {
    text-align: right;
}

/* All menu links on hover or focus */
.nav a:hover, .nav a:focus, #subMenusContainer a:hover, #subMenusContainer a:focus, #subMenusContainer a.subMenuParentBtnFocused {
    background-color: #fff;
    color: #333;
}
/* sub menu links on hover or focus */
#subMenusContainer a:hover, #subMenusContainer a:focus, #subMenusContainer a.subMenuParentBtnFocused, .nav li a:hover {
    background-color: #5782bf;
    color: #fff;
}

/* Parent Sub Menu Links ---[javascript users only]*/
.subMenuParentBtn {
    background: url(../img/arrow_right.gif) right center no-repeat;
}

/* Parent Sub Menu Links on hover or focus ---[javascript users only]*/
.subMenuParentBtnFocused {
    background: url(../img/arrow_right_over.gif) right center no-repeat;
}

/* Parent Main Menu Links ---[javascript users only]*/
.mainMenuParentBtn {
    background: url(../img/arrow_down.gif) right center no-repeat;
}

/* Parent Main Menu Links on hover or focus ---[javascript users only]*/
.mainMenuParentBtnFocused {
    background: url(../img/arrow_down_over.gif) right center no-repeat;
}

/* ----[ OLs ULs, LIs, and DIVs ]----*/

/* Submenu Outer Wrapper - each submenu is inside a div with this class - javascript users only */
.smOW {
    display: none;
    position: absolute;
    overflow: hidden; /*the 2px left & right padding lets you have a 1px border  	  on the ul or ol inside since overflow is set to hidden*/
    padding: 0 3px 7px;
    margin: 0 0 0 -2px;
}


/* All ULs and OLs */
.nav, .nav ul, .nav ol, #subMenusContainer ul, #subMenusContainer ol {
    padding: 0;
    margin: 0;
    list-style: none;
    line-height: 1em;
}

/* All submenu OLs and ULs */
.nav ol, .nav ul, #subMenusContainer ul, #subMenusContainer ol {
    /*border around submenu goes here*/
    background: #fff; /*border:1px solid #cbcbcc;*/
    -moz-box-shadow: -1px 2px 3px rgba(0, 0, 0, 0.3);
    right: 0;
}


/* List items in main menu --[for non-javascript users this applies to submenus as well]  */
.nav li {
    /*great place to use a background image as a divider*/
    display: block;
    list-style: none;
    position: relative;
    float: left;
}

#subMenusContainer li {
    list-style: none;
    border-bottom: 1px dotted #ddd;
}

/* main menu ul or ol elment */
.nav {
    display: block;
    position: absolute;
    list-style: none;
    margin: 0 0 0 0;
    z-index: 5;
    top: 0px;
    text-align: center;
    display: block;
}

#subMenusContainer {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: visible;
    z-index: 1000000000;
}


/* --------------------------[ The below is just for non-javscript users ]--------------------------*/
.nav li li {
    float: none;
}

.nav li li a {
    /* Just submenu links*/
    position: relative;
    float: none;
}

.nav li ul {
    /* second-level lists */
    position: absolute;
    width: 10em;
    margin-left: -1000em; /* using left instead of display to hide menus because display: none isn't read by screen readers */
    margin-top: 2.2em;
}

/* third-and-above-level lists */
.nav li ul ul {
    margin: -1em 0 0 -1000em;
}
.nav li:hover ul ul {
    margin-left: -1000em;
}

/* lists nested under hovered list items */
.nav li:hover ul {
    margin-left: 0;
}
.nav li li:hover ul {
    margin-left: 10em;
    margin-top: -2.5em;
}

/* extra positioning rules for limited noscript keyboard accessibility */
.nav li a:focus + ul {
    margin-left: 0;
    margin-top: 2.2em;
}
.nav li li a:focus + ul {
    left: 0;
    margin-left: 1010em;
    margin-top: -2.2em;
}
.nav li li a:focus {
    left: 0;
    margin-left: 1000em;
    width: 10em;
    margin-top: 0;
}
.nav li li li a:focus {
    left: 0;
    margin-left: 2010em;
    width: 10em;
    margin-top: -1em;
}
.nav li:hover a:focus {
    margin-left: 0;
}
.nav li li:hover a:focus + ul {
    margin-left: 10em;
}
