var d=new Date()
var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

StartMenu()

// MENU OPTIONS - you will find more options in the corporatestyle.css

MFL			= 18; 					// MENU DISTANCE FROM EDGE
MFT			= 38; 					// MENU DISTANCE FROM TOP
ALIGN		= "left"				// MENU LEFT OR RIGHT
TMH			= 20;					// TOP MENU HEIGHT
TMFS		= "8";					// TOP MENU FONT SIZE
TMFW		= "";				// TOP MENU FONT WEIGHT bold/normal
TMFF		= "arial, verdana, helvetica, sans";	// TOP MENU FONT FACE
TMC			= "FFF4D5";				// TOP MENU OFF FONT COLOR
TMBC		= "333333";				// TOP MENU OFF BACKGROUND COLOR
TMBI		= "picts/menu.gif";		// TOP MENU OFF BACKGROUND IMAGE
TMHC		= "000000";				// TOP MENU HOVER TEXT COLOR
TMHBC		= "C0C0C0";				// TOP MENU HOVER BACKGROUND COLOR
TMHBI		= "picts/menuon.gif";	// TOP MENU HOVER BACKGROUND IMAGE
MO			= TMH-0;				// Y MENU OVERLAP CHANGE NUMBER VALUE
SUBshift	= 0;					// SHIFT SUBMENU RIGHT


// START SUBMENU OPTIONS - you will find more options in the corporatestyle.css


SMH			= 1;					// SUB MENU HEIGHT
SMFS		= "9";					// SUB MENU FONT SIZE
SMFW		= "normal";				// SUB MENU FONT WEIGHT bold/normal
SMFF		= "arial,MS Sans Serif,sans-serif";	// SUB MENU FONT FACE
SMC			= "000000";				// SUB MENU OFF FONT COLOR
SMBC		= "E8FFDD";				// SUB MENU OFF BACKGROUND COLOR
SMHC		= "000000";				// SUB MENU HOVER TEXT COLOR
SMHBC		= "F0F0F0";				// SUB MENU HOVER BACKGROUND COLOR


SubMenu()


// START MENU NUMBER 1 COPY AND PASTE A GROUP TO ADD A NEW TOP LEVEL SEE NOTE BELOW

Top_Width[0]=80; Sub_Menu_Width[0]=174;
m[0]='&bull; Search &bull;';n[0]="YahooSearch.htm";st[0]="";s[0]=""
//+l+"LMsearch.htm"+r+" &bull; Landmarks "+c
// +l+"products.htm"+r+" Products &amp; Services "+c
//+l+"teldir.htm"+r+" &bull; Useful Telepone Numbers "+c

Top_Width[1]=144; Sub_Menu_Width[1]=228;
m[1]='&bull; Essential Services &bull;';n[1]="AM-Essential.htm";st[1]="";s[1]=""
// +l+"ES-adhocchildcare.htm"+r+" &bull; Ad-hoc Child Care Service "+c
// +l+"TownCouncil.htm"+r+" &bull; Bulky Refuse Removal Service "+c
// +l+"ES-childcare.htm"+r+" &bull; Childcare Centres "+c
// +l+"ES-clinic.htm"+r+" &bull; Clinics &amp; Medical Centres "+c
// +l+"ES-familycare.htm"+r+" &bull; Family Care Services "+c
// +l+"LM-polyclinics.htm"+r+" &bull; Government Polyclinics "+c
// +l+"LM-HDBoff.htm"+r+" &bull; HDB Branch Office "+c
// +l+"ES-polpos.htm"+r+" &bull; Police Centre &amp; Posts "+c
// +l+"AM-PubFreeClin.htm"+r+" &bull; Public Free Clinic "+c
// +l+"TownCouncil.htm"+r+" &bull; Town Council "+c
// +l+"teldir.htm"+r+" &bull; Useful Telepone Numbers "+c


