function mainNav(context)
{
	this.context = context;
	var me = this;
	$(context).mouseover(function()
	{
		me.context.className = "hover";
	});

	$(context).mouseout(function()
	{
		me.context.className = "";
	});

}

$(document).ready(function () {
	var context = document.getElementById("nav")

	for(var i=0; i < context.childNodes.length; i++)
	{
		var n = context.childNodes[i];
		if(n.nodeName == "LI")
		{
			new mainNav(n);
		}
	}
});
