function nxsigbot(sigId)
{
setTimeout("checksig('"+sigId+"')", 1);
}

function checksig(sigId)
{
if (document.getElementById(sigId).scrollHeight > document.getElementById(sigId).offsetHeight)
{
document.getElementById(sigId).innerHTML = "<span style='font-size:7pt;line-height:10pt;color:gray;'><i>NX SigBot&#153;: This signature has been automatically hidden because it is too large to display.  If you are the owner of this signature, please read our <a href='/index.php?showtopic=49873' target='_blank' style='color:gray'>Signature &amp Avatar rules</a>.<br/><br/>To remove this message, <a href='/index.php?act=UserCP&CODE=22' style='color:gray'>edit &amp; fix your signature</a> to conform to our rules.</i></span>";
document.getElementById(sigId).style.width = 565;
compactsig(sigId);
}
setTimeout("compactsig('"+sigId+"');", 10000);
setTimeout("compactsig('"+sigId+"');", 40000);
}

function compactsig(sigId)
{
if (document.getElementById(sigId).scrollHeight <= 185)
document.getElementById(sigId).style.height = document.getElementById(sigId).scrollHeight;
}

function displayskincolors()
{
	for ( i = 0; i < skincolors.length; i++ )
	{
		document.write('<span style="width: 10px; height: 10px; background-color: ' + skincolors[i][2] + ';"><a href="javascript:skinpicker(\'' + skincolors[i][0] + '\')" title="' + skincolors[i][1] + '"><img src="http://images.idolforums.com/style_images/idf/spacer.gif" width="10" height="10" title="' + skincolors[i][1] + '" alt="' + skincolors[i][1] + '" border="0" /></a></span> ');
	}
}

function renderLogoHeaderSmall()
{
document.write("\n");
document.write("<div style=\"float: left; width: 250px; height: 115px\"><a href='" + ipb_var_board_url + "'><img src='" + ipb_var_img_url + "style_images/" + ipb_var_img_dir + "/spacer.gif' alt=\"" + ipb_var_board_title + "\" title=\"" + ipb_var_board_title + "\" width=\"250\" height=\"115\" border='0'></a></div>\n");
document.write("\n");
document.write("<div style=\"width: 408px; float: right; margin-top: 5px; margin-bottom: -12px;\">\n");
document.write("<table align=\"right\" style=\"width: 270px;\" border=0 cellpadding=0 cellspacing=0>\n");
document.write("      <tr>\n");
document.write("		<td nowrap valign=\"top\" align=\"right\">\n");
document.write("			<form name=gs method=GET action=\"http://www.google.com/custom\">\n");
document.write("				<input type=hidden name=num value=50>\n");
document.write("				<input type=hidden name=hl value=\"en\">\n");
document.write("				<input type=hidden name=lr value=\"\">\n");
document.write("				<input type=hidden name=ie value=\"ISO-8859-1\">\n");
document.write("				<input type=hidden name=oe value=\"ISO-8859-1\">\n");
document.write("				<input type=hidden name=safe value=off>\n");
document.write("				<input type=hidden name=client value=\"pub-0102177349697794\">\n");
document.write("				<input type=hidden name=cof value=\"FORID:1;L:http://images.neuroxmedia.com/logos/idolforums_50.jpg;LH:50;LW:189;GL:1;BGC:FFFFFF;T:#000000;LC:#0000ff;VLC:#663399;ALC:#0000ff;GALT:#008000;GFNT:#0000ff;GIMP:#0000ff;DIV:#336699;LBGC:FFFFFF;AH:center;S:http://" + ipb_var_board_name + "/;\">\n");
document.write("				<input type=hidden name=domains value=\"" + ipb_var_board_name + "\">\n");
document.write("				<INPUT type=hidden name=sitesearch value=\"" + ipb_var_board_name + "\">\n");
document.write("				<input type=text name=q size=15 maxlength=2048 style=\"margin: 0px\">\n");
document.write("				<input type=submit name=\"btnG\" value=\"Search\" style=\"margin: 0px\">\n");
document.write("			</form>\n");
document.write("		</td>\n");
document.write("		<td nowrap valign=\"top\" align=\"center\">\n");
document.write("			<div style=\"margin-top: 0px; font-size: 9px; font-weight: bolder;color: #FFFFFF\">powered by</div>\n");
document.write("			<a href=\"http://www.google.com\" target=\"_blank\"><img src=\"http://www.google.com/images/poweredby/poweredby_000000.gif\" alt=\"\" border=\"0\" /></a>\n");
document.write("</td>\n");
document.write("  	  </tr>\n");
document.write("  	 </table>\n");
document.write("</div><br />\n");
document.write("\n");
document.write("<div style=\"float: right; width: 470px; margin-right: 3px;\">\n");
document.write("<a href=\"http://idolforums.com/index.php?showtopic=116217\" style=\"color: #cccccc\">Neurox Advertising</a> &nbsp;&nbsp;<img src=\"http://images.neuroxmedia.com/misc/advertisement.gif\" align=\"absmiddle\" width=120 height=8 border=0 vspace=5 alt=\"The banner image below is an ad.\" /><br/>\n");
document.write("<iframe id='af8f7aee' name='af8f7aee' src='http://data.neuroxmedia.com/upload/show.php?zid=24&amp;n=af8f7aee' framespacing='0' frameborder='no' allowtransparency='true' scrolling='no' width='470' height='62'><a href='http://data.neuroxmedia.com/upload/go.php?n=af8f7aee' target='_blank'><img src='http://data.neuroxmedia.com/upload/view.php?what=zone:24&amp;n=af8f7aee' border='0' alt=''></a></iframe>\n");
document.write("</div>\n");
}

