//-------------------------------------------------------------------------
// Vertical Scrolling News Ticker
// XHTML Compat
// Version 2.0
// Copyright 2006 DevDude.com
//-------------------------------------------------------------------------
	
	//scroller width
var swidth=800;

//scroller height
var sheight=50;

//background color 
var sbcolor="#FFFFFF";

//scroller's speed
var sspeed=6;

var msg='';

//Your messages go below:

				
msg=	'<ul><li><a href="http://www.devdude.com" target="_blank" title="DevDude.com">02/05/2003</a></li>'+
		'<li>DevDude.com: Cool tools making design easier!</li>'+
		'<li>&nbsp;</li></ul>'+
//MSG 2
'<ul><li><a href="http://www.google.com" target="_blank" title="Google">02/05/2003</a></li>'+
'<li>Google</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.pixelLeft=swidth
	iediv.innerHTML=msg 
	sizeup=iediv.offsetWidth+2000
	ieslide()
}

function ieslide(){
	if (iediv.style.pixelLeft>=sizeup*(-1)){
		iediv.style.pixelLeft-=sspeed
		setTimeout("ieslide()",100)
	}
	else{
		iediv.style.pixelLeft=swidth
		ieslide()
	}
}

function ns6marquee(whichdiv){
	ns6div=eval(whichdiv)
	swidth += 50;
	ns6div.style.left=swidth + "px";
	ns6div.innerHTML=msg
	sizeup=ns6div.offsetWidth
	ns6slide()
}
function ns6slide(){
	if (parseInt(ns6div.style.left)>=sizeup*(-1)){
		theTop = parseInt(ns6div.style.left)-sspeed
		ns6div.style.left = theTop + "px";
		setTimeout("ns6slide()",100)
	}
	else {
		ns6div.style.left = swidth + "px";
		ns6slide()
	}
}
