		  
function checkVendeur()
  {
	var slayer = document.getElementById('layerVendeur');
	slayer.style.display = 'block';
	if (document.formulaire.coordVendeur.checked) slayer.style.display = 'none';
  }
			
		  
function refreshAnnoncePhoto(sURL,theField,sOrigine)
  {
	// load les images uploadés à partir de leur source !
			  
	theForm = document.formulaire;
	noImageURL = sURL + '/Images/sansPhoto.gif';
	
	switch (sOrigine) {
	  case "GAC" : {
		sURL = sURL + '/Accessoire/Photos/';
		break;
	  }
	  case "GAM" : {
		sURL = sURL + '/Moto/Photos/';
		break;
	  }
	  case "GAN" : {
		sURL = sURL + '/Multimedia/Occasion/';
		break;
	  }
	}
	
	switch (theField) {
	  // ---------------------
	  case "Image1" : {
		$('#loaderPhoto1').addClass('init');
		if (theForm.Photo1.value != '') {
			$(function () {
				var img = new Image();
				$(img).load(function () {
					$(this).hide();
					$('#loaderPhoto1').removeClass('init').append(this);
					$('#loaderPhoto1').addClass('loading');
					$(this).fadeIn();
				}).error(function () {
					alert("loading image error : "+sURL+theForm.Photo1.value);
				}).attr({ 
					src:sURL+theForm.Photo1.value, width:"55", height:"40" 
				});
			});
		}
		break; 
	  }
	  // ---------------------
	  case "Image2" : {
		$('#loaderPhoto2').addClass('init');
		if (theForm.Photo2.value != '') {
			$(function () {
				var img = new Image();
				$(img).load(function () {
					$(this).hide();
					$('#loaderPhoto2').removeClass('init').append(this);
					$('#loaderPhoto2').addClass('loading');
					$(this).fadeIn();
				}).error(function () {
					alert("loading image error");
				}).attr({ 
					src:sURL+theForm.Photo2.value, width:"55", height:"40" 
				});
			});
		}
		break; 
	  }
	  // ---------------------
	  case "Image3" : {
		$('#loaderPhoto3').addClass('init');
		if (theForm.Photo3.value != '') {
			$(function () {
				var img = new Image();
				$(img).load(function () {
					$(this).hide();
					$('#loaderPhoto3').removeClass('init').append(this);
					$('#loaderPhoto3').addClass('loading');
					$(this).fadeIn();
				}).error(function () {
					alert("loading image error");
				}).attr({ 
					src:sURL+theForm.Photo3.value, width:"55", height:"40" 
				});
			});
		}
		break; 
	  }
	  // ---------------------
	  case "Image4" : {
		$('#loaderPhoto4').addClass('init');
		if (theForm.Photo4.value != '') {
			$(function () {
				var img = new Image();
				$(img).load(function () {
					$(this).hide();
					$('#loaderPhoto4').removeClass('init').append(this);
					$('#loaderPhoto4').addClass('loading');
					$(this).fadeIn();
				}).error(function () {
					alert("loading image error");
				}).attr({ 
					src:sURL+theForm.Photo4.value, width:"55", height:"40" 
				});
			});
		}
		break; 
	  }
	  // ---------------------
	  case "Image5" : {
		$('#loaderPhoto5').addClass('init');
		if (theForm.Photo5.value != '') {
			$(function () {
				var img = new Image();
				$(img).load(function () {
					$(this).hide();
					$('#loaderPhoto5').removeClass('init').append(this);
					$('#loaderPhoto5').addClass('loading');
					$(this).fadeIn();
				}).error(function () {
					alert("loading image error");
				}).attr({ 
					src:sURL+theForm.Photo5.value, width:"55", height:"40" 
				});
			});
		}
		break; 
	  }
	  // ---------------------
	}
  }

