
var photos=new Array()
var text=new Array()
var oldSel=0
var what=0

var previous_page="/dsite.taf?IdNav=287";
//
var phase_name = "La finition en ateliers";

//Change the below variables to reference your own images. You may have as many images in the slider as you wish
photos[0]="/images/biblio/biblio-69-446.jpg"
photos[1]="/images/biblio/biblio-69-447.jpg"
photos[2]="/images/biblio/biblio-69-448.jpg"

//change coresponding description
text[0]="A la marbrerie, les tranches sont polies et débitées sur une chaîne automatisée. Elles sont d'abord sciées en bandes et ensuite perpendiculairement pour obtenir du dallage."
text[1]="Les machines de façonnage reproduisent les tailles traditionnelles, traitant les surfaces en différentes finitions."
text[2]="Seule la main de l'homme peut façonner avec suffisamment de finesse les pièces courbes et les éléments décoratifs. Les tailleurs de pierre sont indispensables au traitement des pierres en produits finis."

function backward() {
	if (what>0) {
		oldSel = what;
		what--;
		///
		set_slider(what);
	} else {
		window.location = previous_page;
	}
}

function forward() {
	if (what<photos.length-1) {
		oldSel = what;
		what++;
		//
		set_slider(what);
	} 
}

function set_counter(w) {
	var l = photos.length;
	var c = phase_name+" <font color='#666666'>"+(w+1)+"/"+l+"</font>";
	change_txt('visit_pic_holder_title',c);
}

function change_txt(id, texte) {
	var element = null;
	if (document.getElementById) {
		element = document.getElementById(id);
	} else if (document.all) {
		element = document.all[id];
	}
	if (element) {
		element.innerHTML = texte;
	}
}

function init_slider() {
	change_txt('visit_pic_holder_txt',text[0]);
	set_counter(0);
}

function set_slider(w) {
	document.images.photoslider.src = photos[w];
	change_txt('visit_pic_holder_txt', text[w]);
	set_counter(w);
	what = w;
}

function set_selected(w) {
	oldSel = what;
	set_slider(w);
}

window.onload = init_slider;



var a
a= new Array();
a[0]=new Image;
a[0].src="/images/biblio/biblio-69-456.gif";
a[1]=new Image;
a[1].src="/images/biblio/biblio-69-455.gif";

function roll(img,nb) {
    eval("img.src=a["+nb+"].src");
}


var b
b= new Array();
b[0]=new Image;
b[0].src="/images/biblio/biblio-69-458.gif";
b[1]=new Image;
b[1].src="/images/biblio/biblio-69-457.gif";

function roll(img,nb) {
    eval("img.src=b["+nb+"].src");
}






