function getHeader()
{
var header = new String();

header += '<table width="750" border="0" cellspacing="0" cellpadding="0" class="default">';
header += '  <tr><td align="left" valign="top" colspan="3">';
header += '  <img src="http://www.nipr.com/common_nipr/images/tag_line.gif" width="750" height="20" />';
header += '  </td></tr>';
header += '  <tr><td align="left" valign="top" colspan="3">';
header += '';
header += ' <script type="text/javascript">';
header += ' //FLASH DETECTION\n';
header += ' var MM_contentVersion = 5;';
header += ' var MM_FlashCanPlay = 0;';
header += ' var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;';
//header += 'alert(plugin);';
header += ' if ( plugin ) {';
header += '   var words = navigator.plugins["Shockwave Flash"].description.split(" ");';
header += '     for (var i = 0; i < words.length; ++i)';
header += '     {';
header += '   if (isNaN(parseInt(words[i])))';
header += '   continue;';
header += '   var MM_PluginVersion = words[i]; ';
header += '     }';
header += ' var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;';
header += ' }';
header += ' else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 ';
header += '   && (navigator.appVersion.indexOf("Win") != -1)) {';
header += ' document.write("     <SCR" + "IPT LANGUAGE=\'VBScript\'>"); '; //FS hide this from IE4.5 Mac by splitting the tag
header += ' document.write(" \\n on error resume next "); ';
header += ' document.write(" \\n MM_FlashCanPlay = ( IsObject(CreateObject(\\\"ShockwaveFlash.ShockwaveFlash.\\\" & MM_contentVersion)))");';
header += ' document.write(" \\n </SCR" + "IPT>"); ';
header += ' }';
//header += 'alert(MM_FlashCanPlay);';
header += ' if ( MM_FlashCanPlay ) {';
header += ' document.write("      <OBJECT classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\' WIDTH=\'209\' HEIGHT=\'85\' id=\'logo\' ALIGN=\'left\'> ");';
header += ' document.write("    <PARAM NAME=\'movie\' VALUE=\'http://www.nipr.com/common_nipr/images/NIPR.swf\'>");';
header += ' document.write("        <PARAM NAME=\'quality\' VALUE=\'high\'> <PARAM NAME=\'bgcolor\' VALUE=\'#FFFFFF\'>");';
header += ' document.write("    <EMBED src=\'http://www.nipr.com/common_nipr/images/NIPR.swf\' quality=\'high\' bgcolor=\'#FFFFFF\' NAME=\'logo\' WIDTH=\'209\' HEIGHT=\'85\' ALIGN=\'left\' TYPE=\'application/x-shockwave-flash\' PLUGINSPAGE=\'http://www.macromedia.com/go/getflashplayer\'></EMBED> "); ';
header += ' document.write("    </OBJECT>");\n';
header += ' }';
header += ' else{';
header += ' document.write("<IMG SRC=\'http://www.nipr.com/common_nipr/images/logo.jpg\' WIDTH=\'206\' HEIGHT=\'85\' BORDER=\'0\' ALIGN=\'left\' /> ");';
header += ' }';
header += ' </script>';
header += '';
header += '<img src="http://www.nipr.com/common_nipr/images/photos.jpg" width="540" height="85" />';
header += '</td>';
header += '  </tr>';
header += '  <tr>';
header += '    <td align="left" valign="top" colspan="3">';
header += '      <table border="0" cellpadding="0" cellspacing="0" width="750">';
header += '        <tr>';
header += '          <td><img src="http://www.nipr.com/common_nipr/images/spacer.gif" width="57" height="1" border="0" name="undefined_2" /></td>';
header += '          <td><img src="http://www.nipr.com/common_nipr/images/spacer.gif" width="56" height="1" border="0" name="undefined_2" /></td>';
header += '          <td><img src="http://www.nipr.com/common_nipr/images/spacer.gif" width="91" height="1" border="0" name="undefined_2" /></td>';
header += '          <td><img src="http://www.nipr.com/common_nipr/images/spacer.gif" width="54" height="1" border="0" name="undefined_2" /></td>';
header += '          <td><img src="http://www.nipr.com/common_nipr/images/spacer.gif" width="119" height="1" border="0" name="undefined_2" /></td>';
header += '          <td><img src="http://www.nipr.com/common_nipr/images/spacer.gif" width="144" height="1" border="0" name="undefined_2" /></td>';
header += '          <td><img src="http://www.nipr.com/common_nipr/images/spacer.gif" width="89" height="1" border="0" name="undefined_2" /></td>';
header += '          <td><img src="http://www.nipr.com/common_nipr/images/spacer.gif" width="54" height="1" border="0" name="undefined_2" /></td>';
header += '          <td><img src="http://www.nipr.com/common_nipr/images/spacer.gif" width="86" height="1" border="0" name="undefined_2" /></td>';
header += '          <td><img src="http://www.nipr.com/common_nipr/images/spacer.gif" width="1" height="1" border="0" name="undefined_2" /></td></tr>';
header += '      <tr><td><img name="menu_bar_r1_c1" src="http://www.nipr.com/common_nipr/images/menu_bar_r1_c1.gif" width="57" height="25" border="0" /></td>';
header += '          <td><a href="/index.htm"><img name="menu_bar_r1_c2" src="http://www.nipr.com/common_nipr/images/menu_bar_r1_c2.gif" width="56" height="25" border="0" /></a></td>';
header += '          <td><a href="/company_info/comp.htm"><img name="menu_bar_r1_c3" src="http://www.nipr.com/common_nipr/images/menu_bar_r1_c3.gif" width="91" height="25" border="0" /></a></td>';
header += '          <td><a href="http://www.naic.org/"><img name="menu_bar_r1_c4" src="http://www.nipr.com/common_nipr/images/menu_bar_r1_c4.gif" width="54" height="25" border="0" /></a></td>';
header += '          <td><a href="http://www.naic.org/state_web_map.htm"><img name="menu_bar_r1_c5" src="http://www.nipr.com/common_nipr/images/menu_bar_r1_c5.gif" width="119" height="25" border="0" /></a></td>';

//header += '        <td><a href="#" onMouseOut="FW_startTimeout();"  onMouseOver="window.FW_showMenu(window.fw_menu_0,250,146);" ><img name="menu_bar_r1_c6" src="/common_nipr/images/menu_bar_r1_c6.gif" width="144" height="25" border="0" /></a></td>';
header += '          <td><a href="/products_services/products_services.htm"><img name="menu_bar_r1_c6" src="http://www.nipr.com/common_nipr/images/menu_bar_r1_c6.gif" width="144" height="25" border="0" /></a></td>';

//header += '        <td><a href="#" onMouseOut="FW_startTimeout();"  onMouseOver="window.FW_showMenu(window.fw_menu_1,350,146);" ><img name="menu_bar_r1_c7" src="/common_nipr/images/menu_bar_r1_c7.gif" width="89" height="25" border="0" /></a></td>';
header += '          <td><a href="/news/newsrm.htm"><img name="menu_bar_r1_c7" src="http://www.nipr.com/common_nipr/images/menu_bar_r1_c7.gif" width="89" height="25" border="0" /></a></td>';
header += '          <td><a href="/products_services/nipr_faqs.htm"><img name="menu_bar_r1_c8" src="http://www.nipr.com/common_nipr/images/menu_bar_r1_c8.gif" width="54" height="25" border="0" /></a></td>';
header += '          <td><a href="/contacts.htm"><img name="menu_bar_r1_c9" src="http://www.nipr.com/common_nipr/images/menu_bar_r1_c9.gif" width="86" height="25" border="0" /></a></td>';
header += '          <td><img src="http://www.nipr.com/common_nipr/images/spacer.gif" width="1" height="25" border="0" name="undefined_2" />';
header += '        </td></tr>';
header += '      </table>';
header += '    </td></tr>';
header += '</table>';
header += '';

return header;
}

