


	function verScroll(dir, spd, loop) 
	{

		loop = true;
		direction = "up";
		speed = 5;
		scrolltimer = null;
		
		if (document.layers) 
		{
			var page = eval(document.contentLayer);
			var pageR = eval(document.renderLayer);
		}
		else 
		{
			if (document.getElementById) 
			{
				var page= eval("document.getElementById('contentLayer')");
				var pageR = eval("document.getElementById('renderLayer')");
			}
			else 
			{
				if (document.all) 
				{
					var page = eval(document.all.contentLayer);
					var pageR = eval(document.all.renderLayer);
				}
			}
		}
		
		direction = dir;
		speed = parseInt(spd);
		var y_pos = parseInt(page.style.top);
		
		if (loop == true) 
		{
			if (direction == "dn") 
			{

				// if the content panel spills over, then allow the shift upwards to be made
				if (page.offsetHeight >= pageR.offsetHeight)
				{
					// if the shifting is ok but the panel is already at the bottom then dont do the shift
					if (parseInt(page.style.top) + page.offsetHeight > pageR.offsetHeight)
					{
						page.style.top = (y_pos - (speed));
					}					
				}

			} 
			else 
			{

				if (direction == "up" && y_pos < 0) 
				{
					page.style.top = (y_pos + (speed));
				} 
				else 
				{
					if (direction == "top") 
					{
						page.style.top = 0;
					}
				}
			}

			scrolltimer = setTimeout("verScroll(direction,speed)", 1);
	   }
	}


	function stopScroll() 
	{
		loop = false;
		clearTimeout(scrolltimer);
	}






	function ArtistVerScroll(dir, spd, loop) 
	{

		Artistloop = true;
		Artistdirection = "up";
		Artistspeed = 5;
		Artistscrolltimer = null;
		
		if (document.layers) 
		{
			var Artistpage = eval(document.ArtistContentLayer);
			var ArtistpageR = eval(document.ArtistRenderLayer);
		}
		else 
		{
			if (document.getElementById) 
			{
				var Artistpage= eval("document.getElementById('ArtistContentLayer')");
				var ArtistpageR = eval("document.getElementById('ArtistRenderLayer')");
			}
			else 
			{
				if (document.all) 
				{
					var page = eval(document.all.ArtistContentLayer);
					var pageR = eval(document.all.ArtistRenderLayer);
				}
			}
		}
		
		Artistdirection = dir;
		Artistspeed = parseInt(spd);
		var Artisty_pos = parseInt(Artistpage.style.top);
		
		if (Artistloop == true) 
		{
			if (Artistdirection == "dn") 
			{

				// if the content panel spills over, then allow the shift upwards to be made
				if (Artistpage.offsetHeight >= ArtistpageR.offsetHeight)
				{
					// if the shifting is ok but the panel is already at the bottom then dont do the shift
					if (parseInt(Artistpage.style.top) + Artistpage.offsetHeight > ArtistpageR.offsetHeight)
					{
						Artistpage.style.top = (Artisty_pos - (Artistspeed)) + 'px';
					}					
				}

			} 
			else 
			{

				if (Artistdirection == "up" && Artisty_pos < 0) 
				{
					Artistpage.style.top = (Artisty_pos + (Artistspeed)) + 'px';
				} 
				else 
				{
					if (Artistdirection == "top") 
					{
						Artistpage.style.top = 0 + 'px';
					}
				}
			}

			Artistscrolltimer = setTimeout("ArtistVerScroll(Artistdirection,Artistspeed)", 1);
	   }
	}


	function ArtistStopScroll() 
	{
		Artistloop = false;
		clearTimeout(Artistscrolltimer);
	}

