/* 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 {
}

button.calendar {
	background: url(../images/calendar.gif);
	border: 0;
	cursor: pointer;
	float: left;
	height: 20px;
	width: 20px;
}
button.calendar:hover,
button.calendar.active {
	background-position: 0 20px;
}

input.btn { 
  color:#050; 
  font: bold 84% 'trebuchet ms',helvetica,sans-serif; 
  background-color: Gray; 
  color: #FFD700;
  border:1px solid; 
  border-color: #696 #363 #363 #696; 
  width: 70px;
} 

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;
	}

form fieldset {
	border: #E5E5E5 2px solid;
	clear: both;
	margin-bottom: 9px;
	overflow: hidden;
	padding: 9px 18px;
}
form input,
form select {
	border-color: #ACACAC #E1E1E1 #E1E1E1 #ACACAC;
	border-style: solid;
	border-width: 2px;
	float: left;
	font: normal 12px Arial, sans-serif;
	margin-right: 6px;
	width: 125px;
}
form textarea {
	border-color: #ACACAC #E1E1E1 #E1E1E1 #ACACAC;
	border-style: solid;
	border-width: 2px;
	float: left;
	font: normal 12px Arial, sans-serif;
	margin-right: 6px;
	width: 200px;	
}

form.long input, 
form.long select {
	width: 175px;
}
form.short input, 
form.short select {
	width: 75px;
}
form.long input.alternate,
form.long select.alternate,
form.long input.calendar,
form.long select.calendar {
	width: 149px;
}

form.short input.alternate,
form.short select.alternate,
form.short input.calendar,
form.short select.calendar {
	width: 49px;
}

form input {
	padding: 1px 3px;
}

