
    var ver = "n3";
    bName = navigator.appName;
    bVer = parseInt(navigator.appVersion);
    if (bName == "Netscape" && bVer <= 3) ver = "n3";
    else if (bName == "Netscape" && bVer >= 4) ver = "n4";
    else if (bName == "Microsoft Internet Explorer" && bVer <= 3) ver = "e3";
    else if (bName == "Microsoft Internet Explorer" && bVer >= 4) ver = "e4";

/********************************************************************************
Variables to set.

Remember that to set fontsize and fonttype you set that in the stylesheet
above!
********************************************************************************/

//Making a menu object

topMenu=new menuObj('topMenu') //Place a name for the menu in there. Must be uniqe for each menu

//Setting menu object variables
/*Style variables NOTE: The stylesheet have been removed. Use this instead! (some styles are there by default, like position:absolute ++)*/
topMenu.clMain='padding:3px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; text-align:center; CURSOR: hand' //The style for the main menus
topMenu.clSub='padding:5px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; text-align:left; CURSOR: hand' //The style for the submenus
topMenu.clSubSub='padding:5px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:9px; text-align:center; CURSOR: hand' //The style for the subsubmenus
topMenu.clAMain='text-decoration:none; color:#FFFFFF' //The style for the main links
topMenu.clASub='text-decoration:none; color:#FFFFFF' //The style for the sub links
topMenu.clASubSub='text-decoration:none; color:#FFFFFF' //The style for the subsub links

/*These are new variables. In this example they are set like the previous version*/

topMenu.backgroundbar=0 //Set to 0 if no backgroundbar
topMenu.backgroundbarfromleft=30 //The left placement of the backgroundbar in pixel or %
topMenu.backgroundbarfromtop=27 //The top placement of the backgroundbar  in pixel or %
topMenu.backgroundbarsize="100%" //The size of the bar in pixel or %
topMenu.backgroundbarcolor="yellow" //The backgroundcolor of the bar


if ((ver == "n4") || (ver == "n3"))
{
topMenu.mainheight=20//The height of the main menuitems in pixel or % // netscape
topMenu.mainwidth=110 //The width of the main menuitems  in pixel or %  // netscape
}
else
{
topMenu.mainheight=20  // The height of the main menuitems in pixel or % 
topMenu.mainwidth=110// The width of the main menuitems  in pixel or % 
}

topMenu.subwidth = 200 // ** NEW ** The width of the submenus
topMenu.subheight= topMenu.mainheight  // The height if the subitems in pixel or % 
topMenu.subsubwidth=topMenu.subwidth  // ** NEW ** The width of the subsubmenus in pixel or % 
topMenu.subsubheight= topMenu.subheight 

//Writing out the style for the menu (leave this line!)
topMenu.makeStyle()

topMenu.subplacement=20
topMenu.subsubXplacement=topMenu.subwidth 
topMenu.subsubYplacement=0

topMenu.mainbgcoloroff='#2C517A' //The backgroundcolor of the main menuitems
topMenu.mainbgcoloron='#58799C' //The backgroundcolor on mouseover of the main menuitems
topMenu.subbgcoloroff='#58799C' //The backgroundcolor of the sub menuitems
topMenu.subbgcoloron='#2C517A' //The backgroundcolor on mouseover of the sub menuitems
topMenu.subsubbgcoloroff='#ffffff' //The backgroundcolor of the subsub menuitems
topMenu.subsubbgcoloron='#58799C' //The backgroundcolor on mouseover of the subsub menuitems
topMenu.stayoncolor=1 //Do you want the menus to stay on the mouseovered color when clicked?

topMenu.menuspeed=25 //The speed of the clipping in px
topMenu.menusubspeed=20 //The speed of the submenus clipping in px

topMenu.menurows=1 //Set to 0 if you want rows and to 1 if you want columns

topMenu.menueventon="mouse" //Set this to "mouse" if you want the menus to appear onmouseover, set it to "click" if you want it to appear onclick
topMenu.menueventoff="mouse" //Set this to "mouse" if you them to disappear onmouseout, if not set it to "click"

//Placement of the menuitems

topMenu.menuplacement=0

