$().ready(function() {
  $('.jqmNotice')                /* select the notice box(s) to be displayed. */
    .jqDrag('.jqDrag')           /* make dragable. */
    .jqResize('.jqResize')       /* make resizable. */
    .each(function(n) {
      $(this).jqm({        /* initalize modal. */
                   trigger:'#'+$(this).attr('jqmtrigger'),     /* id of clickable item to trigger the opening of the notice box. */
                   overlay: 0,
                   onShow: function(h) {h.w.css('opacity',0.92).slideDown();},   /* callback executed when a trigger click. Show notice */
                   onHide: function(h) {h.w.slideUp("slow",function() { if(h.o) h.o.remove(); });}  /* callback executed on window hide. Hide notice, overlay. */
      }); /* end of call to .jmq */
    });  /* end of .each */
  });      /* end of .ready. */
