<!-- Browser Check -->
iens6=document.all||document.getElementById
ns4=document.layers

<!--GLOBAL VARIABLES-->
var thename
var theobj
var thetext
var winHeight
var winPositionFromTop
var winWidth
var startH=2
var openTimer
var leftPosition
var notifTimer;
var textArray;

<!--END GLOBAL VARIABLES-->


<!--GLOBAL FUNCTIONS-->
function showNotifMsg(elementpos,theswitch,inwidth,inheight,leftpos) {
	//thetext=textArray[elementpos];
	thetext = elementpos;
	if(iens6){
		thename = "viewer"
		theobj=document.getElementById? document.getElementById(thename):document.all.thename
		winHeight=50
			if(iens6&&document.all) {
				winPositionFromTop=document.body.clientHeight
				winWidth=(document.body.clientWidth-document.body.leftMargin)
				leftPosition=0
			}
			if(iens6&&!document.all) {
				winPositionFromTop=window.innerHeight
				winWidth=(window.innerWidth-(document.body.offsetLeft+30))
				leftPosition=0
			}
			if(theswitch=="override") {
				winWidth=inwidth
				winHeight=inheight
				if(iens6&&document.all) {
					if(leftpos=="right") {
						leftPosition=(document.body.clientWidth-winWidth)
					}else if(leftpos=="left" || leftpos=="" || leftpos==null) {
						leftPosition=0
					}else if(leftpos=="center") {
						leftPosition=((document.body.clientWidth-winWidth)/2)
					}else{
						leftPosition=leftpos
					}
				}
				if(iens6&&!document.all) {
					if(leftpos=="right") {
						leftPosition=(window.innerWidth-winWidth)-30
					}else if(leftpos=="left" || leftpos=="" || leftpos==null) {
						leftPosition=0
					}else{
						leftPosition=leftpos
					}
				}
			}
		theobj.style.width=winWidth
		theobj.style.height=startH
		theobj.style.left=leftPosition
			if(iens6&&document.all) {
				theobj.style.top=document.body.scrollTop+winPositionFromTop
				theobj.innerHTML = ""
				theobj.insertAdjacentHTML("BeforeEnd","<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")
			}
			if(iens6&&!document.all) {
				theobj.style.top=window.pageYOffset+winPositionFromTop
				theobj.innerHTML = ""
				theobj.innerHTML="<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>"
			}
	}
	if(ns4){
		thename = "nsviewer"
		theobj = eval("document."+thename)
		winPositionFromTop=window.innerHeight
		winWidth=window.innerWidth
		winHeight=50
		leftPosition=0
			if(theswitch=="override") {
				winWidth=inwidth
				winHeight=inheight
				if(leftpos=="right") {
					leftPosition=(window.innerWidth-winWidth)
				}else if(leftpos=="left" || leftpos=="" || leftpos==null) {
					leftPosition=0
				}else{
					leftPosition=leftpos
				}
			}
		theobj.moveTo(leftPosition,eval(window.pageYOffset+winPositionFromTop))
		theobj.width=winWidth
		theobj.clip.width=winWidth
		theobj.document.write("<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")
		theobj.document.close()
	}
	viewIt()
}

function viewIt() {
	if(startH<=winHeight) {
		if(iens6) {
			theobj.style.visibility="visible"
				if(iens6&&document.all) {
					theobj.style.top=(document.body.scrollTop+winPositionFromTop)-startH
				}
				if(iens6&&!document.all) {
					theobj.style.top=(window.pageYOffset+winPositionFromTop)-startH
				}
			theobj.style.height=startH
			startH+=3
			openTimer=setTimeout("viewIt()",5)
		}
		if(ns4) {
			theobj.visibility = "visible"
			theobj.moveTo(leftPosition,(eval(window.pageYOffset+winPositionFromTop)-startH))
			theobj.height=startH
			theobj.clip.height=(startH)
			startH+=3
			openTimer=setTimeout("viewIt()",5)
		}
	}else{
		clearTimeout(openTimer)
	}
}

function stopIt() {
	if(iens6) {
		theobj.innerHTML = ""
		theobj.style.visibility="hidden"
		startH=2
	}
	if(ns4) {
		theobj.document.write("")
		theobj.document.close()
		theobj.visibility="hidden"
		theobj.width=0
		theobj.height=0
		theobj.clip.width=0
		theobj.clip.height=0
		startH=2
	}
}
<!--END GLOBAL FUNCTIONS-->
document.write("<layer name='nsviewer' bgcolor='#FFFFCC' style='border-width:thin;z-index:1'></layer>");

if (iens6){
document.write("<div id='viewer' class='popupinfo'></div>")
}
if (ns4){
	hideobj = eval("document.nsviewer")
	hideobj.visibility="hidden"
}


function displayNotifications(c){
	var artx = textArray.pop();
	if(c){
		clearTimeout(openTimer);
		stopIt()
	}
	//alert(textArray);
	if(artx && artx != 'undefined') {
		showNotifMsg(artx,'override',300,30,'right');//'left'
		notifTimer = setTimeout("displayNotifications(true)",2500);
	}else{
		clearTimeout(notifTimer);
		clearTimeout(openTimer);
		stopIt()

	}
}



/*
var textArray = new Array

textArray.push("<strong>Grafes Developer Resources</strong> is a resource for web programmers. It contains free Javascripts, DHTML scripts, links to developer resources........You get the message....you can put just about anything in here that describes the link. This has an active link, if you click it you will go to the site.<br><br>In this example textArray element number 1 is passed to the function to define the text I want; Default width and height are used.");
textArray.push("<h2>Page Help</h2>Using it this way would allow me to enter any type of help/text information. \(i.e. menu help, form help, etc.. \).<br><br>In this example textArray element number 2 is passed to the function to define the text I want. Then I overrode the default width/height settings by passing the word 'override' and providing the new width and height values, then I set the position setting to align the box 'right'. (you can also pass a number to position the box a certain amount of pixels in from the left, default is left if position setting is left blank or 'left' is passed to the function).");
textArray.push("<img src='../../../Graphics/Logo_mini.gif' width='100' height='81' border='0' align='left'> This example uses it like an Ad Box. You can add any graphics and text combination in the window.<br><br>In this example textArray element number 3 is passed to the function to define the text I want. Default width and height are used.");

displayNotifications();
*/

