/*
 *  JavaScript共通ライブラリ
 */
var glossary_win;
function viewGlossary(page){
  new Ajax.Request("/apis/glossary_get.php?p="+page, {
    method: 'get',
    onSuccess: function(httpObj) {
      outbuf = httpObj.responseText;
      var glossary_win = new Window("glossaryWindow", {
        title: "用語解説",
        className: "dialog",
        top:150, left:220,
        width:400, height:250,
        minWidth:240, minHeight:150,
        showEffectOptions:{ duration : 0.2 },
        hideEffectOptions:{ duration : 0.2 },
        zIndex: 100,
        resizable: true,
        draggable:true
      });
      glossary_win.setHTMLContent(outbuf);
      glossary_win.setDestroyOnClose();
      //glossary_win.showCenter(true);
      glossary_win.show(true);
    }

  });
}



function viewGlossary2(page){

  var glossary_win = new Window("glossaryWindow", {
    title: "用語解説",
    className: "dialog",
    width:450, height:300,
    minWidth:240, minHeight:150,
    zIndex: 100,
    showEffectOptions:{ duration : 0.5 },
    hideEffectOptions:{ duration : 0.5 },
    resizable: true,
    draggable:true
  });
  glossary_win.setURL("/apis/glossary_get.php?p="+page);
  glossary_win.setDestroyOnClose();
  glossary_win.showCenter(true);

}
