function initMain() {
  //$('.shadowbox').prepend('<div style="position: absolute; height: 5px; width: 150px; margin-top: -10px; background-color: white;">&nbsp;</div>');
  
  var browser = "";
  if (navigator.appName) {
    browser = navigator.appName;
  }
  
  // breakfix works around FF not breaking at opening parenthesis causing overflowing code segments compared to Opera
  // this however breaks copying as unicode zero width space chars will be preserved as well
  // TODO: move to sourcecode plugin and submit patch
  var applyBreakFix = (browser == 'Netscape');
  
  if (applyBreakFix) {
    jQuery('.breakfix code, .breakfix pre').each(function(){
      var jThis = jQuery(this);
      var s = jThis.html();
      s = s.replace(/\(/g, '&#8203;('); // zero width space character (indicates the possibility to break a line if it gets too long)
      jThis.html(s);
    });
  }
}

jQuery(document).ready(initMain);
