//#

function mimeTypeLib(sMimeType)
	{
	// la fonction reçoit l'URI du type mime en paramètre
	// puis boucle dans les tableaux pour savoir quelle image
	// afficher si elle en fait partie
		var MimeTypes = new Array('tcm:0-7-65544', 'tcm:0-16-65544', 'tcm:0-15-65544', 'tcm:0-4-65544', 'tcm:0-5-65544', 'tcm:0-6-65544');
		var TypeIcons = new Array('<IMG tcmuri="tcm:102-3821" SRC="http:www.elvia.ch/img/switzerland/pdf_tcm102-3821.gif" WIDTH="16" HEIGHT="22"  ALT="pdf document" border="0">', '<IMG tcmuri="tcm:102-31198" SRC="/img/switzerland/mp3_tcm102-31198.gif" WIDTH="16" HEIGHT="22"  ALT="mp3" border="0">', '<IMG tcmuri="tcm:102-32709" SRC="/img/switzerland/mov_icon_tcm102-32709.gif" WIDTH="16" HEIGHT="16"  ALT="QuickTime" border="0">', '<IMG tcmuri="tcm:102-33432" SRC="/img/switzerland/iconword_tcm102-33432.gif" WIDTH="19" HEIGHT="22"  ALT="Word" border="0">', '<IMG tcmuri="tcm:102-33433" SRC="/img/switzerland/iconexcel_tcm102-33433.gif" WIDTH="19" HEIGHT="22"  ALT="Excel" border="0">', '<IMG tcmuri="tcm:102-33434" SRC="/img/switzerland/iconpowerpoint_tcm102-33434.gif" WIDTH="19" HEIGHT="22"  border="0">');
		var TypeExtensions = new Array('pdf document', 'mp3', 'QuickTime', 'Word', 'Excel', '');
	
	for (x = 0 ; x < MimeTypes.length; x++)
		{
		if (MimeTypes[x] == sMimeType)
			{
			//document.write(TypeExtensions[x] + "&nbsp;" + TypeIcons[x]);
			document.write(TypeIcons[x]);
			break;
			}
		}
	
	}
