var fullHeight, currentHeight;
var ms=false;
	
function installizeMarquee()
{
    var dvMarquee = document.getElementById("newsMarquee");
    var dvScroller = document.getElementById("marqueeScroller");
    var dvContent = document.getElementById("marqueeContent");
    currentHeight = dvContent.offsetHeight;
    dvScroller.style.margin = "-" + currentHeight + "px 0px 0px 0px";
    dvScroller.style.height = currentHeight + "px";
    fullHeight = currentHeight + dvMarquee.offsetHeight;
    currentHeight = fullHeight;
    scroll();
}

function scroll()
{
    if(!ms)
    {
        var dvScroller = document.getElementById("marqueeScroller");
        if (currentHeight > 0)
	        currentHeight -= 1;
        else
	        currentHeight = fullHeight;
        
        if (!(currentHeight < 0))
	        dvScroller.style.height = currentHeight + "px";
    }
    setTimeout("scroll()",35);
}

function MouseOn()
{
    ms=true;
}

function MouseOut()
{
    ms=false;
}