html, body {
	height: 100%;
	margin: 0;
	min-height: 100%;
	padding: 0;
}

body {
	font-family: 'ＭＳ Ｐゴシック', 'ＭＳ ゴシック', 'ヒラギノ角ゴ Pro W3', Osaka, Osaka-等幅, 平成角ゴシック, Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 18px;
	word-wrap: break-word;
}

a {
	text-decoration: none;
}

h1,h2,h3,h4,h5,h6 {
	font-size: 18px;
	font-weight: bold;
	line-height: 18px;
	margin: auto auto 0.75em 0.5em;
	text-align: left;
	text-decoration: none;
}

#top h1 span {
}

hr {
	border: 0;
	width: 90%;
	height: 1px;
	margin: 1em auto 1em auto;
}

img {
	border: 0;
	display: block;
	margin: auto;
	padding: 0;
}

p {
	margin: 1em 1em auto 1em;
	text-align: left;
}

ul,li {
	margin: 0;
}

#THEWRAPPER {
	background: transparent;
	display: table;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

#RETURNOFTHEWRAPPER {
	background: transparent;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

/* Top
----------------------------------------------- */
#top,#topLogo {
	height: 50px; /* Change this to set how tall the top area is. */
	width: 950px;
	margin: auto;
	overflow: hidden;
}

#topLogo h1 a {
	display: block;
	cursor: pointer;
	height: 50px;
	width: 199px;

}

#top h1 {
	display: inline;
	float: left;
	font-size: 20px;
	line-height: 50px;
	text-decoration: none;
}

.menuLinks {
	font-size: 16px;
	float: right;
	margin-right: 1em;
	line-height: 50px;
	text-align: right;
	right: 0;
	position: relative;
}

.menuLinks a {
	display: inline;
}

/* Upload form
----------------------------------------------- */
#uploadFormArea{
	width: 950px;
	margin: 5px auto 0 auto;
	padding: 0.75em 0 0.75em 0;
	overflow: hidden;
}

#uploadFormArea h2 {
	cursor: pointer;
	display: inline;
	height: 1.75em;
	line-height: 1.75em;
	margin-bottom: 0;
}

#uploadFormArea form, .flash {
	margin: 0.5em 1em 0.5em 1em;
}

.flash {
	margin-bottom: 0.5em;
}

input {
	font-size: 1em;
	line-height: 1em;
	margin: 0;
}

input.box {
	width: 165px;
	margin: 0;
	padding: 3px;
}

.inputButan {
	line-height: 1em;
	padding: 3px;
	margin: 0;
}

#searchInput, .uploadInputs {
	display: block;
	height: 1.5em;
}

/* Search form
----------------------------------------------- */
#searchForm {
	float: right;
	margin: -0.5em 1em 0 1em;
	padding: 0;
}

/* Gallely
----------------------------------------------- */
#mainWrapper { /* Can set a background image in the area where the gallery is located. */
	background: transparent;
	display: block;
	font-family: 'ＭＳ Ｐゴシック', '小塚ゴシック Pro R', Helvetica, Arial, sans-serif;
	margin: auto;
	width: 950px;
	/*overflow: hidden;*/
}

#centerContainer {
	background: transparent;
	display: block;
	margin: auto;
}

#BREADCRUMBS {
	border-bottom: 1px #aaa dashed;
	font-size: 14px;
	line-height: 26px;
	margin: auto auto 1.5em auto;
	padding-bottom: 0.75em;
}

#BREADCRUMBS a {
	border-bottom: 1px #00e solid;
	text-decoration: none;
}

#BREADCRUMBS .breadDivider {
	font-size: 18px;
}

/* Pagination Stuff
----------------------------------------------- */
.paginationArea {
	display: block;
	margin: 0.5em auto 0.5em auto;
	text-align: left;
}

.paginationNumbers {
	float: left;
	font-size: 16px;
	line-height: 22px;
	margin: 0.25em 0 0.25em 0;
	width: 865px;
}

.arrowArea {
	display: inline;
	font-size: 22px;
	height: 24px;
	width: 26px;
	text-decoration: none;
}

.arrowAreaBlank {
	visibility: hidden;
}

.pageNumberArea,.pageNumberAreaCurrent{
	display: inline;
	font-size: 16px;
	height: 22px;
	padding: 2px 6px 2px 6px;
	text-decoration: none;
}

.pageNumberArea:hover {
	text-decoration: underline;
}

.pageNumberAreaCurrent {
	border: 0;
	font-weight: bold;
}

/* perPage
------------------------------------------------*/
.perPage {
	float:right;
	margin: 0.5em 0 0.5em 0.5em;
}

.paginationArea:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

/* Footer
----------------------------------------------- */
#footer {
	display: block;
	line-height: 18px;
	text-align: center;
	margin: auto;
}

#footer span {
}

/* Popup Borx
----------------------------------------------- */
.dataMessage {
	display: block;
	padding: 0.5em 1em 0.75em 1em;
	position: absolute;
	text-align: left;
	z-index: 2;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
}

