function Outlook_g_browserType() 
{
  this.ogname = navigator.appName;
  this.ogversion = navigator.appVersion;			        //Version string
  this.ogdom=document.getElementById?1:0			                //w3-dom
  this.ogop5=(this.ogname.indexOf("Opera") > -1 && (this.ogdom))?1:0	 //Opera Browser
  this.ogie4=(document.all && !this.ogdom)?1:0			           //ie4
  this.ogie5=(this.ogdom && this.ogversion.indexOf("MSIE ") > -1)?1:0	     //IE5, IE6?
  this.ogns4=(document.layers && !this.ogdom)?1:0			           //NS4
  this.ogns5=(this.ogdom && this.ogversion.indexOf("MSIE ") == -1)?1:0 //NS6, Mozilla5
  if (this.ogie4 || this.ogie5) {
    document.write('<DIV id=ogtestOpera style="position:absolute; visibility:hidden">TestIfOpera5</DIV>');
    if (document.all['ogtestOpera'].style.clip=='rect()') {
      this.ogie4=0;
      this.ogie5=0;
      this.ogop5=1;
    }
  }	 

  this.ogok=(this.ogie4 || this.ogie5 || this.ogns4 || this.ogns5 || this.ogop5) //any DHTML
  eval ("browserType=this");
}
Outlook_g_browserType();

/*var loop, timer;
var nbtot=(Contentmenu.length-1); // le nombre total de rubrique et de menus

if (!pushed) var pushed=2; // l'id numérique du menu à ouvrir par défaut

var speed=100; // la vitesse de defilement
var pas=10;  // le pas du défilement
var difference=0;
var hspace=2;

var totRubrique=0; // Nombre total de Rubriques
var totMenu=0; // Nombre total de Menus

for (me=1;me<Contentmenu.length;me++){
	if (Contentmenu[me][1]==1) totRubrique++;
	else totMenu++;
}


if (document.body){ 
	var winheight = (document.body.clientHeight); 
	var winwidth = (document.body.clientWidth); 
} else { 
	var winheight = (window.innerHeight); 
	var winwidth = (window.innerWidth); 
}

if (!OutlookHeaderSize) var OutlookHeaderSize=96;
if (!OutlookRubriqueSize) var OutlookRubriqueSize=16;
if (!OutlookMenuSize) var OutlookMenuSize=22;

wheight=winheight-OutlookHeaderSize-(totRubrique*OutlookRubriqueSize)-(totMenu*OutlookMenuSize);
if (wheight<100){wheight=100;}	 */

/* Les styles */
var cssmain1="contentmaintable1";
var cssmain2="contentmaintable2";
var cssmainupbg="contentupbg";
var csscontentmainbgtop="contentnmbgtop";
var cssimgrubrique="contentnmimgrubrique";
var cssmainupimg="contentupimg";
var cssmaindownbg="contentdownbg";
var cssmaindownimg="contentdownimg";
var cssmenuniv1="contentrubrique";
var cssmenuniv2="contentsubrubrique";
var cssmenuniv2a="contentsubrubrique2";
var cssmenuniv3="contentssrubrique";
var csssubmenu="contentlink";
var csssubmenuover="contentlink2";
var csssubmenupush="contentlink3";
var cssbouton1="contentbutton1";
var cssbouton2="contentbutton2";
var cssarrow="contentarrow"; 

function doPopup(url){
window.open(url,'',"scrollbars=yes,resize=yes,status=no,width=400,height=300");
} 

function selectContentlink(obj)
{
	
}


function FirstOutlookActivation(obj){
//firstactiv=window.setTimeout("hideshow("+obj+")",400);
} 



function StopNow(){
	window.clearTimeout(even);
}

