drupal_add_js and inline code I am trying to use inline javascript, added with hook_alpha_preprocess_page, to add support to IE.

drupal_add_js('
jQuery(document).ready(function () {
    if (jQuery.browser.msie &amp;&amp; jQuery.browser.version &lt; 10) {
            $("li#megamenu-mlid-774 .megamenu-items, li#megamenu-mlid-842 .megamenu-items").columnize({
                width: 420,
                columns: 3
            });
        }
  });', 'inline');


While this loads on the page, nothing is happening. Is this because my selector starts with $? What should I change it to for this to work?
First of all you need to replace $ with jQuery and secondly you also need to put the width and coulmn properties inside double quotes. i.e, 

drupal_add_js('
jQuery(document).ready(function () {
    if (jQuery.browser.msie &amp;&amp; jQuery.browser.version &lt; 10) {
            jQuery("li#megamenu-mlid-774 .megamenu-items, li#megamenu-mlid-842 .megamenu-items").columnize({
                "width": "420",
                "columns": "3"
            });
        }
  });', 'inline');