function BlockContent(classe,where){
if($("#custom-blocks").length ==0){
$("#main").append('
');
}
$("#custom-blocks").append('');
}
$(document).ready(function(){
$('.row .boxes-row').hide();
$('#footer .phone-link').text($('#footer .phone-link').text().replace('Tel.:','').replace('(18) 9','| (18) 9'));
$('#upper-header .phone-store').html($('#upper-header .phone-store').html().replace('Tel.:',''));
$whats = $(' (51) 99511.3053');
$('#upper-header .phone-store').prepend($whats);
$whatsFooter = $('(51) 99511.3053');
$('#zapfloat').attr("href", 'https://wa.me/5551995113053?text=sua%20mensagem');
$whatsFooter.insertBefore($('#footer .contact li').first());
if($('a[href="/loja/logout/"]').length){
$('a[href="/loja/logout/"]').detach().prependTo('.col-10 .user-actions:not(.account)');
}
$('input[name="buscaPor"]').prop('placeholder','BUSCA');
BlockContent(1,'last');
BlockContent(7,'facebook');
BlockContent(7,'first');
$('#innerEnvieArquivo .panel-head h2').text('Clique aqui para enviar seu arquivo');
// if(typeof(BibliotecaImagens)=="function") BibliotecaImagens('last');
if(typeof(Facebook)=="function") Facebook('facebook');
if(typeof(Depoimento)=="function") Depoimento('first');
var objSSLSpan = document.createElement('span'); objSSLSpan.setAttribute('id','ss_img_wrapper_115-55_image_en');
var objSSLA = document.createElement('a'); objSSLA.setAttribute('target','_blank'); objSSLA.setAttribute('title','Certificates'); objSSLA.setAttribute('target','_blank'); objSSLA.setAttribute('href','http://www.alphassl.com/ssl-certificates/wildcard-ssl.html');
var objSSLIMG = document.createElement('img'); objSSLIMG.setAttribute('alt','Wildcard SSL Certificates'); objSSLIMG.setAttribute('title','SSL Certificate'); objSSLIMG.setAttribute('border','0'); objSSLIMG.setAttribute('id','ss_img'); objSSLIMG.setAttribute('src','//seal.alphassl.com/SiteSeal/images/alpha_noscript_115-55_en.gif');
var objSSLScript = document.createElement('script'); objSSLScript.setAttribute('charset', 'utf-8'); objSSLScript.async=0; objSSLScript.src='//seal.alphassl.com/SiteSeal/alpha_image_115-55_en.js'; objSSLScript.type='text/javascript';
$(objSSLA).append(objSSLIMG); $(objSSLSpan).append(objSSLA);
$("DIV#innerTrustSign").append(objSSLSpan); $("DIV#innerTrustSign").append(objSSLScript);
});