//If you use the "right beside eachother" you cant how many pixel there should be between each here
topMenu.pxbetween=1 //in pixel or %

//And you can set where it should start from the left here

//Center aligned example: (page.x2==pageWidth)
numberofmenus=8
menutotalwidth=topMenu.mainwidth*numberofmenus+topMenu.pxbetween*(numberofmenus-1)
//topMenu.fromleft=8 //page.x30-menutotalwidth/2 in pixel or %
if ((ver == "n4") || (ver == "n3"))
{
//alert("net1");
topMenu.fromleft=0//page.x30-menutotalwidth/2 in pixel or % // netscape
}
else
{
//alert("ie1");
topMenu.fromleft=0 //page.x30-menutotalwidth/2 in pixel or %
}
//Righ align the backgroundbar aswell:
topMenu.backgroundbarfromleft=topMenu.fromleft
//If you want the backgroundbar to be the same size:
topMenu.backgroundbarsize=menutotalwidth

//This is how much from the top the menu should be.

if ((ver == "n4") || (ver == "n3"))
{
//alert("net2");
topMenu.fromtop=62 //in pixel or %  /// netscape
}
else
{
//alert("ie2");
topMenu.fromtop=62 //in pixel or % //ie

}

//************************************** Menu Construction **************************


topMenu.makeMain(0,'About Us','aboutus.htm')
topMenu.makeMain(1,'Products')
topMenu.makeMain(2,'Quality Planning')
topMenu.makeMain(3,'Projects')
topMenu.makeMain(4,'Customers','Customers.htm')
topMenu.makeMain(5,'Contact Us','contactus.htm')
topMenu.makeMain(6,'Home','index.htm')

	//Sub items:
	// makeSub(MAIN_NUM,SUB_NUM,'TEXT','LINK',TOTAL) (set link to 0 if you want submenus of this menu item)

topMenu.makeSub(0,0,'Profile','profile.htm',3)
topMenu.makeSub(0,1,'Management','Mgmt.htm',3)
topMenu.makeSub(0,2,'Organizational Chart','Orgc.htm',3)

topMenu.makeSub(1,0,'Services','services.htm',7)
topMenu.makeSub(1,1,'Factory Facility','ff.htm',7)
topMenu.makeSub(1,2,'Metal Beam Crash Barrier','mbcb.htm',7)
topMenu.makeSub(1,3,'High Masts','hm.htm',7)
topMenu.makeSub(1,4,'Monopole Tower','mpt.htm',7)
topMenu.makeSub(1,5,'Galvanized Frame & Gratings','gf.htm',7)
topMenu.makeSub(1,6,'Pedestrian Guard Rail','pgr.htm',7)
//topMenu.makeSub(1,7,'Light & Heavy Fabrication','lhfs.htm',7)
topMenu.makeSub(1,7,'Palisade Fencing System','palside.htm',7)


topMenu.makeSub(2,0,'ISO Certificate','iso.htm',3)
topMenu.makeSub(2,1,'Inspection Standards','is.htm',3)
topMenu.makeSub(2,2,'Methodology of Fixing','mf.htm',3)

//topMenu.makeSub(3,0,'Case Studies','cs.htm',3)
topMenu.makeSub(3,0,'Approvals','appr.htm',2)
topMenu.makeSub(3,1,'Photo Gallery','photo.htm',2)


topMenu.makeSub(4,0,'Customers','Customers.htm',1)
//topMenu.makeSub(4,1,'International','intl.htm',2)
//topMenu.makeSub(4,2,'Special Cases','scase.htm',3)

topMenu.makeSub(5,0,'Broachers','br.htm',1)
//topMenu.makeSub(5,1,'White Papers','wp.htm',3)
//topMenu.makeSub(5,2,'Order Form','of.htm',3)

topMenu.makeSub(5,0,'Download','br.htm',2)
topMenu.makeSub(5,1,'Network Of Offices','no.htm',2)
topMenu.makeSub(5,2,'Inquiry Form','if.htm',2)



/********************************************************************************
End menu construction
********************************************************************************/

		
		
//When all the menus are written out we initiates the menu
topMenu.construct()
//********************* End Of Script*********************
