//Messsage Box, Copyright Jan Larsen, Februar 2001
space=wwwroot+"images/space.gif"
var x=0
var y=0
var xoffset=8
var yoffset=-12
var msgwidth=170
var msgheight=100
var border="2"
var textpadding="1"
var bgcolor="#D2D5D6"
var bordercolor="#000000"
var fontcolor="#000000"
var fontsize="8pt"
var fontfamily="verdana,arial,helvetica,sans-serif"
var defaultmsg="&nbsp;"
var t_luktimer=null

var IE4=(document.all)
var NS4=(document.layers)
var NS6=(document.getElementById)
if ((NS4)||((NS6)&&(!IE4))){document.captureEvents(Event.MOUSEMOVE)}
document.onmousemove=FindXY

function showmsg(msg){
  if (msg==""){return}
  clearTimeout(t_luktimer)
  var IE4=(document.all)
  var NS4=(document.layers)
  var NS6=(document.getElementById)
  if (!msg){msg=defaultmsg}
  txt="<TABLE BORDER=0 CELLPADDING="+border+" CELLSPACING=0 BGCOLOR=\""+bordercolor+"\">"
  txt+="<TR><TD align=center><TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+bgcolor+"\">"
  txt+="<TR><TD valign=middle align=center>"
  txt+="<TABLE cellpadding=0 cellspacing="+textpadding+" border=0>"
  txt+="<TR><TD valign=middle align=left>"
  txt+="<font style=\"font-family:"+fontfamily+";color:"+fontcolor+";font-size:"+fontsize+";\">"+msg
  txt+="</TD></TR></TABLE></TD></TR></TABLE></TD></TR></TABLE>"
  popupid=NS4?eval(document.popup):NS6?eval("document.getElementById('popup').style"):eval(document.all['popup'].style)
  if (IE4){
    doc=document.body
    winwidth=doc.clientWidth
    winheight=doc.clientHeight
    xpos=doc.scrollLeft
    ypos=doc.scrollTop
  }else{
    winwidth=window.innerWidth
    winheight=window.innerHeight
    xpos=parseInt(window.pageXOffset)
    ypos=parseInt(window.pageYOffset)
  }

  if (IE4){
    xpos+=((x+xoffset+msgwidth)>winwidth)?winwidth-msgwidth:(x+xoffset)
    ypos+=((y+yoffset+msgheight)>winheight)?winheight-msgheight:(y+yoffset)
  }else{
    xpos=((x+xoffset+msgwidth)>winwidth)?winwidth-msgwidth:(x+xoffset)
    ypos=((y+yoffset+msgheight)>winheight)?winheight-msgheight:(y+yoffset)
  }

  if (NS4){
    popupid.left=parseInt(xpos)
    popupid.top=parseInt(ypos)
    popupid.document.open("text/html")
    popupid.document.write(txt)
    popupid.document.close()
  }
  if (NS6){
    popupid.left=parseInt(xpos)+"px"
    popupid.top=parseInt(ypos)+"px"
    document.getElementById('popup').innerHTML=txt
  }
  if (IE4){
    popupid.pixelLeft=xpos
    popupid.pixelTop=ypos
    document.all['popup'].innerHTML=txt
  }
    popupid.visibility=NS4?'show':'visible'
}
function hidemsg(){
  var popupid=NS4?eval(document.popup):NS6?eval("document.getElementById('popup').style"):eval(document.all['popup'].style)
  popupid.visibility=NS4?'hide':'hidden'
}
function freezemsg(){
  var popupid=NS4?eval(document.popup):NS6?eval("document.getElementById('popup').style"):eval(document.all['popup'].style)
  popupid.visibility=NS4?'show':'visible'
}
function t_out(){
  clearTimeout(t_luktimer)
  t_luktimer=setTimeout("t_luk()",250)
}
function t_over(){
  clearTimeout(t_luktimer)
  freezemsg()
}
function t_luk(){
  clearTimeout(t_luktimer)
  hidemsg()
}
function FindXY(loc){
  var IE4=(document.all)
  x=IE4?event.clientX:loc.pageX
  y=IE4?event.clientY:loc.pageY
}
function popuplayer(){
  document.write("<div ID=\"popup\" style=\"position:absolute;visibility:hidden;z-index:2000;\"></div>")
  document.close
}
function nothing(){
  return;
}
