

        
        function mudarTamanhoElemento(elemento){
            if(document.getElementById(elemento) != null){
                document.getElementById(elemento).style.width = "100%";
                document.getElementById(elemento).style.height = "100%";            
            }
        }
        
        
        
        function mudarTamanhoFoto(idImagens, percentagem){
            
            contentorW = Math.round( parseInt(document.getElementById("contenterFoto" + idImagens).style.width) * parseInt(percentagem) / 100 );
            contentorH = Math.round( parseInt(document.getElementById("contenterFoto" + idImagens).style.height) * parseInt(percentagem) / 100 );
            
                           
            document.getElementById("contenterFoto" + idImagens).style.width = contentorW;
            document.getElementById("contenterFoto" + idImagens).style.height = contentorH;
                
            
            
            if(document.getElementById("taparFoto" + idImagens) != null){
                document.getElementById("taparFoto" + idImagens).style.width = contentorW;            
                document.getElementById("taparFoto" + idImagens).style.height = contentorH;            
            }
                                                    
            
            mudarTamanhoElemento("pele" + idImagens);
            mudarTamanhoElemento("sobrancelhas" + idImagens);        
            mudarTamanhoElemento("labios" + idImagens);        
            mudarTamanhoElemento("camisola" + idImagens);        
            mudarTamanhoElemento("sardas" + idImagens);        
            mudarTamanhoElemento("cabelo" + idImagens);        
            mudarTamanhoElemento("nariz" + idImagens);        
            mudarTamanhoElemento("oculos" + idImagens);        
            mudarTamanhoElemento("chapeu" + idImagens);        
            mudarTamanhoElemento("chapeuAdorno" + idImagens);        
            mudarTamanhoElemento("olhos" + idImagens);        
            mudarTamanhoElemento("olhosBaseBranca" + idImagens);        
            mudarTamanhoElemento("cabelo" + idImagens);        
            mudarTamanhoElemento("t0" + idImagens);        
            mudarTamanhoElemento("t1" + idImagens);        
            mudarTamanhoElemento("t2" + idImagens);        
            mudarTamanhoElemento("t3" + idImagens);        
            mudarTamanhoElemento("t4" + idImagens);        
            mudarTamanhoElemento("t5" + idImagens);        
            mudarTamanhoElemento("t6" + idImagens);        
            
            mudarTamanhoElemento("barba" + idImagens);        
            
        }

