function CriaNenhumPost(blog,divPai){
    texto = 'Nenhum post cadastrado';   
    if(typeof(document.getElementById(divPai)) == "undefined"){
        return;
    }    
    post0 = document.createElement('div');
    post0.setAttribute('id', 'post0');
    browser = 'FF';//firefox ou outro que não se o IE
    classVar = 'class'
    if(identifyBrowser == 2 ){
        browser = 'IE';
        classVar = 'className';
    }
    post0.setAttribute(classVar, 'NenhumPostCss');
    post0Label = document.createTextNode (texto);
    post0.appendChild(post0Label);
    
    posiGW = $('#'+divPai).offset();
    posiGWy = posiGW.top;
    posiGWx = posiGW.left;
    posiB = $(blog).offset();
        
    posiBy = posiB.top;
    posiBx = posiB.left;

    posiBh = $(blog).height();
    posiBw = $(blog).width();
        
    posiy = (posiBy - posiGWy) + posiBh + 5;
    posix = (posiBx - posiGWx) +   5 ;//Mais empurrar X px caxinha para a direita da palavra
        
    post0.style.top = posiy+'px';
    post0.style.left = posix+'px';
        
    document.getElementById(divPai).appendChild(post0);
}
function DestruirNenhumPost(){
    if(document.getElementById('post0') != undefined){
        var post0 = document.getElementById('post0');
        divPai = post0.parentNode;        
        divPai.removeChild(post0);
    }
}
//Para idntificar o navegador
function identifyBrowser() {
    var ua = navigator.userAgent.toLowerCase();
    if (ua.indexOf("opera") != -1) {
        browserName = "opera";
        return 1;
    } else if (ua.indexOf("msie") != -1) {
        browserName = "msie";
        return 2;
    } else if (ua.indexOf("safari") != -1) {
        browserName = "safari";
        return 3;
    } else if (ua.indexOf("mozilla") != -1) {
        if (ua.indexOf("firefox") != -1) {
            browserName = "firefox";
            return 4;
        } else {
            browserName = "mozilla";
            return 5;
        }
    }
    else{
        return 0;
    }
}