function getFooter()
{
var footer = new String();

footer += '<table width="750" border="0" cellspacing="0" cellpadding="0" class="default">';
footer += '  <tr align="center">';
footer += '    <td valign="top">';
footer += '      <hr />';
footer += '      <p>NIPR Help Line: 816.783.8468</p>';
footer += '      <p>[ <a href="/">NIPR Home</a> | ';
footer += '      <a href="http://www.naic.org/">NAIC Home</a> | ';
footer += '      <a href="/contacts.htm">NIPR Contacts</a> | ';
footer += '      <a href="http://www.naic.org/help/html/helpindex.htm">NIPR Help Desk</a> | ';
footer += '      <a href="/company_info/privacy_statement.htm">Privacy  Statement</a>]</p>';
footer += '      <p>&copy; 1996 - 2006 by the National Insurance Producer Registry</p>';
footer += '    </td></tr>';
footer += '</table>';
footer += '';

return footer;
}

function search_engine()
{
var se = new String();

se += "<table width='179' border='0' id='search_engine'>";
se += " <tr><td><a href='http://www.naic.org/NBP/Basic.jsp' target='_blank'><img src='http://www.naic.org/images/portal_search.jpg' alt='Click here to search the NIPR and State Insurance Department Web Sites with the NEW National Portal!' border='0'></a></td></tr>";
se += " <tr><td height='25'><div align='center'><b><a href='http://www.naic.org/NBP/Basic.jsp' target='_blank' class='search_engine_link'>NEW Search</a></b><br />&nbsp</div></td>"; 
se += " </tr></table>";

document.write(se);
//return se;
}

