/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/


var initwait=2000;
var scrollspeed=1; 

var movespeed=scrollspeed;
var actualheight=''

function scrollmarquee(){
	if (parseInt(scrollarea.style.top)>(actualheight*(-1)+8)) 
		scrollarea.style.top=parseInt(scrollarea.style.top)-movespeed+"px" 
	else 
		scrollarea.style.top=parseInt(marqueeheight)+8+"px";
}

function initializemarquee(){
	scrollarea=document.getElementById("vscroll");
	scrollarea.style.top=0;
	marqueeheight=document.getElementById("testim-scroll").offsetHeight;
	actualheight=scrollarea.offsetHeight; 
	if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ 
		scrollarea.style.height=marqueeheight+"px";
		scrollarea.style.overflow="scroll";
		return
	}

	setTimeout('lefttime=setInterval("scrollmarquee()",60)', initwait);
}

function pause(){
	movespeed=0;
}
function resume(){
	movespeed=scrollspeed;
}


if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee


