/* To avoid CSS expressions while still supporting IE 7 and IE 6, use this script */
/* The script tag referencing this file must be placed before the ending body tag. */
/* Use conditional comments in order to target IE 7 and older:
*/
(function() {
function addIcon(el, entity) {
var html = el.innerHTML;
el.innerHTML = '' + entity + '' + html;
}
var icons = {
'vicon-accounts': '',
'vicon-add': '',
'vicon-alert': '',
'vicon-assets': '',
'vicon-attachment': '',
'vicon-autoresponder': '',
'vicon-bell': '',
'vicon-bulb': '',
'vicon-calendar': '',
'vicon-calendaragenda': '',
'vicon-calendarlist': '',
'vicon-call': '',
'vicon-camera': '',
'vicon-campaigns': '',
'vicon-cases': '',
'vicon-chat': '',
'vicon-close': '',
'vicon-code': '',
'vicon-codebraces': '',
'vicon-cog': '',
'vicon-columns': '',
'vicon-compose': '',
'vicon-contacts': '',
'vicon-customerportal': '',
'vicon-default': '',
'vicon-detailreport': '',
'vicon-documents': '',
'vicon-duplicaterecords': '',
'vicon-edit': '',
'vicon-emailcampaigns': '',
'vicon-emails': '',
'vicon-emailtemplates': '',
'vicon-engagementhistory': '',
'vicon-equalizer': '',
'vicon-esign': '',
'vicon-exit': '',
'vicon-export': '',
'vicon-eyeclose': '',
'vicon-eyeopen': '',
'vicon-faq': '',
'vicon-fb': '',
'vicon-folderclose': '',
'vicon-foldermove': '',
'vicon-folderopen': '',
'vicon-forecast': '',
'vicon-forward': '',
'vicon-googleplus': '',
'vicon-graphview': '',
'vicon-grid': '',
'vicon-help': '',
'vicon-helpdesk': '',
'vicon-home': '',
'vicon-image': '',
'vicon-import': '',
'vicon-insights': '',
'vicon-inventory': '',
'vicon-inventory2': '',
'vicon-inventory3': '',
'vicon-invoice': '',
'vicon-invoicerecurring': '',
'vicon-leads': '',
'vicon-link': '',
'vicon-linkopen': '',
'vicon-list': '',
'vicon-lock': '',
'vicon-lockopen': '',
'vicon-logout': '',
'vicon-mailmanager': '',
'vicon-mandatory': '',
'vicon-marketinglist': '',
'vicon-massedit': '',
'vicon-meeting': '',
'vicon-move': '',
'vicon-mycalendar': '',
'vicon-olark': '',
'vicon-olark2': '',
'vicon-oursites': '',
'vicon-pagecount': '',
'vicon-payments': '',
'vicon-pbxmanager': '',
'vicon-phonecalls': '',
'vicon-pin': '',
'vicon-pivots': '',
'vicon-play': '',
'vicon-potentials': '',
'vicon-pricebooks': '',
'vicon-printtemplates': '',
'vicon-products': '',
'vicon-project': '',
'vicon-projectmilestone': '',
'vicon-projecttask': '',
'vicon-purchaseorder': '',
'vicon-puzzle': '',
'vicon-quickbooks': '',
'vicon-quotes': '',
'vicon-recyclebin': '',
'vicon-refresh': '',
'vicon-replytoall': '',
'vicon-reports': '',
'vicon-restorerecyclebin': '',
'vicon-retweet': '',
'vicon-road': '',
'vicon-rss': '',
'vicon-salesorder': '',
'vicon-search': '',
'vicon-selectcolumn': '',
'vicon-servicecontracts': '',
'vicon-services': '',
'vicon-share': '',
'vicon-sharedcalendar': '',
'vicon-shoppingcart': '',
'vicon-smiley1': '',
'vicon-smiley2': '',
'vicon-smiley3': '',
'vicon-smsnotifier': '',
'vicon-social': '',
'vicon-starempty': '',
'vicon-starfull': '',
'vicon-starhalf': '',
'vicon-subscription': '',
'vicon-tag': '',
'vicon-task': '',
'vicon-taxes': '',
'vicon-timeline': '',
'vicon-toggle': '',
'vicon-transactions': '',
'vicon-twitter': '',
'vicon-twitterreply': '',
'vicon-unpin': '',
'vicon-unplug': '',
'vicon-vendors': '',
'vicon-vendors3': '',
'vicon-video': '',
'vicon-volumeoff': '',
'vicon-volumeon': '',
'vicon-vtigeruser': '',
'vicon-vtigeruser2': '',
'0': 0
},
els = document.getElementsByTagName('*'),
i, c, el;
for (i = 0; ; i += 1) {
el = els[i];
if(!el) {
break;
}
c = el.className;
c = c.match(/vicon-[^\s'"]+/);
if (c && icons[c[0]]) {
addIcon(el, icons[c[0]]);
}
}
}());