var Nav = {
	LIs : null,
	navContainer : null,
	rollover : null,
	initialized : null,
	
	initialize : function() {
		if (!this.initialized) {
			this.navContainer = $('nav');
			this.LIs = this.navContainer.down('ul').childElements();
			this.rollover = $('rollover');
			this._mouseOver = this.mouseOver.bindAsEventListener(this);
			this._mouseOut = this.mouseOut.bindAsEventListener(this);			
			this.createEvents();
			this.initialized = true;
		}
	},
	
	createEvents : function() {
		for (var i=0; i<this.LIs.length; i++) {
			var LI = $(this.LIs[i]);
			if (!LI.hasClassName('selected')) {
				LI.observe('mouseover', this._mouseOver);
				LI.observe('mouseout', this._mouseOut);
			}
		}
	},
	
	mouseOver : function(event) {
		_this = Event.findElement(event, 'li');
		var pos = Position.positionedOffset(_this);
		var width = _this.getWidth();
		this.rollover.setStyle({
			left: pos[0] + width/2 -10 + 'px'
		});
	},
	
	findSelected : function(event) {
	//	if (element) {
	//	_this = element;
	//	_this.addClassName('selected');
	},
	
	mouseOut : function(event) {
		this.rollover.setStyle({
			left: -200 + 'px'
		});			
	}
}
