/*
sidenav handler for Germany Stackable Switches
19th September 2001
=====NOTES=====================================================================================================
arrSidenav['home'] = new TNavObject('SNhome' ...... if you want to have a spacer automatically added under it.
DEBUGGING:
send 'all' as argument to expand all parents & show all children.

3Com standard functions used (for simple integration with existing content):
select_url(...)
SwapImage(...)

===============================================================================================================
*/

//image pre-loads

/*
This is where we tell the function where the files are.
Pre-load all the images as normal.
It's helpful to fully comment what each image is for future reference (as shown below)
*/

//SW stackable PARENT
swsackable_0 = new Image();
swsackable_0.src = "/products/assets/swstackable_0.gif";
swsackable_1 = new Image();
swsackable_1.src = "/products/assets/swstackable_1.gif";

//SW Fast Ethernet and Ethernet PARENT
swfastether_0 = new Image();
swfastether_0.src = "/products/assets/swfastether_0.gif";
swfastether_1 = new Image();
swfastether_1.src = "/products/assets/swfastether_1.gif";

//SW Gigabit Ethernet PARENT
swgigaeth_0 = new Image();
swgigaeth_0.src = "/products/assets/swgigaeth_0.gif";
swgigaeth_1 = new Image();
swgigaeth_1.src = "/products/assets/swgigaeth_1.gif";

//SW Gigabit Ethernet Modules for Fast Ethernet & Gigabit Ethernet Switches PARENT
swgigamod_0 = new Image();
swgigamod_0.src = "/products/assets/swgigamod_0.gif";
swgigamod_1 = new Image();
swgigamod_1.src = "/products/assets/swgigamod_1.gif";

//SW Fast Ethernet Modules for Fast Ethernet/Ethernet Switches PARENT
swfastmod_0 = new Image();
swfastmod_0.src = "/products/assets/swfastmod_0.gif";
swfastmod_1 = new Image();
swfastmod_1.src = "/products/assets/swfastmod_1.gif";

//SW Stacking Accessories PARENT
swstackaxs_0 = new Image();
swstackaxs_0.src = "/products/assets/swstackaxs_0.gif";
swstackaxs_1 = new Image();
swstackaxs_1.src = "/products/assets/swstackaxs_1.gif";

//SW Fast Ethernet and Ethernet CHILDREN
ss3_4400_0 = new Image();
ss3_4400_0.src = "/products/assets/ss3_4400_0.gif";
ss3_4400_1 = new Image();
ss3_4400_1.src = "/products/assets/ss3_4400_1.gif";
ss3_4300_48m_0 = new Image();
ss3_4300_48m_0.src = "/products/assets/ss3_4300_48m_0.gif";
ss3_4300_48m_1 = new Image();
ss3_4300_48m_1.src = "/products/assets/ss3_4300_48m_1.gif";
ss3_3300_12_0 = new Image();
ss3_3300_12_0.src = "/products/assets/ss3_3300_12_0.gif";
ss3_3300_12_1 = new Image();
ss3_3300_12_1.src = "/products/assets/ss3_3300_12_1.gif";
ss3_3300_24_0 = new Image();
ss3_3300_24_0.src = "/products/assets/ss3_3300_24_0.gif";
ss3_3300_24_1 = new Image();
ss3_3300_24_1.src = "/products/assets/ss3_3300_24_1.gif";
ss3_3300xm_0 = new Image();
ss3_3300xm_0.src = "/products/assets/ss3_3300xm_0.gif";
ss3_3300xm_1 = new Image();
ss3_3300xm_1.src = "/products/assets/ss3_3300xm_1.gif";
ss3_3300tm_0 = new Image();
ss3_3300tm_0.src = "/products/assets/ss3_3300tm_0.gif"
ss3_3300tm_1 = new Image();
ss3_3300tm_1.src = "/products/assets/ss3_3300tm_1.gif"
ss3_3300sm_0 = new Image();
ss3_3300sm_0.src = "/products/assets/ss3_3300sm_0.gif";
ss3_3300sm_1 = new Image();
ss3_3300sm_1.src = "/products/assets/ss3_3300sm_1.gif";
ss3_3300mm_0 = new Image();
ss3_3300mm_0.src = "/products/assets/ss3_3300mm_0.gif";
ss3_3300mm_1 = new Image();
ss3_3300mm_1.src = "/products/assets/ss3_3300mm_1.gif";
ss3_3300fx_0 = new Image();
ss3_3300fx_0.src = "/products/assets/ss3_3300fx_0.gif";
ss3_3300fx_1 = new Image();
ss3_3300fx_1.src = "/products/assets/ss3_3300fx_1.gif";
ss3b24t_0 = new Image();
ss3b24t_0.src = "/products/assets/ss3b24t_0.gif";
ss3b24t_1 = new Image();
ss3b24t_1.src = "/products/assets/ss3b24t_1.gif";
ss3b12_0 = new Image();
ss3b12_0.src = "/products/assets/ss3b12_0.gif";
ss3b12_1 = new Image();
ss3b12_1.src = "/products/assets/ss3b12_1.gif";
ss3b24_0 = new Image();
ss3b24_0.src = "/products/assets/ss3b24_0.gif";
ss3b24_1 = new Image();
ss3b24_1.src = "/products/assets/ss3b24_1.gif";
ocds5p_0 = new Image();
ocds5p_0.src = "/products/assets/ocds5p_0.gif";
ocds5p_1 = new Image();
ocds5p_1.src = "/products/assets/ocds5p_1.gif";
ocds8p_0 = new Image();
ocds8p_0.src = "/products/assets/ocds8p_0.gif";
ocds8p_1 = new Image();
ocds8p_1.src = "/products/assets/ocds8p_1.gif";
ocds5_0 = new Image();
ocds5_0.src = "/products/assets/ocds5_0.gif";
ocds5_1 = new Image();
ocds5_1.src = "/products/assets/ocds5_1.gif";
ocds8_0 = new Image();
ocds8_0.src = "/products/assets/ocds8_0.gif";
ocds8_1 = new Image();
ocds8_1.src = "/products/assets/ocds8_1.gif";
ocds16p_0 = new Image();
ocds16p_0.src = "/products/assets/ocds16p_0.gif";
ocds16p_1 = new Image();
ocds16p_1.src = "/products/assets/ocds16p_1.gif";
ss2_1100_12_0 = new Image();
ss2_1100_12_0.src = "/products/assets/ss2_1100_12_0.gif";
ss2_1100_12_1 = new Image();
ss2_1100_12_1.src = "/products/assets/ss2_1100_12_1.gif";
ss2_1100_24_0 = new Image();
ss2_1100_24_0.src = "/products/assets/ss2_1100_24_0.gif";
ss2_1100_24_1 = new Image();
ss2_1100_24_1.src = "/products/assets/ss2_1100_24_1.gif";
ss2_610_0 = new Image();
ss2_610_0.src = "/products/assets/ss2_610_0.gif";
ss2_610_1 = new Image();
ss2_610_1.src = "/products/assets/ss2_610_1.gif";


