$(function () {
  
  var msie6 = $.browser == 'msie' && $.browser.version < 7;

  if (!msie6 && $('#pricing_box').offset()!=null) {
    var top = $('#pricing_box').offset().top - parseFloat($('#pricing_box').css('margin-top').replace(/auto/, 0));
    $(window).scroll(function (event) {
      // what the y position of the scroll is
      var y = $(this).scrollTop();
      
      // whether that's below the form
      if (y >= top) {
        // if so, ad the fixed class
        $('#pricing_box').addClass('fixed');
      } else {
        // otherwise remove it
        $('#pricing_box').removeClass('fixed');
      }
    });
  }  

	$("#menu .first_menu li.sub").hover(
	  function () {
		$(this).addClass("hover");
	  },
	  function () {
		$(this).removeClass("hover");
	  }
	);

	$("#menu .first_menu li.sub_two_lines").hover(
	  function () {
		$(this).addClass("sub_two_lines_hover");
	  },
	  function () {
		$(this).removeClass("sub_two_lines_hover");
	  }
	);
});