function fwLoadMenus() 
{
/*
  if (window.fw_menu_0) return;

    window.fw_menu_0_1 = new Menu("Producer Database",212,18,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ccffff","#808db2","#006699");
    fw_menu_0_1.addMenuItem("About PDB","location='/products_services/about_pdb.htm'");
    fw_menu_0_1.addMenuItem("Map of Participating States","location='http://www.naic.org/urtt/pdb/pdb_participating_states.htm'");
    fw_menu_0_1.addMenuItem("Recent State Updates","location='/cgi-bin/filestat2.cgi'");
    fw_menu_0_1.addMenuItem("Fair Credit Reporting Act (FCRA)","location='/products_services/fcra.htm'");
     fw_menu_0_1.hideOnMouseOut=true;
    window.fw_menu_0_2 = new Menu("Electronic Appointments and Terminations",244,18,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ccffff","#808db2","#006699");
    fw_menu_0_2.addMenuItem("About Appointments and Terminations","location='/about_pin.htm'");
    fw_menu_0_2.addMenuItem("Participating States","location='http://www.naic.org/urtt/appts-terms/pin_participating_states.htm'");
    fw_menu_0_2.addMenuItem("View Business Rules", "location='https://www.nipr.com/cgi-bin/viewbusrules.cgi'");
    fw_menu_0_2.addMenuItem("Transaction Layout Document","location='/products_services/layout_doc/pin_transaction.htm'");
     fw_menu_0_2.hideOnMouseOut=true;
    window.fw_menu_0_3 = new Menu("Non-Resident Licensing",229,18,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ccffff","#808db2","#006699");
    fw_menu_0_3.addMenuItem("Electronic NRL","location='/products_services/electronic_nrl.htm'");
    fw_menu_0_3.addMenuItem("Paper NRL","location='/products_services/paper_nrl.htm'");
    fw_menu_0_3.addMenuItem("Uniform NRL / Licensing Reciprocity","location='/uniform_nonres_licensing.htm'");
    fw_menu_0_3.addMenuItem("State Matrix of Business Rules","location='/state_matrix/specific.htm'");
     fw_menu_0_3.hideOnMouseOut=true;
    window.fw_menu_0_4 = new Menu("Resident Licensing",229,18,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ccffff","#808db2","#006699");
    fw_menu_0_4.addMenuItem("General Information and Guidelines","location='/state_matrix/uniform_resident_licensing.htm'");
    fw_menu_0_4.addMenuItem("State Matrix of Business Rules","location='/state_matrix/specific_resident.htm'");
    fw_menu_0_4.addMenuItem("Uniform Resident Applications","location='/state_matrix/uniform_resident_applications.htm'");
     fw_menu_0_4.hideOnMouseOut=true;
  window.fw_menu_0 = new Menu("root",266,18,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ccffff","#808db2","#006699");
  fw_menu_0.addMenuItem("Log In to PDB","location='https://www.nipr.com/cgi-bin/ipdblogin.cgi?is_heavy_version=1'");
  fw_menu_0.addMenuItem("Log In to NIPR Gateway","location='https://www.nipr.com/niprgateway.htm'");
  fw_menu_0.addMenuItem(fw_menu_0_1);
  fw_menu_0.addMenuItem(fw_menu_0_2);
  fw_menu_0.addMenuItem(fw_menu_0_3);
  fw_menu_0.addMenuItem(fw_menu_0_4);
  fw_menu_0.addMenuItem("Product Definitions","location='/products_services/product_definitions.htm'");
  fw_menu_0.addMenuItem("Future Products","location='/products_services/future_products.htm'");
   fw_menu_0.hideOnMouseOut=true;
   fw_menu_0.childMenuIcon="/common_nipr/images/arrows.gif";
  window.fw_menu_1 = new Menu("root",278,18,"Verdana, Arial, Helvetica, sans-serif",11,"#ffffff","#ccffff","#808db2","#006699");
  fw_menu_1.addMenuItem("PDB Announcements","location='/news/pdb_announce.htm'");
  fw_menu_1.addMenuItem("Appointments/Terminations Announcements","location='/news/appt_term_announce.htm'");
  fw_menu_1.addMenuItem("Electronic NRL","location='/html/nrlStates.html'");
  fw_menu_1.addMenuItem("Consultant RFP","location='/news/consultant.htm'");
  fw_menu_1.addMenuItem("Electronic PDB Guide","location='/documents/NIPR_PDB_Guide_2-03.pdf'");
  fw_menu_1.addMenuItem("E-Regulation Conference","location='http://www.naic.org/ereg/'");
  fw_menu_1.addMenuItem("SILA Conference","location='http://www.sila.org/silaweb/national.asp'");
  fw_menu_1.addMenuItem("Electronic NRL Licensing Guide","location='/documents/NRL_Guide_02-03.pdf'");
   fw_menu_1.hideOnMouseOut=true;

  fw_menu_1.writeMenus();
*/
} // fwLoadMenus()

function forward(hyperlink)
{ 
   if ( ( hyperlink.indexOf("pacSignIn") > -1 ) )
   {
      today = new Date();
      if( today.getDay() == 0  && today.getDate() >= 15 && today.getDate() < 22 && today.getHours() >= 18 && today.getHours() <= 23 )
        hyperlink = "html/NRR_Announcement.html";
   }
      
   var ls = new String (document.location);
   var submitPage;
   
   if ( ( ls.indexOf("2021") > -1 )  )
   {
      submitPage = "https://nipr-qa.nipr.com:2020/" + hyperlink;
   }
   else if ( ( ls.indexOf("4040") > -1 )  )
   {
      submitPage = "http://nipr-int.naic.org:4040/" + hyperlink;
   }
   else if ( ( ls.indexOf("8080") > -1 )  )
   {
      submitPage = "http://nipr-dvlp.naic.org:8080/" + hyperlink;
   }
   else
   {
      submitPage = "https://www.nipr.com/" + hyperlink;
   }
window.location = submitPage;
}