//SW Gigabit Ethernet CHILDREN
ss3_4900_0 = new Image();
ss3_4900_0.src = "/products/assets/ss3_4900_0.gif";
ss3_4900_1 = new Image();
ss3_4900_1.src = "/products/assets/ss3_4900_1.gif";
ss3_4900sx_0 = new Image();
ss3_4900sx_0.src = "/products/assets/ss3_4900sx_0.gif";
ss3_4900sx_1 = new Image();
ss3_4900sx_1.src = "/products/assets/ss3_4900sx_1.gif";
ss3b_tht_0 = new Image();
ss3b_tht_0.src = "/products/assets/ss3b_tht_0.gif";
ss3b_tht_1 = new Image();
ss3b_tht_1.src = "/products/assets/ss3b_tht_1.gif";
ss3_4950_0 = new Image();
ss3_4950_0.src = "/products/assets/ss3_4950_0.gif";
ss3_4950_1 = new Image();
ss3_4950_1.src = "/products/assets/ss3_4950_1.gif";
ss3_4924_0 = new Image();
ss3_4924_0.src = "/products/assets/ss3_4924_0.gif";
ss3_4924_1 = new Image();
ss3_4924_1.src = "/products/assets/ss3_4924_1.gif";

//SW Gigabit Ethernet Modules for Fast Ethernet & Gigabit Ethernet Switches CHILDREN
ss3_4400t_0 = new Image();
ss3_4400t_0.src = "/products/assets/ss3_4400t_0.gif";
ss3_4400t_1 = new Image();
ss3_4400t_1.src = "/products/assets/ss3_4400t_1.gif";
ss3_4400_48_0 = new Image();
ss3_4400_48_0.src = "/products/assets/ss3_4400_48_0.gif";
ss3_4400_48_1 = new Image();
ss3_4400_48_1.src = "/products/assets/ss3_4400_48_1.gif";
ss3_4400sx_0 = new Image();
ss3_4400sx_0.src = "/products/assets/ss3_4400sx_0.gif";
ss3_4400sx_1 = new Image();
ss3_4400sx_1.src = "/products/assets/ss3_4400sx_1.gif";
ss3_4400lx_0 = new Image();
ss3_4400lx_0.src = "/products/assets/ss3_4400lx_0.gif";
ss3_4400lx_1 = new Image();
ss3_4400lx_1.src = "/products/assets/ss3_4400lx_1.gif";
ss3_4300tsp_0 = new Image();
ss3_4300tsp_0.src = "/products/assets/ss3_4300tsp_0.gif";
ss3_4300tsp_1 = new Image();
ss3_4300tsp_1.src = "/products/assets/ss3_4300tsp_1.gif";
ss3_4300tdp_0 = new Image();
ss3_4300tdp_0.src = "/products/assets/ss3_4300tdp_0.gif";
ss3_4300tdp_1 = new Image();
ss3_4300tdp_1.src = "/products/assets/ss3_4300tdp_1.gif";
ss3_4300sxsp_0 = new Image();
ss3_4300sxsp_0.src = "/products/assets/ss3_4300sxsp_0.gif";
ss3_4300sxsp_1 = new Image();
ss3_4300sxsp_1.src = "/products/assets/ss3_4300sxsp_1.gif";
ss3_4300sxdp_0 = new Image();
ss3_4300sxdp_0.src = "/products/assets/ss3_4300sxdp_0.gif";
ss3_4300sxdp_1 = new Image();
ss3_4300sxdp_1.src = "/products/assets/ss3_4300sxdp_1.gif";
ss3_4300lxsp_0 = new Image();
ss3_4300lxsp_0.src = "/products/assets/ss3_4300lxsp_0.gif";
ss3_4300lxsp_1 = new Image();
ss3_4300lxsp_1.src = "/products/assets/ss3_4300lxsp_1.gif";
ss3_4900t_0 = new Image();
ss3_4900t_0.src = "/products/assets/ss3_4900t_0.gif";
ss3_4900t_1 = new Image();
ss3_4900t_1.src = "/products/assets/ss3_4900t_1.gif";
ss3_4900sxm_0 = new Image();
ss3_4900sxm_0.src = "/products/assets/ss3_4900sxm_0.gif";
ss3_4900sxm_1 = new Image();
ss3_4900sxm_1.src = "/products/assets/ss3_4900sxm_1.gif";
ss3_4900lx_0 = new Image();
ss3_4900lx_0.src = "/products/assets/ss3_4900lx_0.gif";
ss3_4900lx_1 = new Image();
ss3_4900lx_1.src = "/products/assets/ss3_4900lx_1.gif";
ss3_4900_gbic4_0 = new Image();
ss3_4900_gbic4_0.src = "/products/assets/ss3_4900_gbic4_0.gif";
ss3_4900_gbic4_1 = new Image();
ss3_4900_gbic4_1.src = "/products/assets/ss3_4900_gbic4_1.gif";
ss2_t_0 = new Image();
ss2_t_0.src = "/products/assets/ss2_t_0.gif";
ss2_t_1 = new Image();
ss2_t_1.src = "/products/assets/ss2_t_1.gif";
ss2_sx_0 = new Image();
ss2_sx_0.src = "/products/assets/ss2_sx_0.gif";
ss2_sx_1 = new Image();
ss2_sx_1.src = "/products/assets/ss2_sx_1.gif";
ss2_lx_0 = new Image();
ss2_lx_0.src = "/products/assets/ss2_lx_0.gif";
ss2_lx_1 = new Image();
ss2_lx_1.src = "/products/assets/ss2_lx_1.gif";
ss2_3900sx_0 = new Image();
ss2_3900sx_0.src = "/products/assets/ss2_3900sx_0.gif";
ss2_3900sx_1 = new Image();
ss2_3900sx_1.src = "/products/assets/ss2_3900sx_1.gif";
ss2_3900lx_0 = new Image();
ss2_3900lx_0.src = "/products/assets/ss2_3900lx_0.gif";
ss2_3900lx_1 = new Image();
ss2_3900lx_1.src = "/products/assets/ss2_3900lx_1.gif";


