jQuery.noConflict();
jQuery(document).ready(function () {  
  var topRight = jQuery('#contentright').offset().top - parseFloat(jQuery('#contentright').css('marginTop').replace(/auto/, 0));
  var topLeft = jQuery('.menu').offset().top - parseFloat(jQuery('.menu').css('marginTop').replace(/auto/, 0));
  jQuery(window).scroll(function (event) {
    // what the y position of the scroll is
    var y = jQuery(this).scrollTop();
  
    // whether that's below the form
    if (y >= topRight) {
      // if so, ad the fixed class
      jQuery('#contentright').addClass('fixed');
      jQuery('.menu').addClass('fixed');
    } else {
      // otherwise remove it
      jQuery('#contentright').removeClass('fixed');
      jQuery('.menu').removeClass('fixed');
    }
    if (y >= topLeft) {
      // if so, ad the fixed class
      jQuery('.menu').addClass('fixed');
    } else {
      // otherwise remove it
      jQuery('.menu').removeClass('fixed');
    }

    
  });
});
