Plan = function()
{	

	Plan.table='exposants2010'
	var exposant=new Exposant();
	
	this.content=$('<div/>');
	this.me=$("<div/>");
	
	
	var animation = { movie:ModeleInteraction.root+'elements/contenus/Plan/Plan.swf', width:750 , height:700,
     			 majorversion:"6", build:"40" , wmode:"transparent", allowScriptAccess:"always", id:'animPlan' , name:'animPlan'};
	
	
	
	makeExposant=function(reponse , arg2)
	{
		Exposant.chargerContenu(reponse.boutons[0].org,  reponse.boutons[0].emplacement , reponse.boutons[0].categorie , reponse.boutons[0].name , reponse.boutons[0].logo , reponse.boutons[0].adresse , reponse.boutons[0].suburb , reponse.boutons[0].web, reponse.boutons[0].tel , reponse.boutons[0].fax , reponse.boutons[0].desc1 , reponse.boutons[0].desc2 , reponse.boutons[0].state , reponse.boutons[0].country , reponse.boutons[0].email);
		
		Exposant.afficher();
		
	}
	
	
	afficheExposant=function(id)
	{
		
		$.getJSON(ModeleInteraction.root+"elements/contenus/ListeExposant/getExposant.php",
			  {langue:ModeleInteraction.getLangue() , table:Plan.table , idElement:id},
			  makeExposant);
	}
	
	sendAnimation=function(reponse , arg2)
	{
		var anim=recupAnimation('animPlan');
		$.each(reponse.boutons , function(i, n)
		{
			if (n.org=='Joodan id' || n.org=='ENOZONE' || n.org=='AQUALEO' || n.org=='IRISA' || n.org=="Didhaptic")
			{
				
			}
			else if (n.org!='reserve')
				anim.createBouton(n.id , n.emplacement , n.org , n.logo , n.categorie);
			else
				anim.createReserve(n.emplacement);
		});
		
		
	}
	
	
	recupAnimation=function( pAnim ) { if (navigator.appName.indexOf("Microsoft") != -1) return window[pAnim]; else return document[pAnim]; }
	
	declencheFonctionActionSript=function(imgURL)
	{
				
		$.getJSON(ModeleInteraction.root+"elements/contenus/Plan/getExposant.php",
			  {table:Plan.table},
			  sendAnimation);
	}
	 
	
	this.contenu=$("<div id='ok' ></div>");
	UFO.create(animation, 'ok');
	
	$("#"+adresse).css("visibility","hidden");
	
	
	
	this.content.append(this.contenu);
	
	this.me.append(this.content);
	
}