/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/
//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
oCMenu.frames = 0

//New properties in 4.06 - Set to open and/or close the menu onclick
oCMenu.openOnClick=0
oCMenu.closeOnClick=0

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=10
oCMenu.fromTop=151
oCMenu.rows=1
oCMenu.menuPlacement="center"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1
oCMenu.wait=1000 
oCMenu.fillImg="/images/spacer.gif"
oCMenu.zIndex=100
oCMenu.pagecheck=0
oCMenu.checkscroll=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=0
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//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=100
oCMenu.level[0].height=20
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=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=280
oCMenu.level[1].height=20
oCMenu.level[1].regClass="clLeftLevel1"
oCMenu.level[1].overClass="clLeftLevel1over"
oCMenu.level[1].borderClass="clLeftLevel1border"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=1
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].align="bottom"


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/

var pageURL = window.location.href;
var pageClass = "";

if (pageURL.indexOf(".com/index.asp") >= 0) {
	pageClass = "_on";
}
oCMenu.makeMenu('top0','','','/index.asp','','86','','/images/nav/home'+pageClass+'.jpg','/images/nav/home_on.jpg','','')


pageClass = "";
if ( (pageURL.indexOf("/Products/") >= 0) && (pageURL.indexOf("/Products/EngineeredComponents/") < 0) ) {
	pageClass = "_on";
}
	oCMenu.makeMenu('top1','','','','','97','','/images/nav/products'+pageClass+'.jpg','/images/nav/products_on.jpg','','')
	oCMenu.makeMenu('sub11','top1','ALL TUBEŽ Stock Tubing','/Products/StockTubing/index.asp', '', '')
	oCMenu.makeMenu('sub12','top1','ALL TUBEŽ Quick Turn Custom ID/OD Tubing','/Capabilities/cutsom_sizing_shaping.asp', '', '')
	oCMenu.makeMenu('sub13','top1','ALL TUBEŽ Stainless Steel Tubing Kits','/Products/StockTubing/assorted_tubing_kits.asp', '', '')
	oCMenu.makeMenu('sub14','top1','ALL TUBEŽ Small Diameter Cut-Off Saw','/Products/StockFittingsParts/specialty_saw.asp', '', '')
	oCMenu.makeMenu('sub15','top1','ALL TUBEŽ Stock Bar, Rod and Wire','/Products/StockBarRodWire/stainless_steel_bar_rod.asp', '', '')
	oCMenu.makeMenu('sub16','top1','Cutting/Deburring of Tubing and Solid Stock','/Capabilities/cutting_deburring.asp', '', '')
	oCMenu.makeMenu('sub17','top1','ALL TUBEŽ Stock Fittings and Parts','/Products/StockFittingsParts/index.asp', '', '')
	oCMenu.makeMenu('sub18','top1','Engineered Components and Assemblies','/Products/EngineeredComponents/index.asp', '', '')
	
	
pageClass = "";
if (pageURL.indexOf("/Products/EngineeredComponents/index.asp") >= 0) {
	pageClass = "_on";
}
oCMenu.makeMenu('top3','','','/Products/EngineeredComponents/index.asp','','116','','/images/nav/engineering'+pageClass+'.jpg','/images/nav/engineering_on.jpg','','')
	
pageClass = "";
if (pageURL.indexOf("/Capabilities/prototyping.asp") >= 0) {
	pageClass = "_on";
}
oCMenu.makeMenu('top4','','','/Capabilities/prototyping.asp','','124','','/images/nav/prototyping'+pageClass+'.jpg','/images/nav/prototyping_on.jpg','','')
	
pageClass = "";
if ((pageURL.indexOf("/Capabilities/") >= 0)  && (pageURL.indexOf("/Capabilities/prototyping.asp") < 0)) {
	pageClass = "_on";
}
oCMenu.makeMenu('top2','','','/Capabilities/index.asp','','120','','/images/nav/capabilities'+pageClass+'.jpg','/images/nav/capabilities_on.jpg','','')
	
pageClass = "";
if (pageURL.indexOf("quality.asp") >= 0) {
	pageClass = "_on";
}
oCMenu.makeMenu('top6','','','/quality.asp','','94','','/images/nav/quality'+pageClass+'.jpg','/images/nav/quality_on.jpg','','')
	
pageClass = "";
if (pageURL.indexOf("/News/") >= 0) {
	pageClass = "_on";
}
oCMenu.makeMenu('top7','','','/News/index.asp','','78','','/images/nav/news'+pageClass+'.jpg','/images/nav/news_on.jpg','','')
	
pageClass = "";
if (pageURL.indexOf("/About/") >= 0) {
	pageClass = "_on";
}
oCMenu.makeMenu('top8','','','/About/index.asp','','83','','/images/nav/about'+pageClass+'.jpg','/images/nav/about_on.jpg','','')
	
pageClass = "";
if (pageURL.indexOf("/Contact/quote.asp") >= 0) {
	pageClass = "_on";
}
oCMenu.makeMenu('top9','','','/Contact/quote.asp','','86','','/images/nav/quote'+pageClass+'.jpg','/images/nav/quote_on.jpg','','')
	
pageClass = "";
if (pageURL.indexOf("/Contact/index.asp") >= 0) {
	pageClass = "_on";
}
oCMenu.makeMenu('top10','','','/Contact/index.asp','','88','','/images/nav/contact'+pageClass+'.jpg','/images/nav/contact_on.jpg','','')


//Leave this line - it constructs the menu
oCMenu.construct()
