  var isN6=(navigator.userAgent.indexOf("Gecko")!=-1);
  var isNN4x=(document.layers)?true:false;
  var isIE5 = ((navigator.userAgent.indexOf("MSIE 5.0") != -1) && (navigator.userAgent.indexOf("Opera") == -1));
  var NoOffFirstLineMenus=9;
  var LowBgColor='';
  var LowSubBgColor='#F6ead0';
  var HighBgColor='';
  var HighSubBgColor='#e7c787';
  var FontLowColor='#606C56';
  var FontSubLowColor='#606C56';
  var FontHighColor='#888888';
  var FontSubHighColor='#555555';
  var BorderColor='#89927f';
  var BorderSubColor='#C4C4C4';
  var BorderWidth=1;
  var BorderBtwnElmnts=1;
  var FontFamily="arial,verdana,comic sans ms,technical"
  var FontSize=10;
  var FontBold=0;
  var FontItalic=0;
  var MenuTextCentered='left';
  var MenuCentered='left';
  var MenuVerticalCentered='top';
  var ChildOverlap=0;
  var ChildVerticalOverlap=0;
  var StartTop=-10;
  var StartLeft=10; 
  var VerCorrect=0;
  var HorCorrect=0;
  var LeftPaddng=6;
  var TopPaddng=2;
  var FirstLineHorizontal=1;
  var MenuFramesVertical=1;
  var DissapearDelay=500;
  var TakeOverBgColor=1;
  var FirstLineFrame='navig';
  var SecLineFrame='space';
  var DocTargetFrame='space';
  var TargetLoc='MenuPos';
  var HideTop=0;
  var MenuWrap=1;
  var RightToLeft=0;
  var UnfoldsOnClick=0;
  var WebMasterCheck=0;
  var ShowArrow=1;
  var KeepHilite=1;
  var Arrws=[strCodeBase + 'images/common/trans.gif',5,10,strCodeBase + 'images/common/trans.gif',10,5,strCodeBase + 'images/common/trans.gif',5,10];
  function BeforeStart(){return}
  function AfterBuild(){return}
  function BeforeFirstOpen(){return}
  function AfterCloseAll(){return}
  
  function MenuTag(TagId)
  {
    // Home Page
    //----------------------
    
    if (TagId == '1')
    {
	  Menu1=new Array("rollover~"+ strCodeBase +"images/common/nav/m_home_a.gif~" + strCodeBase + "images/common/nav/m_home_a.gif",""+ strCodeBase +"index.html","",0,19,49);
    }
    else
    {
    	  Menu1=new Array("rollover~"+ strCodeBase +"images/common/nav/m_home.gif~" + strCodeBase + "images/common/nav/m_home_h.gif",""+ strCodeBase +"index.html","",0,19,49);
    }


    // About Us Page
    //----------------------
        
    if (TagId == '2')
    {
     	Menu2=new Array("rollover~"+ strCodeBase +"images/common/nav/m_about_a.gif~" + strCodeBase + "images/common/nav/m_about_a.gif",""+ strCodeBase +"abtus/abtus.html","",4,19,72);
    }
    else
    {
    	Menu2=new Array("rollover~"+ strCodeBase +"images/common/nav/m_about.gif~" + strCodeBase + "images/common/nav/m_about_h.gif",""+ strCodeBase +"abtus/abtus.html","",4,19,72);
    }
	 

	Menu2_1=new Array("Our Vision and Mission" ,""+ strCodeBase +"abtus/abtus.html#vis","",0,23,230);
	Menu2_2=new Array("Our Guiding Principles",""+ strCodeBase +"abtus/abtus.html#pri","",0,23,230);
	Menu2_3=new Array("Our History",""+ strCodeBase +"abtus/abtus.html#his","",0,23,230);
	Menu2_4=new Array("Our Key Areas of Responsibilities",""+ strCodeBase +"abtus/abtus.html#key","",0,23,230);
	//Menu2_5=new Array("rollover~"+ strCodeBase +"images/common/nav/end_in.gif~" + strCodeBase + "images/common/nav/end_in.gif","","",0,8,230);


     // Legislation Page
     //----------------------
            
     if (TagId == '3')
     {
     	Menu3=new Array("rollover~"+ strCodeBase +"images/common/nav/m_legis_a.gif~" + strCodeBase + "images/common/nav/m_legis_a.gif",""+ strCodeBase +"legislation/acts.html","",3,19,83);
     }
     else
     {
     	Menu3=new Array("rollover~"+ strCodeBase +"images/common/nav/m_legis.gif~" + strCodeBase + "images/common/nav/m_legis_h.gif",""+ strCodeBase +"legislation/acts.html","",3,19,83);
     }
	  
	Menu3_1=new Array("Statistics Act",""+ strCodeBase + "legislation/statact.html","",0,23,230);
	Menu3_2=new Array("Census Act","http://statutes.agc.gov.sg/non_version/cgi-bin/cgi_retrieve.pl?actno=REVED-35","1",0,23,230);
	Menu3_3=new Array("Statistics (Amendment) Bill",""+ strCodeBase + "legislation/stat_amendmt_bill(11012010).pdf","", 0,23,230);
	//Menu3_3=new Array("Statistics (Amendment) Bill",""+ strCodeBase + "legislation/stat_amendmt_bill.pdf","",0,23,230);
	//Menu3_4=new Array("rollover~"+ strCodeBase +"images/common/nav/end_in.gif~" + strCodeBase + "images/common/nav/end_in.gif","","",0,8,230);

     
     // Services Page
     //----------------------
      
     if (TagId == '4')
     {
	 Menu4=new Array("rollover~"+ strCodeBase +"images/common/nav/m_services_a.gif~" + strCodeBase + "images/common/nav/m_services_a.gif",""+ strCodeBase +"svcs/services.html","",8,19,68);
     }
     else
     {
     	 Menu4=new Array("rollover~"+ strCodeBase +"images/common/nav/m_services.gif~" + strCodeBase + "images/common/nav/m_services_h.gif",""+ strCodeBase +"svcs/services.html","",8,19,68);
     }
	 Menu4_1=new Array("Statistical Information Services",""+ strCodeBase +"svcs/services.html#sis","",0,23,230);
	 Menu4_2=new Array("SingStat Time Series","http://www.singstat.gov.sg/sts","",0,23,230);
	 Menu4_3=new Array("Data on SMS",""+ strCodeBase +"svcs/dataonsms.html","",0,23,230);
	 Menu4_4=new Array("SingStat Express","http://app.singstat.gov.sg/free/subscribepage.asp","",0,23,230);
	 Menu4_5=new Array("Really Simple Syndication (RSS)",""+ strCodeBase +"svcs/rss.html","",0,23,230);
	 Menu4_6=new Array("Sampling Services for Dwellings",""+ strCodeBase +"svcs/d-sampling.html","",0,23,230);
	 Menu4_7=new Array("E-Survey","https://www1.singstat.gov.sg/e-survey/login.jsp","",0,23,230);
	 Menu4_8=new Array("Online Payment",""+ strCodeBase +"svcs/payment.html","",0,23,230);
	// Menu4_9=new Array("rollover~"+ strCodeBase +"images/common/nav/end_in.gif~" + strCodeBase + "images/common/nav/end_in.gif","","",0,8,230);

	 // Statistics Page
     //----------------------
      
     if (TagId == '9')
     {
	 Menu5=new Array("rollover~"+ strCodeBase +"images/common/nav/m_statistics_a.gif~" + strCodeBase + "images/common/nav/m_statistics_a.gif",""+ strCodeBase +"stats/stats.html","",6,19,68);
     }
     else
     {
     	 Menu5=new Array("rollover~"+ strCodeBase +"images/common/nav/m_statistics.gif~" + strCodeBase + "images/common/nav/m_statistics_h.gif",""+ strCodeBase +"stats/stats.html","",6,19,68);
     }
	 Menu5_1=new Array("Latest Data",""+ strCodeBase +"stats/latestdata.html","",0,23,230);
	 Menu5_2=new Array("Key Annual Indicators",""+ strCodeBase +"stats/keyind.html","",0,23,230);
	 Menu5_3=new Array("Themes",""+ strCodeBase +"stats/themes.html","",0,23,230);
	 Menu5_4=new Array("Statistics Visualiser",""+ strCodeBase +"stats/stats.html#explorer","",0,23,230);
	 Menu5_5=new Array("Statistical Charts",""+ strCodeBase +"stats/stats.html#charts","",0,23,230);
	 Menu5_6=new Array("Glossary",""+ strCodeBase +"stats/stats.html#glossary","",0,23,230);
	// Menu5_7=new Array("rollover~"+ strCodeBase +"images/common/nav/end_in.gif~" + strCodeBase + "images/common/nav/end_in.gif","","",0,8,230);

    // Publications Page
    //----------------------
      
     if (TagId == '5')
     {
	 Menu6=new Array("rollover~"+ strCodeBase +"images/common/nav/m_publn_a.gif~" + strCodeBase + "images/common/nav/m_publn_a.gif",""+ strCodeBase +"pubn/pubn.html","",11,19,93);
     }
     else
     {
     	Menu6=new Array("rollover~"+ strCodeBase +"images/common/nav/m_publn.gif~" + strCodeBase + "images/common/nav/m_publn_h.gif",""+ strCodeBase +"pubn/pubn.html","",11,19,93);
     }
	 Menu6_1=new Array("Papers & Analyses","" + strCodeBase + "pubn/pubn.html#papers","",0,23,230);
	 Menu6_2=new Array("Publication Catalogue","" + strCodeBase + "pubn/catalogue.html","",0,23,230);
	 Menu6_3=new Array("Monthly Digest of Statistics","" + strCodeBase + "pubn/reference.html#mds","",0,23,230);
	 Menu6_4=new Array("Yearbook of Statistics, Singapore","" + strCodeBase + "pubn/reference.html#yos","",0,23,230);
	 Menu6_5=new Array("Singapore in Brief","" + strCodeBase + "pubn/catalogue.html#sib","",0,23,230);
	 Menu6_6=new Array("General Household Survey 2005","" + strCodeBase + "pubn/ghs.html#ghsr1","",0,23,230);
	 Menu6_7=new Array("Population Census 2000","" + strCodeBase + "pubn/census.html#c2000adr","",0,23,230);
	 Menu6_8=new Array("Household Expenditure Survey","" + strCodeBase + "pubn/hhld.html","",0,23,230);
	 Menu6_9=new Array("Surveys of Services","" + strCodeBase + "pubn/business.html#essts","",0,23,230);
	 Menu6_10=new Array("Statistics Singapore Newsletter","" + strCodeBase + "pubn/pubn.html#ssn","",0,23,230);
	 Menu6_11=new Array("Economic Survey of Singapore","http://app.mti.gov.sg/default.asp?id=123&cat=2","",0,23,230);
	// Menu6_12=new Array("rollover~"+ strCodeBase +"images/common/nav/end_in.gif~" + strCodeBase + "images/common/nav/end_in.gif","","",0,8,230);


     // News Page
     //----------------------
          
     if (TagId == '6')
     {
	 Menu7=new Array("rollover~"+ strCodeBase +"images/common/nav/m_news_a.gif~" + strCodeBase + "images/common/nav/m_news_a.gif",""+ strCodeBase +"news/news.html","",3,19,51);
     }
     else
     {
     	 Menu7=new Array("rollover~"+ strCodeBase +"images/common/nav/m_news.gif~" + strCodeBase + "images/common/nav/m_news_h.gif",""+ strCodeBase +"news/news.html","",3,19,51);
     }
	 Menu7_1=new Array("Press Releases","" + strCodeBase + "news/news.html#press","",0,23,230);
	 Menu7_2=new Array("Notice of Publications","" + strCodeBase + "news/news.html#nop","",0,23,230);
	 Menu7_3=new Array("Statistics Singapore Newsletter","" + strCodeBase + "pubn/pubn.html#ssn","",0,23,230);
	 //Menu7_4=new Array("rollover~"+ strCodeBase +"images/common/nav/end_in.gif~" + strCodeBase + "images/common/nav/end_in.gif","","",0,8,230);


     // Careers Page
     //----------------------
          
     if (TagId == '7')
     {
	Menu8=new Array("rollover~"+ strCodeBase +"images/common/nav/m_careers_a.gif~" + strCodeBase + "images/common/nav/m_careers_a.gif","" + strCodeBase + "careers/careers.html","",0,19,60);
     }
     else
     {
     	Menu8=new Array("rollover~"+ strCodeBase +"images/common/nav/m_careers.gif~" + strCodeBase + "images/common/nav/m_careers_h.gif","" + strCodeBase + "careers/careers.html","",0,19,60);
     }


     // Useful Links Page
     //----------------------
          
     if (TagId == '8')
     {
	Menu9=new Array("rollover~"+ strCodeBase +"images/common/nav/m_useful_a.gif~" + strCodeBase + "images/common/nav/m_useful_a.gif","" + strCodeBase + "statsres/resources.html#international","",0,19,91);
     }
     else
     {
     	Menu9=new Array("rollover~"+ strCodeBase +"images/common/nav/m_useful.gif~" + strCodeBase + "images/common/nav/m_useful_h.gif","" + strCodeBase + "statsres/resources.html#international","",0,19,91);
     }
     
     // Menu9=new Array("rollover~"+ strCodeBase +"images/common/nav/m_spacer.gif~" + strCodeBase + "images/common/nav/m_spacer.gif","" + strCodeBase + "statsres/resources.html#international","",0,19,90);
  
  }
  
  function swapimg(imagename, objectsrc)
  {
    if (document.images)
        document.images[imagename].src=eval(objectsrc+".src")
  }
  