function roll_on(Thisimages) {
  Thisimages.src = Thisimages.src.replace('_off','_on');
} 

function roll_off(Thisimages) {
  Thisimages.src = Thisimages.src.replace('_on','_off');
} 


// Rotation grand----------
function slideit1()
{
 if ( rotation_courant1 + 1 >  nbr_rotation1 ) {
	 rotation_courant1    = 0;
	 rotation_precedent1 = nbr_rotation1;

 } else {

	 rotation_tmp1 = rotation_courant1;
	 rotation_courant1++;
	 if (rotation_courant1 + 1 > nbr_rotation1 ) rotation_courant1 = 0;
	 rotation_precedent1 = rotation_tmp1;
 }
 courant1 = document.getElementById('rotationimage1').style.backgroundImage;
 nouveau1 = courant1.replace('0'+ordre1[rotation_precedent1] , '0'+ordre1[rotation_courant1] );
 document.getElementById('rotationimage1').style.backgroundImage = nouveau1; // affecte la nouvelle image
}
// ------------------------


// Rotation petit----------
function slideit2()
{
 if ( rotation_courant2 + 1 >  nbr_rotation2 ) {
	 rotation_courant2   = 0;
	 rotation_precedent2 = nbr_rotation2;

 } else {

	 rotation_tmp2 = rotation_courant2;
	 rotation_courant2++;
	 if (rotation_courant2 + 1 > nbr_rotation2 ) rotation_courant2 = 0;
	 rotation_precedent2 = rotation_tmp2;
 }
 courant2 = document.getElementById('rotationimage2').style.backgroundImage;
 nouveau2 = courant2.replace(ordre2[rotation_precedent2] , ordre2[rotation_courant2] );
 document.getElementById('rotationimage2').style.backgroundImage = nouveau2; // affecte la nouvelle image
}
//-----------------------


// interval grand----------
function setslide1(which1)
{

	clearInterval(runit1)
	maininc1=which1
	subinc1=0
	runit1=setInterval("slideit1()",interval1)
}
//---------------------------

// interval petit----------
function setslide2(which2)
{
	
	clearInterval(runit2)
	maininc2=which2
	subinc2=0
	runit2=setInterval("slideit2()",interval2)
}
//---------------------------