.dataMessage a:hover {
	border-bottom: 0px;
	text-decoration: none;
}

.dataMessage textarea, .dataMessage input {
	font-size: 1em;
	line-height: 1em;
	width: 100%;
	overflow: hidden;
}

.dataMessage h4 {
	font-size: 1.35em;
	font-weight: normal;
	line-height: 1.25em;
}

.dataMessage p, .dataMessage h4 {
	margin: 0.5em 0 0.5em 0;
	padding: 0 0 0.35em 0;
}

.dataMessage h4 .dataMessageField {
	display: block;
	margin-bottom: 0.35em;
}

.dataMessage table td {
	font-size: 1.25em;
	padding: 0.25em;
}
.dataMessage table .dataMessageField {
	width: 25%;
	text-align: right;
}

.dataMessage a, .dataMessage .popupLinx {
	font-size: 22px;
	line-height: 22px;
	padding: 0;
}

.dataMessage .popupClose, .dataMessage .popupLinx {
	display: block;
	float: right;
	margin-top: 0.45em;
	text-align: right;
}

.dataMessage .popupLinx {
	margin-top: 0;
}







/* Gallely
----------------------------------------------- */
.gallelyCellWrap, .gallelyCellFolder {
	display: inline-block;
	width: 314px; /* 150px = 162 px (add 19 to your thumbnail size) */
	margin: 3px 0 3px 0;
	text-align: center;
	vertical-align: top;
}

.gallelyCellWrap, x:-moz-any-link {
	display: -moz-inline-stack;
	float: left;
	width: 314px; /* 150px = 162px (add 12) */
	margin: 2px 2px 2px auto;
}

.gallelyCellWrap x:-moz-any-link, X:default {
	display: inline-block;
	width: 314px; /* 150px = 162 px (add 12) */
	margin: 3px auto 3px auto;
}

.gallelyCell { /* Entire cell for both image and captions */
	display: block;
	width: 292px; /* 150px = 150px (add 0) */
	margin: auto;
	padding: 10px;
	position: relative;
	vertical-align: top;
	/*overflow: hidden;*/
}

.imageContainer { /* Image thumbnail area */
	display: table-cell;
	width: 160px; /* 150px = 150px (add 0) */
	height: 160px; /* 150px = 150px (add 0) (height, not width of the thumbnail size I guess) */
	margin: auto;
	text-align: center;
	vertical-align: middle;
}

.captionContainer {
	display: block;
	float: right;
	width: 130px;
	height: 100%;
	margin-top: -160px;
}

.captionText { /* Container for captions */
	display: block;
	margin: auto;
	min-height: 1px;
	padding: 3px;
	word-wrap: break-word;
}

.captionText h3, .captionText p, .captionText .fileData, .captionText .captionComment, .captionText .uploadedBy, .captionText .otherMeta {
	display: block;
	font-size: 12px;
	overflow: hidden;
	width: 100%;
	line-height: 12px;
	text-align: left;
	margin: auto auto 3px auto;
}

.captionText h3 {
	font-size: 14px;
	font-weight: normal;
	height: 16px;
	line-height: 16px;
	margin-bottom: 2px;
	text-decoration: none;
}

.captionText .fileName {
	cursor: pointer;
	height: 12px;
	margin-bottom: 2px;
	line-height: 12px;
}

.captionText .fileData {
	display: block;
	height: 12px;
	line-height: 12px;
}

.captionText .captionComment {
	height: 84px;
	line-height: 12px;
	vertical-align: middle;
}

.captionText .otherMeta {
	height: 24px;
	line-height: 12px;
}

.captionText .otherMeta span{
	display: block;
	text-align: right;
}

/* Image Types
----------------------------------------------- */
.normalImage {
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
}

.gallelyFolder {
	border: 3px #fd56eb solid;
	font-weight: bold;
}

/* Image Overlay
----------------------------------------------- */
.imageWrap {
}

.imageOverlay a {
	background: transparent url('./images/thumb_borders/blank.png') top center no-repeat; /* Don't touch this */
	cursor: pointer;
	display: block;
	width: 160px; /* 150px = 150px (add 0) */
	height: 160px; /* 150px = 150px (add 0) (height, not width of the thumbnail size I guess) */
	position: absolute;
	z-index: 1;
}

/*.imageOverlay, x:-moz-any-link {
	margin-left: -80px;  150px = -75px  (thumbnail size divided by -2) 
}*/

.imageOverlay a:hover {
	background: transparent url('./images/thumb_borders/border.png') top center no-repeat;
/* UNCOMMENT THE ABOVE LINE IF YOU WANT THE HOVER-OVER BORDER  REMEMBER TO DO THIS IN IE6.css*/
	/* Use your own image overlay (remember to make a GIF version for IE6 and make the edit in ie6.css) */
	opacity: 0.75; /* Change how visible it is (doesn't work in IE) */
}

/* Popup Borx
----------------------------------------------- */
.dataMessage {
	width: 425px;
}

.rightPopup {
	margin-left: -310px;
}

.bottomPopup {
	bottom: 0;
}