<!--//--><![CDATA[//><!--
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>
function ajaxInit()
{
	var xmlHttp;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	return xmlHttp;
}
function ajaxGet(page,targFunc)
{
	var xmlHttp=ajaxInit();
	if (xmlHttp == false) { return false; }

	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			targFunc(xmlHttp.responseText);
		}
	}
	xmlHttp.open("GET",page,true);
	xmlHttp.send(null);
}
function LoCal(month,year){
	ajaxGet('/blog/calendar.php?month='+month+'&year='+year,lCal);
	document.getElementById('caldiv').innerHTML+="Loading...";
}
function lCal(txt) {
	document.getElementById('caldiv').innerHTML=txt;
}
function shoEv(id){
	document.getElementById('ev_'+id).style.display="block";
}
function hidEv(id){
	document.getElementById('ev_'+id).style.display="none";
}