/* Calendar: a Javascript class for Mootools that adds accessible and unobtrusive date pickers to your form elements <http://electricprism.com/aeron/calendar> */
/* Experimental CSS for Calendar (navigation: 1), Copyright (c) 2007 Aeron Glemann <http://electricprism.com/aeron> */

input.calendar,
select.calendar {
	width: 80px;
	
}

button.calendar {
	background: url(calendar-icon.gif);
	border: 0;
	cursor: pointer;
	position:absolute;
	top:0px;
	left:100px;
	float: left;
	height: 20px;
	margin: 0 0 0 0;
	width: 20px;
}
button.calendar:hover,
button.calendar.active {
	background-position: 0 20px;
}

div.calendar {
	background: url(calendar.png);
	height: 278px;
	padding: 4px;
	width: 164px;
}	
	div.calendar * {
		margin: 0;
		padding: 0;
	}	
	div.calendar div {
		background-repeat: no-repeat;
		background-position: 8px 8px;
		cursor: move;
		height: 278px;
		overflow: hidden;
		position: relative;
		width: 164px;
	}	
	div.calendar.january div { background-image: url(calendar/jan.jpg); }	
	div.calendar.february div { background-image: url(calendar/feb.jpg); }	
	div.calendar.march div { background-image: url(calendar/mar.jpg); }	
	div.calendar.april div { background-image: url(calendar/apr.jpg); }	
	div.calendar.may div { background-image: url(calendar/may.jpg); }	
	div.calendar.june div { background-image: url(calendar/jun.jpg); }	
	div.calendar.july div { background-image: url(calendar/jul.jpg); }	
	div.calendar.august div { background-image: url(calendar/aug.jpg); }	
	div.calendar.september div { background-image: url(calendar/sep.jpg); }	
	div.calendar.october div { background-image: url(calendar/oct.jpg); }	
	div.calendar.november div { background-image: url(calendar/nov.jpg); }	
	div.calendar.december div { background-image: url(calendar/dec.jpg); }	
	
	/* 
	We won't be using the caption element traditionally
	We have to make sure it doesn't take up space in the browser and offset the other elements
	Unfortunately position: absolute is not supported by all browsers for table-caption
	IEX only responds to line-height
	*/
	
	div.calendar caption {
		color: #808080;
		height: 0%;
		line-height: 0;
	}
	div.calendar caption a {
		cursor: pointer;
		display: block;
		height: 25px;
		overflow: hidden;
		position: absolute;
		text-indent: -100px;
		top: 0;
		width: 23px;
		z-index: 200;
	}
	div.calendar caption a.prev {
		background-image: url(calendar-prev.png);
		left: 0;
	}
	div.calendar caption a.next {
		background-image: url(calendar-next.png);
		right: 0;
	}
	div.calendar caption a:hover {
		background-position: 0 25px;
	}
	div.calendar caption span.month {
		bottom: 8px;
		font: normal 11px Arial, Helvetica, sans-serif;
		position: absolute;
		right: 10px;
		z-index: 100;
	}
	
	/* 
	IEX won't work if all the children of the caption element are absolutely positioned
	Since we can't just leave the year un-positioned, we will have to hide it
	(Remarkably this actually works in IEX)
	*/
	
	div.calendar caption span.year {
		display: none;
	}

	div.calendar table {
		border: 0;
		border-collapse: collapse;
		border-spacing: 0;
		margin: 143px 10px 0 7px;
	}
	div.calendar tbody {
		cursor: default;
	}
	div.calendar td {
		border: 0;
		color: #FFF;
		font: normal 9px Arial, Helvetica, sans-serif;
		height: 21px;
		text-align: right;
		vertical-align: bottom;
		width: 21px;
	}
	div.calendar td.active,
	div.calendar td.hover {
		background: url(calendar-active.gif);
		color: #25A8C2;
		cursor: pointer;
	}
	div.calendar td.invalid {
		background: url(calendar-invalid.gif);
		color: #DA2727;
	}
	div.calendar td.valid {
		color: #808080;
		cursor: pointer;
	}
	div.calendar td.inactive {
		background: url(calendar-inactive.gif);
		color: #808080;
	}
	div.calendar thead {
		display: none;
	}