function Deplace(Dobj,Dmove){	
	 TempDContent="<table cellspacing=0 cellpadding=0 border=0 width=100%>"; 
	 if ((MenuScroll[Dobj][0]+Dmove)>=1 && (MenuScroll[Dobj][0]+Dmove)<=(MenuScroll[Dobj].length-5)){
	 	j=MenuScroll[Dobj][0]+Dmove; 
	 	MenuScroll[Dobj][0]=j;
		for(i=j; i<j+5; i++)
	 	{
			TempDContent+="<tr><td nowrap>"+MenuScroll[Dobj][i]+"</td></tr>";
	 	}
		TempDContent+="</table>";
		document.getElementById(Dobj).innerHTML=TempDContent;
	} 
	even=window.setTimeout("Deplace('"+Dobj+"',"+Dmove+")",400); 
}

function HeaderChange(HCColor,HCTitle){
	//document.getElementById("headerRubTitle").innerHTML="<div>"+HCTitle.toUpperCase()+"</div>";	
	//document.getElementById("headerBackground").className="headerbg"+HCColor;
}



//Table de correspondance Caractères
StringCorresp=new Array(); 
StringCorresp['.']=1;
StringCorresp['i']=2;
StringCorresp['f']=StringCorresp['l']=StringCorresp['I']=3;
StringCorresp['j']=StringCorresp['r']=StringCorresp['t']=StringCorresp['(']=StringCorresp[')']=4;	 
StringCorresp['v']=5; 
StringCorresp['J']=6; 
StringCorresp['a']=StringCorresp['b']=StringCorresp['c']=StringCorresp['d']=StringCorresp['e']=StringCorresp['é']=StringCorresp['è']=StringCorresp['ë']=StringCorresp['ê']=StringCorresp['à']=StringCorresp['g']=StringCorresp['h']=StringCorresp['k']=StringCorresp['n']=StringCorresp['o']=StringCorresp['p']=StringCorresp['q']=StringCorresp['s']=StringCorresp['u']=StringCorresp['x']=StringCorresp['y']=StringCorresp['z']=StringCorresp['L']=StringCorresp['T']=StringCorresp['Z']=StringCorresp['0']=StringCorresp['1']=StringCorresp['2']=StringCorresp['3']=StringCorresp['4']=StringCorresp['5']=StringCorresp['6']=StringCorresp['7']=StringCorresp['8']=StringCorresp['9']=StringCorresp['«']=StringCorresp['<']=StringCorresp['>']=7; 	   
StringCorresp['F']=8; 
StringCorresp['A']=StringCorresp['B']=StringCorresp['C']=StringCorresp['D']=StringCorresp['E']=StringCorresp['H']=StringCorresp['K']=StringCorresp['N']=StringCorresp['P']=StringCorresp['R']=StringCorresp['S']=StringCorresp['U']=StringCorresp['V']=StringCorresp['Y']=StringCorresp['w']=9; 
StringCorresp['G']=StringCorresp['O']=StringCorresp['Q']=10;
StringCorresp['m']=StringCorresp['M']=StringCorresp['I']=11;
StringCorresp['W']=13;

//corps du plugin 
//document.write("<body onLoad=\"FirstOutlookActivation(pushed)\" onResize=\"AutoResize()\">");
var Rubstyle=""; MenuScroll=new Array();
//valeur par défaut pour cdtfr et 1001
if(ContentMenuWidth_box==undefined){
	var ContentMenuWidth_box="175";
}
if(ContentNbcar==undefined){
	var ContentNbcar="125";
}
if(ContentNbcarTitle==undefined){
	var ContentNbcarTitle="30";
}