//SW Fast Ethernet Modules for Fast Ethernet/Ethernet Switches CHILDREN
ss3_4400fx_0 = new Image();
ss3_4400fx_0.src = "/products/assets/ss3_4400fx_0.gif";
ss3_4400fx_1 = new Image();
ss3_4400fx_1.src = "/products/assets/ss3_4400fx_1.gif";
ss3_4300fxsp_0 = new Image();
ss3_4300fxsp_0.src = "/products/assets/ss3_4300fxsp_0.gif";
ss3_4300fxsp_1 = new Image();
ss3_4300fxsp_1.src = "/products/assets/ss3_4300fxsp_1.gif";
ss3_4300fxdp_0 = new Image();
ss3_4300fxdp_0.src = "/products/assets/ss3_4300fxdp_0.gif";
ss3_4300fxdp_1 = new Image();
ss3_4300fxdp_1.src = "/products/assets/ss3_4300fxdp_1.gif";
ss3_l3_0 = new Image();
ss3_l3_0.src = "/products/assets/ss3_l3_0.gif";
ss3_l3_1 = new Image();
ss3_l3_1.src = "/products/assets/ss3_l3_1.gif";
ss2_fx_0 = new Image();
ss2_fx_0.src = "/products/assets/ss2_fx_0.gif";
ss2_fx_1 = new Image();
ss2_fx_1.src = "/products/assets/ss2_fx_1.gif";
ss2_fxd_0 = new Image();
ss2_fxd_0.src = "/products/assets/ss2_fxd_0.gif";
ss2_fxd_1 = new Image();
ss2_fxd_1.src = "/products/assets/ss2_fxd_1.gif";


//SW Stacking Accessories CHILDREN
ss3_4400sk_0 = new Image();
ss3_4400sk_0.src = "/products/assets/ss3_4400sk_0.gif";
ss3_4400sk_1 = new Image();
ss3_4400sk_1.src = "/products/assets/ss3_4400sk_1.gif";
ss3_4400sxk_0 = new Image();
ss3_4400sxk_0.src = "/products/assets/ss3_4400sxk_0.gif";
ss3_4400sxk_1 = new Image();
ss3_4400sxk_1.src = "/products/assets/ss3_4400sxk_1.gif";
ss2_matrix_0 = new Image();
ss2_matrix_0.src = "/products/assets/ss2_matrix_0.gif";
ss2_matrix_1 = new Image();
ss2_matrix_1.src = "/products/assets/ss2_matrix_1.gif";

