// browser identification

agt = navigator.userAgent.toLowerCase();
is_ie	   = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
is_opera  = (agt.indexOf("opera") != -1);
is_mac	   = (agt.indexOf("mac") != -1);
is_mac_ie = (is_ie && is_mac);
is_win_ie = (is_ie && !is_mac);
is_gecko  = (navigator.product == "Gecko");

//alert("document.layers=" + document.layers + ", document.all=" + document.all + ", agt=" + agt + "' navigator.product=" + navigator.product);

for (i=0;i<=message.length-1;i++) 
{
    document.write("<span id='span"+i+"' class='spanstyle'>");
	document.write(message[i]);
    document.write("</span>");
}

if (document.layers)
{
	document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove = handlerMM;
}
else
{
	if(is_gecko)
	{
		window.captureEvents(Event.MOUSEMOVE);
		window.onmousemove = handlerMM;
	}
	else
		document.onmousemove = handlerMM;
}

makesnake();