<!--

var delayS = 40;
var scrollerDelay = 1700;
var scrollerWidth = '340';
var scrollerHeight = '80';
var paddingTop = '15';
var iteration = 1;


var mssg=new Array();
mssg=scrollgetcontent();

var dom=document.getElementById;
if (mssg.length > 2) 
{
	iv = 2;
}	
else 
{
	iv = 0;
}

document.write('<div id="main2" style="position:relative; height:'+scrollerHeight+'px; overflow: hidden;">');
document.write('<div style="position:absolute; height:'+scrollerHeight+'px; left:0px; top:0px;">');
document.writeln('<div id="first2" style="position:absolute; width:'+scrollerWidth+'px; padding-top:'+paddingTop+'px; left:0px; top:1px;">');
document.write(mssg[0]+'</div>');
document.writeln('<div id="second2" style="position:absolute; width:'+scrollerWidth+'px; padding-top:'+paddingTop+'px; left:0px; top:0px; visibility:hidden;">');
document.write(mssg[dyndetermine=(mssg.length==1)? 0 : 1]);
document.writeln('</div></div></div>');

if (window.addEventListener)
{
	window.addEventListener("load", startScroll, false);
}
else if (window.attachEvent)
{
	window.attachEvent("onload", startScroll);
}
else if (dom)
{
	window.onload=startScroll;
}


function scrollgetcontent() 
{
	var mssg=new Array();
	x=document.getElementById("impAnn_content").getElementsByTagName("div");
	for (i=0;i<x.length;i++)
	{
		mssg[i]='<div class="impAnItem">'+x[i].innerHTML+'</div>';
	}
	return(mssg);
}


function move(whichdiv)
{
	tdiv=eval(whichdiv);
	if (parseInt(tdiv.style.top) > 0 && parseInt(tdiv.style.top) <= iteration)
	{
		tdiv.style.top = 0 + "px";
		setTimeout("move(tdiv)",scrollerDelay);
		setTimeout("move2(second2_obj)",scrollerDelay);
		return;
	}
	if (parseInt(tdiv.style.top) >= tdiv.offsetHeight * -1)
	{
		tdiv.style.top = parseInt(tdiv.style.top) - iteration + "px";
		setTimeout("move(tdiv)",delayS);
	}
	else
	{
		tdiv.style.top=parseInt(scrollerHeight) + "px";
		tdiv.innerHTML = mssg[iv];
		if (iv == mssg.length-1) 
		{
			iv = 0;
		}
		else
		{
			iv++;
		}
	}
}

function move2(whichdiv)
{
	tdiv2=eval(whichdiv);
	if (parseInt(tdiv2.style.top) > 0 && parseInt(tdiv2.style.top) <= iteration)
	{
		tdiv2.style.top = 0 + "px";
		setTimeout("move2(tdiv2)",scrollerDelay);
		setTimeout("move(first2_obj)",scrollerDelay);
		return;
	}
	if (parseInt(tdiv2.style.top) >= tdiv2.offsetHeight * -1)
	{
		tdiv2.style.top = parseInt(tdiv2.style.top) - iteration + "px";
		setTimeout("move2(second2_obj)",delayS);
	}
	else
	{
		tdiv2.style.top = parseInt(scrollerHeight) + "px";
		tdiv2.innerHTML = mssg[iv];
		if (iv == mssg.length-1) 
		{
			iv = 0;
		}
		else
		{
			iv++;
		}
	}
}

function startScroll()
{
	first2_obj = document.getElementById("first2");
	second2_obj = document.getElementById("second2");
	move(first2_obj);
	second2_obj.style.top = scrollerHeight+"px";
	second2_obj.style.visibility = 'visible';
}

function pauseScroller(scrSpeed)
{
	delayS = scrSpeed;
}
//-->


