 $(document).ready(function(){
 if ($(window).width()>1620){
		 $('#wrapper').css('max-width',$(window).width()+'px');
		 $('.bgwrapper').css('max-width',$(window).width()+'px');
		 $('.divwrapper').css('max-width',$(window).width()+'px');
 		 $('.divbgbot').css('max-width',$(window).width()+'px');
 		 $('.wrapbgbot').css('max-width',$(window).width()+'px');
		 
		 $('.divwrapper').css('background','url(/sites/all/themes/navodu2/i/bgdivwrap1_6.png) no-repeat 100% 0');
 		 $('.bgwrapper').css('background','url(/sites/all/themes/navodu2/i/bgrightrep1_6.png) repeat-y 100% 0');
 		 $('#wrapper').css('background','url(/sites/all/themes/navodu2/i/bgleft1_6.png) no-repeat 0 299px');
	 }
$('div.faq .faq-dd-hide-answer').css('display','none');							
  var i;
  var d=new Number();
  d=$(window).height()-$('#footer').offset().top-70;
  if (d>0){
	  $('.content').css('min-height',$('.content').height()+d);
	  $('#footer').css('overflow','hidden');
  }
  if ($('ul.tabs').html()){
	 $('ul.tabs li:first').html('<a href="/enter">Перейти в админку</a>');
  }
$('div.faq .faq-question a').attr('href','#');
$('div.faq .faq-dt-hide-answer a').click(function(){
											$(this).parent().next('.faq-answer').slideToggle('slow');
											$(this).toggleClass('active');
											return false;
											});
  $('.myBg').css({
				 'top':$('.center').offset().top,
				 'left':$('#center').offset().left+990-1,
				 'width':$('#center').offset().left,
				 'height':$('.center').height()
				 });
  for (i=0;i<$('div.divmenu ul.menu').children().length;i++){
	  $($('div.divmenu ul.menu').children()[i]).addClass('menu'+(i+1))
  }
 });

