document.write("<style>");
document.write("#veil {");
document.write("    position:absolute;");
document.write("	left:0px;");
document.write("	top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);");
document.write("}");
document.write("body > div#veil {");
document.write("    position: fixed;");
document.write("    top:0px;");
document.write("	left:0px;");
document.write("}");
document.write("</style>");
document.write("<div style='width:100%;height:100%;background-color:#000000;filter:alpha(opacity=10);-moz-opacity:.10;opacity:.10;visibility:hidden; display:none; z-index:1' id='veil'></div>");


var d = new Date();
var current_month = d.getMonth()+1;
var current_year = d.getFullYear();

function getNewCollegue()
{
	ajaxRequest('GET', 'ajax.php?action=get_collegue_random', handleGetNewCollegue)
}

function handleGetNewCollegue()
{
	getElement('div_collegue').innerHTML = ajax_request_data;
}

function getFrontpageCalendar()
{
	ajaxRequest('GET', 'ajax.php?action=get_index_cal&month='+current_month+'&year='+current_year, handleGetFrontpageCalendar)
}

function handleGetFrontpageCalendar()
{
	getElement('frontpage_caledar').innerHTML = ajax_request_data;
}

function printPage()
{
	if (window.print) 
	{ 
		window.print(); 
	}
}
