		$(document).ready(function(){
			
			if($('.sb-content-t .address_wrap').length){
				var parent=$('.sb-content-t');
				var height=parent.height()-parent.find('.address_wrap').height()
				var phone=parent.find('.phone');
				if(phone.height()<height){
					phone.css({marginTop:(height-phone.height())/2})
				}
				
			
			}
			
			var sb=$('.subdomain .sidebar');
			
			$('.feed_item').show();
			$('.feed_item:first').addClass('feed_active');
			$($('.feed_item:first').addClass('feed_active').attr('href')).show()
			
			$('.feed_item').click(function(){
				
				if(!$(this).hasClass('feed_active')){
					
					$('.feed_item').removeClass('feed_active');
					$('.line-2-blog').hide();
					$($(this).addClass('feed_active').attr('href')).show();
					
					sb.css({minHeight:0});
					
					sb.css({minHeight:sb.parent().height()});
				}
				return false;
			})
			
			
			sb.css({minHeight:sb.parent().height()});
			
			
			if($(".home_store").size()){
				
				var li=$(".home_store li")
				$('.home_store').css({width:li.outerWidth('margin')*li.size()-parseInt(li.css('marginRight'))})
				console.log(li.outerWidth('margin')*li.size()-parseInt(li.css('marginRight')))
			}
		
			jQuery.os =  { name: (/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase()) || [u])[0].replace('sunos', 'solaris') }
			if(jQuery.os.name=='mac'){
				$('.price span').css({top:8})
			}
		})
	  $(window).load(function(){
			
			
			$('.catalog .cat-item:nth-child(3n)').css({background:'none',marginRight:0,paddingRight:0}).after('<div class="divider"></div>');
		
			//$(".sb-widget input[type='radio']").custCheckBox();
			$(".newsletter input[type='checkbox']").custCheckBox();
			$(".hf-check input[type='checkbox']").custCheckBox();
			
			
			$('.feed_arr').each(function(){
				
				var left=parseInt($(this).css('left'))/*10px*/
				var parent_width=$(this).parent().outerWidth();/*33px*/
				
				var span=$(this).parent().find('span')
				
				span.css({width:'+='+(Math.round(span.outerWidth())%4)})
				var shift=Math.round(parent_width/2)-Math.round($(this).width()/2)
				
				$(this).css({left:shift})
			})
			/*$('.nav-arr').each(function(){
				var left=parseInt($(this).css('left'))
				var parent_width=$(this).parent().parent().outerWidth();
				$(this).parent().parent().css({width:'+='+Math.round(parent_width/2)%4})
				var shift=left+Math.round(parent_width/2)+Math.round(parent_width/2)%4-13
				$(this).css({left:shift})
			})*/
		

			
	   });
	
