
$(document).ready(
	function() { 

		_width = 0;
		$(".items a").each(function(){
			_width += $(this).width() + 12;
		});

		$('.items').width( _width );		

		if ($('#menuCatHover1').length) {
			
			$('#menuCatHover2').hide();
			$('#menuCat2').addClass('menuCatcurrent');
			
			$('#menuCatHover1').hover(function(){
					$('#menuCatHover2').show();
					$('#menuCat2').removeClass('menuCatcurrent');
					$('#menuCatHover1').hide();
					$('#menuCat1').addClass('menuCatcurrent');
					$('#menuCat1').stop().animate({top: 25}, 250 );
					$('#menuCat2').stop().animate({top: 40}, 250 );
					
					$('#menuCat1 .over').fadeIn();
				}
			);
				
			$('#menuCatHover2').hover(function(){
					$('#menuCatHover1').show();
					$('#menuCat1').removeClass('menuCatcurrent');
					$('#menuCatHover2').hide();
					$('#menuCat2').addClass('menuCatcurrent');
					$('#menuCat2').stop().animate({top: 25}, 250 );
					$('#menuCat1').stop().animate({top: 40}, 250 );
					
					$('#menuCat2 .over').fadeIn();
				}
			);
			
			$('#menuCat1').hover(function(){
					$('#menuCat1 .over').fadeIn();
				}, function(){
					$('#menuCat1 .over').fadeOut();
				}
			);
			
			$('#menuCat2').hover(function(){
					$('#menuCat2 .over').fadeIn();
				}, function(){
					$('#menuCat2 .over').fadeOut();
				}
			);
		}
		
			
			
		if ($.browser.msie && $.browser.version == 6) {
			DD_belatedPNG.fix('.menuCat div, .menuCat img, #menutop, #top div, #middleBottom ');
		} else{
			var pane = $('.menuCat .scroll');
			pane.jScrollPane({showArrows:true, animateScroll: true, animateEase: 'easeOutQuad', enableKeyboardNavigation: true});
			$('.media .photo .inner').jScrollPane({showArrows:true, animateScroll: true, animateEase: 'easeOutQuad', enableKeyboardNavigation: true});
		}
		
		var api = pane.data('jsp');	
		api.scrollTo( 0, $('.menuCat li.current').position().top);
		
	}	
);