Top_Width[2]=132; Sub_Menu_Width[2]=178;
m[2]='&bull; Public Amenities &bull;';n[2]="AM-Amenity.htm";st[2]="";s[2]=""
// +l+"AM-Banks.htm"+r+" &bull; Banks "+c
// +l+"ES-publib.htm"+r+" &bull; Libraries "+c
// +l+"ES-posoff.htm"+r+" &bull; Post Office "+c
// +l+"ES-pubtra.htm"+r+" &bull; Public Transportation "+c
// +l+"ES-school.htm"+r+" &bull; Schools &amp; Institutions "+c
// +l+"shoppingcentres.htm"+r+" &bull; Shopping Centres "+c
// +l+"ES-student.htm"+r+" &bull; Student Care Centres "+c


Top_Width[3]=100; Sub_Menu_Width[3]=158;
m[3]='&bull; Landmarks &bull;';n[3]="LMsearch.htm";st[3]="";s[3]=""
// +l+"LM-lanmar.htm"+r+" &bull; Landmarks Gallery"+c
// +l+"LM-plawor.htm"+r+" &bull; Places of Worship "+c


Top_Width[4]=138; Sub_Menu_Width[4]=148;
m[4]='&bull; Shopping Centres &bull;';n[4]="shoppingcentres.htm";st[4]="";s[4]=""
// +l+"http://tampineszone.com/centurysquare.htm"+r+" &bull; Century Square "+c
// +l+"CourtsTampines.htm"+r+" &bull; Courts Megastore "+c
// +l+"SC-EasLin1.htm"+r+" &bull; EastLink Mall "+c
// +l+"SC-Giant.htm"+r+" &bull; Giant Hypermarket "+c
// +l+"SC-Ikea.htm"+r+" &bull; Ikea "+c
// +l+"http://tampineszone.com/tampinesone.htm"+r+" &bull; Tampines One "+c
// +l+"http://tampineszone.com/tampinesmall.htm"+r+" &bull; Tampines Mall "+c
// +l+"TampinesMartInfo.htm"+r+" &bull; Tampines Mart "+c



Top_Width[5]=134; Sub_Menu_Width[5]=148;
m[5]='&bull; Community Clubs &bull;';n[5]="CCcomcen.htm";st[5]="";s[5]=""
// +l+"CCcentral.htm"+r+" &bull; Tampines Central "+c
// +l+"CCchangkat.htm"+r+" &bull; Changkat "+c
// +l+"CCeast.htm"+r+" &bull; Tampines East "+c
// +l+"CCnorth.htm"+r+" &bull; Tampines North "+c
// +l+"CCwest.htm"+r+" &bull; Tampines West "+c

Top_Width[6]=72; Sub_Menu_Width[6]=150;
m[6]='&bull; Maps &bull;';n[6]="NBH-shoppingMap.htm";st[6]="";s[6]=""
// +l+"NBH-shoppingMap.htm"+r+" &bull; Town Map"+c
// +l+"TC-townmap.htm"+r+" &bull; Town Centre "+c
// +l+"NBH-cen1map.htm"+r+" &bull; Central 1"+c
// +l+"NBH-str11map.htm"+r+" &bull; N1 Street 11"+c
// +l+"NBH-str23map.htm"+r+" &bull; N2 Street 21"+c
// +l+"NBH-str43map.htm"+r+" &bull; N5 Street 43"+c
// +l+"NBH-str81map.htm"+r+" &bull; N8 Street 81"+c
// +l+"MapOuterSpace.htm"+r+" &bull; Satellite Map"+c


Top_Width[7]=72; Sub_Menu_Width[7]=122;
m[7]='&bull; Parks &bull;';n[7]="/tnt/home.htm";st[7]="";s[7]=""
// +l+"/tnt/centralpark.htm"+r+" &bull; Central Park "+c
// +l+"/tnt/sunplazapark.htm"+r+" &bull; SunPlaza Park "+c
// +l+"/tnt/tampgreen.htm"+r+" &bull; Tampines Green "+c
// +l+"/tnt/tampark.htm"+r+" &bull; Tampines Park "+c


