	function prodTab(d) {
		var dir = d;
		var elem = document.getElementById('prod-tab-thru-img');		
		var txtElem = document.getElementById('prod-tab-txt-in');
		var currentImg = elem.src;				
		var slash = currentImg.lastIndexOf('/') + 1;
		var dot = currentImg.lastIndexOf('.');
		var nom = currentImg.slice(slash,dot); /* 01, 02, etc. */
		
		var ielem = document.getElementById('tabthru-popper');
		var winName = "winT";
		var winParams = "height=500,width=660,menubar=no,toolbar=no,statusbar=no";
		var ocTxt1 = "images/product_tab_thrus/cabinet/Mobile_Basix_Melamine.jpg";
		var ocTxt2 = "images/product_tab_thrus/cabinet/Benchmarx_Toolbench.jpg";
		var ocTxt3 = "images/product_tab_thrus/cabinet/Mobile_Basix_HDPE.jpg";
		var ocTxt4 = "images/product_tab_thrus/cabinet/Multi-bench_Configuration.jpg";
		
		var img01 = new Image();
		img01.src = "images/product_tab_thrus/cabinet/01.jpg"		
		var img02 = new Image();
		img02.src = "images/product_tab_thrus/cabinet/02.jpg"
		var img03 = new Image();
		img03.src = "images/product_tab_thrus/cabinet/03.jpg"
		var img04 = new Image();
		img04.src = "images/product_tab_thrus/cabinet/04.jpg"
		
		var txt01 = "<strong>72&rdquo; Mobile Basix</strong> with PLAM top, backsplash,<span class='tab-txt2'><br />and integrated Melamine cubbie with cabinets</span>";
		var txt02 = "<strong>72&rdquo; Benchmarx Toolbench</strong> with PLAM top and backsplash,<span class='tab-txt2'><br />overhead cabinets and drawers, lower metal tool drawers</span>";
		var txt03 = "<strong>72&rdquo; Mobile Basix</strong> with PLAM top and backsplash,<span class='tab-txt2'><br />and HDPE cubbie with custom shelves and cabinet doors</span>";
		var txt04 = "<strong>Multi-bench Configuration</strong> with pedestal storage,<span class='tab-txt2'><br />upper shelving and cabinets, and a rolling tool cabinet</span>";
		
		if (dir == 0) {
			if (nom == '01') {
				elem.src = img04.src;
				txtElem.innerHTML = txt04;
				ielem.onclick = function() { winT=window.open(ocTxt4,"winT",winParams); winT.resizeTo(670,600); return false; };
			}
			else if (nom == '02') {
				elem.src = img01.src;
				txtElem.innerHTML = txt01;
				ielem.onclick = function() { winT=window.open(ocTxt1,winName,winParams); winT.resizeTo(391,358); return false; };
			}
			else if (nom == '03') {
				elem.src = img02.src;
				txtElem.innerHTML = txt02;
				ielem.onclick = function() { winT=window.open(ocTxt2,winName,winParams); winT.resizeTo(670,600); return false; };
			}
			else if (nom == '04') {
				elem.src = img03.src;
				txtElem.innerHTML = txt03;
				ielem.onclick = function() { winT=window.open(ocTxt3,winName,winParams); winT.resizeTo(670,600); return false; };
			}
		}		
		else if (dir == 1) {
			if (nom == '01') {
				elem.src = img02.src;
				txtElem.innerHTML = txt02;
				ielem.onclick = function() { winT=window.open(ocTxt2,winName,winParams); winT.resizeTo(670,600); return false; };
			}
			else if (nom == '02') {
				elem.src = img03.src;
				txtElem.innerHTML = txt03;
				ielem.onclick = function() { winT=window.open(ocTxt3,winName,winParams); winT.resizeTo(670,600); return false; };
			}
			else if (nom == '03') {
				elem.src = img04.src;
				txtElem.innerHTML = txt04;
				ielem.onclick = function() { winT=window.open(ocTxt4,winName,winParams); winT.resizeTo(670,600); return false; };
			}
			else if (nom == '04') {
				elem.src = img01.src;
				txtElem.innerHTML = txt01;
				ielem.onclick = function() { winT=window.open(ocTxt1,winName,winParams); winT.resizeTo(391,358); return false; };
			}
		}
	}
