/* This file will change the CSS styling of the embedded Google Calendar */

function styleCalendar()
{
	frame = window.frames[0];
	
	frame.document.getElementById('calendarContainer1').style.background = '#000000';
	frame.document.getElementById('calendarContainer1').style.borderBottom = '4px solid #000000';
	frame.document.getElementById('viewContainer1').style.background = '#000000';
	frame.document.getElementById('agenda1').style.background = '#ffffff';
	frame.document.getElementById('eventContainer1').style.background = '#e2e2e2';
	frame.document.getElementById('agenda-underflow-bottom1').style.background = '#cccccc';
	frame.document.getElementById('footer1').style.background = '#000000';
	frame.document.getElementById('loading1').style.background = '#000000';
	frame.document.getElementById('nav1').style.background = '#000000';
	frame.document.getElementById('dateEditableBox1').style.color = '#ffffff !important';
		frame.document.getElementById('dateMenuArrow1').style.background = '#000000';
	frame.document.getElementById('agendaEventContainer1').style.background = '#ffffff';
	frame.document.getElementById('agendaScrollContent1').style.background = '#ffffff'; 
	frame.document.getElementById('agenda-underflow-top1').style.background = '#ffffff !important';
		
	var divs = frame.document.getElementsByTagName('div');	
	for (var e = 0; e < divs.length; e++)
	{
		// blue caps
	   if (divs[e].className.indexOf('view-cap') > -1)
		{
			divs[e].style.display = 'none';
		}
		// blue day background
	   if (divs[e].className == 'date-label')
		{
			divs[e].style.background = '#cccccc';
			divs[e].style.color = '#ffffff';
		}

	}
}
