var NavItem = Class.create({

	initialize: function(obj,ctrl,ap)
	{
		this.navItem = obj;
		this.controller = ctrl;
		this.activePage = ap;
		
		if(!this.activePage){
			Event.observe(this.navItem,'mouseover',this.handleOver.bindAsEventListener(this));
			Event.observe(this.navItem,'mouseout',this.handleOut.bindAsEventListener(this));
		}
	},
	
	handleOver: function()
	{
		this.controller.handleItemOver(this.navItem);
	},
	
	handleOut: function()
	{
		this.controller.handleItemOut(this.navItem);
	}
	
});