/* This Mod was made for JFB by Chakka */
/* It has been released as part of the Eunoia Studio Resource Initiative */

/* IE Hacks...sigh */
if(document.all){
document.write("<style>.vboxdIE \{ padding: 0px; \} </style>");
document.write("<style>.vboxtIE \{ height:20px; \} </style>");
}
else {
document.write("<style>.vboxdIE \{  padding: 2px 2px 2px 2px; \} </style>");
}

/* Submenu */

document.write("<style>#submenu\{ display:none \} </style>");

/* Navigation */

document.getElementById("navstrip").innerHTML.match(/(.+)/i);
var kitten = RegExp.$1;

document.write("<style>#navstrip\{ display:none \} </style>");

lola = "<div style='padding: 32px 0 0 4px; text-align: left'>";
lola += "" + kitten + "";
lola += "</div>";

/* Member Panel */

acorn = "<div style='text-align:left;border-left:2px solid white'>";
acorn += "<div class='row2' style='margin-bottom:2px'><p style='padding: 2px; margin: 0px'>Welcome Back!</p></div>";
acorn += "Username: " + name + "<br />";
acorn += "Post Count: " + posts + "<br />";
acorn += "<span id='vbmsg'><a href='/index.php?act=Msg&CODE=01' style='text-decoration: none'>New Messages: " + numsg + "</a></span>";
acorn += "</div>";
acorn += "<span style='text-align:right;'><a style='text-decoration: none;' href='/index.php?showuser=" + myid + "'>[ My Profile ]</a>";

/* Grap ACP and Mod CP */

var ulvb = document.getElementById("userlinks");

if(ulvb.innerHTML.match(/admin cp/i)){
acorn += "<a style='text-decoration: none;' href='/admin.php'>[ Admin CP ]</a>";
}
if(ulvb.innerHTML.match(/mod cp/i)){
acorn += "<a style='text-decoration: none;' href='/index.php?act=modcp&forum='>[ Mod CP ]</a>";
}
acorn += "</span>";

/* Change color if new posts */

if(numsg != 0){
document.write("<style>#vbmsg\{ color:red \} </style>");
}

/* Log-in Form */
tree = "<div style='text-align:left;border-left:2px solid white'>";
tree += "<div class='row2' style='margin-bottom:2px'><p style='padding: 2px; margin: 0px'><span style='float:right'><a href='index.php?act=Reg&amp;CODE=00'>Register?</a></span>Quick Login:</p></div>";
tree += "<form method='post' action='index.php?act=Login&CODE=01&CookieDate=1' style='display: inline;'>";
tree += "<input class='forminput' type='text' value='User Name' style='width: 100px' name='UserName' onclick='javascript:select()' />&nbsp;";
tree += "<input class='forminput' type='password' value='------' name='PassWord' style='width: 100px'onclick='javascript:select()' />";
tree += "&nbsp;<input class='forminput' type='submit' value='Go'/></form><br />";
tree += "Remember Me: <input type='checkbox' checked='checked' value='1' name='CookieDate'/>";
tree += "<p style='padding:0;margin:0;color:#A1A1A1;font-size:10px'>If checked you will auto-login next time you visit</p>";
tree += "</div>";

/* To be a Guest? That is the Question! */

var hamlet = document.getElementById("userlinks");

if(hamlet.innerHTML.match(/log out/i)){
daftpunk = acorn;
}
else {
daftpunk = tree;
}

/* Compiling it All */
vbox = "<table width='100%'><th>";
vbox += "<div align='center'><div class='tableborder vboxdIE' style='clear:both;'>";
vbox += "<div class='row1' style='float:right; width:30%;'>";
vbox += "" + daftpunk + "";
vbox += "</div><div class='row4' style='float:left; width: 70%;height:80px'>";
vbox += "" + lola + "";
vbox += "</div><div class='maintitle vboxtIE' style='clear:both'>";
vbox += "" + lego + "";
vbox += "</div></div></div></th></table>";

document.getElementById("logostrip").innerHTML+= vbox;