
document.write("<style type='text/css'> #thephoto {visibility:hidden;} </style>");

function initImage() {
  imageId = 'thephoto';
  image = document.getElementById(imageId);
  setOpacity(image, 0);
  image.style.visibility = 'visible';
  fadeIn(imageId,0);
}
function setOpacity(obj, opacity) {
  opacity = (opacity == 100)?99.999:opacity;
  
  // IE/Win
  obj.style.filter = "alpha(opacity:"+opacity+")";
  
  // Safari<1.2, Konqueror
  obj.style.KHTMLOpacity = opacity/100;
  
  // Older Mozilla and Firefox
  obj.style.MozOpacity = opacity/100;
  
  // Safari 1.2, newer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
}
function fadeIn(objId,opacity) {
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity <= 100) {
      setOpacity(obj, opacity);
      opacity += 10;
      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 40);
    }
  }
}
window.onload = function() {initImage()}
 $(document).ready(function(){//on attend que la page soit chargée
	//on donne l'id de la liste visée, et on lui donne ses paramètres
	$("#ll").wslide({
			width: 800,
			height:800,
			col: 2,
			horiz: true,
			autolink: false
	});
	//si vous avez d'autre listes, placez leur code d'initialisation ici à la suite ....
	//$("#autre_liste").wslide({ ...
});
$(function() {
	// Use this example, or...
	//$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
	// This, or...
	$('#gallery a').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.7,
		//imageLoading: 'images/loading.gif',
		//imageBtnClose: 'images/close.gif',
		//imageBtnPrev: 'images/prev.gif',
		//imageBtnNext: 'images/next.gif',
		containerResizeSpeed: 400,
		txtImage: 'photo',
		txtOf: 'sur'
}); // Select all links in object with gallery ID
	// This, or...
	//$('a.lightbox').lightBox(); // Select all links with lightbox class
	// This, or...
	//$('a').lightBox(); // Select all links in the page
	// ... The possibility are many. Use your creative or choose one in the examples above
});

