function wikiShowMsg(text){
    var obj=$("#wiki_show_msg");
    $("#wiki_show_msg_text").empty();
    $("#wiki_show_msg_text").append(text);

    var h = getScroll();
    obj.css({
        position: 'absolute',
        zIndex: 99999,
        left:Math.floor(($(document).width() - obj.width())/2)+'px',
        top:Math.floor(document.documentElement.clientHeight/2+(h.t) - obj.height())+'px'
    });

    obj.show();
    $("#popup_overlay").css({
        height: $(document).height(),
        opacity:'0.5'
    });

    $("#popup_overlay").show();
}
function wikiHiddenMsg(){
    var obj=$("#wiki_show_msg");
    obj.hide();
    $("#popup_overlay").hide();
}

function getScroll(){
  var t, l, w, h;

  if (document.documentElement && document.documentElement.scrollTop) {
      t = document.documentElement.scrollTop;
      l = document.documentElement.scrollLeft;
      w = document.documentElement.scrollWidth;
      h = document.documentElement.scrollHeight;
  } else if (document.body) {
      t = document.body.scrollTop;
      l = document.body.scrollLeft;
      w = document.body.scrollWidth;
      h = document.body.scrollHeight;

  }

  return { t: t, l: l, w: w, h: h };
} 
