sniffBrowsers();



var labelOutBor = '#FFFFFF';

var labelInBor = '#666666';

var labelOff = '#FFFFFF';

var labelOn = '#E0E0E0';

var itemOutBor = '#E0E0E0';

var itemInBor = '#E0E0E0';

var itemOff = '#E0E0E0';

var itemOn = '#E0E0E0';

//new menuBar(barName, barWidth, orientation, i_Bor, o_Bor, targetType)

myTest = new menuBar('myTest',750, 'horizontal', labelInBor, labelOutBor, 'self');  

myTest.height = 15;

//myTest.addLabel(labelText, menuNo, offColour, onColour, labelURL, align) 

myTest.addLabel('Home&nbsp;&nbsp;&nbsp;',1, labelOff, labelOn, '/sfs/SFS/en/HomePage/Home/home.html', 'center');

myTest.addLabel('&nbsp;&nbsp;&nbsp;Products&nbsp;&nbsp;&nbsp;',2, labelOff, labelOn, '/sfs/SFS/en/Product/ProductLandingPage/products.html', 'center');

myTest.addLabel('&nbsp;&nbsp;&nbsp;Industries&nbsp;&nbsp;&nbsp;',3, labelOff, labelOn, '/sfs/SFS/en/IndustryApplications/IndustryApplicationsLanding/industryapplications_landing.html', 'center');

myTest.addLabel('&nbsp;&nbsp;&nbsp;Services&nbsp;&nbsp;&nbsp;',4, labelOff, labelOn, '/sfs/SFS/en/Services/Services/services.html', 'center');

myTest.addLabel('&nbsp;&nbsp;&nbsp;Downloads&nbsp;&nbsp;&nbsp;',5, labelOff, labelOn, '/sfsapp/eng/datasheetinter/dswinter', 'center');

myTest.addLabel('&nbsp;&nbsp;&nbsp;News & Events&nbsp;&nbsp;&nbsp;',6, labelOff, labelOn, '/sfs/SFS/en/LatestNewsAndEvents/LatestNewsAndEvents/latestnewsandevents.html', 'center');

myTest.addLabel('&nbsp;&nbsp;Contact Us&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;',7, labelOff, labelOn, '/sfs/SFS/en/ContactUs/ContactUs/contact_us_specialtyfilmsheet.html', 'center');



//Home

//menu(index, orientation, i_Bor, o_Bor)

menus[1] = new menu(1, null, 'vertical', itemInBor, itemOutBor, 'self');

menus[1].height = 14;

menus[1].writeMenu();



//Product

menus[2] = new menu(2, null, 'vertical', itemInBor, itemOutBor, 'self');

menus[2].height = 14;

for(var z=0; z<familyGroupCollection.size(); z++){

menus[2].addItem(familyGroupCollection[z].getName(), null, itemOff, itemOn,familyGroupCollection[z].getLink(), 'left');

}

menus[2].writeMenu();



//Industry Applications

menus[3] = new menu(3, null, 'vertical', itemInBor, itemOutBor, 'self');

menus[3].height = 14;

for(var z=0; z<FeaturedIndustryCollection.size(); z++){

menus[3].addItem(FeaturedIndustryCollection[z].getName(), null, itemOff, itemOn,FeaturedIndustryCollection[z].getLink(), 'left');

}

menus[3].writeMenu();



//Services

menus[4] = new menu(4, null, 'vertical', itemInBor, itemOutBor, 'new');

menus[4].height = 14;

menus[4].addItem('In-mold Decoration',null, itemOff, itemOn, '/gep/Plastics/pt/ProductsAndServices/IMDHome/in_mold_decoration.html', 'left');

menus[4].addItem('Color and Aesthetics',null, itemOff, itemOn, '/cxp/', 'left');

menus[4].addItem('Order a Sample',null, itemOff, itemOn, '/sfsapp/SFS/global/jsp/Tools/Dynamic/form_sample.jsp', 'left');

menus[4].writeMenu();



//DownLoads

menus[5] = new menu(5, null, 'vertical', itemInBor, itemOutBor, 'self');

menus[5].height = 14;

menus[5].addItem('Literature',null, itemOff, itemOn, '/sfsapp/SFS/servlet/ProductsAndServices/Literature/LiteratureSearchServlet?actionPerformed=HomeLoad', 'left');

menus[5].addItem('Case Studies',null, itemOff, itemOn, '/sfsapp/SFS/global/jsp/Literature/LiteratureAndTools.jsp?product=All&language=All&industryApplication=All&solutionArea=Resins&literatureType=Case%20Study', 'left');

menus[5].addItem('Datasheets',null, itemOff, itemOn, '/sfsapp/eng/datasheetinter/dswinter', 'left');

menus[5].addItem('Calculators',null, itemOff, itemOn, '/sfs/SFS/en/Tools/Tools/tools.html', 'left');

menus[5].writeMenu();



//News and events

menus[6] = new menu(6, null, 'vertical', itemInBor, itemOutBor, 'self');

menus[6].height = 14;

menus[6].writeMenu();



// Contact Us

menus[7] = new menu(7, null, 'vertical', itemInBor, itemOutBor, 'self');

menus[7].height = 14;

menus[7].addItem('Distributor Locator',null, itemOff, itemOn, '/sfsapp/SFS/servlet/DisLoc/DisLoc/DistributorLocatorServlet?actionPerformed=LoadServlet', 'left');

menus[7].writeMenu();



// Product - family Group

/*

menus[8] = new menu(8, null, 'vertical', itemInBor, itemOutBor, 'self');

menus[8].height = 14;

for(var x=0; x<familyGroup.size(); x++){

menus[8].addItem(familyGroup[x].getName(), null, itemOff, itemOn,familyGroup[x].getLink(), 'left');

}

menus[8].writeMenu(); 



*/

 

menus[1].align='left';

menus[2].align='left';

menus[3].align='left';

menus[4].align='left';

menus[5].align='left';

menus[6].align='left';

menus[7].align='left';



/*

menus[8].align='right';

menus[9].align='right';

menus[10].align='right';

*/


