// ==================
// WELCOME  
// ==================

// zobrazuje na hlavni strance hlasku o tom ze uz tu uzivatel byl
function DoYouKnowMe(){

        var welcomebox = document.getElementById('welcome');
        
        if(_user_name != ''){
           // uzivatel je prihlasen
           if(_user_logged==1){
              text  = ('<a class="user" href="'+LTHIS_WEB+'myaccount.php">'+_user_fullname+'</a>');
              text += ('Kredit: <strong>'+_user_wallet+'Kč</strong>');
              text += ('&nbsp;|&nbsp;<a href="'+LTHIS_WEB+'user/'+_user_name+'/">Hodnocení: <strong>'+_user_feedback+'</strong>%</a>&nbsp;|&nbsp;');
              text += ('<b><a href="'+LTHIS_WEB+'user/'+_user_name+'/aukce/">Mé aukce</a></b>&nbsp;|&nbsp;');
              text += ('<a href="'+LTHIS_WEB+'logout.php" class="logout">Odhlásit</a>');
              welcomebox.innerHTML = text;              
           }
        } else {
           if((_COOKIES_['login'] != undefined) && (_COOKIES_['login'] !='')){
              text = ('<a href="'+LTHIS_WEB+'myaccount.php">Nejste náhodou .. &nbsp;<b>'+_COOKIES_['login']+'</b></a>&nbsp;?&nbsp;&nbsp;&nbsp;');
              text += ('<a href="'+LTHIS_WEB+'registrace.php" class="register">Vytvořit účet</a>');
              welcomebox.innerHTML = text;
           }
        }
}