if(Contentmenu.length>0){
	//affiché à la place du nom de la rubrique s'il n'y a pas de rubrique dans la catégorie
	var category_name="";
	
	document.write("<table cellspacing=0 cellpadding=0 border=0>");
	document.write("	<tr>");
	document.write("		<td colspan=3>");
	document.write("			<table cellspacing=0 cellpadding=0  width="+eval(ContentMenuWidth_box+30)+" border=0>");
	document.write("				<tr>");
	document.write("					<td class=\"content_panel_border_top\"><img src=\"images/trans.png\" height=12 width="+eval(ContentMenuWidth_box+30)+"></td>");
	document.write("				</tr>");
	document.write("			</table>");
	document.write("		</td>");
	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td></td>");
	document.write("		<td>");
	document.write("			<table cellspacing=0 cellpadding=0 width="+ContentMenuWidth_box+" align=\"center\" border=0>");
	
	
	var nbRub=0;
	var nbCat=0;
	
	
	for (i=1;i<Contentmenu.length;i++)
	{	
				
		//Rubrique 
		if (Contentmenu[i][1]==1)
		{
			Rubstyle=Contentmenu[i][0].toLowerCase(); 
			rubtemp="";
			for	(p=0; p<Rubstyle.length; p++) 
			{
				if (Rubstyle.substr(p,1)!=" ")
				{
				rubtemp+=Rubstyle.substr(p,1);
				}
			}
			Rubstyle=rubtemp;
			
			if(Rubstyle!="administration" && Rubstyle!="cours" && Rubstyle!="produits" && Rubstyle!="forum" && Rubstyle!="quizz" && Rubstyle!="pages" && Rubstyle!="coinpresse"){
				Rubstyle="cours";
			}
			
			category_name=Contentmenu[i][0];
			
			nbRub=0;
			
			if(nbCat==0){
				//!!!!!!!!!!!!!!!!!!!!!
				document.write("<tr>");
				document.write("<td style=\"padding-top:5px\">");
				
				document.write("	<table cellspacing=0 cellpadding=0 width=\"100%\">");
				document.write("		<tr width=100%>");
				document.write("			<td class=\"content_panel_corner_upleft\"><img src=\"images/trans.png\" height=11 width=13></td>");
				document.write("			<td class=\"content_panel_border_up\" width=100%><img src=\"images/trans.png\" height=11 width=100%></td>");
				document.write("			<td class=\"content_panel_corner_upright\"><img src=\"images/trans.png\" height=11 width=13></td>");
				document.write("		</tr>");
				document.write("	</table>");
				document.write("</td>");
				document.write("</tr>");
				
				document.write("<tr width=\"100%\">");
				document.write("<td>");
				document.write("	<table cellspacing=0 cellpadding=0 width=\"100%\">");
				document.write("		<tr width=100%>");
				document.write("			<td class=\"content_panel_background\" width=\"100%\">");
				//!!!!!!!!!!!!!!!!!!!!!!!!!!
					document.write("<div id=\"fnac_content\">");
						document.write("<div id=\"fnac_contentacc\">");
						
			
				nbCat++;
			}
			else{	
			
				if(Contentmenu[i+1]!=undefined){
					if(Contentmenu[i+1][1]!=1){		
				
						
						document.write("</div><!--fin fnac_contentacc-->");
					document.write("</div><!--fin fnac_content-->");
					document.write("		</td>");
					document.write("	</tr>");
					document.write("</table>");
					//!!!!!!!!!!!!!!!!!!!!!!!!!!!
					document.write("</td>");
					document.write("</tr>");		
					document.write("<tr width=100%>");
					document.write("<td width=100% style=\"padding-bottom:5px\">");		
					document.write("	<table cellspacing=0 cellpadding=0 width=\"100%\">");
					document.write("		<tr width=100%>");
					document.write("			<td class=\"content_panel_corner_downleft\"><img src=\"images/trans.png\" height=11 width=13></td>");
					document.write("			<td class=\"content_panel_border_down\" width=100%><img src=\"images/trans.png\" height=11 width=100%></td>");
					document.write("			<td class=\"content_panel_corner_downright\"><img src=\"images/trans.png\" height=11 width=13></td>");
					document.write("		</tr>");
					document.write("	</table>");
					document.write("</td>");
					document.write("</tr>");
					//!!!!!!!!!!!!!!!!!!!!!
					
					menu_mootool("acch"+nbCat,"mcdiv"+nbCat);
					
					//!!!!!!!!!!!!!!!!!!!!!
					document.write("<tr width=100%>");
					document.write("<td style=\"padding-top:5px;\">");
					
					document.write("	<table cellspacing=0 cellpadding=0 width=\"100%\">");
					document.write("		<tr width=100%>");
					document.write("			<td class=\"content_panel_corner_upleft\"><img src=\"images/trans.png\" height=11 width=13></td>");
					document.write("			<td class=\"content_panel_border_up\" width=100%><img src=\"images/trans.png\" height=11 width=100%></td>");
					document.write("			<td class=\"content_panel_corner_upright\"><img src=\"images/trans.png\" height=11 width=13></td>");
					document.write("		</tr>");
					document.write("	</table>");
					document.write("</td>");
					document.write("</tr>");
					
					document.write("<tr width=100%>");
					document.write("<td>");
					document.write("	<table cellspacing=0 cellpadding=0 width=\"100%\">");
					document.write("		<tr width=100%>");
					document.write("			<td class=\"content_panel_background\" width=\"100%\">");
					//!!!!!!!!!!!!!!!!!!!!!!!!!!
						document.write("<div id=\"fnac_content\">");
							document.write("<div id=\"fnac_contentacc\">");
					nbCat++;
					}
				}
			}
			
			
		} 
		//Lien
		else if (Contentmenu[i][1]==2)
		{
			nbRub++;
		
		
			MenuScroll['boxesmenu'+i]=new Array();
			MenuScroll['boxesmenu'+i][0]=1;
			if (MenuColorState[Contentmenu[i][0]]==undefined) TheCatColor="1";
			else TheCatColor=MenuColorState[Contentmenu[i][0]];		
			
			
			if(Contentmenu[i][0]==""){
				//on reprend le nom de la catégorie
				Contentmenu[i][0]=category_name;
			}
			
			
			document.write("<h3 id=\"installh3\" class=\"acch"+nbCat+"\">"+Contentmenu[i][0].toUpperCase()+"</h3>");
			document.write("<div class=\"mcdiv"+nbCat+"\"><div class=\"selectedacc\">");
			
			document.write("	<table width=100% border=0 cellpadding=\"0\" cellspacing=\"0\">");
			countboucle=0;
			
			// Boucle
			for (j=3;j<(Contentmenu[i].length);j+=9)
			{
				countboucle++;
				LinkContent="<a id='ContentMenID"+Contentmenu[i][j+8]+"' href='";
				if (Contentmenu[i][j+3]=="popup") LinkContent+="javascript:;";
				else {
					LinkContent+=Contentmenu[i][j+1];
					if (Contentmenu[i][j+2]==1) LinkContent+="&feedonly=1";
				}								  
				if (document.all) LinkContent+="' ";
				else if (document.getElementById) LinkContent+="' style='padding-right:100%' ";
				if (Contentmenu[i][j+3]=="popup") 
				{
					if (Contentmenu[i][j+2]==1) FeedonlyState="&feedonly=1"; else FeedonlyState=""; 
					PopState="; doPopup('"+Contentmenu[i][j+1]+FeedonlyState+"')";
				} 
				else PopState="";
				LinkContent+=" onClick=\"HeaderChange("+TheCatColor+",'"+Contentmenu[i][0]+"')"+PopState+"\"";
				if (Contentmenu[i][j+3]!="popup") LinkContent+=" target=\""+Contentmenu[i][j+3]+"\""; 
				if (Contentmenu[i][j+4]) LinkContent+=" title=\"(CTRL+Shift+"+Contentmenu[i][j+4]+")\"";
				LinkContent+=">";
				
				//Raccourcis clavier
				if (Contentmenu[i][j+4])
				{
					if (Contentmenu[i][j+3]=="popup")
					{
						RacLien='doPopup(\''+Contentmenu[i][j+1];
						if (Contentmenu[i][j+2]==1) RacLien+='&feedonly=1';
						RacLien+='\')';
					} 
						else if (Contentmenu[i][j+3]=="_blank") RacLien='window.open(\''+Contentmenu[i][j+1]+'\')';
						else if (Contentmenu[i][j+3]=="_self" || Contentmenu[i][j+3]=="") RacLien='document.location=\''+Contentmenu[i][j+1]+'\'';
						else RacLien=Contentmenu[i][j+3]+'.location=\''+Contentmenu[i][j+1]+'\'';
						EventLeader[compting] = new ShortCut(KeyboardCode[Contentmenu[i][j+4]],false,true,true,RacLien);
						EventList1.add(EventLeader[compting]);
						compting++;
				}	
				if (Contentmenu[i][j+6] && Contentmenu[i][j+6]!=0) LinkContent+="<img src=\"images/trans.png\" border=0 width=0 height=1 align=absmiddle hspace="+hspace+" class=\""+Contentmenu[i][j+6]+"\">";
	
				
				LinkContent+="<img src=\"images/trans.png\" border=0 width=\"128px\" height=\"27px\" class=\"content_btn_discover\"></a>";
				MenuScroll['boxesmenu'+i][countboucle]=LinkContent;
				
				////document.write("	<p class=\"titre"+nbCat+" rouge\">"+Contentmenu[i][j]+"&nbsp;"+LinkContent+"</p>");
				
				document.write("	<tr><td class=\"titre"+nbCat+"\" width=\"65%\" style=\"padding-top:0px\">"+Contentmenu[i][j]+"</td><td style=\"padding-top:0px\" class=\"titre"+nbCat+"\" width=\"35%\" nowrap align=\"left\">"+LinkContent+"</td></tr>");
	
			} 
			
			document.write("	</table>");
	
			document.write("</div></div>");
			// fin de cellule de contenu
			
		}
		// Rubrique lien
		else if (Contentmenu[i][1]==3)
		{	
			/*document.write("<!-- BOX "+i+"-->");
			document.write("<div class=\"boxstyle"+Rubstyle+"\">");
			document.write("<table cellspacing=0 cellpadding=0 height=24 width="+ContentMenuWidth_box+"><tr>");
			document.write("<td class=\"boxheader1\"><img src=\"images/trans.png\" width=38 height=24></td>");
			document.write("<td width="+(ContentMenuWidth_box-38-26)+" class=\"boxheadertitle\">"+Contentmenu[i][0]+"</td>");
			document.write("<td class=\"boxheader2\"><img src=\"images/trans.png\" width=26 height=24></td>");
			document.write("</tr><tr>");
			document.write("<td colspan=3><table cellspacing=0 cellpadding=0 width=100% border=0><tr><td width=100% class=\"yellowline\"><img src=\"images/trans.png\" height=3 width=1></td>");
			document.write("<td class=\"shadow\"><img src=\"images/trans.png\" height=3 width=2></td></tr></table></td>");
			document.write("</tr><tr>");
			document.write("<td colspan=3 class=\"boxcontent");	
			if (MenuColorState[Contentmenu[i][0]]==undefined) document.write("1");
			else document.write(MenuColorState[Contentmenu[i][0]]);
			document.write("\"><table cellspacing=0 cellpadding=0 width=100%><tr>"); 
			document.write("<td width=100% height=1>");
			document.write("<a id=\"");
			document.write(Contentmenu[i][10]);
			document.write("\" href=\"");
			if (Contentmenu[i][6]=="popup"){
				document.write("javascript:;");
			} else {
				document.write(Contentmenu[i][4]);
				if (Contentmenu[i][5]==1){
					document.write("&feedonly=1");
				}
			}
			document.write("\" class=\"");
			if (Contentmenu[i][8]){
				document.write(Contentmenu[i][8]);
			} else {
				document.write(cssmenuniv2);
			}
			if (Contentmenu[i][6]=="popup"){
				document.write("\" onClick=\"doPopup('"+Contentmenu[i][4]);
				if (Contentmenu[i][5]==1){
					document.write("&feedonly=1");
				}
				document.write("')\"");
			} else {
				document.write("\" target=\""+Contentmenu[i][6]+"\"");
			}	
			if (Contentmenu[i][7]){
				document.write(" title=\"(CTRL+Shift+"+Contentmenu[i][7]+")\"");
			}
			document.write(">");
			//Raccourcis clavier
			if (Contentmenu[i][7]){
				if (Contentmenu[i][6]=="popup"){
					RacLien='doPopup(\''+Contentmenu[i][4];
					if (Contentmenu[i][5]==1){
						RacLien+='&feedonly=1';
					}
					RacLien+='\')';
				} else if (Contentmenu[i][6]=="_blank"){
					RacLien='window.open(\''+Contentmenu[i][4]+'\')';
				} else if (Contentmenu[i][6]=="_self" || Contentmenu[i][6]==""){
					RacLien='document.location=\''+Contentmenu[i][4]+'\'';
				} else {
					RacLien=Contentmenu[i][6]+'.location=\''+Contentmenu[i][4]+'\'';
				}
				EventLeader[compting] = new ShortCut(KeyboardCode[Contentmenu[i][7]],false,true,true,RacLien);
				EventList1.add(EventLeader[compting]);
				compting++;
			}
			if (Contentmenu[i][2] && Contentmenu[i][2]!=0){
			document.write("<img src=\"images/trans.png\" border=0 width=0 height=1 align=absmiddle hspace="+hspace+" class=\""+Contentmenu[i][2]+"\">");
			}
			document.write(Contentmenu[i][0]);
			document.write("</a></td>");		
			document.write("<td class=\"shadow\"><img src=\"images/trans.png\" height=3 width=2></td>");
			document.write("</tr></table></td>");
			document.write("</tr><tr>");
			document.write("<td colspan=3><table cellspacing=0 cellpadding=0 width=100% border=0><tr>");
			document.write("<td rowspan=2 class=\"boxcorner"); 
			if (MenuColorState[Contentmenu[i][0]]==undefined) document.write("1");
			else document.write(MenuColorState[Contentmenu[i][0]]);
			document.write("\"><img src=\"images/trans.png\" height=10 width=13></td>");
			document.write("<td height=8 width=100% class=\"boxbottom\"><img src=\"images/trans.png\" height=8 width=1></td>");
			document.write("<td rowspan=2 class=\"boxcornerright\"><img src=\"images/trans.png\" height=10 width=10></td>"); 
			document.write("</tr><tr>");
			document.write("<td height=2 class=\"bottomshadow\"><img src=\"images/trans.png\" height=2 width=1></td>");
			document.write("</tr></table></td>");
			document.write("</tr><tr>");
			document.write("<td colspan=3 height=10><img src=\"images/trans.png\" height=10 width=1></td>");
			document.write("</tr></table>"); 
			document.write("</div>"); 	 
			
			*/ 
		} 
		
	} 
	
	document.write("</div><!--fin fnac_contentacc-->");
	document.write("</div><!--fin fnac_content-->");
	
	document.write("		</td>");
	document.write("	</tr>");
	document.write("</table>");
	
	document.write("</td>");
	document.write("</tr>");
	
	//pour le dernier box de content
	menu_mootool("acch"+nbCat,"mcdiv"+nbCat);
	
	document.write("<tr width=100%>");
	document.write("<td width=100% style=\"padding-bottom:5px\">");
	
	document.write("	<table cellspacing=0 cellpadding=0 width=\"100%\">");
	document.write("		<tr width=100%>");
	document.write("			<td class=\"content_panel_corner_downleft\"><img src=\"images/trans.png\" height=11 width=13></td>");
	document.write("			<td class=\"content_panel_border_down\" width=100%><img src=\"images/trans.png\" height=11 width=100%></td>");
	document.write("			<td class=\"content_panel_corner_downright\"><img src=\"images/trans.png\" height=11 width=13></td>");
	document.write("		</tr>");
	document.write("	</table>");
	document.write("</td>");
	document.write("</tr>");
	
	
	
	
	
	document.write("</table>");
	document.write("</td>");
	document.write("		<td></td>");
	document.write("</tr>");
	
	document.write("<tr>");
	document.write("	<td colspan=3>");
	document.write("		<table cellspacing=0 cellpadding=0 width=\"100%\">");
	document.write("			<tr>");
	document.write("				<td class=\"content_panel_border_bottom\"><img src=\"images/trans.png\" height=12 width=510></td>");
	document.write("			</tr>");
	document.write("		</table>");
	document.write("	</td>");
	document.write("</tr>");
	document.write("</table>");

}

// fin du plugin

