
//enter the message you wish to be shown, including html tags
var message='<table width="740" border="0" cellspacing="0" cellpadding="0"><tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="755" height="70"><param name="movie" value="media/notes.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="menu" value="0"><param name="transparent" value="100%"><embed src="media/notes.swf" width="755" height="70" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" menu="0"></embed></object></td></tr></table>'
//enter a color name to be used as the background color of the message
var backgroundcolor=""

//enter 0 for always display, 1 for a set period, 2 for random display mode
var displaymode=0

//if displaymode is set to display for a set period, enter the period below (1000=1 sec)
var displayduration=10000

//enter 0 for non-flashing message, 1 for flashing
var flashmode=0
//if above is set to flashing, enter the flash-to color below
var flashtocolor="lightgreen"




///////////////do not edit below this line////////////////////////////////////////


function regenerate(){
window.location.reload()
}

var which=0

function regenerate2(){
if (navigator.appName=="Netscape") 
setTimeout("window.onresize=regenerate",400) 
}


function display2(){
if (navigator.appName=="Netscape"){
if (document.getElementById('topmsg').style.visibility=="visible")
document.getElementById('topmsg').style.visibility="hidden"
else
document.getElementById('topmsg').style.visibility="visible"
}
else if (document.all){
if (topmsg.style.visibility=="visible")
topmsg.style.visibility="hidden"
else
topmsg.style.visibility="visible"
setTimeout("display2()",Math.round(Math.random()*10000)+10000)
}
}

function flash(){
if (which==0){
if (navigator.appName=="Netscape")
document.getElementById('topmsg').style.bgColor=flashtocolor
else
topmsg.style.backgroundColor=flashtocolor
which=1
}
else{
if (navigator.appName=="Netscape")
document.getElementById('topmsg').style.bgColor=backgroundcolor
else
topmsg.style.backgroundColor=backgroundcolor
which=0
}
}


if (document.all){
document.write('<span id="topmsg" style="position:absolute;visibility:hidden;z-index:-1">'+message+'</span>')
}
else
{
document.write('<DIV ID="topmsg" style="position:absolute;visibility:hidden;z-index:-1">'+message+'</DIV>'); 
}


function logoit(){
document.all.topmsg.style.left=document.body.scrollLeft+document.body.clientWidth/2-document.all.topmsg.offsetWidth/2
document.all.topmsg.style.top=document.body.scrollTop+document.body.clientHeight-document.all.topmsg.offsetHeight-4
}

function logoitN(){
document.getElementById('topmsg').style.left=window.pageXOffset+document.body.clientWidth/2-document.getElementById('topmsg').offsetWidth/2
document.getElementById('topmsg').style.top=window.pageYOffset+document.body.clientHeight-document.getElementById('topmsg').offsetHeight-4
}

function logoit2(){
document.getElementById('topmsg').style.left=window.pageXOffset+document.body.clientWidth/2-document.getElementById('topmsg').offsetWidth/2-10
document.getElementById('topmsg').style.top=window.pageYOffset+document.body.clientHeight-document.getElementById('topmsg').offsetHeight-5
setTimeout("logoit2()",90) 
}

function setmessage(){
document.all.topmsg.style.left=0
document.all.topmsg.style.top=document.body.scrollTop+document.body.clientHeight-document.all.topmsg.offsetHeight-4
document.all.topmsg.style.backgroundColor=backgroundcolor
document.all.topmsg.style.visibility="visible"
if (displaymode==1)
setTimeout("topmsg.style.visibility='hidden'",displayduration)
else if (displaymode==2)
display2()
if (flashmode==1)
setInterval("flash()",1000)
window.onscroll=logoit
window.onresize=new Function("window.location.reload()")
}


function setmessage2(){
regenerate2()
//document.getElementById('myLayex').style.visibility="visible" 
logoit2() 
window.onscroll=logoitN()
document.getElementById('topmsg').style.bgColor=backgroundcolor
document.getElementById('topmsg').style.width = window.innerWidth 
regenerate2()
logoit2()
document.getElementById('topmsg').style.visibility="visible"
if (displaymode==1)
setTimeout("document.getElementById('topmsg').style.visibility='hide'",displayduration)
else if (displaymode==2)
display2()
if (flashmode==1)
setInterval("flash()",1000)
}

document.write('<div id="myLayex" style="position:absolute;left:0;top:0;visibility:hidden;height:1;width:1><table border=0 width="2" heidht="2"><tr><td>hello</td></tr></table></div>');
if (navigator.appName=="Netscape")
window.onload=setmessage2()
else if (navigator.appName=="Microsoft Internet Explorer")
window.onload=setmessage



