function fontEvent(e){doFontCheck(e.data.jq)}function doFontCheck(e){e(".mb-text, .mb-text2").each(function(){{var t=e(this).css("fontFamily");e(this).css("fontWeight")}if("undefined"!=typeof t){for(t=t.replace(/\'|\"|/g,""),font_found=!1,i=0;i<fonts_loaded.length;i++)if(fonts_loaded[i]==t)return void(font_found=!0);font_found||(fonts_loaded.push(t),mbpro_loadFontFamilyStylesheet(t))}})}function mbpro_loadFontFamilyStylesheet(e){if(!(e.indexOf(",",e)>=0)){var t=mbpro_getFontFamilyUrl(e);""!=t&&jQuery("head").append("<link rel='stylesheet' type='text/css' href='"+t+"' />")}}function mbpro_getFontFamilyUrl(e){var t=["","Arial","Courier New","Georgia","Tahoma","Times New Roman","Trebuchet MS","Verdana"];if(t.indexOf(e)>=0)return"";var o="//fonts.googleapis.com/css?family=",n=e.replace(/\s/g,"+");return o+n}jQuery(document).ready(function(e){doFontCheck(e)});