function main() {
	// SPECTACLE INFO-BULLE
	if(info = get('.spectacle-InfoBulle')){
		for(var i=0;i<info.length;i++){
			bulle = info[0].get('div')[0];
			bulle.style.display = 'none';
			bulle.style.position = 'absolute';

			info[i].onmouseover = function() {
				this.get('div')[0].fadeIn();
			};
			info[i].onmouseout = function() {
				this.get('div')[0].fadeOut();
			};
		}
	}


	// INFO-BULLE PROF
	if(prof = get('div.atelierTheatre-Prof')){
		for(var i=0;i<prof.length;i++){
			prof[i].get('div')[0].style.left = '150px';
			prof[i].onmousemove = function(event){
				div = this.get('div')[0];
				divHeight = div.clientHeight;
				div.style.top = (mouseY(event)-divHeight - 20) + 'px';
			};
			prof[i].onmouseover = function(){this.get('div')[0].fadeIn();};
			prof[i].onmouseout = function() {this.get('div')[0].fadeOut();};
		}
	}
	

	// THEATRE PHOTOS
	if(photos = get('img.theatre-Photo')){
		var photoDisplay = get('#theatre-Photos-Display');
		document.imgPreload = new Array();
		for(var i=0;i<photos.length;i++){
			document.imgPreload[i] = new Image;
			document.imgPreload[i].src = './images/theatre/'+photos[i].id+'.jpg';

			photos[i].onmouseover = function() {
				photoDisplay.get('img')[0].src = './images/theatre/'+this.id+'.jpg';
				photoDisplay.fadeIn();
			};
			photos[i].onmouseout = function() {
				photoDisplay.fadeOut();
			};
		}
	}
    
    
    // ATELIER PHOTOS
	if(photosAtelier = get('img.ateliers-Photo')){
		var photoDisplayAtelier = get('#ateliers-Photos-Display');
		document.imgPreload = new Array();
		for(var i=0;i<photosAtelier.length;i++){
			document.imgPreload[i] = new Image;
			document.imgPreload[i].src = './images/ateliers/'+photosAtelier[i].id+'.jpg';

			photosAtelier[i].onmouseover = function() {
				photoDisplayAtelier.get('img')[0].src = './images/ateliers/'+this.id+'.jpg';
			};
		}
	}
}

addLoadEvent(main);

