(function() {
	var prod = [
				//{txt:'9810 Transceiver', link:'catalog/9810.htm'},
				//{txt:'ClearWave Antennas', link:'ClearWave.htm'},
				//{txt:'DGT', link:'catalog/DGT.htm'},
				{txt:'D485 DeviceNet Converter', link:'catalog/D485.htm'},		
				{txt:'entraNET Wireless', link:'catalog/entraNET.htm'},
				{txt:'Ether-1000', link:'catalog/ether1000.asp'},
				{txt:'F485 Converter', link:'catalog/F485.htm'},				
				{txt:'FAC1000/2000 Multiplexer', link:'catalog/FAC.htm'},
//				{txt:'Five Series Wireless', link:'catalog/FiveSeries.htm'},
				{txt:'Intrepid Series Wireless', link:'catalog/Intrepid.htm'},
				{txt:'iNET Series Wireless', link:'catalog/iNETII.htm'},
				/*{txt:'iNET Series Wireless', link:'catalog/iNETSeries.htm'},
				{txt:'iNET 900 Wireless', link:'catalog/iNET.htm'},*/
//				{txt:'InSite&trade; Wireless Software', link:'catalog/InSite.htm'},
				{txt:'JungleMUX SONET Multiplexer', link:'catalog/JungleMUX.asp'},
				{txt:'JungleMUX T1 Multiplexer', link:'catalog/JungleMUXT1.asp'},
				{txt:'LEDR Series Wireless', link:'catalog/LEDRSeries.htm'},
				{txt:'MC-E Series Converter', link:'catalog/MCESeries.htm'},				
				{txt:'Mercury Series Wireless', link:'catalog/MercurySeries.htm'},
				{txt:'ML2400 19&quot; Ethernet Switch', link:'catalog/ML2400.htm'},
				{txt:'ML1600 9&quot; Ethernet Switch', link:'catalog/ML1600.htm'},
				{txt:'ML1200 Ethernet Switch', link:'catalog/ML1200.htm'},
				{txt:'ML810 Compact Switch', link:'catalog/ML810.htm'},
				{txt:'ML800 Compact Switch', link:'catalog/ML800.htm'},
				{txt:'ML600 Compact Switch', link:'catalog/ML600.htm'},
				{txt:'MultiNet Serial Converter', link:'catalog/MultiNet.htm'},
				{txt:'MultiNet4 Multi-port Switch', link:'catalog/MultiNet4.htm'},
				{txt:'MultiNet1000 WAN Router', link:'catalog/MN1000.htm'},				
				{txt:'NETio Wireless', link:'catalog/NETio.htm'},
//				{txt:'NETview Wireless MS', link:'catalog/NETviewMS.htm'},
/*				{txt:'P20 Tabletop', link:'catalog/P20.htm'},
				{txt:'P60 14x12x7', link:'catalog/P60.htm'},
				{txt:'P70 22x1x10', link:'catalog/P70.htm'},*/
				{txt:'P485 Profibus Converter', link:'catalog/P485.htm'},
				{txt:'PulseNet', link:'pulsenet.htm'},
				{txt:'RS232/485 Converter', link:'catalog/RS232485.htm'},
//				{txt:'SCADAcrypt Wireless SW', link:'catalog/SCADAcrypt.htm'},
				/*{txt:'SD4 Wireless', link:'catalog/SD4.htm'},*/
				{txt:'SD Series Wireless', link:'catalog/SDSeries.htm'},
				{txt:'TN1U SDH Multiplexer', link:'catalog/TN1U.asp'},
				{txt:'TN1Ue SDH Multiplexer', link:'catalog/TN1Ue.asp'},				
				/*{txt:'Transit NM-200', link:'catalog/TransitNM200.htm'},
				{txt:'Transit NR-100', link:'catalog/TransitNR100.htm'},				
				{txt:'Transit Wireless NMS', link:'catalog/TransitNMS.htm'},*/
				{txt:'TransNET 900 Wireless', link:'catalog/TransNET.htm'},
				{txt:'USB to Serial Cable', link:'catalog/USB2Serial.htm'},
				{txt:'VistaNet Software', link:'catalog/VistaNET.asp'},
//				{txt:'Wireless Accessories', link:'Accessories.htm'},
				{txt:'WiYZ Wireless', link:'catalog/MDSWiYZ.htm'},
				{txt:'x710 Series Wireless', link:'catalog/710Series.htm'},
				{txt:'x790 Series Wireless', link:'catalog/790Series.htm'}
			];
	var hdr = '<div id="PBNwrap" style="visibility:hidden; left:-5000px; top:0px;">'+
			'<div class="jcarousel-skin-PBN"><div id="PBNcarousel" class="jcarousel-container jcarousel-container-horizontal">'+
			'<div class="PBNcarousel-control"><table border="0" cellpadding="0" cellspacing="0" >'+
			
			
			'<TR>'
	var items = '<UL>';

	var sections = 4;		// If you change this, adjust styles of tabs to match, in styles/PBNskin.css
	var M = Math.floor(prod.length/sections)
	var S = 0, beg=0, Max = 10;
	var stl, totwidth, tabwidth;
	var first, last;
	
	for (S=1; S <= sections; S++) {
		var tmp1 = M, tmp2 = M, tmp = M
		if (S < sections) {
			while (prod[tmp1].txt.charAt(0).toUpperCase() == prod[tmp1+1].txt.charAt(0).toUpperCase()) {
				if (++tmp1 == prod.length-1) 
					break;
			}
			
			while (prod[tmp2].txt.charAt(0).toUpperCase() == prod[tmp2+1].txt.charAt(0).toUpperCase()) {
				if (--tmp2 == beg) 
					break;
			}
			if (tmp1-M > M-tmp2) tmp=tmp2; else tmp=tmp1;
			prod[tmp+1].brk=1;
		}
		first = prod[beg].txt.charAt(0).toUpperCase()
		if (first > 'A' && S==1) first='A';
		else if (S > 1) first = String.fromCharCode(last.charCodeAt(0)+1);
		last = prod[tmp].txt.charAt(0).toUpperCase()
		if (last < 'Z' && S==sections) last='Z'
		hdr += '<TD><a href="#" id=PBNsection'+S+' hidefocus=true>'+first+'-'+last+'</a></td>'
		if (tmp+1 - beg > Max) Max = tmp+1 - beg;
		beg = tmp+1;
		M = S == sections-1 ? prod.length-1 : beg + Math.floor(prod.length/ sections);	// Math.floor((prod.length-beg) / (sections-S))
	}
	hdr += '</TR></table></div>';
	stl = '<style type="text/css">';
	stl += '.PBNcarousel-control .active#PBNsection'+sections+' {		border-right:1px #CCC solid;}\n'
	tabwidth = Math.ceil(162/sections);
	totwidth = tabwidth * sections;
	stl += '.PBNcarousel-control {	width:'+totwidth+'px;}\n';
	stl += '.PBNcarousel-control a {	width:'+tabwidth+'px;}\n';
	stl += '.jcarousel-skin-PBN .jcarousel-container-horizontal {    width: '+(totwidth+sections-1)+'px;}\n';
	stl += '.jcarousel-skin-PBN .jcarousel-clip-horizontal {    width: '+(totwidth+sections-1)+'px; height:'+(Max*16+20)+'px;}\n';
	stl += '</style>\n';
	document.write(stl);
	document.write(hdr);	
	
	for (S=0; S < prod.length; S++) {
		if (S==0 || prod[S].brk) items += '<li class="linkArrows">'
		items += '<a href="'+Uprefix+'Communications/'+prod[S].link+'">'+prod[S].txt+'</a><BR>'
	}
	items += '</ul></div></div></div>';
	document.write(items);
})();
