/*
 *	General protection fault
 */
@media screen {
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li, b, u, i, center,
fieldset, form, label, legend, caption,
table, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-size: 100%; background: transparent; }
body { background: #FFFFFF; }
ul, ol, li { list-style: none; }

/*
 * IE Bullshit
 */
#wrapper {
    zoom: 1; /* IE6 gets hasLayout */
	}
#content {
    *height: auto !important; /* IE6 min-height hack */
    *height: 650px; /* IE6 min-height hack */
	}

/*
 * Layout styles
 */
#wrapper {
	position: relative;
    margin: 133px 40px 0 336px;
    min-width: 650px;
	}
#content {
    position: relative;
    background: #F7F0DE url('/xviball/images/ending.png') no-repeat center bottom;
	border: 1px solid #ECD4A9;
	padding: 40px 3em 150px 3em;
    min-height: 650px;
    z-index: 2;
	}
#content h1 {
    background: url('/xviball/images/header_line.png') no-repeat center 1.2em;
    height: 90px;
    }

#content ul li:before {
    content: '— ';
    }
#content ul li ul li:before {
    content: '— ';
    }
#content ul li ul li {
    margin-left: 1.5em;
    }
#nav {
	background: url('/xviball/images/paper_nav.jpg') no-repeat center top;
	position: absolute;
	left: -336px;
	top: 45px;
	width: 336px;
	height: 621px;
    }
#nav_bottom {
	background: url('/xviball/images/paper_nav_bottom.png') no-repeat center bottom;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 336px;
	height: 16px;
	}
#paper_header {
	background: url('/xviball/images/paper_header.jpg') no-repeat left bottom;
	position: absolute;
	left: -336px;
	top: -133px;
    width: 835px;
    height: 183px;
    z-index: -1;
	}
#paper_top {
	background: url('/xviball/images/paper_top.png') no-repeat bottom right;
    /*_background: none; *//* IE6 dirty AlphaImageLoader hack for PNG-24 with Alpha-channel support *//* */
    /*_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/paper_top.png', sizingMethod='crop');*/
	width: 481px;
	height: 235px;
	position: absolute;
	right: -32px;
	top: -120px;
    z-index: -1;
	}
#paper_bottom {
	background: url('/xviball/images/paper_bottom.jpg') no-repeat bottom;
	width: 182px;
	height: 661px;
	position: absolute;
	left: -155px;
	bottom: 260px;
    z-index: -1;
	}
#footer {
    padding-top: 2em;
    margin-bottom: 1em;
	text-align: right;
	}

/* Corners */
span.tl, span.tr, span.bl, span.br { width: 100px; height: 100px; position: absolute; background-image: url(../images/corners_all.png); z-index: -1; }
span.tl { top: 0; left: 0; background-position: top left; }
span.tr { top: 0; right: 0; background-position: top right; }
span.bl { bottom: 0; left: 0; background-position: bottom left; }
span.br { bottom: 0; right: 0; background-position: bottom right; }

/* Menu */
#nav ul {
	margin: 110px 0 0 115px;
    padding-bottom: 252px;
	}
.announce #nav ul { background: url('/xviball/images/engraving_announce.png') no-repeat center 280px; }
.dress_code #nav ul { background: url('/xviball/images/engraving_dress_code.png') no-repeat center 280px; }
.program #nav ul { background: url('/xviball/images/engraving_program.png') no-repeat center 280px; }
.dances_descriptions #nav ul { background: url('/xviball/images/engraving_program.png') no-repeat center 280px; }
.time_and_place #nav ul { background: url('/xviball/images/engraving_time_and_place.png') no-repeat center 280px; }
.contacts #nav ul { background: url('/xviball/images/engraving_contacts.png') no-repeat center 280px; }
#nav ul li {
    padding-left: 30px;
    white-space: nowrap;
	}
#nav li.active {
    background: url('/xviball/images/arrow_menu.png') no-repeat left center;
	}

/*
 * Content styles
 */

/* Fonts */
body {
	font-family: "Book Antiqua", "Georgia", serif;
    font-size: 1.2em;
	line-height: 1.5em;
	color: #333433;
    font-weight: normal;
	}
#nav {
    font-size: 1.2em;
    font-weight: bold;
    line-height: 40px;
    }
#content {
    text-align: justify;
    }
h1 {
    font-size: 2em;
    margin: 0 0 0.5em 0;
    text-align: center;
    color: #6A291A;
	}
h2 {
    font-size: 1.8em;
	}
h3, h4, h5 {
    font-size: 1.3em;
	}
h2, h3, h4, h5 {
    color: #333433;
    clear: both;
	margin: 1.3em 0 0.5em 0;
    white-space: nowrap;
    *white-space: normal;
	}
p {
	margin: 0.5em 0;
    }

/* Links */
#nav a {
    color: #6A291A;
    text-decoration: none;
    }
#nav .active a {
    color: #333433;
    text-decoration: none;
    }
#nav a:hover {
    color: #636463;
    }
#content a {
	border-bottom: 1px solid #030403;
	color: #030403;
	padding: 0 0 2px;
	text-decoration: none;
	}
#content p iframe {
    overflow: hidden;
    }
#content a:hover {
    color: #636463;
	border-bottom: 1px solid #636463;
    }
#footer, #footer a, #footer a span {
    color: #636463;
	text-decoration: none;
    white-space: nowrap;
    line-height: 1.2em;
    }
  }

@media handheld {
body {
    font-family: "Verdana", sans-serif;
    font-size: 12px;
    line-height: 1.2em;
    background-color: #F4E8D2;
    color: #000;
    }
h1 {
    font-size: 1.6em;
    }
h2 {
    font-size: 1.4em;
    }
h3, h4, h5 {
    font-size: 1.2em;
    }
div {
    float: none !important;
    }
#nav{
    position: absolute;
    top: 0;
    }
#content {
    margin-top: 9em;
    }
#footer {
    display: none;
    }
}

@media print {
body {
	font-family: "Verdana", sans-serif;
    font-size: 12px;
	line-height: 1.2em;
    background-color: #FFF;
	color: #000;
	}
div {
    float: none !important;
    }
#nav, #footer {
    display: none;
    }
#wrapper:before, #wrapper:after {
    content: "Адрес этого документа в интернете: http://projects.goldenforests.ru/xviball/announce/";
}
/*h2 {*/
    /*page-break-before: always;*/
    /*}*/
}

