//-------------------------------------------------------------------------
// Vertical Scrolling News Ticker
// XHTML Compat
// Version 2.0
// Copyright 2006 DevDude.com
//-------------------------------------------------------------------------
	
	//scroller width
var swidth=135;

//scroller height
var sheight=100;

//background color 
var sbcolor="#FFFFE8";

//scroller's speed
var sspeed=2;

var msg='';

//Your messages go below:

				
msg=	'<ul><li><b><center>Heartsaver Instructor Course</b></li>'+
		'<li><center>Heartsaver Instructor<br><br>Irish Heart Foundation<br><br>Dublin<br>Saturday 13th - 14th September 2008<br><a href="http://www.safetyireland.com/heartsaver_instructor.htm">Safety Ireland Website</a></li>'+
		'<li>&nbsp;</li></ul>'+

//MSG 2
'<ul><li><b>Safety & Health at Work Exhibition 2008</b></li>'+
		'<li>2008 Dates Announced!<br>Safety & Health at Work Exhibition<br>RDS, Shelbourne Hall,<br>Dublin<br>22nd & 23rd October 2008</li></ul>';+


//MSG 2
'<ul><li><b>FDA Warning About Heartsine</b></li>'+
		'<li>2008 Dates Announced!<br>Safety & Health at Work Exhibition<br>RDS, Shelbourne Hall,<br>Dublin<br>22nd & 23rd October 2008</li></ul>';
		//End of your messages


var resumesspeed=sspeed
function start() {
	if (document.all) iemarquee(ticker);
	else if (document.getElementById)
		ns6marquee(document.getElementById('ticker'));
}

function iemarquee(whichdiv){
	iediv=eval(whichdiv)
	sheight += 50;
	iediv.style.pixelTop=sheight
	iediv.innerHTML=msg 
	sizeup=iediv.offsetHeight
	ieslide()
}

function ieslide(){
	if (iediv.style.pixelTop>=sizeup*(-1)){
		iediv.style.pixelTop-=sspeed
		setTimeout("ieslide()",100)
	}
	else{
		iediv.style.pixelTop=sheight
		ieslide()
	}
}

function ns6marquee(whichdiv){
	ns6div=eval(whichdiv)
	sheight += 50;
	ns6div.style.top=sheight + "px";
	ns6div.innerHTML=msg
	sizeup=ns6div.offsetHeight
	ns6slide()
}
function ns6slide(){
	if (parseInt(ns6div.style.top)>=sizeup*(-1)){
		theTop = parseInt(ns6div.style.top)-sspeed
		ns6div.style.top = theTop + "px";
		setTimeout("ns6slide()",100)
	}
	else {
		ns6div.style.top = sheight + "px";
		ns6slide()
	}
}