function over(item)
{
	item.className += ' hover';
}

function out(item)
{
	item.className = item.className.replace('hover','');
}

function dispClose() 
{
	document.getElementById('detail').style.display='none';
	document.getElementById('detail').innerHTML='';
}

function dispAjax(t,x,cid)
{				
	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)
			{
				if (t=='d')
				{
					location.replace("detail.php?id="+x);
				}
				else
				{
					location.replace("index.php?date="+x+"&cid="+cid);
				}
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			if (t=='d')
			{
				document.getElementById('detail').style.display='block';
				document.getElementById('detail').innerHTML=xmlHttp.responseText;
			}
			else
			{
				document.getElementById('calendar').innerHTML=xmlHttp.responseText;
			}
		}
	}
	if (t=='d')
	{
		xmlHttp.open("POST","detail.php?ajax=1&id="+x,true);
	}
	else 
	{
		xmlHttp.open("POST","index.php?ajax=1&date="+x+"&cid="+cid,true);
	}
	xmlHttp.send(null);
}

