$(document).ready(function(){

  $(".collapse").toggle(function() {
    $(this).parent().next('.collapse_block').css('display', 'block');
    return false;
  }, function() {
    $(this).parent().next('.collapse_block').css('display', 'none');
    return false;
  });

  //hover efekt
  $("ul#menu li").hover(
    function () {
      $(this).stopTime("top_basket_content_sub_up");
      $(this).oneTime(300, "top_basket_content_sub_down", function() {
      $(this).find(".submenu").fadeIn('middle').show();
    });
  },
    function() {
      $(this).stopTime("top_basket_content_sub_down");
      $(this).oneTime(400, "top_basket_content_sub_up", function() {
      $(this).find(".submenu").fadeOut('middle');
    });
  });

  $("#hp_products_slider").easySlider({
    prevText:'VLEVO',
    nextText:'VPRAVO',
    controlsShow:false,
    controlsFade:false,
    speed:400,
    orientation:'horizontal'
  });


  $("#namiru_link").toggle(function() {
    $("#namiru").removeAttr('class');
    return false;
  }, function() {
    $("#namiru").attr('class', 'nodisplay');
    return false;
  });

  $("#namiru_close").click(function() {
    $("#namiru_link").click();
    return false;
  });

  $("#advices_form_h2").toggle(function() {
    $("#advices_form").removeClass('nodisplay');
    return false;
  }, function() {
    $("#advices_form").attr('class', 'nodisplay');
    return false;
  });


  $("#billboard img").click(function() {
    $("#billboard").attr("class", "nodisplay");
  });

});


function combinations(id) {
  $("#price_number").text(value_dph[document.getElementById('combination_id').options[document.getElementById('combination_id').selectedIndex].value]);
} 