
//  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// CONTROLER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function Controler(){
	// - - - - -
	if (typeof View.initialized == "undefined"){
		
		// OVER
		Event.observe('centre', 'mouseover', function(){modele.openmenu();});
		// OUT
		//Event.observe('centre', 'mouseout', function(){modele.closemenu();});
		// CLIK
		//Event.observe('imagelesprojets', 'click', function(){modele.lesprojets();});
		//
	
		// index artiste 
		// OVER
		//Event.observe('image_indexartistes', 'mouseover', function(){view.overindexartistes();});
		// OUT
		//Event.observe('image_indexartistes', 'mouseout', function(){view.outindexartistes();});
		// CLICK
		//Event.observe('image_indexartistes', 'click', function(){modele.indexartistes();});
		// ouvrir sous menu
		/*
		$$('span.mainlevel').each(function(elemt) {
			Event.observe(elemt, 'click', function(event) {
				view.indexartistes(event);
			});
		});
		*/
		//
	}
}//Controler


// strater  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function starter(){
	//
	view = new View();
	modele = new Modele();
	controler = new Controler();
	//
}//starter

Event.observe(window, 'load', starter);


