//-------------------------------------------------------------------------
// Vertical Scrolling News Ticker
// XHTML Compat
// Version 2.0
// Copyright 2006 DevDude.com
//-------------------------------------------------------------------------
	
	//scroller width
var swidth=250;

//scroller height
var sheight=100;

//background color 
var sbcolor="#FFFFFF";

//scroller's speed
var sspeed=3;

var msg='';

//Your messages go below:

msg=	

"<ul><li><a href='alumnimedia.html' title='Alumni in the Media'>Alumni in the Media</a></li>"+
		"<li>Alumni in the Media pages updated with the September and October coverage.</li>"+
		"<li>&nbsp;</li></ul>"+

"<ul><li><a href='#' target='_blank' title='December eNewsletter'>December eNewsletter</a></li>"+
		"<li>The latest edition of the eNewsletter has just been sent out to all alumni for whom we have an email address. If you didn't receive a copy, use the Update your details link on the left to submit your email address.</li>"+
		"<li>&nbsp;</li></ul>"+
		

		
//MSG 2
"<ul><li><a href='annual_fund.html' target='_blank' title='Alumni in the City'>Thanks to our donors!</a></li>"+
"<li>We raised almost £109,000 in our November telethon thanks to our generous donors. The total has been boosted by the Government's Matched Funding intiative. Time is running out though, so if you can, make a gift today!</li>" +
"<li>&nbsp;</li></ul>"+

"<ul><li><a href='http://www.rhul.ac.uk/For-Alumni/alumnisportsday.html' target='_blank' title='Compatibility'>Alumni Sports Day:</a></li>"+
"<li>The date is set for our alumni's favourite event of the year. Can the alumni team win the Hancock cup?</li>" +
"<li>&nbsp;</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()
	}
}