var areawidth="145px" // scroll area width (pixels)
var areaheight="100px" // scroll area hight
var areaspeed=1 // scroll speed (1-10)
var pauseit=1 // pause onMouseover (0 = no; 1 = yes)
// scroll area content
//The variable areacontent as it namesake suggests contains the scroller content. 

var areacontent=
'<b>January is Alzheimer’s Awareness Month</b><br /><br /><br /><br /><br /><br />'+
'<b><a href="events.html#08">MacQuarrie Education Series</a></b><br /><img src="images/blts.gif" align="left" />Thursday January 21st, 2010<br /><img src="images/blts.gif" align="left" />During this humorous and entertaining evening, William Thomas will share stories, anecdotes and observation from his caregiving experience. Persons with dementia, their partners in care professionals providing dementia care and members of the general public are welcome.<br /><br /><br /><br /><br /><br />'+
'<b>9th Annual Manulife Walk for Memories</b><br /><img src="images/blts.gif" align="left" />Sunday January 31st, 2010<br /><img src="images/blts.gif" align="left" />INDOOR walk to raise funds that are key to the Alzheimer’s Society to serve the growing numbers of individuals in our community affected by Alzheimer’s Disease and Related Dementia.'

//Do not edit the Javascript below, unless you know what you're doing!
areaspeed=(document.all)? areaspeed : Math.max(1, areaspeed-1) //slow speed down by 1 for NS
var copyspeed=areaspeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
var actualheight=''
var cross_area, ns_area

function populate() {
	var lefttime = '';
	if (iedom) {	
		cross_area=document.getElementById? document.getElementById("iearea") : document.all.iearea
		cross_area.style.top=parseInt(areaheight)+8+"px"
		cross_area.innerHTML=areacontent
		actualheight=cross_area.offsetHeight
		}
	else if (document.layers) {
		ns_area=document.ns_area.document.ns_area2
		ns_area.top=parseInt(areaheight)+8
		ns_area.document.write(areacontent)
		ns_area.document.close()
		actualheight=ns_area.document.height
		}
	lefttime=setInterval("scrollarea()",80)
	}

window.onload=populate

function scrollarea() {
	if (iedom) {
		if (parseInt(cross_area.style.top)>(actualheight*(-1)+8)) {
			cross_area.style.top=parseInt(cross_area.style.top)-copyspeed+"px"
			}
		else {
			cross_area.style.top=parseInt(areaheight)+8+"px"
			}
		}
	else if (document.layers) {
		if (ns_area.top>(actualheight*(-1)+8)) {
			ns_area.top-=copyspeed
			}
		else {
			ns_area.top=parseInt(areaheight)+8
			}
		}
	}

if (iedom||document.layers) {
	with (document) {
		if (iedom) {
			write('<div style="position:relative;width:'+areawidth+';height:'+areaheight+';overflow:hidden" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=areaspeed">')
			write('<div id="iearea" style="position:absolute;left:0px;top:0px;width:100%;">')
			write('</div></div>')
			}
		else if (document.layers) {
			write('<ilayer width='+areawidth+' height='+areaheight+' name="ns_area">')
			write('<layer name="ns_area2" width='+areawidth+' height='+areaheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=areaspeed"></layer>')
			write('</ilayer>')
			}
		}
	}

