.overlay {
	opacity: 0;
	-moz-opacity: 0;
	filter: alpha(opacity=0);
}

#kinship-wrapper {
	position: fixed;
	/*top: 20px;
	left: -6px;*/
	bottom:59px;
	z-index: 1000;
	margin-left: 30px;
	margin-left: 100%;
	opacity: 0;
	-moz-opacity: 0;
	filter: alpha(opacity=0);
	width: 780px;
	height: 629px;
	padding-left: 24px;
}

#kinship-left-col {
	position: absolute;
	background: url('../resources/layout/kinship_filter_bg.jpg');
	width: 134px;
	height: 424px;
	display: inline-block;
	vertical-align: bottom;
	top: 205px;
	left: 24px;
	overflow: visible;
}

#roof {
	background: url('../resources/layout/kinship_filter_top.png') no-repeat;
	width: 158px;
	height: 40px;
	position: absolute;
	top:-33px;
	left: -24px;
}

#kinship-menu-title {
	background: url('../resources/layout/kinship_filter_title.png') center no-repeat;
	width: 100%;
	height: 26px;
	margin: 0 auto;
	padding: 25px 0;
	border-bottom: #6d625c 1px solid;
}

#kinship-menu {
	margin: 0;
	padding: 0;
}

#kinship-menu li {
	list-style-position: inside;
	list-style-type: none;
	list-style-image: url('../resources/layout/kinship_bullet.png');
	border-bottom: #6d625c 1px solid;
	padding-left: 10px;
}

#kinship-menu li.active {
	list-style-image: url('../resources/layout/kinship_bullet_on.png');
}

#kinship-menu li a:link,
#kinship-menu li a:active,
#kinship-menu li a:hover,
#kinship-menu li a:visited {
	display: inline-block;
	padding-top: 15px;
	padding-bottom: 5px;
	color: black;
	text-decoration: none;
}

#kinship-menu li.active a:link,
#kinship-menu li.active a:active,
#kinship-menu li.active a:hover,
#kinship-menu li.active a:visited {
	color: #eed88d;
}
#kinship_close_btn{
	background-image: url('../resources/layout/close_btn_shadow.png');
	width: 25px;
	height: 25px;
	position: absolute;
	right: -17px;
	top: 17px;
	left: 720px;
	cursor:pointer;
}
#kinship-right-col {
	position: absolute;
	background: url('../resources/layout/kinship_board.png');
	width: 607px;
	height: 564px;
	display: inline-block;
	vertical-align: bottom;
	left: 143px;
	left:60px;
	padding: 65px 23px 0;
}
#kinship_btn_bg{
	/*background: url('../resources/layout/btn_deco.png') no-repeat;
	width: 624px;
	height: 115px;
	position: absolute;
	z-index: 1021;
	top: 36px;
	left: 15px;*/
}

#kinships {
	width: 380px;
	margin:auto;
	background: url('../resources/layout/btn_deco.png') no-repeat;
	width: 624px;
	height: 115px;
	position: absolute;
	z-index: 1021;
	top: 36px;
	left: 15px;
}

#kinships .kinship {
	display: inline;
}

#kinships .kinship a {
	display:inline-block;
	width: 70px;
	height: 34px;
	margin: 10px;
}
#kinship-chan,#kinship-lee,#kinship-ng,#kinship-intro{
	position:absolute;
}
#kinship-chan{
	left: 227px;
	top: 44px;
}
#kinship-lee{
	left: 342px;
	top: 44px;
}
#kinship-ng{
	left: 456px;
	top: 44px;
}
#kinship-intro{
	left: 94px;
	top: 45px;
	width: 90px;
}
#kinships #kinship-intro.kinship a{
	width:90px;
	margin:10px 0;
}
#kinship-chan a {
	background: url('../resources/layout/chan_btn.png');
	background-repeat: no-repeat;
}
.sc #kinship-chan a {
	background: url('../resources/layout/chan_btn_sc.png');
}
.en #kinship-chan a {
	background: url('../resources/layout/chan_btn_en.png');
}
#kinship-chan.active a, #kinship-chan a:active {
	background-position: right ;
}

#kinship-lee a {
	background: url('../resources/layout/lee_btn.png');
	background-repeat: no-repeat;
}
.en #kinship-lee a {
	background: url('../resources/layout/lee_btn_en.png');
}
#kinship-lee.active a, #kinship-lee a:active {
	background-position: right ;
}

#kinship-ng a {
	background: url('../resources/layout/ng_btn.png');
	background-repeat: no-repeat;
}
.sc #kinship-ng a {
	background: url('../resources/layout/ng_btn_sc.png');
}
.en #kinship-ng a {
	background: url('../resources/layout/ng_btn_en.png');
}
#kinship-ng.active a, #kinship-ng a:active {
	background-position: right ;
}

