$(document).ready(function() {
						   
	var userAgent = navigator.userAgent.toLowerCase();
 
	// Figure out what browser is being used
	jQuery.browser = {
		version: (userAgent.match( /.+(?:rv|it|ra|ie|me)[\/: ]([\d.]+)/ ) || [])[1],
		chrome: /chrome/.test( userAgent ),
		safari: /webkit/.test( userAgent ) && !/chrome/.test( userAgent ),
		opera: /opera/.test( userAgent ),
		msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
		mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
	};
		
	if($.browser.msie && $.browser.version=="6.0") {
		$('div#ie6').animate({opacity: 1, height: '40px'},3000);
	}
	 if($.browser.safari) {
		 
		 $('div#login_form input').css({top: '8px'});
		 $('div#login_form div.password input').css({top: '12px',left: '3px'});
		 
	}
	 $('.menu_left').each(function() {
		var menu_list = $(this).find('li').length;
		$(this).css('background','url(../img/menubarre'+ menu_list + '.jpg) repeat-x bottom')
		.find('li:last').css('background','url(../img/lastplus.png) no-repeat 118px 4px');
		
		/*$(this).find('li a').each(function(e) {
			var href = $(this).attr('href').split('/');
			var link = String(href['2']);
			var size = link.length;
			if(size >= 17) {
				$(this).css({
						position: 'relative',
						right: '10px'
						});
			}
		});*/
		
	});
	 
});