$(document).ready(function(){
			$('#mainmenu #punkt2').html('Алюминиевый<br />профиль');
			$('#mainmenu #punkt3').html('Леса<br />строительные');
			$('#mainmenu #punkt4').html('Вышки-<br />туры');
			$('#mainmenu #punkt5').html('Объёмные<br />стойки');
			$('#mainmenu #punkt6').html('Опалубка<br />перекрытий');
			$('#mainmenu #punkt7').html('Комплектующие<br />опалубки');
        var largePath1 = $('.mingalimg:first').attr('href');		$('#largeImg').attr({ src: largePath1 });		var largePath3 = $('.linko:first').attr('href');        $('.highslide').attr({ href: largePath3 });			    $('.mingalimg').click(function(){				var largePath = $(this).attr('href');			var largeAlt = $(this).attr('title');			$('#largeImg').attr({ src: largePath, alt: largeAlt });			var largePath2 = $(this).next('.linko').attr('href');			/*$('#info').html(largePath2);*/			$('.highslide').attr({ href: largePath2 });                return false;		});					
			/*$('#zakaz').remove();
			$('#contacts').remove();
			$('#galery').remove();*/						var height = $('.podlist').height();			$('.podrazdellist').css({'height' : height + 'px'});
			
			var maincenter = $('#mainmenu').width() * 0.5;
			var menumargin = maincenter - $('#menublock').width() * 0.5;
			$('#menublock').css({'margin-left' : menumargin + 'px'});
			$('.item:first').css({'padding' : ' 13px 19px 0 19px'});
			
			var botcenter = $('#bottommenu').width() * 0.5;
			var botmargin = botcenter - $('#inbotmenu').width() * 0.5;
			$('#inbotmenu').css({'margin-left' : botmargin + 'px'});     
			
			var offsetko = $('#topline').offset();
			var lefteg = offsetko.left;
			$('#zaglushka').css({'width' : lefteg + 'px'});
			
			if ($('#menublock').has('.active')){
				var off = $('.active').offset();
				var lef = off.left;
				var wid = $('.active').outerWidth();
				var otst = (wid - 98) * 0.5;
				var lineco = lef + otst;
				$('#colorline').animate({left: lineco + 'px'}, {duration: 200, queue: true});
			}
			
			$(window).resize(function(){
				var off = $('.active').offset();
				var lef = off.left;
				var wid = $('.active').outerWidth();
				var otst = (wid - 98) * 0.5;
				var lineco = lef + otst;
				$('#colorline').animate({left: lineco + 'px'}, {duration: 200, queue: true});
				var offsetko = $('#topline').offset();
				var lefteg = offsetko.left;
				$('#zaglushka').css({'width' : lefteg + 'px'});				
			});
			
			$('.item').hover(function(){
				var offset = $(this).offset();
				var left = offset.left;
				var width = $(this).outerWidth();
				var otstup = (width - 98) * 0.5;
				var linecoord = left + otstup;
				$('#colorline').stop(true, true).animate({left: linecoord + 'px'}, {duration: 200, queue: true});				$('#colorline1').stop(true, true).css({display : 'block'}).animate({left: linecoord + 'px'});
			});
			$('.item').mouseout(function(){
				var off = $('.active').offset();
				var lef = off.left;
				var wid = $('.active').outerWidth();
				var otst = (wid - 98) * 0.5;
				var lineco = lef + otst;
				$('#colorline').animate({left: lineco + 'px'}, {duration: 500, queue: true});				$('#colorline1').css({display : 'none'});			
			});
			
			$('#slider').easySlider({
				controlsBefore: '<p id=\'controls\'>',
				controlsAfter: '</p>',
				auto: true,
				continuous: true
			});
		});
