// JavaScript Document

var	images_name = new Array("http://www.ambiancebotaniqueconcept.fr/photos/amenagement-rocaille-yvelines-aigremont.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/arbuste-terre-de-bruyere-yvelines-aigremont.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/massif-fleurs-yvelines-saint-germain-en-laye.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/pelouse-gazon-abris-jardin-yvelines-montesson.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/pas-japonais-bambou-azalee-cheminement-yvelines-montesson.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/pas-japonais-cheminement-yvelines-montesson.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/abris-jardin-val-d-oise-saint-ouen-l-aumone.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/jardin-val-d-oise-saint-ouen-l-aumone.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/allée-cheminement-val-d-oise-osny.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/terrasse-gazon-plantation-yvelines-poissy.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/gazon-massif-yvelines-coignieres.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/gazon-pas-japonais-plantation-massif-yvelines-le-pecq.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/graviers-devanture-bambou-pas-japonais-plantation-yvelines-plaisir.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/terrasse-massif-fleurs-arbuste-azalee-yvelines-poissy.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/amendement-pelouse-gazon-en-cours-yvelines-le-pecq.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/massif-terre-de-bruyere-yvelines-elancourt.jpg", "http://www.ambiancebotaniqueconcept.fr/photos/plantation-massif-yvelines-conflans-saint-honorine.jpg");
var	images = new Array(images_name.length);
var	top = 0;
var	bottom = 10;

var speed_change = 5000;

function	change_image_top()
{
	$("#top_image").fadeOut("slow");
	document.getElementById('link_top').href = images_name[top];
	document.top_image.src = images[top++].src;
	if (top == images_name.length) top = 0;
	$("#top_image").fadeIn("slow");
}

function	change_image_bottom()
{
	$("#bottom_image").fadeOut("slow");
	document.getElementById('link_bottom').href = images_name[bottom];
	document.bottom_image.src = images[bottom++].src;
	if (bottom == images_name.length) bottom = 0;
	$("#bottom_image").fadeIn("slow");
}

function	init_images()
{
	for (i = 0; i != images_name.length; i++)
		{
			images[i] = new Image();
			images[i].src = images_name[i];
		}
}
