  
  $(document).ready(function(){
 $(".post_title").click(function(){
  $(this).parent().parent().next(".entry").slideToggle(400);
 });
 
 //select type
 	 var priceDVD = "2490";
     var priceDigital = "1990";

$(".sel_check_block").click(function(){
    var current_block=$(this).parents('.select_product'); //
    var thisIndex=$(this).parent().index(); //индекс эл-та, начиная с 0  
    current_block.find(".sel_check_block a").removeClass("sel_check_active");
     $(this).find("a").addClass("sel_check_active");
    current_block.find('.number_price').text(thisIndex?priceDigital:priceDVD); //установка цены
    current_block.find('.info_download').hide(); //скрываем все блоки
    current_block.find('.info_download').eq(thisIndex).show(); //показываем с нашим индексом 
    current_block.find('.order_button_goto_url').attr('href',thisIndex); //установка аттрибута href = индексу
     return false;
});
$(".sel_check_block:eq(0)").parents('.select_product').find('.number_price').text(priceDVD);
});
//scroll
$(document).ready(function() {
    $("a.order_button").click(function () { 
      elementClick = $(this).attr("href");
      destination = $(elementClick).offset().top;
      if($.browser.safari){
        $('body').animate( { scrollTop: destination }, 1100 );
      }else{
        $('html').animate( { scrollTop: destination }, 1100 );
      }
      return false;
    });
  });
  
//Remove URL
$(document).ready(function() {
    $("a.order_button_goto_url").click(function () { 
      if ($(this).attr("href")==1){
        location.href='http://networkworker.ru/zakaz.php?r=elversion';
      } else {
        location.href='http://networkworker.ru/zakaz.php?r=dvd';
      }      
      return false;      
    });
  });
