function myPos(target,content,x,y){

	var tipXPos = $(target).getCoordinates().left + x;
	var tipYPos = $(target).getCoordinates().top + y;
	
	$(content).setPosition({x: tipXPos, y: tipYPos});

}

window.addEvent('domready', function() {

	var sel = $$('.nav_item');

	sel.addEvent('mouseover', function(e) { 
	
		
		e = new Event(e).stop();
	
		if(this.hasClass('selected')==true) {
		
		} else {
			//sel.removeClass('over');
			this.getChildren('div').fade('in');	
		}

	}); 

	sel.addEvent('mouseleave', function(e) { 
	
		
		e = new Event(e).stop();
	
		//sel.removeClass('over');
		this.getChildren('div').fade('out');	

	}); 
	
	sel.addEvent('click', function(e) { 
		
		e = new Event(e).stop();
		window.location = this.getChildren('div a').get('href');
		
	}); 

	$('logo').addEvent('click', function(e) { 
		
		e = new Event(e).stop();
		window.location = this.getChildren('a').get('href');
		
	}); 
	
})
	

