$(function() {
	var sidebar = $('#nav ul li');
	
	//internet explorer fixes
	if($.browser.msie && $.browser.version == '7.0') $('#nav').css('left',$('#wrapper').position().left);
	//if($.browser.msie && $.browser.version > '8.0') $('span.details a').css({ lineHeight:'25px', height:'25px'});
	
	sidebar.hover(function()
	{
		var position = $(this).position().left;
		
		if($(this).attr('class') != 'active' && $(this).attr('class') != 'hover')
		{
			$(this).animate({ left: -20 }, 150, function(){ 
				$(this).addClass('hover');
				$(this).animate({ left: 0 }, 150, function() { $(this).attr('rel',''); }); 
			});	
		}
	},function() {
		if($(this).attr('class') != 'active')
		{
			$(this).animate({ left: -20 }, 150, function(){ 	
				$(this).removeClass('hover');
				$(this).animate({ left: 0 }, 150); 
			});	
		}
	});
});
