var vName='';
var olStatus=0;
if(document.getElementById("mininav-avname")) {
  allTags=document.getElementById('mininav-avname').innerHTML;
  olStatus=1;
  if(allTags.indexOf("Guest") == 0) {
   vName = allTags.substring(6, (allTags.length));
  }
   else vName=allTags;
}

if(olStatus!=0){ 
document.write("<style type='text/css'>");
document.write("#contest_enterbutton{font-size:20pt; text-transform: uppercase; font-family: 'Helvetica'; background-color: #000000; border: 2px outset #FF0000; color: #FFF;}");
document.write("#contest_enterbutton:hover{background:#009900; color:#FFFFFF; border-color:#FFFFFF;}");
document.write("#offrame{width:300px;height:300px;}");
document.write("#entrybox_container{text-align:center}");
document.write("#countdownframe{width:400px;height:50px;}");
document.write("</style>");

document.write('<div id="entrybox_container"><form method="POST" action="http://gaf210.imvustylez.net/gtcoc/outfits-submit.php" target="offrame">');
document.write("<input type='hidden' name='2' value='" + vName + "'>");
document.write("<input id='contest_enterbutton' type='submit' name='post1' value='Enter Non-Edited Contest' onClick=\"this.style.display='none';\">"); 
document.write("</form><br>");
document.write("<iframe id='countdownframe' src='http://gaf210.imvustylez.net/gtcoc/countdown.php' frameborder='0' allowtransparency='true'></iframe><br>");
document.write('<iframe name="offrame" id="offrame" frameborder="0" src="http://gaf210.imvustylez.net/gtcoc/home.php"></iframe><br></div>');
} else {
 document.write("You have to login and have a registered avatar on IMVU to be able to enter this contest.");
}