document.write('<table width="100%" height="80"  border="0" align="center" cellpadding="0" cellspacing="0" background="picts/mainbanner.jpg">');
document.write('<tr><td><a href="index.htm"><img src="picts/mainbanner.jpg" alt="Home" width="100%" height="80" border="0"></a></td></tr></table>');
//document.write('<tr class="date-font"><td height="22" bgcolor="#333333"" align="center">');
//document.write('||<img src="picts/spacer.gif" width="8" height="2"><a href="javascript:history.go(-1)" class="sidelink"> &larr; Back </a><img src="picts/spacer.gif" width="8" height="2">');
// document.write('||<img src="picts/spacer.gif" width="8" height="2"><a href="AM-Amenity.htm" class="sidelink"> Public Amenities </a>');
//document.write('||<img src="picts/spacer.gif" width="8" height="2"><a href="NBH-shopping.htm" class="sidelink"> Shopping Streets </a><img src="picts/spacer.gif" width="8" height="2">');
//document.write('||<img src="picts/spacer.gif" width="8" height="2"><a href="NBH-cen1map.htm" class="sidelink"> Central 1 </a><img src="picts/spacer.gif" width="8" height="2">');
//document.write('||<img src="picts/spacer.gif" width="8" height="2"><a href="NBH-str11map.htm" class="sidelink"><strong> N1 </strong>Street 11 </a><img src="picts/spacer.gif" width="8" height="2">');
//document.write('||<img src="picts/spacer.gif" width="8" height="2"><a href="NBH-str23map.htm" class="sidelink"><strong> N2 </strong>Street 21 </a><img src="picts/spacer.gif" width="8" height="2">');
//document.write('||<img src="picts/spacer.gif" width="8" height="2"><a href="NBH-str43map.htm" class="sidelink"><strong> N5 </strong> Street 43 </a><img src="picts/spacer.gif" width="8" height="2">');
//document.write('||<img src="picts/spacer.gif" width="8" height="2"><a href="NBH-str81map.htm" class="sidelink"><strong> N8 </strong> Street 81 </a><img src="picts/spacer.gif" width="8" height="2">');
//document.write('||<img src="picts/spacer.gif" width="8" height="2"><a href="YahooSearch.htm" class="sidelink"> Search </a><img src="picts/spacer.gif" width="8" height="2">');
//document.write('||<img src="picts/spacer.gif" width="8" height="2"><a href="#PageBottom" class="sidelink"> &darr; Bottom </a><img src="picts/spacer.gif" width="8" height="2">||<img src="picts/spacer.gif" width="8" height="2"></td></tr>');

//document.write('</td></tr></table>');


// IF YOU ADD ANOTHER TOP LEVEL MENU YOU MUST ADD TO THE BOTTOM OF THIS LIST

ADJ[0]=MFL;
ADJ[1]=(Top_Width[0])+MFL;
ADJ[2]=(Top_Width[0]+Top_Width[1])+MFL;
ADJ[3]=(Top_Width[0]+Top_Width[1]+Top_Width[2])+MFL;
ADJ[4]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3])+MFL;
ADJ[5]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4])+MFL;
ADJ[6]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4]+Top_Width[5])+MFL;
ADJ[7]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4]+Top_Width[5]+Top_Width[6])+MFL;
ADJ[8]=(Top_Width[0]+Top_Width[1]+Top_Width[2]+Top_Width[3]+Top_Width[4]+Top_Width[5]+Top_Width[6]+Top_Width[7])+MFL;

// ----------------------------------------------------------------
// YOU DO NOT NEED TO EDIT BELOW THIS LINE 2006 Allwebco Design
// ----------------------------------------------------------------


MENU=m.length

for (i=0; i < MENU; i++){


// START WRITING TOP LEVEL MENUS


document.write("<div style='position:absolute;"+ALIGN+":"+ADJ[i]+";top:"+MFT+";width:"+Top_Width[i]+"' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>")



document.write("<a class='menu_TOP' style='height:"+TMH+"; color:#"+TMC+"; background-image: url("+TMBI+"); background-color:#"+TMBC+"; font-size:"+TMFS+"pt; font-weight:"+TMFW+"; font-family: "+TMFF+"; "+spn+"' onmouseover=\"this.style.backgroundColor='#"+TMHBC+"';this.style.color='"+TMHC+"';this.style.backgroundImage='URL("+TMHBI+")'\"  onmouseout=\"this.style.backgroundColor='#"+TMBC+"';this.style.color='"+TMC+"';this.style.backgroundImage='URL("+TMBI+")'\" href='"+n[i]+"'>"+m[i]+"</a></div>")



}


