//$(document).ready(function(){

$(window).load(function(){
  /* this fix applies for the &apos; bug in IE */ 
  /* when upgraded to last version, it is fixed */
  if ($.browser.msie){
    fixChars();
  }
});

function fixChars(){
  var html = $("body div.content").html();
  if (html != undefined){
    if (html.indexOf("&amp;apos;") > -1 || html.indexOf("&apos;") > -1){
      //$("body div.content").html($("body div.content").html().replace("&apos;","&#39;").replace("&amp;apos;","&#39;"));
      $("body div.content").html($("body div.content").html().replace(/&apos;/g,"&#39;").replace(/&amp;apos;/g,"&#39;"));
    }
  }
}
