function changeimage(artist,number)
{
	var pop=new Array();
	
	pop[1]="Voilette devant miroir";
	pop[2]="Nature morte à la bougie";
	pop[3]="Le peintre et le modèle";
	pop[4]="Conversation sérieuse";
	pop[5]="Le musicien Irina";
	pop[6]="A la santé";
	pop[7]="Le café du matin";
	pop[8]="La liqueur des baies";
	pop[9]="La fenêtre ouverte";
	
	var pop2=new Array();
	
	pop2[1]="Little veil before the mirror";
	pop2[2]="Still life with candle"
	pop2[3]="Artist and model";
	pop2[4]="Serious conversation";
	pop2[5]="Irina, the musician";
	pop2[6]="Your health !";
	pop2[7]="Morning coffee";
	pop2[8]="Bayberry liqueur";
	pop2[9]="Open Window";

	var aiz=new Array();
	
	aiz[1]="Le port de Saint-Tropez";
	aiz[2]="Place Saint-Marc";
	aiz[3]="Le Port II";
	aiz[4]="La baie de St-Tropez et les régates";
	aiz[5]="Saint-Tropez, la chapelle Sainte-Anne";
	aiz[6]="Venise le grand canal";
	
	var aiz2=new Array();
	
	aiz2[1]="Port of Saint-Tropez";
	aiz2[2]="St. Mark's square";
	aiz2[3]="The Port II";
	aiz2[4]="Regattas in St. Tropez bay";
	aiz2[5]="Saint-Tropez, Sainte-Anne's chapel";
	aiz2[6]="Venice the grand canal";
	
	var cass=new Array();
	
	cass[1]="Concerto pour la passion";
	cass[2]="Prélude à l'après-midi d'un faune";
	cass[3]="L'arche";
	cass[4]="Les noces de Bacchus";
	cass[5]="Cérémonie secrète";
	cass[6]="Europa";
	
	var cass2=new Array();
	
	
	cass2[1]="Concerto for passion";
	cass2[2]="Prelude to afternoon of a faun";
	cass2[3]="The Arch";
	cass2[4]="Bacchus's wedding";
	cass2[5]="Secret ceremony";
	cass2[6]="Europa";
	
	var nix=new Array();
	
	nix[1]="Garden party";
	nix[2]="Adam et Eve";
	nix[3]="Variante de carré de soie - Treillis de roses";
	nix[4]="Elisabeth I, Variante (Scarabées)";
	
	var nix2=new Array();
	
	nix2[1]="Garden party";
	nix2[2]="Adam &amp; Eve";
	nix2[3]="Handkerchief variation - rose trellis";
	nix2[4]="Elisabeth I, Variation (Beetles)";

  var im = document.getElementById('paint');
	var txt = document.getElementById('txt');
	
	if(artist=="popov")
	{
	 texte = pop[number];
	 chemin = "img/visu_360/popov_0"+number+".jpg";
	}
	if(artist=="popov2")
	{
	 texte = pop2[number];
	 chemin = "img/visu_360/popov_0"+number+".jpg";
	}
	if(artist=="aizpiri")
	{
	 texte = aiz[number];
	 chemin = "img/visu_360/aizpiri_0"+number+".jpg";
	}
	if(artist=="aizpiri2")
	{
	 texte = aiz2[number];
	 chemin = "img/visu_360/aizpiri_0"+number+".jpg";
	}
	if(artist=="cass")
	{
	 texte = cass[number];
	 chemin = "img/visu_360/cass_0"+number+".jpg";
	}
	if(artist=="cass2")
	{
	 texte = cass2[number];
	 chemin = "img/visu_360/cass_0"+number+".jpg";
	}
	if(artist=="nix")
	{
	 texte = nix[number];
	 chemin = "img/visu_360/Nix_0"+number+".jpg";
	}
	if(artist=="nix2")
	{
	 texte = nix2[number];
	 chemin = "img/visu_360/Nix_0"+number+".jpg";
	}
	
	im.src = chemin;
	txt.innerHTML = texte;
	

}


function changePeintures(urlpeinture) {
  if (!document.styleSheets) return;
  var regles=new Array();
  if (document.styleSheets[0].cssRules) regles=document.styleSheets[0].cssRules
  else if (document.styleSheets[0].rules) regles = document.styleSheets[0].rules
  else return
  regles[2].style.background= 'url('+urlpeinture+') no-repeat center';
} 

function affichJosepha(numero){

var texte=new Array();

texte[0]="Deux soeurs";
texte[1]="Les colombes";
texte[2]="Confidences";
texte[3]="Femme aux ballons";
texte[4]="Pegase";
texte[5]="Petite musique d'automne";
texte[6]="Premier songe";
texte[7]="La sieste";

document.getElementById('contenu').innerHTML=texte[numero];
}

function affichJosephaEn(numero){

var texte=new Array();

texte[0]="Two sisters";
texte[1]="The doves";
texte[2]="Secret";
texte[3]="Woman with balloons";
texte[4]="Pegasus";
texte[5]="A little autumn music";
texte[6]="First dream";
texte[7]="Siesta";

document.getElementById('contenu').innerHTML=texte[numero];
}

function affichAzuelos(numero){

var texte=new Array();

texte[0]="Façades bleues - 2000";
texte[1]="Folklore marocain - 2002";
texte[2]="La fontaine - 1998";
texte[3]="Le mas provençal - 1998";
texte[4]="Village provençal - 1998";

document.getElementById('contenu').innerHTML=texte[numero];
}

function affichAzuelosEn(numero){

var texte=new Array();

texte[0]="Blue facades - 2000";
texte[1]="Moroccan folklore - 2002";
texte[2]="The fountain - 1998";
texte[3]="Farmhouse in Provence - 1998";
texte[4]="Village in Provence - 1998";

document.getElementById('contenu').innerHTML=texte[numero];
}

function affichTcham(numero){

var texte=new Array();

texte[0]="L&rsquo;âme des princesses dans les dédales du harem";
texte[1]="Les blessures de l&rsquo;amour sont dans les amandiers";
texte[2]="Le bleu des lagons";
texte[3]="Lila la favorite";
texte[4]="La mélancolie";
texte[5]="La mosquée bleue";
texte[6]="Les mosquées sucrées";
texte[7]="Princesse XY";

document.getElementById('contenu').innerHTML=texte[numero];
}

function affichTchamEn(numero){

var texte=new Array();

texte[0]="The princesses' spirit in the maze of the harem";
texte[1]="The wounds of love are in the almond trees";
texte[2]="Blue of the lagoons";
texte[3]="Lila the favorite";
texte[4]="Melancholy";
texte[5]="The blue mosque";
texte[6]="Sugared mosques";
texte[7]="Princess XY";

document.getElementById('contenu').innerHTML=texte[numero];
}

function winOpen(adresse,largeur,hauteur)
{
window.open(adresse,'PopUp','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,copyhistory=0,menuBar=0,width='+largeur+',height='+hauteur+'');
}

function addAnEvent( target, eventName, functionName )
{
    // apply the method to IE
    if ( browser.isIE )
    {
        //attachEvent dont work properly with this
        eval('target.on'+eventName+'=functionName');
    }
    // apply the method to DOM compliant browsers
    else
    {
        target.addEventListener( eventName , functionName , true ); // true is important for Opera7
    }
}