#kinship-intro a {
	background: url('../resources/layout/intro_btn.png');
	background-repeat: no-repeat;
}
.en #kinship-intro a {
	background: url('../resources/layout/intro_btn_en.png');
}
#kinship-intro.active a, #kinship-intro a:active {
	background-position: right ;
}

#note_paper {
	position: absolute;
	right: 30px;
	top: 70px;
	display: block;
	width: 114px;
	height: 126px;
	background: url('../resources/layout/note_paper_s.jpg');
	z-index: 1;
}

#note_paper:link,
#note_paper:active,
#note_paper:hover,
#note_paper:visited {
	text-decoration: none;
	color: black;
}

#note_paper #note_title {
	text-align:center;
	margin-top: 10px;
	margin-bottom: 5px;
}

#note_paper #note_content {
	margin: 0 9px;
	line-height:20px;
	font-size: 12px;
	height: 80px;
	overflow:hidden;
	text-align:center;
	color: #666;
}

#note_paper_large {
	position: absolute;
	/*display: none;*/
	width: 436px;
	height: 471px;
	padding-left: 6px;
	padding-bottom: 4px;
	left: 112px;
	background: url('../resources/layout/note_paper_bg.png') no-repeat;
	z-index: 1020;

	/* new added */
	top: 125px;
	overflow:hidden;
}

#note_paper_large #close_paper {
	position: absolute;
	right: 0;
}
#note_paper_large #close_paper:link,
#note_paper_large #close_paper:active,
#note_paper_large #close_paper:hover,
#note_paper_large #close_paper:visited {
	font-size: 30px;
	text-decoration: none;
	color: black;
}

#note_paper_large #note_title {
	font-size: 26px;
	margin: 21px 20px 20px 20px;
	text-align: center;
}

#note_paper_large #note_content {
	font-size: 15px;
	padding: 0 25px;
	line-height: 23px;
	line-height: 1.8em;
	width:376px;
}
.en #note_paper_large #note_content {
	line-height: 1.6em;
}
#note_paper_large #note_content_block{
	position: relative;
}
#note_paper_large #note_content_wrap {
	overflow-x: hidden;
	overflow-y: auto;
	width: 470px;
	height: 394px;
}
.generation .col-1, .generation .col-2, .generation .col-3 {
	display:inline-block;
	vertical-align: middle;
}

#generations {
	position: absolute;
	top: 122px;
	display: none;
}


#generations .col-1 {
	width: 100px;
	color: #ceccc0;
	padding: 20px 10px;
}

.generation-prev {
	border-top: 1px dashed #ceccc0;
	border-bottom: 1px dashed #ceccc0;
}

.generation, .generation-next {
	border-bottom: 1px dashed #ceccc0;
}

.generation .col-2 {
	width: 130px;
	text-align: center;
}

.generation .col-3 {
	width: 295px;
	padding: 20px 20px 20px 30px;
}

.generation .col-2 .board {
	position: relative;
	background: url('../resources/layout/ancestors_board.png') center no-repeat;
	width: 30px;
	height: 70px;
	margin: 0 auto;
	padding: 22px 20px;
	font-size: 28px;
	line-height: 33px;
	color: #d7be90;
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

.generation .col-2 .board .text-shadow {
	display:none;
	filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='2', MakeShadow='true', ShadowOpacity='0.5');
}
.generation .col-2 .related-content {
	font-size: 14px;
}
.generation .col-2 .related-content .related-title {
	margin: 8px auto;
}

.chart .gen:first-child {
	border-top: 1px dashed #ceccc0;
}

.chart .gen {
	color: #ceccc0;
	border-bottom: 1px dashed #ceccc0;
	padding-left: 10px;
	padding-bottom: 5px;
}

.chart-wrapper {
	height: 507px;
	overflow-y:scroll;
	position: relative;
}


#ng-chart #ng-image {
	position: absolute;
	margin-left: 52px;
	z-index:10001;
}

#ng-chart .chart {
	position: absolute;
	top: 0;
	width: 100%;
	height: 800px;
}

#ng-chart #row-gen8 { padding-top: 19px; }
#ng-chart #row-gen9 { padding-top: 82px; }
#ng-chart #row-gen10 { padding-top: 17px; }
#ng-chart #row-gen11 { padding-top: 84px; }
#ng-chart #row-gen16 { padding-top: 74px; }
#ng-chart #row-gen17 { padding-top: 24px; }
#ng-chart #row-gen18 { padding-top: 34px; }
#ng-chart #row-gen19 { padding-top: 102px; }
#ng-chart #row-gen20 { padding-top: 84px; }