//PARENT SWITCHFINDER
switchfinder_0 = new Image();
switchfinder_0.src = "/products/assets/switchfinder_0.gif";
switchfinder_1 = new Image();
switchfinder_1.src = "/products/assets/switchfinder_1.gif";

//Objects.
/*
We will use an object to hold all information relevant to each clickable sidenav image.
*/

//argChildren is an array
//argOn & argOff are references to a TImage object
function TNavObject(argName, argOff, argOn, argHeight, argLink, argAlt, argParent, argChildren) 
{
  //data
  this.name			  = argName;	    //a text identifier, for use to identify image for rollovers. Not important outside of the page's html, used to identify each image: in <img name= ..... >
  this.on 			  = argOn;	      //reference to an image object
  this.off 			  = argOff;	      //reference to an image object
  this.urlLink 		= argLink;		  //url to a page
  this.parent 		= argParent;	  //reference to a TNavObject or null
  this.children 	= argChildren;  //Array of strings or null
  this.alt			  = argAlt;		    //alt tag
  this.height     = argHeight;    // height of image
  //methods
  this.makeActive = makeActive;   //make the OFF state the same as the ON state
  this.asHTML   	= asHTML;       //a function to return a string of HTML using the object's parameters.
  this.childrenContains = childrenContains; //boolean - does the array of children (text ovjects) contain the current text reference ?
  return this;
}

//method of TNavObject
function makeActive() //mark this Nav object as active.
{
  this.off = this.on;
}

//method of TNavObject
function asHTML(argCurrent) //return the HTML for the page
{//if argCurrent is a child, return also the code for all child objects.
  var childObject;
  ret = ( (arrSidenav[argCurrent] != this) ? '<a href="' + this.urlLink + '" onMouseOver="SwapImage(\'' + this.name + '\',\'' + this.on + '\')" onMouseOut= "SwapImage(\'' + this.name + '\',\'' + this.off + '\')">' : '');
  ret += '<img name="' + this.name + '" src="' + eval(this.off + '.src') + '" width="153" height="' + this.height + '" border="0" alt="' + this.alt + '">' + ( (arrSidenav[argCurrent] != this) ? '</a>' : '') + '<br>';
  //if this is the home button, add a blank spacer underneath it.
  if(this.name == 'SNhome')
    ret += '<img src="/products/assets/spacer_rollover.gif" width="153" height="20" alt="" border="0"><br>'; 
  //is argCurrect a child of this node? OR print all children if this is currently selected parent node (and there are any children!).
  
  if( this.childrenContains(argCurrent) || (this == arrSidenav[argCurrent] && this.children) || (argCurrent == 'all' && this.children) )
  {
	//print out the children.
	for(c = 0;c < this.children.length; c++)
	{
	  childObject = arrSidenav[this.children[c]];
	  ret += ( (arrSidenav[argCurrent] != childObject) ? '<a href="' + childObject.urlLink + '" onMouseOver="SwapImage(\'' + childObject.name + '\',\'' + childObject.on + '\')" onMouseOut= "SwapImage(\'' + childObject.name + '\',\'' + childObject.off + '\')">' : '');
      ret += '<img name="' + childObject.name + '" src="' + eval(childObject.off + '.src') + '" width="153" height="' + childObject.height + '" border="0" alt="' + childObject.alt + '">' + ( (arrSidenav[argCurrent] != childObject) ? '</a>' : '') + '<br>';
    }
  }
  return ret;
}

//method of TNavObject
function childrenContains(argCurrent)
{//boolean. look for argCurrent in this object's children array
  if (this.children == null)
    return false;
  for(c = 0; c < this.children.length; c++)
  {
    if(this.children[c] == argCurrent)
	  return true;
  }
  return false;
}


//Instantiate objects;
//list of all parent nav objects
  var arrParents = new Array('home','swfastether','swgigaeth','swgigamod','swfastmod','swstackaxs','switchfinder'); //**** UPDATE THIS SO IT KNOWS ABOUT ALL PARENT OBJECTS ONLY (NOT CHILDREN).

//associative array of TNavObject objects.
  var arrSidenav = new Array();
  
