/* singleton notification area: to be used for adding transient messages */
#MessageArea {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	z-index: 100;
	color: InfoText;
	background-color: InfoBackground;
}

/* Stylish messages ;-) */
div.message {
	position: relative;
	border: 1px solid #ccc;
	color: #003;
	background-color: #eee;
	min-height: 24px;
	padding: .5ex 24px .5ex 40px;
	margin: 1ex 0;
	background-position: 4px 4px;
	background-repeat: no-repeat;
	background-image: url(message-note.png);
}
#MessageArea div.message {margin: 0; border-bottom-width: 3px;}

div.message.error, div.message.err {
	border-color: #c00;
	color: #900;
	background-color: #fcf;
	background-image: url(message-error.png);
}

div.message.warn, div.message.warning {
	border-color: #cc0;
	color: #660;
	background-color: #ffc;
	background-image: url(message-warning.png);
}

div.message.info {background-image: url(message-info.png);}

div.message.mail {background-image: url(message-mail.png);}

div.message a {
	color: inherit;
	background-color: inherit;
	text-decoration: underline;
}

div.message a.close {
	position: absolute;
	top: 0;
	right: 0;
	display: block;
	width: 16px;
	height: 16px;
	text-decoration: none;
	overflow: hidden;
	text-indent: 800em;
	background-position: 0 0;
	background-repeat: no-repeat;
	background-image: url(message-close.png);
	opacity: 0.6
}
div.message a.close:hover {opacity: 1;}

div.message div.debug {
	padding: .5ex 1ex;
	background-color: #ff9;
	margin-right: -20px;
	white-space: pre;
	max-height: 10em;
	overflow: auto;
}
