function registration(){
	//myWindow = window.open("sounds/player.php?file="+var2, "player.php", 'toolbar=0 ,status=0,width=150,height=100') 	
 window.open('/registration.php', 'play', 'width=200,height=315,menubar=no,toolbar=no,scrollbars=no');	
	
}
function password(){
 window.open('/forgot_password.php', 'play', 'width=200,height=200,menubar=no,toolbar=no,scrollbars=no');	
}
function exti_reg(){
 JsHttpRequest.query(
    "/getemail.php",
    {                
     'EXIT_REG': "tr"
    },            
    function(result, errors) 
	{	 
     if (result) 
	 {	 		   
	  document.location.href = window.location.href;
	 }			  
    },
    false
  );
}

$(document).ready(function () {
 //var width = screen.width   //Определяем ширину экрана в пикселях
 var width = 0;
 width = document.body.clientWidth;  
 if( width < 800)
   width=800;


  $('#content_box').css("width",width-285-15);
  $('.container').css("width",width-285);
  $('.content_box_2').css("width",width-180-300);
  $('.content').css("width",width-15-285);
  $('.contbox').css("width",width-15-285);
  $('.accordion').css("width",width-15-285);
  $('html').css("width",width);
 
});

$(document).ready(function () {
 var width = screen.width;   //Определяем ширину экрана в пикселях
  
  logo=$(".logo").width();
  phoneT=$(".main_phone").width();
  about=$(".about").width();
  banner=$(".banner_content").width();
  
  phone=$(".phone").width();
  
  phone_h=$(".phone").height();
  block_body=$(".block_body").width();
  
  phone_need=(width-logo-about-phoneT)/2;
  banner_c=(width-logo-about-banner)/2;
  //alert(phone_need);
  
  $('.phone').css("left",logo+phone_need);
  $('.block_body').css("left",logo+phone_need);
  $('.banner_content').css("left",logo+banner_c);
});



$(window).load(function height_copyright() {
	l=$(".logo").height();
	n=$("#navigator").height();
	r=$(".registration").height();
	f=$("#find").height();
	t=$(".tags").height();
	h=$(".help").height();
	h_c=$(".help_c").height();
	b=$(".banner").height();


	box1=$("#content_box").height();
	box2=$(".content_box_2").height();
	box3=$(".box_category").height();
	box4=$(".banner_content").height();
	
	left=l+n+box1+box2;
	right=l+n+r+f+t+h+h_c+b;
	
	box=l+n+box3+box4;
	
	
	if(left>right)
	{
	height_need=left;
	//alert(height_need);	
	}
	else{
		height_need=right;
	//alert(height_need);
	}
	
	$('.copyright').css("top",height_need+100);
});


$(window).load(function banner() {
	l=$(".logo").height();
	n=$("#navigator").height();
	r=$(".registration").height();
	f=$("#find").height();
	t=$(".tags").height();
	h=$(".help").height();
	h_c=$(".help_c").height();

	box=$(".box_category").height();
	
	right=l+n+r+f+t+h+h_c;
	left=l+n+box;

	$('.banner').css("top",right+72);
	$('.banner_content1').css("top",left+42);
});
/*$(document).ready(function () {
  //var width = screen.width  //Определяем ширину экрана в пикселях
  var width = getClientWidth();//Определяем ширину браузера в пикселях
  if(width<800)
    width=800;
  var in_width=0;  
  if (width<="1024" && width>"800")
   in_width=715; 
  else if (width<="1280" && width>"1024")
   in_width=970;  
  else if (width>"1280")
   in_width=1140;

  $('.container').css("width",in_width);
  $('.content_box_2').css("width",in_width-180);
  $('.content').css("width",in_width-15);
  $('.contbox').css("width",in_width-15);
  $('#content_box').css("width",in_width-15);
  $('.accordion').css("width",in_width-15);
  $('html').css("width",width-15);      
});
*/


/*
function menu(id_menu)
{   
 $('#menush').hide();  
 document.getElementById('menush').innerHTML=""; 
 
 if(id_menu=='uzna'){       
  <?
  $chit=GetChitayTypes($res_1); 
  $menushko="";  
  foreach($chit as $k)
  {
   $menushko.="<td><div id=\"home_menu\"><div id=\"men_1\"></div><a href=\"./content.php?RATID=".$k['id']."\" id=\"text\">".$k['name']."</a><div id=\"men_2\"></div></div></td>";
   //<a href=".$_SERVER['SCRIPT_NAME']."?CATID=".$k['id'].">".$k['name']."</a> ";
  }
  
  ?>
  
  $('#menush').append('<?=$menushko;?>');
 } 
 else if(id_menu=='kach'){    
  <?
  $ost=GetHomeElementsCategorys($res_2,SITE_ID,$_SESSION['LN'],"main_center");
  $menushko="k";  
  foreach($ost as $k)
  {/*
   $menushko.="
     <td>
      <div id=\"home_menu\">
       <div id=\"men_1\"></div>
       <a href=\"./content.php?CATID=".$k['id']."\" id=\"text\">".$k['name']."</a>
       <div id=\"men_2\"></div>
     </div></td>";
  }
  $menushko.="
     <td>
      <div id=\"home_menu\">
       <div id=\"men_1\"></div>
       <font id=\"text\">Музыка</font>
       <div id=\"men_2\"></div>
     </div></td>";  
  ?>  
  
  $('#menush').append('<?=$menushko;?>');
 }
 
 $('#menush').fadeIn(300);//чтоб ускорить -  $('#menush').show();
}
*/