//enter a color name or hex to be used as the background color of the message
var backgroundcolor=""

///////////////do not edit below this line////////////////////////////////////////
var ie=document.all
var ieNOTopera=document.all&&navigator.userAgent.indexOf("Opera")==-1

function regenerate(){
window.location.reload()
}

function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",400)
}

if (ie||document.getElementById)
document.write('<div id="topmsg" style="position:absolute;visibility:hidden">'+message+'</div>')

var topmsg_obj=ie? document.all.topmsg : document.getElementById? document.getElementById("topmsg") : document.topmsg

function positionit(){
var dsocleft=ie? document.body.scrollLeft : pageXOffset
var dsoctop=ie? document.body.scrollTop : pageYOffset
var window_width=ieNOTopera? document.body.clientWidth : window.innerWidth-22
var window_height=ieNOTopera? document.body.clientHeight : window.innerHeight

if (ie||document.getElementById){
topmsg_obj.style.left=parseInt(dsocleft)+window_width-topmsg_obj.offsetWidth-12
topmsg_obj.style.top=parseInt(dsoctop)+parseInt(window_height)-topmsg_obj.offsetHeight-8
}
else if (document.layers){
topmsg_obj.left=dsocleft+window_width-topmsg_obj.document.width-12
topmsg_obj.top=dsoctop+window_height-topmsg_obj.document.height-9
}
}

function setmessage() {
   if (document.layers) {
      topmsg_obj=new Layer (window.innerWidth)
      topmsg_obj.bgColor=backgroundcolor
      regenerate2()
      topmsg_obj.document.write (message)
      topmsg_obj.document.close()
      positionit ()
      topmsg_obj.visibility="show"
   }
   else {
      positionit()
      topmsg_obj.style.backgroundColor=backgroundcolor
      topmsg_obj.style.visibility="visible"
   }
   setInterval("positionit()",100)
}

if (document.layers||ie||document.getElementById)
   setmessage()