/*initialize elements in the sidenav array.
Terminology: 
Parent = the sidenav elements like 'home' - blue roundangle shapes with text inside.
Child  = subnav elements, like 'Dual speed Switch 5 Plus'.

Explaination of arguments:
  arrSidenav['home']  =  new TNavObject('SNhome',    'swsackable_0','swsackable_1',  28          '/produits','OfficeConnect&reg; Home',      null,                null); 
               ^                          ^            ^          ^           ^                 ^                        ^                           ^                    ^
    Element name. This is           Internal name     These are references  This is          This is the URL for     This is the ALT text.       This is the array      This is an array of
    sent from HTML page             used to refer     to pre-loaded images, the image        the link.                                           element name of        children element names.
    to identify the current         to the image.     defined above.        height.                                                              this element's         See 'switches' for 
    navigation. NO duplicate        Just use SN                                                                                                  parent. It will only   correct syntax.
    names are allowed.              followed by a                                                                                                be required by                 
                                    sensible word.                                                                                               child elements.


*NOTE if you add elements (which presumably you will - after all this is only a template!!), make sure you add the parents (not children) to the arrParents array, above, in the correct order. Be sure to let the parents know who the children are, and vice-versa (the last 2 arguments).

*/
  //SW stackable PARENT
  arrSidenav['home']           = new TNavObject('SNhome','swsackable_0','swsackable_1',24,'/products/switches_stackable/index.html','Switch \'Stackable\'',null,null);
 
 
  //SW Fast Ethernet and Ethernet PARENT
	  arrSidenav['swfastether'] = new TNavObject('SNswfastether','swfastether_0','swfastether_1',24,'/products/switches_stackable/swfastether.html','Fast Ethernet and Ethernet',null,new Array('ss3_4400','ss3_4400_48','ss3_4300_48m','ss3_3300_12','ss3_3300_24','ss3_3300xm','ss3_3300tm','ss3_3300sm','ss3_3300mm','ss3_3300fx','ss3b24t','ss3b12','ss3b24','ocds5p','ocds5','ocds8p','ocds8','ocds16p','ss2_1100_12','ss2_1100_24','ss2_610'));
	  
  //SW Fast Ethernet and Ethernet Children
  arrSidenav['ss3_4400']     = new TNavObject('SNss3_4400','ss3_4400_0','ss3_4400_1',28,'/products/switches_stackable/ss3_4400.html','3Com&#174; SuperStack&reg; 3 Switch 4400 24-Port','swfastether',null);
  arrSidenav['ss3_4400_48']     = new TNavObject('SNss3_4400_48','ss3_4400_48_0','ss3_4400_48_1',28,'/products/switches_stackable/ss3_4400_48.html','3Com&#174; SuperStack&reg; 3 Switch 4400 48-port','swfastether',null);
  arrSidenav['ss3_4300_48m'] = new TNavObject('SNss3_4300_48m','ss3_4300_48m_0','ss3_4300_48m_1',35,'/products/switches_stackable/ss3_4300_48m.html','3Com&#174; SuperStack&#174; 3 Switch 4300 48-port 10/100 Managed Switch','swfastether',null);
  arrSidenav['ss3_3300_12']  = new TNavObject('SNss3_3300_12','ss3_3300_12_0','ss3_3300_12_1',28,'/products/switches_stackable/ss3_3300_12.html','3ComŪ SuperStackŪ 3 Switch 3300 12-Port ','swfastether',null); 
  arrSidenav['ss3_3300_24']  = new TNavObject('SNss3_3300_24','ss3_3300_24_0','ss3_3300_24_1',28,'/products/switches_stackable/ss3_3300_24.html','3ComŪ SuperStackŪ 3 Switch 3300 24-Port','swfastether',null);
  arrSidenav['ss3_3300xm']   = new TNavObject('SNss3_3300xm','ss3_3300xm_0','ss3_3300xm_1',28,'/products/switches_stackable/ss3_3300xm.html','3ComŪ SuperStackŪ 3 Switch 3300 XM','swfastether',null);
  arrSidenav['ss3_3300tm']   = new TNavObject('SNss3_3300tm','ss3_3300tm_0','ss3_3300tm_1',18,'/products/switches_stackable/ss3_3300tm.html','3Com&#174; SuperStack&#174; 3 Switch 3300 TM','swfastether',null);
  arrSidenav['ss3_3300sm']   = new TNavObject('SNss3_3300sm','ss3_3300sm_0','ss3_3300sm_1',28,'/products/switches_stackable/ss3_3300sm.html','3ComŪ SuperStackŪ 3 Switch 3300 SM','swfastether',null);
  arrSidenav['ss3_3300mm']    = new TNavObject('SNss3_3300mm','ss3_3300mm_0','ss3_3300mm_1',28,'/products/switches_stackable/ss3_3300mm.html','3ComŪ SuperStackŪ 3 Switch 3300 MM','swfastether',null);
  arrSidenav['ss3_3300fx']    = new TNavObject('SNss3_3300fx','ss3_3300fx_0','ss3_3300fx_1',28,'/products/switches_stackable/ss3_3300fx.html','3ComŪ SuperStackŪ II Switch 3300 FX','swfastether',null);
  arrSidenav['ss3b24t']      = new TNavObject('SNss3b24t','ss3b24t_0','ss3b24t_1',35,'/products/switches_stackable/ss3b24t.html','3ComŪ SuperStackŪ 3 Baseline 10/100 Switch 24-Port Plus 1000BASE-T','swfastether',null);
  arrSidenav['ss3b12']    = new TNavObject('SNss3b12','ss3b12_0','ss3b12_1',35,'/products/switches_stackable/ss3b12.html','3ComŪ SuperStackŪ 3 Baseline 10/100 Switch 12-Port','swfastether',null);
  arrSidenav['ss3b24']    = new TNavObject('SNss3b24','ss3b24_0','ss3b24_1',35,'/products/switches_stackable/ss3b24.html','3ComŪ SuperStackŪ 3 Baseline 10/100 Switch 24-Port','swfastether',null);
  arrSidenav['ocds5p']       = new TNavObject('SNocds5p','ocds5p_0','ocds5p_1',28,'/products/switches_stackable/ocds5p.html','3Com&reg; OfficeConnect&reg; Dual Speed Switch 5 Plus','swfastether',null);
  arrSidenav['ocds5']        = new TNavObject('SNocds5','ocds5_0','ocds5_1',18,'/products/switches_stackable/ocds5.html','3Com&reg; OfficeConnect&reg; Switch 5','swfastether',null);
  arrSidenav['ocds8p']       = new TNavObject('SNocds8p','ocds8p_0','ocds8p_1',28,'/products/switches_stackable/ocds8p.html','3Com&reg; OfficeConnect&reg; Dual Speed Switch 8 Plus','swfastether',null);
  arrSidenav['ocds8']        = new TNavObject('SNocds8','ocds8_0','ocds8_1',18,'/products/switches_stackable/ocds8.html','3Com&reg; OfficeConnect&reg; Switch 8','swfastether',null);
  arrSidenav['ocds16p']      = new TNavObject('SNocds16p','ocds16p_0','ocds16p_1',28,'/products/switches_stackable/ocds16p.html','3Com&reg; OfficeConnect&reg; Dual Speed Switch 16 Plus','swfastether',null);
  arrSidenav['ss2_1100_12']  = new TNavObject('SNss2_1100_12','ss2_1100_12_0','ss2_1100_12_1',28,'/products/switches_stackable/ss2_1100_12.html','3ComŪ SuperStackŪ II Switch 1100 12-Port','swfastether',null);
  arrSidenav['ss2_1100_24']  = new TNavObject('SNss2_1100_24','ss2_1100_24_0','ss2_1100_24_1',28,'/products/switches_stackable/ss2_1100_24.html','3ComŪ SuperStackŪ II Switch 1100 24-Port','swfastether',null);
  arrSidenav['ss2_610']      = new TNavObject('SNss2_610','ss2_610_0','ss2_610_1',18,'/products/switches_stackable/ss2_610.html','3ComŪ SuperStackŪ II Switch 610','swfastether',null);

  
  //SW Gigabit Ethernet PARENT
  arrSidenav['swgigaeth']   = new TNavObject('SNswgigaeth','swgigaeth_0','swgigaeth_1',24,'/products/switches_stackable/swgigaeth.html','Gigabit Ethernet',null,new Array('ss3_4950','ss3_4924','ss3_4900','ss3_4900sx','ss3b_tht'));
  
  //SW Gigabit Ethernet Children 
  arrSidenav['ss3_4950'] = new TNavObject('SNss3_4950','ss3_4950_0','ss3_4950_1',28,'/products/switches_stackable/ss3_4950.html','3ComŪ SuperStackŪ 3 Switch 4950','swgigaeth',null);  
  arrSidenav['ss3_4924'] = new TNavObject('SNss3_4924','ss3_4924_0','ss3_4924_1',28,'/products/switches_stackable/ss3_4924.html','3ComŪ SuperStackŪ 3 Switch 4924','swgigaeth',null);
  arrSidenav['ss3_4900']    = new TNavObject('SNss3_4900','ss3_4900_0','ss3_4900_1',18,'/products/switches_stackable/ss3_4900.html','3Com&reg; SuperStack&reg; Switch 4900','swgigaeth',null);
  arrSidenav['ss3_4900sx']  = new TNavObject('SNss3_4900sx','ss3_4900sx_0','ss3_4900sx_1',18,'/products/switches_stackable/ss3_4900sx.html','3Com&reg; SuperStack&reg; Switch 4900sx','swgigaeth',null);
  arrSidenav['ss3b_tht']    = new TNavObject('SNss3b_tht','ss3b_tht_0','ss3b_tht_1',28,'/products/switches_stackable/ss3b_tht.html','3ComŪ SuperStackŪ 3 Baseline 10/100/1000 Switch','swgigaeth',null);

  
  //SW Gigabit Ethernet Modules for Fast Ethernet & Gigabit Ethernet Switches PARENT
   arrSidenav['swgigamod']      = new TNavObject('SNswgigamod','swgigamod_0','swgigamod_1',24,'/products/switches_stackable/swgigamod.html','Gigabit Ethernet Modules for Fast Ethernet \& Gigabit Ethernet Switches',null,new Array('ss3_4400t','ss3_4400sx','ss3_4400lx','ss3_4300tsp','ss3_4300tdp','ss3_4300sxsp','ss3_4300sxdp','ss3_4300lxsp','ss3_4900t','ss3_4900sxm','ss3_4900lx','ss3_4900_gbic4','ss2_t','ss2_sx','ss2_lx','ss2_3900sx','ss2_3900lx'));  
  
  //SW Gigabit Ethernet Modules for Fast Ethernet & Gigabit Ethernet Switches CHILDREN
  arrSidenav['ss3_4400t']      = new TNavObject('SNss3_4400t','ss3_4400t_0','ss3_4400t_1',28,'/products/switches_stackable/ss3_4400t.html','3ComŪ SuperStackŪ 3 Switch 4400 1000BASE-T Module','swgigamod',null);
  arrSidenav['ss3_4400sx']     = new TNavObject('SNss3_4400sx','ss3_4400sx_0','ss3_4400sx_1',28,'/products/switches_stackable/ss3_4400sx.html','3ComŪ SuperStackŪ 3 Switch 4400 1000BASE-SX Module','swgigamod',null);
  arrSidenav['ss3_4400lx']     = new TNavObject('SNss3_4400lx','ss3_4400lx_0','ss3_4400lx_1',28,'/products/switches_stackable/ss3_4400lx.html','3ComŪ SuperStackŪ 3 Switch 4400 1000BASE-LX Module','swgigamod',null);
  arrSidenav['ss3_4300tsp']    = new TNavObject('SNss3_4300tsp','ss3_4300tsp_0','ss3_4300tsp_1',35,'/products/switches_stackable/ss3_4300tsp.html','3ComŪ SuperStackŪ 3 Switch 4300 1000BASE-T Single Port Module','swgigamod',null);
  arrSidenav['ss3_4300tdp']    = new TNavObject('SNss3_4300tdp','ss3_4300tdp_0','ss3_4300tdp_1',35,'/products/switches_stackable/ss3_4300tdp.html','3ComŪ SuperStackŪ 3 Switch 4300 1000BASE-T Dual Port Module','swgigamod',null);
  arrSidenav['ss3_4300sxsp']   = new TNavObject('SNss3_4300sxsp','ss3_4300sxsp_0','ss3_4300sxsp_1',35,'/products/switches_stackable/ss3_4300sxsp.html','3ComŪ SuperStackŪ 3 Switch 4300 1000BASE-SX Single Port Module','swgigamod',null); 
  arrSidenav['ss3_4300sxdp']   = new TNavObject('SNss3_4300sxdp','ss3_4300sxdp_0','ss3_4300sxdp_1',35,'/products/switches_stackable/ss3_4300sxdp.html','3ComŪ SuperStackŪ 3 Switch 4300 1000BASE-SX Dual Port Module','swgigamod',null);
  arrSidenav['ss3_4300lxsp']   = new TNavObject('SNss3_4300lxsp','ss3_4300lxsp_0','ss3_4300lxsp_1',35,'/products/switches_stackable/ss3_4300lxsp.html','3ComŪ SuperStackŪ 3 Switch 4300 1000BASE-LX Single Port Module','swgigamod',null);
  arrSidenav['ss3_4900t']      = new TNavObject('SNss3_4900t','ss3_4900t_0','ss3_4900t_1',28,'/products/switches_stackable/ss3_4900t.html','3ComŪ SuperStackŪ 3 Switch 4900 1000BASE-T Module','swgigamod',null);  
  arrSidenav['ss3_4900sxm']    = new TNavObject('SNss3_4900sxm','ss3_4900sxm_0','ss3_4900sxm_1',28,'/products/switches_stackable/ss3_4900sxm.html','3ComŪ SuperStackŪ 3 Switch 4900 1000BASE-SX Module','swgigamod',null);  
  arrSidenav['ss3_4900lx']     = new TNavObject('SNss3_4900lx','ss3_4900lx_0','ss3_4900lx_1',28,'/products/switches_stackable/ss3_4900lx.html','3ComŪ SuperStackŪ 3 Switch 4900 1000BASE-LX Module','swgigamod',null);
  arrSidenav['ss3_4900_gbic4']       = new TNavObject('SNss3_4900_gbic4','ss3_4900_gbic4_0','ss3_4900_gbic4_1',28,'/products/switches_stackable/ss3_4900_gbic4.html','3ComŪ SuperStackŪ 3 Switch 4900 4-Port GBIC Module','swgigamod',null);
  arrSidenav['ss2_t']          = new TNavObject('SNss2_t','ss2_t_0','ss2_t_1',28,'/products/switches_stackable/ss2_t.html','3ComŪ SuperStackŪ II Switch 1000BASE-T Module','swgigamod',null);
  arrSidenav['ss2_sx']         = new TNavObject('SNss2_sx','ss2_sx_0','ss2_sx_1',28,'/products/switches_stackable/ss2_sx.html','3ComŪ SuperStackŪ II Switch 1000BASE-SX Module','swgigamod',null);	
  arrSidenav['ss2_lx']         = new TNavObject('SNss2_lx','ss2_lx_0','ss2_lx_1',28,'/products/switches_stackable/ss2_lx.html','3ComŪ SuperStackŪ II Switch 1000BASE-LX Module','swgigamod',null);	
  arrSidenav['ss2_3900sx']     = new TNavObject('SNss2_3900sx','ss2_3900sx_0','ss2_3900sx_1',28,'/products/switches_stackable/ss2_3900sx.html','3ComŪ SuperStackŪ II Switch 3900 1000BASE-SX Module','swgigamod',null);
  arrSidenav['ss2_3900lx']     = new TNavObject('SNss2_3900lx','ss2_3900lx_0','ss2_3900lx_1',28,'/products/switches_stackable/ss2_3900lx.html','3ComŪ SuperStackŪ II Switch 3900 1000BASE-LX Module','swgigamod',null);

	
  
  //SW Fast Ethernet Modules for Fast Ethernet/Ethernet Switches PARENT
  arrSidenav['swfastmod']      = new TNavObject('SNswfastmod','swfastmod_0','swfastmod_1',24,'/products/switches_stackable/swfastmod.html','Fast Ethernet Modules for Fast Ethernet/Ethernet Switches',null,new Array('ss3_4400fx','ss3_4300fxsp','ss3_4300fxdp','ss3_l3','ss2_fx','ss2_fxd'));

  //SW Fast Ethernet Modules for Fast Ethernet/Ethernet Switches CHILDREN
  arrSidenav['ss3_4400fx']     = new TNavObject('SNss3_4400fx','ss3_4400fx_0','ss3_4400fx_1',28,'/products/switches_stackable/ss3_4400fx.html','3ComŪ SuperStackŪ 3 Switch 4400 100BASE-FX Module','swfastmod',null);
  arrSidenav['ss3_4300fxsp']   = new TNavObject('SNss3_4300fxsp','ss3_4300fxsp_0','ss3_4300fxsp_1',35,'/products/switches_stackable/ss3_4300fxsp.html','3ComŪ SuperStackŪ 3 Switch 4300 100BASE-FX Single Port Module','swfastmod',null);
  arrSidenav['ss3_4300fxdp']   = new TNavObject('SNss3_4300fxdp','ss3_4300fxdp_0','ss3_4300fxdp_1',35,'/products/switches_stackable/ss3_4300fxdp.html','3ComŪ SuperStackŪ 3 Switch 4300 100BASE-FX Dual Port Module','swfastmod',null);
  arrSidenav['ss3_l3']         = new TNavObject('SNss3_l3','ss3_l3_0','ss3_l3_1',28,'/products/switches_stackable/ss3_l3.html','3ComŪ SuperStackŪ II Switch Layer 3 Module','swfastmod',null);
  arrSidenav['ss2_fx']         = new TNavObject('SNss2_fx','ss2_fx_0','ss2_fx_1',28,'/products/switches_stackable/ss2_fx.html','3ComŪ SuperStackŪ II Switch 100BASE-FX Module','swfastmod',null);  
  arrSidenav['ss2_fxd']        = new TNavObject('SNss2_fxd','ss2_fxd_0','ss2_fxd_1',28,'/products/switches_stackable/ss2_fxd.html','3ComŪ SuperStackŪ II Switch 100BASE-FX Dual Module','swfastmod',null);  
  
  
  //SW Stacking Accessories PARENT
  arrSidenav['swstackaxs']      = new TNavObject('SNswstackaxs','swstackaxs_0','swstackaxs_1',24,'/products/switches_stackable/swstackaxs.html','Stacking Accessories',null,new Array('ss3_4400sk','ss3_4400sxk','ss2_matrix'));  
 
  //SW Stacking Accessories CHILDREN
  arrSidenav['ss3_4400sk']   = new TNavObject('SNss3_4400sk','ss3_4400sk_0','ss3_4400sk_1',28,'/products/switches_stackable/ss3_4400sk.html','3ComŪ SuperStackŪ 3 Switch 4400 Stacking Kit','swstackaxs',null);
  arrSidenav['ss3_4400sxk']   = new TNavObject('SNss3_4400sxk','ss3_4400sxk_0','ss3_4400sxk_1',28,'/products/switches_stackable/ss3_4400sxk.html','3ComŪ SuperStackŪ 3 Switch 4400 Stack Extender Kit','swstackaxs',null);
  arrSidenav['ss2_matrix']   = new TNavObject('SNss2_matrix','ss2_matrix_0','ss2_matrix_1',28,'/products/switches_stackable/ss2_matrix.html','3ComŪ SuperStackŪ II Switch Matrix Module','swstackaxs',null);  
  
//parent
  arrSidenav['switchfinder']	= new TNavObject('SNswitchfinder','switchfinder_0','switchfinder_1',24,'javascript: select_url(\'/products/product_finders.html?backto=' + safeTitleString() + '\')"','Aiutami a scegliere...',null,null);//safeTitleString() is in page_templates.js


  
//function called from HTML
function drawSidenav(argCurrent) //eg. drawSidenav('dswitch16');
{
  //make current nav item active
  if(argCurrent != 'all')arrSidenav[argCurrent].makeActive();
  //draw all parent items.
  for(i = 0; i < arrParents.length; i++)
  {
    document.write(arrSidenav[arrParents[i]].asHTML(argCurrent)); //write out each parent. As the parent is written, check to see whether argCurrent is the name of a child. If so, write out the children.
  }
  document.write('<a href="http://www.3com.com/products/en_US/downloadsindex.jsp" onmouseover="document.downloads.src=\'/products/assets/downloads_1.gif\'"; onmouseout="document.downloads.src=\'/products/assets/downloads_0.gif\'"; target="_blank"><img name="downloads" src="/products/assets/downloads_0.gif" width="153" height="24" border="0" alt="Downloads"></a>');
}


