$(function() { 

  /* Fix FireBug */
  /*
  if ($.browser.mozilla) {
      window.loadFirebugConsole();    
  };
  */
  
  /* Handle links inside editable area. */
  $('.editable > a').bind('click', function() {
      $(this).parent().trigger('click');
      return false; 
  });
     
  $(".editable").editable("http://www.strickslpgas.com/apanel/textchanges.php", { 
    indicator : 'Saving...',
    submit : "Save",
    style  : "inherit",
    cancel    : 'Cancel',
    tooltip   : 'Click to edit...'
  });


  $('.wysiwyg').editable('http://www.strickslpgas.com/apanel/textchanges.php', { 
    indicator : '<img src="../img/indicator.gif">',
    type      : 'wysiwyg',
    width     : 640,
    height    : 'auto',
    onblur    : 'ignore',
    submit    : 'OK',
    cancel    : 'Cancel' ,
    wysiwyg   : { controls : { separator04         : { visible : true },
                               insertOrderedList   : { visible : true },
                               insertUnorderedList : { visible : true },
							   undo         : { visible : true },
     						   redo         : { visible : true },
							   justifyLeft   : { visible : true },
                               justifyCenter : { visible : true },
      						   justifyRight  : { visible : true },
     						   justifyFull   : { visible : true },
							   insertHorizontalRule : { visible : true },
							   html         : { visible : true }, 
							   separator00   : { visible : true },
							   separator02   : { visible : true },
							   separator03   : { visible : true },
							   strikeThrough : { visible : true },
      						   underline     : { visible : true }, 
							   indent        : { visible : true },
							   outdent       : { visible : true },
							   subscript    : { visible : true },
							   superscript  : { visible : true }
                }
    }
  });
});
