//-------------------------------------------------------------------------
// 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=1;

var msg='';

//Your messages go below:

				
msg='<strong>Fact 1:</strong><br>Our current donation record is 13 nonprofits receiving a total of 77 cubic yards of material in ONE day! '+

'<br><br><strong>Fact 2:</strong><br>iReuse has served over 200 nonprofit organizations and reused over 230 tons of material to date! '+

'<br><br><strong>Fact 3:</strong><br>One nonprofit client sends boxes of clothing, obtained from iReuse, to impoverished villages in China. '+

'<br><br><strong>Fact 4:</strong><br>iReuse facilitates the reuse of thousands of dollars worth of floral arrangements, donated by wedding planners, to agencies like the Hospice of Marin. '+

'<br><br><strong>Fact 5:</strong><br>The largest iReuse donation to date has been three portable airplane hangers, each 60 feet long, 30 feet wide, and worth $40,000.  '+

'<br><br><strong>Fact 6:</strong><br>The success of iReuse is dependant on helping the community.  That means it&rsquo;s a Win-Win-Win for everyone!';

//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)
	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)
	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()
	}
}