IE6 crash with Dialog and load option

IE6 crash with Dialog and load option

Hi,

I'm currently working on a site that uses jquery-ui to present popup with flexible content based on the URL on the link clicked. The JS code for this is:
  1. $(this).bind('click', function() {
  2.                 layer_href = $(this).attr("href");
  3.                 layer_title = $(this).attr("title");
  4.                 dialogOptions = {
  5.                     width: 875,
  6.                     position:["center",66],
  7.                     modal: true,
  8.                     bgiframe: true,
  9.                     title: layer_title,
  10.                     closeText: "Venster sluiten x",
  11.                     autoOpen: false,
  12.                     resizable: true,
  13.                     open: function(){
  14.                         $dialog.load(layer_href, function(){
  15.                             Cufon.replace('.ui-dialog-title', {fontFamily: 'EtelkaMedium'});
  16.                         } );
  17.                     },
  18.                     close: function(ev, ui) {
  19.                         $(this).remove();
  20.                     }
  21.                 };
  22.                 $dialog.dialog(dialogOptions)
  23.                 $dialog.dialog('open');
  24.                 return false;
  25.             });


Although we do not need to make it work in IE6, I'm trying to find a solution why the $dialog.load keeps up crashing Internet Explorer 6