Ok, I have some new code to help.
<script language="javascript" type="text/javascript">
var vName='';
var olStatus=0;
if(document.getElementById("mininav-avname")) { vName=document.getElementById("mininav-avname").innerHTML;vName=vName.replace(/guest_/i,'');
if(vName!='') {olStatus=1; }
var vSrc='http://www.imvu.com/catalog/web_av_pic.php?av='+vName;var vHref='http://avatars.imvu.com/'+vName;}
if(olStatus==0) {var vName = "Guest"; }
</script>
This Code sticks the visitors name into a varible called "vName".
If this varilbe is blank, then the user is not logged in, so we set
"vName" to equal "Guest".
This name grabbing code may be tested with the following code:
<script language="javascript">
document.write("<B>Join the IMVU Mafias, "+ vName +".<BR>We are here for you.</B>");
</script>