function renderLogoHeaderLarge()
{
document.write("\n");
document.write("<div style=\"float: left; width: 250px; height: 115px\"><a href='" + ipb_var_board_url + "'><img src='" + ipb_var_img_url + "style_images/" + ipb_var_img_dir + "/spacer.gif' alt=\"" + ipb_var_board_title + "\" title=\"" + ipb_var_board_title + "\" width=\"250\" height=\"115\" border='0'></a></div>\n");
document.write("\n");
document.write("<div align=\"center\" style=\"float: right; width: 730px; margin-right: 3px;\">\n");
document.write("<a href=\"http://idolforums.com/index.php?showtopic=116217\" style=\"color: #cccccc\">Neurox Advertising</a> &nbsp;&nbsp;<img src=\"http://images.neuroxmedia.com/misc/advertisement.gif\" align=\"absmiddle\" width=120 height=8 border=0 vspace=5 alt=\"The banner image below is an ad.\" /><br/>\n");
//document.write("<iframe id='be3b41cd' name='be3b41cd' src='http://static.ads.neurox.net/custom/burst728.html' framespacing='0' frameborder='no' scrolling='no' width='728' height='90' allowtransparency='true'></iframe>\n");
document.write("<iframe id='a5a5f851' name='a5a5f851' src='http://data.neuroxmedia.com/upload/show.php?zid=26&amp;n=a5a5f851' framespacing='0' frameborder='no' scrolling='no' width='730' height='92' allowtransparency='true'></iframe>\n");
document.write("</div>\n");
}

function renderNavSmall(nxa)
{
document.write("<div style=\"text-align: center; width: 470px; height: 82px;\">\n");
if (nxa) document.write("<a href=\"http://idolforums.com/index.php?showtopic=116217\" style=\"color: #cccccc\">Neurox Advertising</a> &nbsp;&nbsp;");
document.write("<img src=\"http://images.neuroxmedia.com/misc/advertisement.gif\" align=\"absmiddle\" width=120 height=8 border=0 style=\"padding-bottom: 2px; margin-bottom: 2px;\" alt=\"The banner image below is an ad.\" /><br/>\n");
document.write("<iframe id='af8f7aee' name='af8f7aee' src='http://data.neuroxmedia.com/upload/show.php?zid=24&amp;n=af8f7aee' framespacing='0' frameborder='no' scrolling='no' width='470' height='62' allowtransparency='true'><a href='http://data.neuroxmedia.com/upload/go.php?n=af8f7aee' target='_blank'><img src='http://data.neuroxmedia.com/upload/view.php?what=zone:24&amp;n=af8f7aee' border='0' alt=''></a></iframe>\n");
document.write("</div>\n");
}

function renderNavLarge()
{
document.write("<div align=\"center\" style=\"margin-top: 0px;\">\n");
//document.write("<div align=\"center\" style=\"margin-top: -10px;\">\n");
document.write("<img src=\"http://images.neuroxmedia.com/misc/advertisement.gif\" align=\"absmiddle\" width=120 height=8 vspace=5 border=0 alt=\"The banner image below is an ad.\" /><br/>\n");
//document.write("<iframe id='be3b41cd' name='be3b41cd' src='http://static.ads.neurox.net/custom/burst728.html' framespacing='0' frameborder='no' scrolling='no' width='728' height='90' allowtransparency='true'></iframe><br /><br />\n");
document.write("<iframe id='a5a5f851' name='a5a5f851' src='http://data.neuroxmedia.com/upload/show.php?zid=26&amp;n=a5a5f851' framespacing='0' frameborder='no' scrolling='no' width='730' height='92' allowtransparency='true'></iframe><br /><br />\n");
document.write("</div>\n");
}

function contact_admin() {
  // Very basic spam bot stopper
	  
  admin_email_1 = 'forums';
  admin_email_2 = 'idolforums.com';

  if (confirm('This will email the general administration email address.  It is not frequently checked.  If you are able to post, for faster service, please visit our Questions & Comments forum and check the FAQ.\nIf not answered by the FAQ, please post a new topic in Questions & Comments.\n\nPress OK to goto our Questions & Comments forum now, or press Cancel to continue to send an email.'))
  window.location = ipb_var_base_url + 'showforum=17';
  else window.location = 'mailto:'+admin_email_1+'@'+admin_email_2+'?subject=Error on the forums';
  
}
