/* 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 = {
'mobox-plm-bom': '',
'mobox-plm-bom2': '',
'mobox-plm-cube': '',
'mobox-plm-cubes': '',
'mobox-plm-factory': '',
'mobox-plm-factory2': '',
'mobox-plm-gb-part1': '',
'mobox-plm-tree': '',
'mobox-plm-tree2': '',
'mobox-plm-tree3': '',
'mobox-plm-tree4': '',
'mobox-plm-treeitem_add': '',
'mobox-plm-workflow': '',
'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(/mobox-plm-[^\s'"]+/);
if (c && icons[c[0]]) {
addIcon(el, icons[c[0]]);
}
}
}());