/* 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.dashboard,
select.dashboard {
	width: 80px;
}

button.dashboard {
	background: url(../images/calendar.gif);
	border: 0;
	height: 15px;
	margin-left: 6px;
	top:0px;
	width: 15px;
}
button.dashboard:hover,
button.dashboard.active {
	background-position: 0 0px;
}

div.dashboard {
	background: url(../images/dashboard.png);
	height: 145px;
	padding: 4px;
	width: 164px;
}	
	div.dashboard * {
		margin: 0;
		padding: 0;
	}	
	div.dashboard div {
		background-repeat: no-repeat;
		background-position: 8px 8px;
		height: 145px;
		overflow: hidden;
		position: relative;
		width: 164px;
	}	
	div.dashboard.january div { background-image: url(dashboard-jan.jpg); }	
	div.dashboard.february div { background-image: url(dashboard-feb.jpg); }	
	div.dashboard.march div { background-image: url(dashboard-mar.jpg); }	
	div.dashboard.april div { background-image: url(dashboard-apr.jpg); }	
	div.dashboard.may div { background-image: url(dashboard-may.jpg); }	
	div.dashboard.june div { background-image: url(dashboard-jun.jpg); }	
	div.dashboard.july div { background-image: url(dashboard-jul.jpg); }	
	div.dashboard.august div { background-image: url(dashboard-aug.jpg); }	
	div.dashboard.september div { background-image: url(dashboard-sep.jpg); }	
	div.dashboard.october div { background-image: url(dashboard-oct.jpg); }	
	div.dashboard.november div { background-image: url(dashboard-nov.jpg); }	
	div.dashboard.december div { background-image: url(dashboard-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.dashboard caption {
		color: #808080;
		height: 0%;
		line-height: 0;
	}
	div.dashboard caption a {
		cursor: pointer;
		display: block;
		height: 25px;
		overflow: hidden;
		position: absolute;
		text-indent: -100px;
		top: 0;
		width: 23px;
		z-index: 200;
	}
	div.dashboard caption a.prev {
		background-image: url(../images/dashboard-prev.png);
		left: 0;
	}
	div.dashboard caption a.next {
		background-image: url(../images/dashboard-next.png);
		right: 0;
	}
	div.dashboard caption a:hover {
		background-position: 0 25px;
	}
	div.dashboard caption span.month {
		bottom: 12px;
		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.dashboard caption span.year {
		display:none;
	}

	div.dashboard table {
		border: 0;
		/*border-collapse: collapse;*/
		border-spacing: 1.5px;
		margin: 4px 7px 0 8px;
	}
	div.dashboard tbody {
		cursor: default;
	}
	div.dashboard td {
		border: 0;
		color: #FFF;
		font: normal 9px Arial, Helvetica, sans-serif;
		height: 19px;
		text-align: right;
		vertical-align: bottom;
		width: 21px;
	}
	div.dashboard td.active {
		background-image: url(../images/i-heart-ny-active.gif);
		background-position:-2px 0px;
		color: #25A8C2;
	}
	div.dashboard td.invalid {
		background-image: url(../images/i-heart-ny-invalid.gif);
		background-position:-2px -2px;
		color: #000;
	}
	div.dashboard td.start {
		background-image: url(../images/i-heart-ny-start.gif);
		background-position:-2px 0px;
	}
	div.dashboard td.end {
		background-image: url(../images/i-heart-ny-start.gif);
		background-position:-2px 0px;
	}
	div.dashboard td.valid {
		color: #000;
		cursor: pointer;
	}
	div.dashboard td.inactive {
		background-image: url(../images/i-heart-ny-inactive.gif);
		background-position:-2px 0px;
		color: #808080;
	}
		div.dashboard td.a_sasion {
		background-color: #8CC93F;
		color: #fff;
	}
	div.dashboard td.b_sasion {
		background-color: #FFD404;
		color: #000;
	}
	div.dashboard td.c_sasion {
		background-color: #F36F52;
		color: #fff;
	}
	div.dashboard td.d_sasion {
		background-color: #42CAF3;
		color: #000;
	}
	div.dashboard td.past {
		background-color:none;
		background-image:none;
		color: #808080;
	}
	div.dashboard td.today {
		background-image:none;
		color: #cc0000;
		font-size:11px;
		font-weight:bold;
	}
	div.dashboard thead {
		display: none;
	}
