var NS = 0;
var NS4 = 0;
browserName = navigator.appName.substring(0,8);
browserVer = parseFloat(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 5)
{ NS = 1; }
if (browserName == "Netscape" && browserVer < 5)
{ NS4 = 1; }

oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=0
oCMenu.rows=1
oCMenu.menuPlacement="left"

                                                                   
oCMenu.offlineRoot=""
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1
oCMenu.wait=500
oCMenu.fillImg="/images/spacer.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
oCMenu.barHeight="menu"
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=0

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=198
oCMenu.level[0].height=30
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=0
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=2
oCMenu.level[0].rows=1
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=120
oCMenu.level[1].height=28
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].align="right"
oCMenu.level[1].arrow="/images/nav_plus.gif"
oCMenu.level[1].arrowWidth=14
oCMenu.level[1].arrowHeight=7

var imageProducts = "/images/nav_01_products_off.gif";
var imageInstallation = "/images/nav_02_installation_off.gif";
var imageTechnical = "/images/nav_03_technical_off.gif";
var imageSupport = "/images/nav_04_support_off.gif";
var imageSustain = "/images/nav_05_sustain_off.gif";

/*var thisUrlString = window.location.href;
if(thisUrlString.indexOf("about") > 0) {
	imageAbout = "/images/top_nav_01_about_cur.gif";
} else if (thisUrlString.indexOf("careers") > 0) {
	imageCareers = "/images/top_nav_07_careers_cur.gif"
} else if (thisUrlString.indexOf("newsandevents") > 0) {
	imageNews = "/images/top_nav_06_news_cur.gif";
} else if (thisUrlString.indexOf("products") > 0) {
	imageProducts = "/images/top_nav_03_products_cur.gif";
} else if (thisUrlString.indexOf("services") > 0) {
	imageServices = "/images/top_nav_02_services_cur.gif";
} else if (thisUrlString.indexOf("clients") > 0) {
	imageClients = "/images/top_nav_04_clients_cur.gif";
} else if (thisUrlString.indexOf("partners") > 0) {
	imagePartners = "/images/top_nav_05_partners_cur.gif";
}*/

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass, align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
var menuNode;

oCMenu.makeMenu('about','','','#','','128','43',imageProducts,'/images/nav_01_products_on.gif','','','','0','','','','')
	oCMenu.makeMenu('membrane','about','','products_membranes.cfm','','97','28','/images/nav_sub_prod_mem_off.jpg','/images/nav_sub_prod_mem_on.gif')
	oCMenu.makeMenu('accessories','about','','products_accessories.cfm','','97','28','/images/nav_sub_prod_acc_off.jpg','/images/nav_sub_prod_acc_on.gif')

//oCMenu.makeMenu('doors','','','','','128','43',imageInstallation,'/images/nav_02_installation_on.gif')
oCMenu.makeMenuFromJson({name : 'doors',
				link : 'installation.cfm',
				width : '128',
				height : '43',
				regImage : imageInstallation,
				overImage : '/images/nav_02_installation_on.gif',
				offsetX : 0 
				});

oCMenu.makeMenu('resources','','','#','','113','43',imageTechnical,'/images/nav_03_technical_on.gif','','','','0','','','','','-82')
	oCMenu.makeMenu('membraneSpecifications','resources','Membrane Specifications','tech_membrane.cfm','','168','28','/images/nav_sub_tech_mem_off.jpg','/images/nav_sub_tech_mem_on.gif','','','','','','','','')
	oCMenu.makeMenu('detailDrawings','resources','Detail Drawings','tech_drawings.cfm','','116','28','/images/nav_sub_tech_draw_off.jpg','/images/nav_sub_tech_draw_on.gif','','','','','','','','')
	oCMenu.makeMenu('productData','resources','Product Data','tech_data.cfm','','104','28','/images/nav_sub_tech_data_off.jpg','/images/nav_sub_tech_data_on.gif','','','','','','','','')
	oCMenu.makeMenu('guideSpecifications','resources','Guide Specifications','tech_guide.cfm','','135','28','/images/nav_sub_tech_guide_off.jpg','/images/nav_sub_tech_guide_on.gif','','','','','','','','')
	oCMenu.makeMenu('codesStandards','resources','Codes &amp; Standards','tech_codes.cfm','','138','28','/images/nav_sub_tech_code_off.jpg','/images/nav_sub_tech_code_on.gif','','','','','','','','')
	oCMenu.makeMenu('continuingEducation','resources','Continuing Education','tech_education.cfm','','82','28','/images/nav_sub_tech_education_off.jpg','/images/nav_sub_tech_education_on.gif','','','','','','','','')

//oCMenu.makeMenu('gallery','','','/#','','156','43',imageSupport,'/images/nav_04_support_on.gif')
oCMenu.makeMenuFromJson({name : 'gallery',
				link : 'support_faqs.cfm',
				width : '156',
				height : '43',
				regImage : imageSupport,
				overImage : '/images/nav_04_support_on.gif',
				offsetX : -1
				});

//oCMenu.makeMenu('contact','','','sustainability.cfm','','136','43',imageSustain,'/images/nav_05_sustain_on.gif')
oCMenu.makeMenuFromJson({name : 'sustainability',
				link : 'sustainability.cfm',
				width : '136',
				height : '43',
				regImage : imageSustain,
				overImage : '/images/nav_05_sustain_on.gif',
				offsetX : 0
				});