var scrollerheight=document.getElementById('z_scrollingnews').offsetHeight;
var firstone = true;
i = 1;

function verScroll(arg_loop)
{
	loop = true;
	scrolltimer = null;

	var nn = false;
	var mz = false;
	var ie = false;
	
	if (document.layers) var nn = true; // Netscape
	if (document.getElementById) var mz = true; // Mozilla, Firefox, Opera, IE6, ...
	if (document.all) 
	{
		mz = false;
		var ie = true; // IE < 6
	}
	if (nn)
	{
		var w_zonescroll = eval(document.z_scrollingnews);
		document.z_scrollingnews.document.write(vSlideContent[i]);
	}
	if (mz)
	{
		var w_zonescroll= eval("document.getElementById('z_scrollingnews').style"); 
		document.getElementById('z_scrollingnews').innerHTML=vSlideContent[i];
	}
	if (ie) 
	{
		var w_zonescroll = eval(document.all.z_scrollingnews.style);
		document.all.z_scrollingnews.innerHTML=vSlideContent[i];
	}
	
	var y_pos = parseInt(w_zonescroll.top);
	if (firstone)
	{
		y_pos = 1;
		firstone = false;
	}
	
	if (y_pos == -(scrollerheight))
	{
		if (i==vSlideContent.length-1) i=1;
		else i++;
		y_pos = scrollerheight;
	}

	if (loop) 
	{
		w_ypause = 1;
		switch(speed)
		{
			case 1 :
				vtime = 30;
				break;
			case 2 :
				vtime = 25;
				break;
			case 3 :
				vtime = 20;
				break;
			case 4 :
				vtime = 10;
				break;
			case 5 :
				vtime = 1;
				break;
		}
		if (y_pos == w_ypause) scrolltimer = setTimeout("verScroll(loop)", pause);
		else scrolltimer = setTimeout("verScroll(loop)", vtime);
		w_zonescroll.top = eval(y_pos - 1) + "px";
	}
}

function stopScroll()
{
	loop = false;
	clearTimeout(scrolltimer);
} 

function gimmethenews()
{
	thenews = "";
	for(j=1; j<vSlideContent.length; j++) thenews += vSlideContent[j];
	return(thenews);
}