/*
 Milonic DHTML Website Navigation Menu - Version 3.x
 Written by Andy Woolley - Copyright 2002 (c) Milonic Solutions Limited. All Rights Reserved.
 Please visit http://www.milonic.co.uk/menu or e-mail menu3@milonic.com for more information.

 The Free use of this menu is only available to Non-Profit, Educational & Personal web sites.
 Commercial and Corporate licenses  are available for use on all other web sites & Intranets.
 All Copyright notices MUST remain in place at ALL times and, please keep us informed of your
 intentions to use the menu and send us your URL.
*/


//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<scr"+"ipt language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/scr"+"ipt>";_d.write(mt)}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.







Navigateur = navigator.appName;
if (Navigateur!='Microsoft Internet Explorer')    // FIREFOX
   {
    if (document.body) var larg_client = (document.body.clientWidth);
    else var larg_client = (window.innerWidth);

    var tab_script=document.location.toString().split('/');
    var script = tab_script[tab_script.length -1];

    larg=(larg_client-800)/2;

    larg+=-9;

    if (larg==103) larg=94;
    if (larg==231) larg=222;
    if (larg==-9) larg=-1;
    if ((script=='P_Accueil.php')|(script=='P_Fichierpublic.php')|(script=='P_Formpublic.php')|(script=='P_Valeurs.php')|(script=='P_Implantations.php')|(script=='P_Activite.php')|(script=='P_Journal.php')|(script=='P_Newspubliques.php')|(script=='P_Publication2.php')|(script=='P_Accueil.php')|(script=='P_MenuRecherche.php')|(script=='P_Contact.php')|(script=='P_PlanSite.php')|(script=='P_AccueilId.php')) larg+=9;
    hauteur=144;
    if ((script=='P_Formpublic.php')|(script=='P_Liens.php')) hauteur+=5;
    var center='';
   }
else    
     { 
       var larg='';
       center='center';
       if (script=='P_MenuRecherche.php') hauteur=160;
       else  hauteur=154;

     }



 var soc='Société';
 var act='Actualités';
 var pub='Publications';
 var tel='Téléchargements';
 var lie='Liens'

 var soc1='Présentation';
 var soc2='Missions';
 var soc3='Valeurs';
 var soc4='Implantation';
 var soc5='Qui sommes-nous ?';

 var act1='Les news';
 var act2='Journal de l\'OSAC';
 var act3='Rapport d\'activité';
 var act4='Cette rubrique présentera l\'actualité complète de OSAC : communiqués de presse, agenda, publications, ...';

 //var pub1='Documentation papier';
 //var pub2='CD-ROM';
 //var pub3='Achat-Abonnement';

 var tel1='Documents';
 var tel2='Formulaires';
 var tel3='Consignes de navigabilité';


//document.write("variable selon chaque navigateur concernant le menu");
//document.write("largeur = "+larg+"<br>");
//document.write("center = "+center+"<br>");


////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
//effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"

repImg="../matthias/menu_gsac/"

timegap=500			// The time delay for menus to remain visible
followspeed=5		// Follow Scrolling speed
followrate=40		// Follow Scrolling Rate
suboffset_top=4;	// Sub menu offset Top position
suboffset_left=6;	// Sub menu offset Left position
closeOnClick = true

style1=[			// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"navy",				// Mouse Off Font Color
"ccccff",			// Mouse Off Background Color
"ffebdc",			// Mouse On Font Color
"4b0082",			// Mouse On Background Color
"FFFFFF",			// Menu Border Color
12,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"bold",				// Font Weight (bold or normal)
"Verdana, Arial",	        // Font Name
4,			        // Menu Item Padding
,	                	// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"66ffff",			// 3D High Color
"000099",			// 3D Low Color
//"Purple",			// Current Page Item Font Color (leave this blank to disable)
,
//"pink",
,					// Current Page Item Background Color (leave this blank to disable)
,					// Top Bar image (Leave this blank to disable)
"ffffff",			// Menu Header Font Color (Leave blank if headers are not needed)
//"000099",			// Menu Header Background Color (Leave blank if headers are not needed)
,			// Menu Header Background Color (Leave blank if headers are not needed)
//"navy",				// Menu Item Separator Color
,				// Menu Item Separator Color
]


addmenu(menu=[	        	// This is the array that contains your menu properties and details
"mainmenu",			// Menu Name - This is needed in order for the menu to be called
hauteur,			// Menu Top - The Top position of the menu in pixels
larg,				// Menu Left - The Left position of the menu in pixels
198,					// Menu Width - Menus width in pixels
,					// Menu Border Width
center,					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,				// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
center,				// "left" Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,					// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,					// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,					// Position of TOP sub image left:center:right
,					// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,					// Right To Left - Used in Hebrew for example. (1=on/0=off)
,					// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,					// Background image for menu when BGColor set to transparent.
,					// Scrollable Menu
,					// Reserved for future use

,soc,"show-menu=news",,"",1
,act,"show-menu=webmaster",,"",1
,tel,"show-menu=search",,"",1
,lie,"P_Liens.php",,"",1
])

/*FBA le 07/10/2010 page en construction*/
	addmenu(menu=["news",
	,,200,1,,style1,0,"left",0,0,,,,,,,,,,,
	,"<img src="+repImg+"presentation.gif border=0>&nbsp;"+soc1,"P_Presentation.php",,,1
	,"<img src="+repImg+"journal.gif border=0>&nbsp;"+soc5,"../files/OSAC_annonce_Presse.pdf",,,1
	,"<img src="+repImg+"implementation.gif border=0>&nbsp;"+soc4,"P_Implantations.php",,,1
	])


	addmenu(menu=["webmaster",
	,,200,1,,style1,0,"left",0,0,,,,,,,,,,,
	,act4,"",,,1
	,"<img src="+repImg+"news.gif border=0>&nbsp;"+act1,"P_Newspubliques.php",,,1
	])


    /*    addmenu(menu=["downloads",,,180,1,,style1,0,"left",0,0,,,,,,,,,,,
	//,"<img src="+repImg+"news.gif border=0>&nbsp;"+pub1,"P_Publication1.php",,,1
	,"<img src="+repImg+"news.gif border=0>&nbsp;"+pub1,"P_Construction.php",,,1
	//,"<img src="+repImg+"cd.gif border=0>&nbsp;"+pub2,"P_Publication2.php",,,1
	,"<img src="+repImg+"cd.gif border=0>&nbsp;"+pub2,"P_Construction.php",,,1
	//,"<img src="+repImg+"news.gif border=0>&nbsp;"+pub3,"http://www.apave.com",,,1
	,"<img src="+repImg+"news.gif border=0>&nbsp;"+pub3,"P_Construction.php",,,1
	])*/


	addmenu(menu=["search",
	,,200,1,"",style1,,"",0,,,,,,,,,,,,
	,"<img src="+repImg+"doc.gif border=0>&nbsp;"+tel1, "P_Fichierpublic.php",,,1
	,"<img src="+repImg+"formulaire.gif border=0>&nbsp;"+tel2, "P_Formpublic.php",,,1
	,"<img src="+repImg+"consigne.gif border=0>&nbsp;"+tel3, "P_ConsignesNav.php",,,1
	])


dumpmenus()

