var RollImage = new Array ()

RollImage[21] = "emissions_navigation_accueil"
RollImage[22] = "emissions_navigation_derniere"
RollImage[23] = "emissions_navigation_equipe"
RollImage[24] = "emissions_navigation_diffusion"
RollImage[25] = "emissions_navigation_archives"

var RollImageLength = RollImage.length -1

var RollImagePath = "/francais/radio/img/"

var RollImageFormat = "gif"

if ( ( document.images ) )
	{
	var RollImageOn = new Array (RollImageLength)
	for ( i=0 ; i<=RollImageLength ; i++ )
		{
		if ( RollImage[i] )
			{
			RollImageOn[i] = new Image()
			RollImageOn[i].src = RollImagePath + RollImage[i] + "_on." + RollImageFormat
			}
		}
	var RollImageOff = new Array (RollImageLength)
	for ( i=0 ; i<=RollImageLength ; i++ )
		{
		if ( RollImage[i] )
			{
			RollImageOff[i] = new Image()
			RollImageOff[i].src = RollImagePath + RollImage[i] + "." + RollImageFormat
			}
		}
	}

function Roll (position,action)
	{
	RollImageName = "roll-" + position
	if ( action )
		{
		document.images[RollImageName].src = RollImageOn[position].src
		}
	else
		{
		document.images[RollImageName].src = RollImageOff[position].src
		}
	}
