var pageurl = window.location;
if(String(pageurl).indexOf("-stg")==-1){
	//var htmlroot = "http://192.168.1.243";
	//var asproot = "http://192.168.1.244";
	var htmlroot = "http://www.nfpc.gov.sg";
	var asproot = "http://app.nfpc.gov.sg";
}else{
	var htmlroot = "http://internet-stg.nfpc.gov.sg";
	var asproot = "http://app-stg.nfpc.gov.sg";
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function CheckForm () {
	//Check for a word to search
	if (document.frmSiteSearch.search.value==""){
		alert("Please enter at least one keyword to search");
		document.frmSiteSearch.search.focus();
		return false;
	}
	
	return true
}
document.writeln('<script language="JavaScript" src="'+htmlroot+'/include/funct.js"></script>');
document.writeln('<link href="'+htmlroot+'/txtStyles.css" rel="stylesheet" type="text/css">');
document.writeln('<table width="100%" height="73"  border="0" cellpadding="0" cellspacing="0">');
document.writeln('<tr>');
document.writeln('<td width="500" rowspan="2"><img src="'+htmlroot+'/images/top_01.jpg" width="500" height="73"></td>');
document.writeln('<td><img src="'+htmlroot+'/images/top_02.jpg" width="226" height="40"></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td height="33">');
document.writeln('<table width="100%" height="33"  border="0" cellpadding="0" cellspacing="0">');
document.writeln('<form method="get" name="frmSiteSearch" action="http://web4.internet.gov.sg/scripts/mha/scdf/nfpc/search.asp"><tr>');
document.writeln('<td width="50"><img src="'+htmlroot+'/images/top_03.jpg" width="50" height="33"></td>');
document.writeln('<td background="'+htmlroot+'/images/top_04.jpg">');
document.writeln('<input name="search" type="text" size="15" class="smalltxt"><input type="hidden" name="mode" value="allwords">');
document.writeln('</td>');
document.writeln('<td width="46"><input type="image" onMouseOut="MM_swapImgRestore()" name="Image23" onMouseOver="MM_swapImage(\'Image23\',\'\',\''+htmlroot+'/images/top_05_over.jpg\',1)" src="'+htmlroot+'/images/top_05.jpg"></td>');
document.writeln('</tr></form>');
document.writeln('</table>');
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('<table width="100%"  border="0" cellspacing="0" cellpadding="0">');
document.writeln('<tr>');
document.writeln('<td width="6%"><a href="'+asproot+'/index.asp" onMouseOver="MM_swapImage(\'Image41\',\'\',\''+htmlroot+'/images/nav_01-over.jpg\',1)" onMouseOut="MM_swapImgRestore()"><img src="'+htmlroot+'/images/nav_01.jpg" alt="Home" name="Image41" width="45" height="31" border="0"></a></td>');
document.writeln('<td width="8%"><a href="javascript:void(0);" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image42\',\'\',\''+htmlroot+'/images/nav_02-over.jpg\',1)"><img src="'+htmlroot+'/images/nav_02.jpg" alt="About Us" name="Image42" width="58" height="31" border="0" onMouseOver="MM_showHideLayers(\'aboutus\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'aboutus\',\'\',\'hide\')"></a></td>');
document.writeln('<td width="9%"><a href="javascript:void(0);" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image43\',\'\',\''+htmlroot+'/images/nav_03-over.jpg\',1)"><img src="'+htmlroot+'/images/nav_03.jpg" alt="Committee" name="Image43" width="66" height="31" border="0" onMouseOver="MM_showHideLayers(\'committee\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'committee\',\'\',\'hide\')"></a></td>');
document.writeln('<td width="7%"><a href="javascript:void(0);" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image44\',\'\',\''+htmlroot+'/images/nav_04-over.jpg\',1)"><img src="'+htmlroot+'/images/nav_04.jpg" alt="Events" name="Image44" width="47" height="31" border="0" onMouseOver="MM_showHideLayers(\'events\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'events\',\'\',\'hide\')"></a></td>');
document.writeln('<td width="17%"><a href="javascript:void(0);" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image45\',\'\',\''+htmlroot+'/images/nav_05-over.jpg\',1)"><img src="'+htmlroot+'/images/nav_05.jpg" alt="Products & Services" name="Image45" width="122" height="31" border="0" onMouseOver="MM_showHideLayers(\'products\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'products\',\'\',\'hide\')"></a></td>')
document.writeln('<td width="13%"><a href="javascript:void(0);" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image46\',\'\',\''+htmlroot+'/images/nav_06-over.jpg\',1)"><img src="'+htmlroot+'/images/nav_06.jpg" alt="The Young Ones" name="Image46" width="95" height="31" border="0" onMouseOver="MM_showHideLayers(\'young\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'young\',\'\',\'hide\')"></a></td>');
document.writeln('<td width="7%"><a href="javascript:void(0);" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image47\',\'\',\''+htmlroot+'/images/nav_07-over.jpg\',1)"><img src="'+htmlroot+'/images/nav_07.jpg" alt="Join Us" name="Image47" width="48" height="31" border="0" onMouseOver="MM_showHideLayers(\'join\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'join\',\'\',\'hide\')"></a></td>');
document.writeln('<td width="12%"><a href="javascript:void(0);" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image48\',\'\',\''+htmlroot+'/images/nav_08-over.jpg\',1)"><img src="'+htmlroot+'/images/nav_08.jpg" alt="The Fire Page" name="Image48" width="83" height="31" border="0" onMouseOver="MM_showHideLayers(\'fire\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'fire\',\'\',\'hide\')"></a></td>');
document.writeln('<td width="11%"><a href="javascript:void(0);" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image49\',\'\',\''+htmlroot+'/images/nav_09-over.jpg\',1)"><img src="'+htmlroot+'/images/nav_09.jpg" alt="Publications" name="Image49" width="80" height="31" border="0" onMouseOver="MM_showHideLayers(\'publication\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'publication\',\'\',\'hide\')"></a></td>');
document.writeln('<td width="10%"><a href="javascript:void(0);" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image50\',\'\',\''+htmlroot+'/images/nav_10-over.jpg\',1)"><img src="'+htmlroot+'/images/nav_10.jpg" alt="Contacts" name="Image50" width="82" height="31" border="0" onMouseOver="MM_showHideLayers(\'contact\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'contact\',\'\',\'hide\')"></a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td></td>');
document.writeln('<td>');
document.writeln('<div id="aboutus" style="position:absolute; width:152px; height:130px; z-index:19; visibility: hidden;" onMouseOver="MM_showHideLayers(\'aboutus\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'aboutus\',\'\',\'hide\')">');
document.writeln('<table width="150" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9966" bgcolor="ffcc66">');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/aboutus/abtus_missionlogo.html" class="menu">Mission &amp; Logo</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/aboutus/abtus_introduction.html" class="menu">An Introduction</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/aboutus/abtus_boarddirectors.html" class="menu">Board of Directors</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/aboutus/abtus_financial.html" class="menu">Financial Information</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/aboutus/abtus_nfinancial.html" class="menu">Non-Financial Information</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/aboutus/abtus_links.html" class="menu">Links</a></td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</div>');
document.writeln('</td>');
document.writeln('<td>');
document.writeln('<div id="committee" style="position:absolute; width:152px; height:130px; z-index:18; visibility: hidden;" onMouseOver="MM_showHideLayers(\'committee\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'committee\',\'\',\'hide\')">');
document.writeln('<table width="150" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9966" bgcolor="ffcc66">');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/committee/committee_ipc.html" class="menu">Industrial Premises Committee</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/committee/committee_cpc.html" class="menu">Commercial Premises Committee</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/committee/committee_hpc.html" class="menu">Housing Premises Committee</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/committee/committee_fscs.html" class="menu">Schools and Youth Committee</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/committee/committee_prc.html" class="menu">Publicity Committee</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/committee/committee_frmc.html" class="menu">Fund Raising &amp; Membership Committee</a></td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</div>');
document.writeln('</td>');
document.writeln('<td>');
document.writeln('<div id="events" style="position:absolute; width:152px; height:25px; z-index:17; visibility: hidden;" onMouseOver="MM_showHideLayers(\'events\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'events\',\'\',\'hide\')">');
document.writeln('<table width="150" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9966" bgcolor="ffcc66">');
document.writeln('<tr>');
document.writeln('<td><a href="'+asproot+'/events.asp" class="menu">Upcoming Events</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/events/pastevent.html" class="menu">Past Events</a></td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</div>');
document.writeln('</td>');
document.writeln('<td>');
document.writeln('<div id="products" style="position:absolute; width:152px; height:109px; z-index:16; visibility: hidden;" onMouseOver="MM_showHideLayers(\'products\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'products\',\'\',\'hide\')">');
document.writeln('<table width="150" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9966" bgcolor="ffcc66">');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/productservice/ps_posters.html" class="menu">Posters &amp; Pamphlets</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/productservice/ps_booksvideo.html" class="menu">Books &amp; Videos</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/productservice/ps_toolkit.html" class="menu">Fire Safety <br>Orientation Toolkit</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/productservice/ps_mobilepanel.html" class="menu">Mobile Exhibits Panel</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/productservice/ps_fextinguisher.html" class="menu">Fire Safety Equipment</a></td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</div>');
document.writeln('</td>');
document.writeln('<td>');
document.writeln('<div id="young" style="position:absolute; width:152px; height:46px; z-index:15; visibility: hidden;" onMouseOver="MM_showHideLayers(\'young\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'young\',\'\',\'hide\')">');
document.writeln('<table width="150" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9966" bgcolor="ffcc66">');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/youngones/young_st_poems.html" class="menu">Stories &amp; Poems</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/youngones/young_games.html" class="menu">Games</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/youngones/young_online_contest.html" class="menu">Online Contests</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/youngones/young_video.html" class="menu">Videos</a></td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</div>');
document.writeln('</td>');
document.writeln('<td>');
document.writeln('<div id="join" style="position:absolute; width:152px; height:46px; z-index:13; visibility: hidden;" onMouseOver="MM_showHideLayers(\'join\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'join\',\'\',\'hide\')">');
document.writeln('<table width="150" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9966" bgcolor="ffcc66">');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/joinus/joinus_eb.html" target="_self" class="menu">Eligibility &amp; Benefits</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/joinus/joinus_application.html" class="menu">Membership Application</a></td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</div>');
document.writeln('</td>');
document.writeln('<td>');
document.writeln('<div id="fire" style="position:absolute; width:152px; height:68px; z-index:12; visibility: hidden;" onMouseOver="MM_showHideLayers(\'fire\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'fire\',\'\',\'hide\')">');
document.writeln('<table width="150" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9966" bgcolor="ffcc66">');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/firepage/firepg_firetips_main.html" class="menu">Fire Prevention Tips</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/firepage/firepg_casestudies.html" class="menu">Fire Case Files</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/downloads/report/firestats.pdf" target="_blank" class="menu">Fire Statistics</a></td>');
document.writeln('</tr>');
//document.writeln('<tr>');
//document.writeln('<td><a href="'+htmlroot+'/firepage/ps_fextinguisher.html" class="menu">Fire Extinguisher Servicing / Maintenance Companies</a></td>');
//document.writeln('</tr>');
//document.writeln('<tr>');
//document.writeln('<td><a href="'+htmlroot+'/firepage/ps_smkedetect.html" class="menu">Smoke Detector Companies</a></td>');
//document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</div>');
document.writeln('</td>');
document.writeln('<td>');
document.writeln('<div id="publication" style="position:absolute; width:152px; height:46px; z-index:14; visibility: hidden;" onMouseOver="MM_showHideLayers(\'publication\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'publication\',\'\',\'hide\')">');
document.writeln('<table width="150" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9966" bgcolor="ffcc66">');
document.writeln('<tr>');
document.writeln('<td><a href="'+asproot+'/publications/pub_flashpoint.asp" class="menu">Flashpoint</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+asproot+'/publications/pub_areport.asp" target="_blank" class="menu">Annual Reports</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+asproot+'/publications/pub_conferenceseminar.asp" class="menu">Conference &amp; Seminar Papers</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="javascript:window.open(\''+htmlroot+'/publications/pub_ealert.html\', \'\', \'width=495, height=290\');void(0);" class="menu">Subscribe E-Alerts</a></td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</div>');
document.writeln('</td>');
document.writeln('<td>');
document.writeln('<div id="contact" style="position:absolute; width:152px; height:46px; z-index:10; visibility: hidden;" onMouseOver="MM_showHideLayers(\'contact\',\'\',\'show\')" onMouseOut="MM_showHideLayers(\'contact\',\'\',\'hide\')">');
document.writeln('<table width="150" border="1" cellpadding="3" cellspacing="0" bordercolor="#FF9966" bgcolor="ffcc66">');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/contact/contactus.html" class="menu">Contact Us</a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td><a href="'+htmlroot+'/contact/feedback.html" class="menu">Feedback</a></td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</div>');
document.writeln('</td>');
document.writeln('</tr>');
document.writeln('</table>');

