//-------------------------------------------------------------------------
// Vertical Scrolling News Ticker
// XHTML Compat
// Version 2.0
// Copyright 2006 DevDude.com
//-------------------------------------------------------------------------
	
//scroller width
//var swidth=200;

//scroller height
var sheight2=100;

//background color 
var sbcolor2="#FFFFFF";

//scroller's speed
var sspeed2=2;

var resumesspeed2=sspeed2;

var newsContent2='<div></div>';

function startNewsFlash2x() 
{	
	try
	{
	    if (document.all) 
			iemarquee2(ticker2);
	    else if (document.getElementById)
		    ns6marquee2(document.getElementById('ticker2'));
	}
	catch (err)
	{
	}
}

function startNewsFlash2(content) 
{
	newsContent2 = content
	
	try
	{
	    if (document.all) 
			iemarquee2(ticker2);
	    else if (document.getElementById)
		    ns6marquee2(document.getElementById('ticker2'));
	}
	catch (err)
	{
	}
}

function iemarquee2(whichdiv)
{
    iediv2=eval(whichdiv)
    sheight2 += 50;
    iediv2.style.pixelTop=sheight2 
	iediv2.innerHTML=newsContent2
    sizeup2=iediv2.offsetHeight
    ieslide2()
}

function ieslide2()
{
	if (iediv2.style.pixelTop>=sizeup2*(-1))
	{
		iediv2.style.pixelTop-=sspeed2
		setTimeout("ieslide2()",100)
	}
	else
	{
		iediv2.style.pixelTop=sheight2
		ieslide2()
	}
}

function ns6marquee2(whichdiv)
{
    ns6div2=eval(whichdiv)
    sheight2 += 50;
    ns6div2.style.top=sheight2 + "px";
	ns6div2.innerHTML=newsContent2
    sizeup2=ns6div2.offsetHeight
    ns6slide2()
}

function ns6slide2()
{
	if (parseInt(ns6div2.style.top)>=sizeup2*(-1))
	{
		theTop2 = parseInt(ns6div2.style.top)-sspeed2
		ns6div2.style.top = theTop2 + "px";
		setTimeout("ns6slide2()",100)
	}
	else 
	{
		ns6div2.style.top = sheight2 + "px";
		ns6slide2()
	}
}

function getMyDate(yyyymmdd)
{
	var myDate=new Date(yyyymmdd.substring(0,4),yyyymmdd.substring(4,6)-1,yyyymmdd.substring(6,8),0,0,0);
	return myDate.toDateString();
}
