﻿	// set up drop downs anywhere in the body of the page. I think the bottom of the page is better.. 
	// but you can experiment with effect on loadtime.
	if (TransMenu.isSupported()) {

		//==================================================================================================
		// create a set of dropdowns
		//==================================================================================================
		// the first param should always be down, as it is here
		//
		// The second and third param are the top and left offset positions of the menus from their actuators
		// respectively. To make a menu appear a little to the left and bottom of an actuator, you could use
		// something like -5, 5
		//
		// The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner
		// of the actuator from which to measure the offset positions above. Here we are saying we want the 
		// menu to appear directly below the bottom left corner of the actuator
		//==================================================================================================
		
		var ua = navigator.userAgent.toLowerCase();
		var an = navigator.appName;

		if (an == "Microsoft Internet Explorer")
		{
			if (ua.indexOf("mac") > -1)
			{
				var ms = new TransMenuSet(TransMenu.direction.down, -2, -1, TransMenu.reference.bottomLeft);
			}
			else
			{
				var ms = new TransMenuSet(TransMenu.direction.down, -2, -1, TransMenu.reference.bottomLeft);
			}
		}
		else
		{
			if (ua.indexOf("safari") > -1)
			{
				var ms = new TransMenuSet(TransMenu.direction.down, -2, -1, TransMenu.reference.bottomLeft);
			}
			else
			{
				var ms = new TransMenuSet(TransMenu.direction.down, -2, -1, TransMenu.reference.bottomLeft);
			}
		}

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================
		
		//==================================================================================================
		// add a sub-menu
		//==================================================================================================
		// to add a sub menu to an existing menu object, call it's addMenu method and pass it the item from
		// the parent menu which should act as it's actuator. To add a submenu to the fourth item of a menu
		// called "theMenu", you would do theMenu.addMenu(theMenu.items[3])
            //
            // 03/10/05 ND - if no submenu items, script automatically removes right arrow image.
		//==================================================================================================
		
		
		var baseURL = "/";
//GLOBAL NAV --- HANDHELD
var hh = ms.addMenu(document.getElementById("menu1"));
hh.addItem("<b>Serological Pipettes</b>","http://www.matrixtechcorp.com/handheld/pipettor.aspx?id=1");
hh.addItem("<b>Manual Pipettes</b>","");
hh.addItem("<b>Hybrid Pipettes</b>", "");
hh.addItem("<b>Electronic Pipettes</b>",""); 
hh.addItem("<b>Pipette Tips & Reservoirs</b>","");
hh.addItem("<b>Memowell Electronic Pipetting Aid</b>", "http://www.matrixtechcorp.com/handheld/pipettor.aspx?id=34");
hh.addItem("<b>Pipette Services</b>", baseURL + "handheld/services.aspx?id=43"); 

//manual pipettor submenus 
var submenu = hh.addMenu(hh.items[1]);
submenu.addItem("&middot; Single Channel", baseURL + "handheld/pipettor.aspx?id=3");
submenu.addItem("&middot; Multichannel", baseURL + "handheld/pipettor.aspx?id=4");
var hp = hh.addMenu(hh.items[2]); 
hp.addItem("&middot; Single Channel&nbsp;", "http://www.matrixtechcorp.com/handheld/pipettor.aspx?id=68"); 
hp.addItem("&middot; Multichannel&nbsp;", "http://www.matrixtechcorp.com/handheld/pipettor.aspx?id=101");
hp.addItem("&middot; ClipTips&nbsp;", baseURL + "handheld/pipettor.aspx?id=69");    

var elec = hh.addMenu(hh.items[3]);
elec.addItem("&middot; Single Channel", baseURL + "handheld/pipettor.aspx?id=5");
elec.addItem("&middot; Multichannel", baseURL + "handheld/pipettor.aspx?id=10");
elec.addItem("&middot; EXP Multichannel", baseURL + "handheld/pipettor.aspx?id=8");
elec.addItem("&middot; Equalizer Multichannel", baseURL + "handheld/pipettor.aspx?id=9");
elec.addItem("&middot; Electronic Pipette Accessories", baseURL + "handheld/pipettor.aspx?id=42");
var tips = hh.addMenu(hh.items[4]);
tips.addItem("&middot; Pipette Tips", baseURL + "handheld/tips.aspx?id=37");
tips.addItem("&middot; Filter Tips", baseURL + "handheld/pipettor.aspx?id=38");
tips.addItem("&middot; TallTips Pipette Tips", baseURL + "handheld/pipettor.aspx?id=39");
tips.addItem("&middot; EcoTip Refill System", baseURL + "handheld/pipettor.aspx?id=40");  
tips.addItem("&middot; Reagent Reservoirs", baseURL + "handheld/pipettor.aspx?id=41");
tips.addItem("&middot; ClipTips&nbsp;", baseURL + "handheld/pipettor.aspx?id=69"); 		

//GLOBAL NAV --- AUTOMATTED		
var menu2 = ms.addMenu(document.getElementById("menu2"));
menu2.addItem("<b>Microplate Dispensers</b>");
menu2.addItem("<b>8/12 Channel Systems</b>");
menu2.addItem("<b>96/384 Channel Systems</b>");
menu2.addItem("<b>Software</b>");
menu2.addItem("<b>Consumables for Automated Systems</b>");
menu2.addItem("<b>Hydra Service</b>", baseURL + "automated/services.aspx?id=67"); 
menu2.addItem("<b>Leasing Services</b>", baseURL + "automated/leasing.aspx?id=80"); 
menu2.addItem("<b>Application &amp Technical Notes</b>", baseURL + "tech/notes.aspx");
//submenus
var atm = menu2.addMenu(menu2.items[0]);
atm.addItem("&middot; Multidrop Combi nL", baseURL + "automated/pipetting.aspx?id=77");
atm.addItem("&middot; WellMate Microplate Dispenser", baseURL + "automated/pipetting.aspx?id=11");
atm.addItem("&middot; WellMate Stacker Unit", baseURL + "automated/pipetting.aspx?id=57");
var sm = menu2.addMenu(menu2.items[1]);
sm.addItem("&middot; SerialMate Automated Pipettor", baseURL + "automated/pipetting.aspx?id=12");
var m_96 = menu2.addMenu(menu2.items[2]);
m_96.addItem("&middot; Catalyst Express &amp; Matrix<br>&nbsp;&nbsp;Liquid Handling Solution", baseURL + "automated/pipetting.aspx?id=75");
m_96.addItem("&middot; Hydra II Microdispenser", baseURL + "automated/pipetting.aspx?id=25");
m_96.addItem("&middot; Hydra eDrop", baseURL + "automated/pipetting.aspx?id=44");
m_96.addItem("&middot; Hydra DT", baseURL + "automated/pipetting.aspx?id=66");
m_96.addItem("&middot; PlateMate 2x2<br>&nbsp;&nbsp;Pipetting Workstation", baseURL + "automated/pipetting.aspx?id=27");
m_96.addItem("&middot; PlateMate 2x3<br>&nbsp;&nbsp;Pipetting Workstation", baseURL + "automated/pipetting.aspx?id=72");
m_96.addItem("&middot; PlateMate Plus<br>&nbsp;&nbsp;High Throughput Workstation", baseURL + "automated/pipetting.aspx?id=28");
m_96.addItem("&middot; PlateMate Plus Tip Tower", baseURL + "automated/pipetting.aspx?id=29");
m_96.addItem("&middot; PlateMate Accessories", baseURL + "automated/platemate.aspx?id=30");	
var sw = menu2.addMenu(menu2.items[3]);
sw.addItem("&middot; ControlMate Software", baseURL + "automated/pipetting.aspx?id=32");								
var cns = menu2.addMenu(menu2.items[4]);
cns.addItem("&middot; WellMate Tubing Assemblies", baseURL + "automated/pipetting.aspx?id=58");	
cns.addItem("&middot; D.A.R.T.s Automation Tips", baseURL + "automated/pipetting.aspx?id=31");	
cns.addItem("&middot; D.A.R.T.s Tip Transfer Tool", baseURL + "automated/pipetting.aspx?id=78");
cns.addItem("&middot; PocketTips", baseURL + "automated/pipetting.aspx?id=79");
cns.addItem("&middot; PocketTip D.A.R.Ts", baseURL + "automated/pipetting.aspx?id=104");	
cns.addItem("&middot; Matrix Automation Tips", baseURL + "automated/pipetting.aspx?id=73");
cns.addItem("&middot; Disposable Automation Reservoirs", baseURL + "automated/pipetting.aspx?id=33");
		
//GLOBAL NAV --- SAMPLE STORAGE
var menu3 = ms.addMenu(document.getElementById("menu3"));
menu3.addItem("<b>Storage Tubes and Capping</b>");
menu3.addItem("<b>2D Barcode Readers</b>");
menu3.addItem("<b>CapMat and Tube Capping Equipment</b>");
menu3.addItem("<b>Sealing Equipment</b>");
menu3.addItem("<b>Piercing Equipment</b>");
menu3.addItem("<b>Sealing Tapes and Foils</b>");
menu3.addItem("<b>Storage Microplates and Blocks</b>");
menu3.addItem("<b>Assay Microplates</b>");
menu3.addItem("<b>Cell Culture Microplate</b>");
menu3.addItem("<b>Microplate Lids</b>", baseURL + "storage-systems/solutions.aspx?id=53");
menu3.addItem("<b>Freezer Racks</b>", baseURL + "storage-systems/solutions.aspx?id=100");
menu3.addItem("<b>Bar Coding Service </b>", baseURL + "storage-systems/barcoding.aspx?id=23");
//submenus
var sample = menu3.addMenu(menu3.items[0]);
sample.addItem("&middot; Matrix Storage Tubes", baseURL + "storage-systems/solutions.aspx?id=13");
sample.addItem("&middot; Abgene Storage Tubes", baseURL + "storage-systems/product.aspx?id=96");
sample.addItem("&middot; Matrix 2D Barcoded Tubes", baseURL + "storage-systems/solutions.aspx?id=14");
sample.addItem("&middot; Abgene 2D Barcoded Tubes", baseURL + "storage-systems/product.aspx?id=97");
sample.addItem("&middot; Matrix 2D Barcoded ScrewTop Tubes and Caps", baseURL + "storage-systems/tubes.aspx?id=63");
sample.addItem("&middot; Abgene 2D Barcoded Twist-Lock Tubes", baseURL + "storage-systems/product.aspx?id=98");
sample.addItem("&middot; Matrix 2D Barcoded Glass Tubes", baseURL + "storage-systems/solutions.aspx?id=70");
sample.addItem("&middot; Abgene 2D Barcoded 2 ml Screw Cap Tubes", baseURL + "storage-systems/product.aspx?id=99");
sample.addItem("&middot; Abgene 2D Barcoded 5 ml Screw Cap Tubes", baseURL + "storage-systems/product.aspx?id=105");
sample.addItem("&middot; Matrix 2D Barcoded 12 ml ScrewTop Tubes", baseURL + "storage-systems/solutions.aspx?id=74");
sample.addItem("&middot; Matrix Tube Capping Systems", baseURL + "storage-systems/tubes.aspx?id=16");
sample.addItem("&middot; Abgene Tube Capping Systems", baseURL + "storage-systems/product.aspx?id=92");
sample.addItem("&middot; Matrix CapMats and CapStrips", baseURL + "storage-systems/solutions.aspx?id=18");

var capping = menu3.addMenu(menu3.items[1]);

// capping.addItem("&middot; VisionMate Wireless 2D Barcode Reader", baseURL + "storage-systems/product.aspx?id=15");
capping.addItem("&middot; VisionMate ST (Single Tube) 2D Barcode Reader", baseURL + "storage-systems/product.aspx?id=106");
capping.addItem("&middot; VisionMate SR (Single Rack) 2D Barcode Reader", baseURL + "storage-systems/product.aspx?id=107");
capping.addItem("&middot; SmartScan Solo 2D Barcode Reader", baseURL + "storage-systems/product.aspx?id=89");
capping.addItem("&middot; VisionMate FlatBed 2D Barcode Reader", baseURL + "storage-systems/product.aspx?id=102");
capping.addItem("&middot; VisionMate High Speed 2D Barcode Reader", baseURL + "storage-systems/product.aspx?id=85");



var sp = menu3.addMenu(menu3.items[2]);
sp.addItem("&middot; Capit-All Screw Cap TubeCapper/Decapper", baseURL + "storage-systems/product.aspx?id=84");
sp.addItem("&middot; SuperSealer", baseURL + "storage-systems/product.aspx?id=19");	
sp.addItem("&middot; Multisip Plug Applicator", baseURL + "storage-systems/product.aspx?id=91");
sp.addItem("&middot; ALTO-8 Screw Top Decapper", baseURL + "storage-systems/product.aspx?id=87");

var assays = menu3.addMenu(menu3.items[3]);
assays.addItem("&middot; ALPS 3000 Microplate Heat Sealer", baseURL + "storage-systems/product.aspx?id=71");
assays.addItem("&middot; ALPS 50 V Microplate Heat Sealer", baseURL + "storage-systems/product.aspx?id=82");
assays.addItem("&middot; ALPS 25 Manual Heat Sealer", baseURL + "storage-systems/product.aspx?id=86");
assays.addItem("&middot; Seal-It-100 Automated Adhesive Sealer", baseURL + "storage-systems/product.aspx?id=88");

var pr = menu3.addMenu(menu3.items[4]);
pr.addItem("&middot; ASP 50 Automated Seal Piercer", baseURL + "storage-systems/product.aspx?id=90");
// HOLD for now 7/7/09 -- pr.addItem("&middot; Manual Seal Piercing/Removal", baseURL + "storage-systems/product.aspx?id=94");

var cc = menu3.addMenu(menu3.items[5]);		
cc.addItem("&middot; Adhesive Seals", baseURL + "storage-systems/solutions.aspx?id=95");
cc.addItem("&middot; Heat Seals ", baseURL + "storage-systems/seals.aspx?id=93");

var blocks = menu3.addMenu(menu3.items[6]);		
blocks.addItem("&middot; Deepwell Storage Blocks", baseURL + "storage-systems/solutions.aspx?id=47");
blocks.addItem("&middot; 96 Well Polypropylene Plates", baseURL + "storage-systems/solutions.aspx?id=17");
blocks.addItem("&middot; 384 Well Polypropylene Plates", baseURL + "storage-systems/solutions.aspx?id=46");
blocks.addItem("&middot; 1536 Well Polypropylene Plates", baseURL + "storage-systems/solutions.aspx?id=83");

var am = menu3.addMenu(menu3.items[7]);	
am.addItem("&middot; 96 Well Polystyrene Plates", baseURL + "storage-systems/solutions.aspx?id=61");
am.addItem("&middot; 96 Well Glass Bottom Plates", baseURL + "storage-systems/solutions.aspx?id=62");
am.addItem("&middot; 384 Well Polystyrene Plates", baseURL + "storage-systems/solutions.aspx?id=49");
am.addItem("&middot; 384 Well Small Volume Plates", baseURL + "storage-systems/solutions.aspx?id=50");
am.addItem("&middot; 1536 Well Polystyrene Plates", baseURL + "storage-systems/solutions.aspx?id=52");

var ccm = menu3.addMenu(menu3.items[8]);
ccm.addItem("&middot; 96 Well Plates", baseURL + "storage-systems/solutions.aspx?id=56");	
ccm.addItem("&middot; 384 Well Plates", baseURL + "storage-systems/solutions.aspx?id=54");
ccm.addItem("&middot; 1536 Well Plates", baseURL + "storage-systems/solutions.aspx?id=55");


  
		
		//==================================================================================================
		// write drop downs into page
		//==================================================================================================
		// this method writes all the HTML for the menus into the page with document.write(). It must be
		// called within the body of the HTML page.
		//==================================================================================================
		TransMenu.renderAll();
	}

		//==================================================================================================
	
