MenuPrincipal=function()
{
	MenuPrincipal.refresh=function()
	{
		for (var i=0 ; i<MenuPrincipal.tabBouton.length ; i++)
		{
			if (MenuPrincipal.tabBouton[i])
			{
				if (i==0)
				{
					MenuPrincipal.tabBouton[i].children().children().children().children().children().children().html("<img src='stylesheet/Accueil.png' style='border:none;'/>");
				}
				else
					MenuPrincipal.tabBouton[i].children().children().children().children().children().children().html('<strong>'+ModeleInteraction.tabCategorie[i][ModeleInteraction.getLangue()]+'</strong>');
			}
		}
	}
	
	MenuPrincipal.tabBouton=new Array();
	
	
	this.me=$("<div/>");
	this.me.css("margin-right",'400px');
	this.me.css('padding' , '0px');
	this.me.attr('id' , 'MenuPrincipalDiv');
	this.me.addClass("MenuPrincipal");
	this.table=$("<ul>");
	this.table.attr('id' , 'MenuPrincipal');
	this.table.addClass("MenuPrincipal");
	if(navigator.appName=='Microsoft Internet Explorer')
		this.table.css('margin-right','50px')
	this.table.css('padding' , '0px');
	
	
	/*this.colonne=$("<tr/>");
	this.colonne.addClass("MenuPrincipal");
	this.table.append(this.colonne);*/
	
	
	var j=0 ;
	for (var i=0 ; i<ModeleInteraction.tabCategorie.length ; i++)
	{
		
		if (ModeleInteraction.tabCategorie[i] && !ModeleInteraction.tabCategorie[i]['plus'])
		{
			MenuPrincipal.tabBouton[i]=new BoutonPrincipal(ModeleInteraction.tabCategorie[i][ModeleInteraction.getLangue()] , ModeleInteraction.tabCategorie[i]["id"] , i , ModeleInteraction.nbCategorieShown);
			j++;
		//	this.colonne.append(MenuPrincipal.tabBouton[i]);
			this.table.append(MenuPrincipal.tabBouton[i]);
		}
	}
	
	
	this.me.append(this.table);
	
	return this.me;
	
}