#if ($attachment.fileName.endsWith('.pdf') || $attachment.contentType.equals('application/pdf'))<img src="$staticResourceUrlPrefix/images/icons/attachments/pdf.gif" height=16 width=16 vspace=1 border=0 align=absmiddle alt="PDF File">#*
*##elseif ($attachment.contentType.startsWith('image/gif'))<img src="$staticResourceUrlPrefix/images/icons/attachments/image.gif" height=16 width=16 border=0 vspace=1 align=absmiddle alt="GIF File">#*
*##elseif ($attachment.contentType.startsWith('image/jpeg'))<img src="$staticResourceUrlPrefix/images/icons/attachments/image.gif" height=16 width=16 border=0 vspace=1 align=absmiddle alt="JPEG File">#*
*##elseif ($attachment.contentType.startsWith('text/xml'))<img src="$staticResourceUrlPrefix/images/icons/attachments/xml.gif" height=16 width=16 border=0 vspace=1 align=absmiddle alt="XML File">#*
*##elseif ($attachment.contentType.startsWith('text/html'))<img src="$staticResourceUrlPrefix/images/icons/attachments/html.gif" height=16 width=16 border=0 vspace=1 align=absmiddle alt="HTML File">#*
*##elseif ($attachment.fileName.endsWith('.java') || $attachment.fileName.endsWith('.jar'))<img src="$staticResourceUrlPrefix/images/icons/attachments/java.gif" height=16 width=16 border=0 vspace=1 align=absmiddle alt="Java Source">#*
*##elseif ($attachment.contentType.startsWith('text/plain'))<img src="$staticResourceUrlPrefix/images/icons/attachments/text.gif" height=16 width=16 border=0 vspace=1 align=absmiddle alt="Text File">#*
*##elseif ($attachment.contentType.startsWith('application') && $attachment.contentType.indexOf('zip') != -1)<img src="$staticResourceUrlPrefix/images/icons/attachments/zip.gif" height=16 width=16 border=0 vspace=1 align=absmiddle alt="ZIP Archive">#*
*##elseif ($attachment.fileName.endsWith('.xls') || $attachment.contentType.startsWith('application/vnd.ms-excel'))<img src="$staticResourceUrlPrefix/images/icons/attachments/excel.gif" height=16 width=16 border=0 align=absmiddle alt="Microsoft Excel">#*
*##elseif ($attachment.fileName.endsWith('.ppt') || $attachment.contentType.startsWith('application/vnd.ms-powerpoint'))<img src="$staticResourceUrlPrefix/images/icons/attachments/powerpoint.gif" height=16 width=16 border=0 vspace=1 align=absmiddle alt="Microsoft Powerpoint">#*
*##elseif ($attachment.fileName.endsWith('.doc') || $attachment.contentType.startsWith('application/msword'))<img src="$staticResourceUrlPrefix/images/icons/attachments/word.gif" height=16 width=16 border=0 vspace=1 align=absmiddle alt="Microsoft Word">#*
*##else<img src="$staticResourceUrlPrefix/images/icons/attachments/file.gif" height=16 width=16 border=0 vspace=1 align=absmiddle alt="File">#end