// JavaScript Document
document.observe("dom:loaded", function() {
	/**	Liste des observe à lancer après chargement de la page 
		Event.observe('idAOberser', 'actionAObserver', function() {fonctionALancer()}); 
	**/		
		//Event.observe('enfant', 'change', function() {controlFormulaire.afficheAge($F('enfant'))});
		//Event.observe('formulaireerreur', 'click', function() {$('formulaireerreur').hide();});
		
	/** Listes des fonctions à lancer après chargement de la page **/
	//$('contenuVille').hide();
	//$('ageenfantzone').hide();
	
	//controlFormulaire.load();
});

carte = {

	//contentu	:	"fnn fzef zefhzeo fhz hfz";
	
	recupContenu : function(uid){
		
	},
	
	
//	affichePop : function(){
//		
//		w2 = new UI.Window({
//			  theme: "mac_os_x",
//			  width: 200,
//			  height: 330,
//			  top: 10,
//			  left: 450,
//			  shadow:true,
//			  resizable: true,
//		});
//		w2.setContent("<h3>blablabla</h3>").show();
//
//	}
	
	affichePop : function(uid){
		
		var url = encodeURIComponent('index.php?id=67&tx_region_pi1[uid]=2');
		var url = 'index.php?id=67&tx_region_pi1[uid]=' + uid;
		// notice the use of a proxy to circumvent the Same Origin Policy.
		
		new Ajax.Request(url, {
		  method: 'post',
		  onSuccess: function(transport) {
			$('contenuVille').update(transport.responseText);
			//this.showPopDefer.defer($('contenuVille'));
			$('contenuVille').style.width="480px";
			$('contenuVille').style.height="290px";
			$('contenuVille').style.padding="20px";
			$('contenuVille').show();
		  }
		});

		//$('cartefrance').update("rrr");
	},
	
	showPopDefer : function(elt){
		alert(elt);
		elt.show();
	},
	
	fermePop : function(){
		$('contenuVille').hide();
	}
}
