/**
* 
* 
*
* PREFACE:
*
*
*/
<component lightWeight="true">
<script type="text/javascript">
//<![CDATA[

// Shortcut for the document object
var doc = element.document;

var icons = {
    'icon-cross': '&#x78;',
    'icon-smokers': '&#xe101;',
    'icon-retirement': '&#xe102;',
    'icon-plot': '&#xe106;',
    'icon-photo': '&#xe107;',
    'icon-part-exchange': '&#xe109;',
    'icon-parking': '&#xe110;',
    'icon-land': '&#xe112;',
    'icon-input-bright': '&#xe113;',
    'icon-garage': '&#xe115;',
    'icon-furnished-full': '&#xe118;',
    'icon-commercial': '&#xe121;',
    'icon-central-heating': '&#xe122;',
    'icon-arrow': '&#xe125;',
    'icon-areas': '&#xe126;',
    'icon-hmo': '&#xe127;',
    'icon-input-dark': '&#xe128;',
    'icon-timeshare': '&#xe129;',
    'icon-back-arrow': '&#xe130;',
    'icon-angle-fat-up': '&#x25b2;',
    'icon-angle-fat-down': '&#x25bc;',
    'icon-angle-fat-right': '&#x25ba;',
    'icon-angle-fat-left': '&#x25c4;',
    'icon-angle-up': '&#x2303;',
    'icon-angle-down': '&#x2304;',
    'icon-angle-right': '&#x3e;',
    'icon-angle-left': '&#x3c;',
    'icon-plus': '&#x2b;',
    'icon-minus': '&#x2d;',
    'icon-checkmark': '&#x2713;',
    'icon-location': '&#x6d;',
    'icon-list': '&#x2630;',
    'icon-grid': '&#x2637;',
    'icon-heart': '&#x2764;',
    'icon-residential': '&#xe103;',
    'icon-public-rooms': '&#xe104;',
    'icon-bathrooms': '&#xe009;',
    'icon-new-build': '&#xe00b;',
    'icon-garden': '&#xe114;',
    'icon-pets': '&#xe00d;',
    'icon-save': '&#xe131;',
    'icon-heart-remove': '&#xe132;',
    'icon-filter': '&#xe133;',
    'icon-pen': '&#xe135;',
    'icon-property': '&#xe136;',
    'icon-mapview-pin': '&#xe137;',
    'icon-popup': '&#xe138;',
    'icon-furnished-none': '&#xe000;',
    'icon-furnished-part': '&#xe116;',
    'icon-bedrooms': '&#xe00a;',
    'icon-print': '&#xe008;',
    'icon-email': '&#xe006;',
    'icon-dev': '&#xe001;',
    'icon-share': '&#xe003;',
    'icon-dev-opt': '&#xe120;',
    'icon-map-circles': '&#xe134;',
    'icon-information-areas': '&#xe002;',
    'icon-information-faq': '&#xe004;',
    'icon-information-guides': '&#xe005;',
    'icon-information-houseprices': '&#xe007;',
    'icon-information-mortgage': '&#xe00c;',
    'icon-facebook': '&#x46;',
    'icon-twitter': '&#x54;',
    'icon-linkedin': '&#x4c;'
};



function addIcon(el, entity) {
    var html = el.innerHTML;
    el.innerHTML = '<span syle="font-family: \'icomoon\'">' + entity + '</span>' + html;
}

function init() {
    var icon;
    // check to see if this element already has the icon on it
    if (element.hasIconInit) return;

    // get the icon-class name
    if (element.className.match(/(icon-[^\s'"]+)/) && (icon = icons[RegExp.$1])) {
        addIcon(element, icon);
    }

    element.hasIconInit = true;
}

// Run the setup
init();

//]]>
</script>
</component>