/*
var artist_name = new Array();
var artist_icon = new Array();
var artist_id = new Array();
artist_name[1] = "Bob Dylan";
artist_icon[1] = "icon_dylan.png";
artist_id[1] = "10";
artist_name[2] = "Hank Snow";
artist_icon[2] = "icon_hanksnow.png";
artist_id[2] = "9";
artist_name[3] = "Gordon Lightfoot";
artist_icon[3] = "icon_lightfoot.png";
artist_id[3] = "7";
artist_name[4] = "The Band";
artist_icon[4] = "icon_theband.png";
artist_id[4] = "6";
artist_name[5] = "Tom Cochrane & Red Rider";
artist_icon[5] = "icon_cochrane.png";
artist_id[5] = "5";
artist_name[6] = "Alanis Morissette";
artist_icon[6] = "icon_alanis.png";
artist_id[6] = "4";
artist_name[7] = "The Guess Who";
artist_icon[7] = "icon_guesswho.png";
artist_id[7] = "3";
artist_name[8] = "Burton Cummings";
artist_icon[8] = "icon_burton.png";
artist_id[8] = "2";
artist_name[9] = "David Wilcox";
artist_icon[9] = "icon_wilcox.png";
artist_id[9] = "1";
var artist_count = 9;
var z_start = 1;
var z_end = artist_count;
var display_max = 8; // start from 0 
*/

// (C) 2005 singking.ca - SingKing Karaoke

function scroll_right()
{
	if (z_start + display_max <= artist_count+1) { z_start++; }
	for (i = 0; i < display_max; i++)
	{
		document.images["icon_"+ i ].src= "images/site/" + artist_icon[z_start + i];
	}
}

function scroll_left()
{
	if ( z_start > 1 ) { z_start--; }
	
	for (i = 0; i < display_max; i++)
	{
		document.images["icon_"+ i ].src= "images/site/" + artist_icon[z_start + i];
	}
}

function scrollclick(x)
{
	x = (x + z_start);
	document.location.href = "artistview.php?artist_id=" + artist_id[x];
}

function icon_title()
{
	for (i = 0; i < display_max-1; i++)
	{
		p = document.getElementById("icon_" + i);
		p.setAttribute("title",artist_name[i + z_start]);
	}
}

/* usage
	<a href="javascript:icon_title();" onClick="scroll_right();" onmouseover="MM_swapImage('right_scroll','','../images/site/right_on.gif',1)" onmouseout="MM_swapImgRestore()"><img src="../images/site/right.gif" name="right_scroll" border="0" id="right_scroll" /></a>
	<a href="javascript:icon_title();" onClick="scroll_left();" onmouseover="MM_swapImage('left_scroll','','../images/site/left_on.gif',1)" onmouseout="MM_swapImgRestore()"><img src="../images/site/left.gif" name="left_scroll" border="0" id="left_scroll" /></a>
	<a href="javascript:scrollclick(<?php echo $x; ?>)" id="iconlink_<?php echo $x; ?>" name="iconlink_<?php echo $x;?>"><img alt="" border="0" id="icon_<?php echo $x;?>" name="icon_<?php echo $x;?>" title="<?php echo $arows2['artist']; ?>" src="images/site/<?php echo $arows2['icon_image']; ?>" width="32" height="32" /></a>
*/