/*!
 * Icons Files Type JavaScript Library v1.0
 * http://sophia.lu/page/en/jqiconsfiles
 *
 * Copyright 2011, Marc Ben Fatma
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 */

$.fn.iconsFilesType = function( options ) {var settings = {'external': false,'mailto': false, 'blank': false,};if ( options ) { $.extend(settings, options );}$('#'+ $(this).attr('id') +" a[href$='.pdf']").attr('class','pdf');$('#'+ $(this).attr('id') +" a[href$='.doc']").attr('class','doc');$('#'+ $(this).attr('id') +" a[href$='.txt']").attr('class','txt');$('#'+ $(this).attr('id') +" a[href$='.pps']").attr('class','pps');$('#'+ $(this).attr('id') +" a[href$='.png']").attr('class','png');$('#'+ $(this).attr('id') +" a[href$='.jpg']").attr('class','jpg');$('#'+ $(this).attr('id') +" a[href$='.bmp']").attr('class','bmp');$('#'+ $(this).attr('id') +" a[href$='.xls']").attr('class','xls');$('#'+ $(this).attr('id') +" a[href$='.doc']").attr('class','doc');$('#'+ $(this).attr('id') +" a[href$='.docx']").attr('class','docx');$('#'+ $(this).attr('id') +" a[href$='.ppt']").attr('class','ppt');$('#'+ $(this).attr('id') +" a[href$='.html']").attr('class','html');$('#'+ $(this).attr('id') +" a[href$='.csv']").attr('class','csv');$('#'+ $(this).attr('id') +" a[href$='.rtf']").attr('class','rtf');$('#'+ $(this).attr('id') +" a[href$='.zip']").attr('class','zip');$('#'+ $(this).attr('id') +" a[href$='.rar']").attr('class','rar');$('#'+ $(this).attr('id') +" a[href$='.psd']").attr('class','psd');if (settings['mailto']) {$('#'+ $(this).attr('id') +" a[href^='mailto:']").attr('class','email');}if (settings['external'] && settings['blank']) {$('a').filter(function() { return this.hostname && this.hostname !== location.hostname;}).addClass("external").attr("target", "_blank");} if (settings['external'] && settings['blank'] == false) { $('a').filter(function() { return this.hostname && this.hostname !== location.hostname;}).addClass("external");} return this;}

