/* removing iconify js
$(document).ready(function(){
  var extensions = ['doc','pdf','ppt','rtf','txt','xls'];
  var containers = ['#dsLeft','#dsLeft-wide','#dsRight'];
  $(document).iconify(extensions, containers);
});
*/

// Absolute path for the root of the site
var path = '/';


/** NEED TO ADD IMG TAGS IN A INSTEAD OF CSS CLASS WITH BG IMG */
$(document).ready(function(){
	$("a[href$=pdf]").not(".has-icon").not(":has(img)").addClass('doc_icon').after(' <img class="icon" src="'+path+'sites/all/themes/ctfk_new/images/icons/icon_pdf.gif" width="14" height="14" alt=" (PDF)">');
	$("a[href$=doc]").not(".has-icon").not(":has(img)").addClass('doc_icon').after(' <img class="icon" src="'+path+'sites/all/themes/ctfk_new/images/icons/icon_doc.gif" width="14" height="14" alt=" (Word Document)">');
	$("a[href$=xls]").not(".has-icon").not(":has(img)").addClass('doc_icon').after(' <img class="icon" src="'+path+'sites/all/themes/ctfk_new/images/icons/icon_xls.gif" width="14" height="14" alt=" (Spreadsheet)">');
	$("a[href$=ppt]").not(".has-icon").not(":has(img)").addClass('doc_icon').after(' <img class="icon" src="'+path+'sites/all/themes/ctfk_new/images/icons/icon_ppt.gif" width="14" height="14" alt=" (Presentation)">');
	$("a[href$=rtf]").not(".has-icon").not(":has(img)").addClass('doc_icon').after(' <img class="icon" src="'+path+'sites/all/themes/ctfk_new/images/icons/icon_rtf.gif" width="14" height="14" alt=" (Rich Text File)">');
	$("a[href$=txt]").not(".has-icon").not(":has(img)").addClass('doc_icon').after(' <img class="icon" src="'+path+'sites/all/themes/ctfk_new/images/icons/icon_txt.gif" width="14" height="14" alt=" (Text File)">');
});