//for (i=0; i < MENU; i++){

// START WRITING SUB MENUS


//document.write("<div id='SUB"+i+"' class='menu_DIV' style='position: absolute; "+ALIGN+":"+(ADJ[i]+SUBshift)+";top:"+(MFT+MO)+";width:"+Sub_Menu_Width[i]+";background-color:#"+SMBC+";' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>"+s[i]+"</div>")


//}



function StartMenu()
{

var D6=window,Y7=document;
function DETECT()
{
this.ver=navigator.appVersion;
this.agent=navigator.userAgent;
this.dom=Y7.getElementById?1:0;
this.opera5=this.agent.indexOf("Opera 5")>-1;
this.ie4=(Y7.all && !this.dom && !this.opera5)?1:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6||this.ie7;
this.mac=this.agent.indexOf("Mac")>-1;
this.ns6=(this.dom && parseInt(this.ver)>=5)?1:0;
this.ns4=(Y7.layers && !this.dom)?1:0;
this.BWD=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5);
return this
}
BWD=new DETECT();z=0;b=0;
spn="";
if(BWD.opera5||BWD.ns6)
{
b=2
};
if(BWD.ie)
{
spn=" width: 100%"
}else{
z=6
}

} 


function SubMenu()
{

document.write("<TABLE cellpadding='0' cellspacing='0' border='0' width='100%' BGCOLOR='#'+TMBC+''><tr><td>");
document.write("<img src='picts/spacer.gif' width='100%' height='"+TMH+"'><br>");
document.write("</td></tr></table>");

document.write("<div width='100%' style='height:"+TMH+";position:absolute;top:"+MFT+";width:100%;background-image: url("+TMBI+"); background-color:#"+TMBC+";z-level:-2'></div>")


l="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-color:#"+SMBC+"; font-size:"+SMFS+"pt; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' onmouseover=\"this.style.backgroundColor='#"+SMHBC+"';this.style.color='"+SMHC+"'\"  onmouseout=\"this.style.backgroundColor='#"+SMBC+"';this.style.color='"+SMC+"'\" href='";

r="'>";
c="</a>";


m=new Array();n=new Array();s=new Array();Sub_Menu_Width=new Array();su=new Array();st=new Array();Top_Width=new Array();ADJ=new Array()

}


function lib_obj(obj,nest){nest=(!nest) ? "":'document.'+nest+'.';this.evnt=BWD.dom? document.getElementById(obj):BWD.ie4?document.all[obj]:BWD.ns4?eval(nest+"document.layers." +obj):0;this.css=BWD.dom||BWD.ie4?this.evnt.style:this.evnt;this.ref=BWD.dom||BWD.ie4?document:this.css.document;this.x=parseInt(this.css.top)||this.css.pixeltop||this.evnt.offsettop||0;this.y=parseInt(this.css.left)||this.css.pixelleft||this.evnt.offsetleft||0;return this}
function lib_doc_size(){this.x=0;this.x2=BWD.ie && document.body.offsetWidth-20||innerWidth||0;this.y=0;this.y2=BWD.ie && document.body.offsetHeight-5||innerHeight||0;this.x50=this.x2/2;this.y50=this.y2/2;return this;}
lib_obj.prototype.ShowMenu = function(){this.css.visibility="visible"}
lib_obj.prototype.HideMenu = function(){this.css.visibility="hidden"}
function libinit(){page=new lib_doc_size();o=new Array();for (i=0; i < MENU; i++){o[i]=new lib_obj('SUB'+i);o[i].HideMenu()}}
libinit()


// END MENU CODE -->
