﻿/* fonction qui déplie / replie une subdivision dans le cadre de classement ou dans un subset */
function displaySubgroup(identifier, img) 
			{
					if (document.getElementById)
						
					{
						var texte = document.getElementById(identifier);
						var image  = document.getElementById(img);
					/*	var link = document.getElementById(linkId); */
						if (texte !=null)
							{
						 if (texte.style.display == 'none')
								{
								texte.style.display = '';
								 image.src=image.src.replace(/(-[^\/]*)?\.(gif|png|jpg)$/, "-open.png");
								
								/* link.setAttributeNode('title');
								link.setAttribute('title', 'Fermer cette section'); */
								 /* link.title='Fermer cette section'; */
								return false;
								}		
							
						 if (texte.style.display == '')
								{
										texte.style.display = 'none';
										 image.src=image.src.replace(/(-[^\/]*)?\.(gif|png|jpg)$/, ".png");
										/* link.title='Voir les subdivisions';	 */
										/*	link.setAttributeNode(title);
										link.setAttribute(title, 'Voir les subdivisions'); */
									return false; 	
								}			
							}	
					}		
			
				
					else if (document.all)
					{
						var texte = document.all['identifier'];
								if (texte !=null)
							{
						 if (texte.style.display == 'none')
								{
								texte.style.display = '';
							
								return false;
								}
						 if (texte.style.display == '')
								{
										texte.style.display = 'none';
							
									return false;	
								}			
							}	
					}
					return false;		
				}
			// fin 