var div_timeouts = new Object();
var topcount = 0;
var timeoutID = 0;
var condcount = prodcount = 0;
var first_cond = first_prod = 0;
var num_conditions = num_products = 0;
var Conditions = new Array();
var Products = new Array();
var topNav = Array();
var navDivs = new Array();
var popup_wait = '';
var popup_layer_waiting = '';
var popup_wait_id = 0;

// Pre-load images
var preload = new Array("images/nav_flyouts/back.gif", "images/navigation/nav-top-arrow.gif", "images/navigation/nav-top-arrow-over.gif",
	"images/navigation/nav-top-back.gif", "images/navigation/nav-top-botlines.gif");
for (var i=0; i<preload.length; i++)
{
	var img = new Image();
	img.src = preload[i];
}

function hidediv(id)
{
	el = findEl(id);
	if (el)
		el.style.visibility = 'hidden';
}

function showtop(id)
{
	clear_reset_timer(id);
	P7_autoLayers(id);
}

function set_reset_timer(id)
{
	if (div_timeouts[id] == 0)
	{
		div_timeouts[id] = window.setTimeout("hidediv('"+id+"')", 500);
		popup_wait_id = window.setTimeout("popup_wait=''; popup_wait_id=0; if(popup_layer_waiting != '') shownav(popup_layer_waiting)", 200);
	}
}

function clear_reset_timer(id)
{
	if (div_timeouts[id] != 0)
	{
		window.clearTimeout(div_timeouts[id]);
		div_timeouts[id] = 0;
	}

	if (popup_wait_id != 0)
	{
		window.clearTimeout(popup_wait_id);
		popup_wait_id = 0;
	}

	popup_layer_waiting = '';
}

function findEl(id)
{
	return MM_findObj(id);
}

function shownav(id)
{
	if (popup_wait != '' && popup_wait != id)
	{
		popup_layer_waiting = id;
		return;
	}

	clear_reset_timer(id);
	popup_wait = id;
	for (var i=0; i<navDivs.length; i++)
	{
		if (navDivs[i].name == id)
		{
			first_cond = navDivs[i].start_cond;
			num_conditions = navDivs[i].conditions;
			first_prod = navDivs[i].start_prod;
			num_products = navDivs[i].products;
			P7_autoLayers(id);
			return;
		}
	}
}

function DivInfo(name, conditions, start_cond, products, start_prod, imgpath)
{
	this.name = name;
	this.conditions = conditions;
	this.start_cond = start_cond;
	this.products = products;
	this.start_prod = start_prod;
}

function TopItem(link, text, newwin, showdiv)
{
	this.link = link;
	this.text = text;
	this.newwin = (newwin == 1) ? 1 : 0;
	this.showdiv = showdiv;
}

TopItem.prototype.makeElement = function(parent, divname)
{
	var tr = document.createElement("tr");
	var td = document.createElement("td");

	td.id = "topnav" + topcount;
	setstyle(td);
	td.style.fontSize = "7pt";
	td.style.lineHeight = "9pt";
	td.style.paddingLeft = "10px";
	td.style.paddingRight = "5px";
	td.style.color = "#616161";

	if (tr.attachEvent)
	{
		tr.attachEvent("onmouseover", top_over);
		tr.attachEvent("onmouseout", top_out);
		tr.attachEvent("onfocus", handlefocus);
		td.attachEvent("onmousedown", top_click);
	}
	else
	{
		tr.setAttribute("onmouseover", "top_over2('topnav"+topcount+"')");
		tr.setAttribute("onmouseout", "top_out2('topnav"+topcount+"')");
		tr.setAttribute("onfocus", "if (this.blur) this.blur()");
		tr.setAttribute("onmousedown", "top_click2("+topcount+")");
	}
	td.innerHTML = this.text;
	tr.appendChild(td);

	td = document.createElement("td");
	td.id = "toprnav" + topcount;
	td.paddingRight = "3px";
	if (this.showdiv)
	{
		addimg(td, "images/navigation/nav-top-arrow.gif", 8, 7, "toparr"+topcount);
	}
	tr.appendChild(td);

	parent.appendChild(tr);

	this.parent = divname;
	topNav[topcount] = this;
	topcount++;
}

function Condition(text, active, group)
{
	this.text = text;
	this.active = active;
	this.group = (group) ? group : 0;
}

Condition.prototype.makeElement = function(div, imgpath, imgbase)
{
	var tr = document.createElement("tr");
	var td = document.createElement("td");

	if (this.active == 1)
	{
		td.vAlign = "top";

		var check = document.createElement("input");
		check.type = "checkbox";
		check.id = "cond"+condcount;
		check.style.width = "10px";
		check.style.height = "10px";
		check.style.margin = "2px 0 0 0";
		check.style.cursor = "pointer";

		if (check.attachEvent)
		{
			check.attachEvent("onfocus", handlefocus);
			check.attachEvent("onclick", cond_check_click);
		}
		else
		{
			check.setAttribute("onfocus", "if (this.blur) this.blur()");
			check.setAttribute("onchange", "cond_group("+condcount+"); cond_change()");
		}

		td.appendChild(check);
		tr.appendChild(td);

		td = document.createElement("td");
		setstyle(td);
		td.id = "clink"+condcount;
		td.style.paddingLeft = "2px";
		td.style.color = "#2A5243";
		td.innerHTML = this.text;

		if (td.attachEvent)
		{
			td.attachEvent("onclick", cond_click);
		}
		else
		{
			td.setAttribute("onclick", "cond_click2("+condcount+")");
		}
		Conditions[condcount] = this;
		condcount++;
	}
	else
	{
		setstyle(td);
		td.style.color = "#2A5243";
		td.style.textDecoration = "underline";
		td.style.cursor = "default";
		td.colSpan = 2;
		td.innerHTML = this.text;
	}

	tr.appendChild(td);
	div.appendChild(tr);
}

function Spacer(width, height)
{
	this.width = width;
	this.height = height;
}

Spacer.prototype.makeElement = function(div, imgpath, imgbase)
{
	var tr = document.createElement("tr");
	var td = document.createElement("td");
	addimg(td, "images/nav_flyouts/blankpx.gif", this.width, this.height);
	tr.appendChild(td);
	div.appendChild(tr);
}

function Product(text, active, cond_map, link, newwindow)
{
	this.text = text;
	this.active = active;
	this.faded = 0;
	if (cond_map)
		this.cond_map = cond_map;
	this.link = (link) ? link : "";
	this.newwindow = (newwindow) ? 1 : 0;
}

Product.prototype.makeElement = function(div, imgpath, imgbase)
{
	var tr = document.createElement("tr");
	var td = document.createElement("td");
	td.id = "prod"+prodcount;
	td.style.paddingLeft = "5px";
	setstyle(td);

	if (this.active == 1)
	{
		if (td.attachEvent)
		{
			td.attachEvent("onclick", prod_click);
			td.attachEvent("onmouseover", td_hl);
			td.attachEvent("onmouseout", td_uhl);
		}
		else
		{
			td.setAttribute("onclick", "prod_click2("+prodcount+")");
			td.setAttribute("onmouseover", "td_hl2('prod"+prodcount+"')");
			td.setAttribute("onmouseout", "td_uhl2('prod"+prodcount+"')");
		}
	}
	else
	{
		td.style.color = "#2A5243";
		td.style.textDecoration = "underline";
		td.style.cursor = "default";
	}

	td.innerHTML = this.text;
	tr.appendChild(td);
	div.appendChild(tr);
	Products[prodcount] = this;
	prodcount++;
}

function addbr(parent)
{
	var br = document.createElement("br");
	parent.appendChild(br);
}

function addimg(parent, src, w, h, id, pointer)
{
	var img = document.createElement("img");
	img.style.width = w + "px";
	img.style.height = h + "px";
	img.style.border = 0;
	img.src = src;
	if (id)
		img.id = id;
	if (pointer)
		img.style.cursor = "pointer";
	parent.appendChild(img);
}

function setstyle(el)
{
	el.style.fontFamily = "helvetica, arial, sans-serif";
	el.style.fontSize = "7.5pt";
	el.style.color = "#000000";
	el.style.fontWeight = "bold";
	el.style.cursor = "pointer";
}

function addreset(parent)
{
	var tr = document.createElement("tr");
	var td = document.createElement("td");

	td.id = "reset"+navDivs.length;
	setstyle(td);
	td.style.paddingLeft = "4px";
	td.style.paddingBottom = "4px";

	addtext(td, "All Products/Reset");
	if (td.attachEvent)
	{
		td.attachEvent("onclick", cond_reset);
		td.attachEvent("onmouseover", td_hl);
		td.attachEvent("onmouseout", td_uhl);
	}
	else
	{
		td.setAttribute("onclick", "cond_reset()");
		td.setAttribute("onmouseover", "td_hl2('reset"+navDivs.length+"')");
		td.setAttribute("onmouseout", "td_uhl2('reset"+navDivs.length+"')");
	}

	tr.appendChild(td);
	parent.appendChild(tr);
}

function addtext(parent, text)
{
	var tnode = document.createTextNode(text);
	parent.appendChild(tnode);
}

function standard_link(text)
{
	var a = document.createElement("a");

	if (a.attachEvent)
	{
		a.attachEvent("onfocus", handlefocus);
	}
	else
	{
		a.setAttribute("onfocus", "if (this.blur) this.blur(); return true;");
	}

	if (text)
		addtext(a, text);

	return a;
}

function IEfix(div)
{
	// IE fix
	if (navigator.appName == "Microsoft Internet Explorer")
	{
		var iframe = document.createElement("iframe");
		iframe.style.width = div.offsetWidth + 2 +"px";
		iframe.style.height = div.offsetHeight + 2 + "px";
		iframe.src = "about:blank";
		iframe.style.position = "absolute";
		iframe.style.left = "-1px";
		iframe.style.top = "-1px";
		iframe.style.zIndex = "-1";
		iframe.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
		div.appendChild(iframe);
	}
}

function TopDiv(id, title_image, top, left, width, entries, parent)
{
	var div = document.createElement("div");

	div.id = id;
	div.style.position = "absolute";
	div.style.top = top + "px";
	div.style.left = left + "px";
	div.style.width = width + "px";
	div.style.visibility = "hidden";
	div.style.background = "#FFFFFF url(images/navigation/nav-top-back.gif)";
	div.style.border = "solid 1px #000000";
	div.style.zIndex = "4";
	if (parent)
	{
		eval("div.onmouseover = function()	{ clear_reset_timer('"+id+"'); clear_reset_timer('"+parent+"') }");
		eval("div.onmouseout = function()	{ set_reset_timer('"+id+"'); set_reset_timer('"+parent+"') }");
	}
	else
	{
		eval("div.onmouseover = function()	{ clear_reset_timer('"+id+"') }");
		eval("div.onmouseout = function()	{ set_reset_timer('"+id+"') }");
	}

	if (title_image == '')
		addimg(div, "images/navigation/nav-top-botlines.gif", 168, 7);
	else
	{
		// Pre-load
		var title_img = new Image();
		title_img.src = "images/navigation/"+title_image;
		addimg(div, "images/navigation/"+title_image, 168, 24);
	}

	var table = document.createElement("table");
	table.style.zIndex = "99";
	table.cellSpacing = 0;
	table.cellPadding = 2;
	table.style.margin = "10px 0";
	table.style.width = "100%";
	var tbody = document.createElement("tbody");

	for(i=0; i<entries.length; i++)
	{
		entries[i].makeElement(tbody, id);
	}

	table.appendChild(tbody);
	div.appendChild(table);

	addimg(div, "images/navigation/nav-top-botlines.gif", 168, 7);

	document.getElementsByTagName("body")[0].appendChild(div);
	IEfix(div);
	div_timeouts[id] = 0;
}

function NavDiv(id, imgbase, top, left, conditions, products, extra_width, extra_height)
{
	firstc = condcount;
	firstp = prodcount;
	imgpath = "images/nav_flyouts/" + imgbase + "/";
	var div = document.createElement("div");

	div.id = id;
	div.style.position = "absolute";
	div.style.top = top + "px";
	div.style.left = left + "px";
	div.style.width = "398px";
	div.style.visibility = "hidden";
	div.style.border = "solid 1px #000000";
	div.style.background = "#FFFFFF url(images/nav_flyouts/back.gif)";
	div.style.zIndex = "4";
	eval("div.onmouseover = function () { clear_reset_timer('"+id+"') }");
	eval("div.onmouseout = function () { set_reset_timer('"+id+"') }");

	// Title image
	addimg(div, "images/nav_flyouts/"+imgbase+"_nav_title.gif", 398, 24);

	// Define... and/or... Select image
	addimg(div, "images/nav_flyouts/define.gif", 398, 50);

	// Table
	var table = document.createElement("table");
	table.cellSpacing = 0;
	table.cellPadding = 0;
	var tbody = document.createElement("tbody"); // IE will NOT display without a tbody
	table.style.margin = "0 0 1px 0";
	table.style.width = "398px";
	var tr = document.createElement("tr");

		// Left Side
	var lefttd = document.createElement("td");
	lefttd.vAlign = "top";
	lefttd.style.width = "199px";
	lefttd.style.borderRight = "solid 1px #000000";
	lefttd.style.padding = "5px 0 22px 8px";

	var ltable = document.createElement("table");
	ltable.cellSpacing = "2px";
	ltable.cellPadding = 0;
	var lbody = document.createElement("tbody"); // IE will NOT display without a tbody

	for(i=0; i<conditions.length; i++)
	{
		conditions[i].makeElement(lbody, imgpath, imgbase);
	}
	ltable.appendChild(lbody);
	lefttd.appendChild(ltable);
	tr.appendChild(lefttd);

	// Right Side
	var righttd = document.createElement("td");
	righttd.vAlign = "top";
	righttd.style.width = "199px";
	righttd.style.padding = "5px 0 22px 0px";

	var rtable = document.createElement("table");
	rtable.cellPadding = "1px";
	rtable.cellSpacing = 0;
	rtable.style.width = "100%";
	var rbody = document.createElement("tbody");

	// Reset image first
	addreset(rbody);

	for(i=0; i<products.length; i++)
	{
		products[i].makeElement(rbody, imgpath, imgbase);
	}

	rtable.appendChild(rbody);
	righttd.appendChild(rtable);
	tr.appendChild(righttd);

	tbody.appendChild(tr);
	table.appendChild(tbody);
	div.appendChild(table);

	// Possible extra
	if (extra_width)
		addimg(div, "images/nav_flyouts/"+imgbase+"_nav_extra.gif", extra_width, extra_height);

	// Bottom image
	addimg(div, "images/nav_flyouts/bottom.gif", 398, 9);

	document.getElementsByTagName("body")[0].appendChild(div);
	IEfix(div);
	navDivs.push(new DivInfo(id, condcount-firstc, firstc, prodcount-firstp, firstp, imgpath));
}

// Event handlers

function top_click()
{
	if (event)
	{
		var el = event.srcElement;
		while (el.nodeName != "TD" && el.parentElement)
			el = el.parentElement;
		if (el.nodeName == "TD")
		{
			var ind = parseInt(el.id.substr(6)); // of form "topnav#"
			top_click2(ind)
		}
	}
}

function top_click2(ind)
{
	if (topNav[ind])
	{
		var nav = topNav[ind];
		if (nav.link != "")
		{
			if (nav.newwin == 1)
			{
				var newwin = window.open(nav.link, "_blank");
				newwin.focus();
			}
			else
				location.href = nav.link;
		}
	}
}

function image_hl(id)
{
	el = findEl(id);
	if (el)
		MM_swapImage(el.id, '', image_over(el.src), 1);
}

function hl()
{
	if (event && (event.srcElement.nodeName == "IMG"))
		hl2(event.srcElement);
}

function hl2(el)
{
	MM_swapImage(el.id, '', image_over(el.src), '');
}

function cond_click()
{
	if (event && (event.srcElement.nodeName == "TD"))
	{
		var ind = parseInt(event.srcElement.id.substr(5)); // of form "clink#"
		if (ind >= 0 && ind < condcount)
			cond_click2(ind);
	}
}

function cond_click2(itemnum)
{
	var check = findEl("cond"+itemnum);
	if (check)
		check.checked = !check.checked;
	cond_group(itemnum);
	cond_change();
}

function cond_check_click()
{
	if (event && (event.srcElement.nodeName == "INPUT"))
	{
		var ind = parseInt(event.srcElement.id.substr(4)); // of form "cond#"
		if (ind >= 0 && ind < condcount)
		{
			cond_group(ind);
			cond_change();
		}
	}
}

function cond_group(itemnum)
{
	if (Conditions[itemnum].group == 0)
		return;

	var group = Conditions[itemnum].group;

	for (var i=first_cond; i<first_cond+num_conditions; i++)
	{
		if (Conditions[i].group == group && i != itemnum)
		{
			var el = findEl("cond"+i);
			el.checked = false;
		}
	}
}

function cond_change()
{
	var checks = new Array();
	for (i=first_cond; i<first_cond+num_conditions; i++)
	{
		var el = findEl("cond"+i);
		if (el.checked)
			checks.push(i-first_cond);
	}

	for (i=first_prod; i<first_prod+num_products; i++)
	{
		prod = Products[i];
		if (prod.active == 1)
		{
			var map = prod.cond_map;
			var plength = map.length;
			var p = matches = 0;
			// This works because everything checked must be in prod.cond_map and both arrays are ordered
			for (var c=0; c<checks.length; c++)
			{
				while (checks[c] > map[p] && p < plength)
					p++
				if (p < plength && checks[c] == map[p])
					matches++;
			}

			if (matches == checks.length)
			{
				if (prod.faded == 1) // Don't bother if we don't have to
				{
					el = findEl("prod"+i);
					el.style.cursor = "pointer";
					el.style.color = "#000000";
					prod.faded = 0;
				}
			}
			else
			{
				if (prod.faded == 0)
				{
					el = findEl("prod"+i);
					el.style.cursor = "default";
					el.style.color = "#CCCCCC";
					prod.faded = 1;
				}
			}
		}
	}
}

function cond_reset()
{
	for (var i=first_cond; i<first_cond+num_conditions; i++)
	{
		var check = findEl("cond"+i);
		check.checked = false;
	}

	cond_change();
}

function handlefocus()
{
	if (event)
	{
		if (event.srcElement.blur)
			event.srcElement.blur();
		return true;
	}
}

function image_over(name)
{
	return name.replace(/(\.gif|\.jpe{0,1}g)$/, "-over$1");
}

function top_over()
{
	if (event)
	{
		var el = event.srcElement;
		while (el.nodeName != "TD" && el.parentElement)
			el = el.parentElement;
		if (el.nodeName == "TD")
			top_over2(el.id);
	}

	return true;
}

function top_over2(id)
{
	var ind = id.substr(6); // of form "topnav#"
	if (topNav[ind])
	{
		if (topNav[ind].showdiv)
		{
			clear_reset_timer(topNav[ind].showdiv);
			eval("P7_autoLayers('"+topNav[ind].showdiv+"', '"+topNav[ind].parent+"')");
		}
	}

	// Left Cell
	el = findEl(id);
	el.style.background = "#638172";
	el.style.color = "#FFFFFF";

	// Right Cell
	el = findEl("toprnav" + ind);
	if (el)
		el.style.background = "#638172";

	// Arrow
	el = findEl("toparr" + ind);
	if (el)
		el.src = "images/navigation/nav-top-arrow-over.gif";
	return true;
}

function top_out()
{
	if (event)
	{
		var el = event.srcElement;
		while (el.nodeName != "TD" && el.parentElement)
			el = el.parentElement;
		if (el.nodeName == "TD")
			top_out2(el.id);
	}

	return true;
}

function top_out2(id)
{
	var ind = id.substr(6); // of form "topnav#"
	if (topNav[ind])
	{
		if (topNav[ind].showdiv)
			set_reset_timer(topNav[ind].showdiv)
	}

	// Left Cell
	el = findEl(id);
	el.style.background = '';
	el.style.color = "#616161";

	// Right Cell
	el = findEl("toprnav" + ind);
	if (el)
		el.style.background = '';

	// Arrow
	el = findEl("toparr" + ind);
	if (el)
		el.src = "images/navigation/nav-top-arrow.gif";
	return true;
}

function td_hl()
{
	if (event && (event.srcElement.nodeName == "TD"))
		td_hl2(event.srcElement.id);
}

function td_hl2(id)
{
	var flag = 0;
	if (id.substr(0,4) == "prod")
	{
		ind = id.substr(4); // of form "prod#"
		if (ind >= 0 && ind < prodcount)
		{
			prod = Products[ind];
			flag = 1;
			if (prod.active == 0 || prod.faded == 1)
				return;
		}
		else
			return;
	}

	if (flag == 1)
		window.status = prod.link;
	el = findEl(id);
	el.style.background = "#94A8A1";
}

function td_uhl()
{
	if (event && (event.srcElement.nodeName == "TD"))
		td_uhl2(event.srcElement.id);
}

function td_uhl2(id)
{
	var flag = 0;
	if (id.substr(0,4) == "prod")
	{
		ind = id.substr(4); // of form "prod#"
		if (ind >= 0 && ind < prodcount)
		{
			prod = Products[ind];
			flag = 1;
			if (prod.active == 0 || prod.faded == 1)
				return;
		}
		else
			return;
	}

	if (flag == 1)
		window.status = "";
	el = findEl(id);
	el.style.background = "";
}

function prod_click()
{
	if (event && (event.srcElement.nodeName == "TD"))
	{
		var ind = parseInt(event.srcElement.id.substr(4)); // of form "prod#"
		if (ind >= 0 && ind < prodcount)
			prod_click2(ind);
	}
}

function prod_click2(itemnum)
{
	prod = Products[itemnum];
	if (prod.faded == 1)
		return;
	if (prod.link != "")
	{
		if (prod.newwindow == 1)
		{
			var newwin = window.open(prod.link, "_blank");
			newwin.focus();
		}
		else
			location.href = prod.link;
	}
}

function build_nav()
{
	// Top Stuff first
	// Careers
	var entries = new Array();
	entries[0] = new TopItem('careers-working.php', 'Working for BAS');
	entries[1] = new TopItem('careers-living.php', 'Living in Salt Lake City');
	entries[2] = new TopItem('http://jobs-crbard.icims.com/', 'Careers');
	entries[3] = new TopItem('#', 'Contact HR', '');
	TopDiv('top_careers', 'nav-career-top.gif', 45, 480, 168, entries);

	// Education
	entries = new Array();
	entries[0] = new TopItem('pdfs/other/wall-groshcath-repair.pdf', 'Indicated Repair Kits for Groshong* Catheters');
	entries[1] = new TopItem('pdfs/other/wall-bardport-open.pdf', 'BardPort* Low-Profile Port with Open-Ended Catheter - <span style="font-weight: normal">Key Steps for Arm Implantation Using Radiological Techniques');
	entries[2] = new TopItem('pdfs/other/wall-bardport-grosh.pdf', 'BardPort* Low-Profile Port with Groshong* Catheter - <span style="font-weight: normal">Key Steps for Arm Implantation Using Radiological Techniques');
	entries[3] = new TopItem('clinical_training/course_overviews.php', 'Online Clinical Training');
	entries[4] = new TopItem('http://portadvantage.com', '<i>PortAdvantage.com</i><br><span style="font-weight: normal">Patient and Oncology Nurse Port Education</span>', 1);
	entries[5] = new TopItem('videos/liftloc/', 'LiftLoc Online Video');
	entries[6] = new TopItem('', 'PICC Online Video Presentations', 0, 'top_videos');
	entries[7] = new TopItem('', 'Nursing Guides', 0, 'top_nursing');
	TopDiv('top_edu', 'nav-edu-top.gif', 141, 510, 168, entries);

	// Education - Videos
	entries = new Array();
	entries[0] = new TopItem('videos/nurse/', '<i>How to Market Your PICC Team</i>');
	entries[1] = new TopItem('videos/nurse/', '<i>Strategies to Increase PICC Referrals</i>');
	entries[2] = new TopItem('videos/nurse/', '<i>Taking Your IV Team to the Next Level</i>');
	TopDiv('top_videos', '', 420, 683, 168, entries, 'top_edu');

	// Education - Nursing Guides
	entries = new Array();
	entries[0] = new TopItem('pdfs/nursing/ng-grosh-nxt.pdf', 'Groshong* NXT PICC');
	entries[1] = new TopItem('pdfs/nursing/ng-grosh-cath.pdf', 'Groshong* CV Catheter');
	entries[2] = new TopItem('pdfs/nursing/ng-hemoglide-hemosplit.pdf', 'HemoGlide* Catheter');
	entries[3] = new TopItem('pdfs/nursing/ng-hick-leon-brov.pdf', 'Hickman*/Broviac*/Leonard* Catheters');
	entries[4] = new TopItem('pdfs/nursing/ng-hemodialysis.pdf', 'Long-Term Polyurethane Hemodialysis/Apheresis Catheter');
	entries[5] = new TopItem('pdfs/nursing/ng-siliradpicc-perqpluspicc.pdf', 'Per-Q-Cath* Plus &amp;<br>RADPICC* Catheters');
	entries[6] = new TopItem('pdfs/nursing/ng-polyperq-polyrad.pdf', 'Poly Per-Q-Cath* Plus &amp;<br>Poly RADPICC* Catheters');
	entries[7] = new TopItem('pdfs/nursing/ng-softcell.pdf', 'Soft-Cell* Catheter');
	TopDiv('top_nursing', '', 400, 683, 168, entries, 'top_edu');

	// Patient Info
	entries = new Array();
	entries[0] = new TopItem('', 'Implanted Ports');
	entries[1] = new TopItem('pdfs/patient/pg-ports-english.pdf', '&nbsp;&nbsp;&bull;English');
	entries[2] = new TopItem('pdfs/patient/pg-ports-spanish.pdf', '&nbsp;&nbsp;&bull;Espa&ntilde;ol');
	entries[3] = new TopItem('pdfs/patient/mc-0115-00_web_portAA_patientinfo.pdf', 'Your Port Access Advantage* booklet');
	entries[4] = new TopItem('pdfs/other/MC-0406-00_A_Port_For_Me_web.pdf', '<i>Port for Me</i> Pamphlet<br><span style="font-weight: normal">Children\'s book that explains port use.</span>');
	entries[5] = new TopItem('pdfs/other/MC-0405-00_My_PICC_Line_web.pdf', '<i>My PICC Line</i> Booklet<br><span style="font-weight: normal">Children\'s book that explains PICC use.</span>');
	entries[6] = new TopItem('pdfs/other/MC-0404-00_My_Central_Line_Book_web.pdf', '<i>My Central Line</i> Booklet<br><span style="font-weight: normal">Children\'s book that explains Central Line use.</span>');
	entries[7] = new TopItem('', 'Patient Guides', 0, 'top_guides');
	entries[8] = new TopItem('http://powerportadvantage.com', '<i>PowerPortAdvantage.com</i><br><span style="font-weight: normal">Patient and Clinician Port Education</span>',1);
	entries[9] = new TopItem('http://portadvantage.com', '<i>PortAdvantage.com</i><br><span style="font-weight: normal">Patient and Oncology Nurse Port Education</span>',1);
	TopDiv('top_patient', 'nav-pat-top.gif', 141, 430, 168, entries);

	// Patient Info - Patient Guides
	entries = new Array();
	entries[0] = new TopItem('pdfs/patient/0716115_Aspira_Patient_Guide_web.pdf', 'Aspira* Pleural Drainage');
	entries[1] = new TopItem('pdfs/patient/pg-grosh-cath.pdf', 'Groshong* Catheter');
	entries[2] = new TopItem('pdfs/patient/pg-grosh-nxt.pdf', 'Groshong* NXT PICC');
	entries[3] = new TopItem('pdfs/patient/pg-grosh-picc.pdf', 'Groshong* PICC');
	entries[4] = new TopItem('pdfs/patient/pg-hemodialysis.pdf', 'Long-Term Polyurethane Hemodialysis/Apheresis Catheter');
	entries[5] = new TopItem('pdfs/patient/MC-0050-00_powerport_patient_guide_web.pdf', 'PowerPort* &amp; PowerPort* M.R.I.* Ports');
	entries[6] = new TopItem('pdfs/patient/pg-ports-all.pdf', 'M.R.I.* Dual-Lumen Port');
	entries[7] = new TopItem('pdfs/patient/pg-siliradpicc-perqpluspicc.pdf', 'Per-Q-Cath* Plus &amp;<br>RADPICC* Catheters');
	entries[8] = new TopItem('pdfs/patient/pg-polyperq-polyrad.pdf', 'Poly Per-Q-Cath* &amp;<br>Poly RADPICC* Catheters');
	entries[9] = new TopItem('pdfs/patient/BAW0715356_PowerPICC_Patient_Guide_web.pdf', 'PowerPICC* Catheter');
	entries[10] = new TopItem('powerpiccsolo/pdfs/0719559_PowerPICC_SOLO_Patient_Guide_web.pdf', 'PowerPICC SOLO* Catheter');
	entries[11] = new TopItem('pdfs/patient/pg-polyperq3.pdf', 'Per-Q-Cath<small><sup>*3</sup></small> Catheter');
	TopDiv('top_guides', '', 225, 605, 168, entries, 'top_patient');


	// Now left-side navigation
	// Central Venous Catheters
	var co = new Array();
	co[0] = new Condition('Non-Tunneled', 1,1);
	co[1] = new Condition('Tunneled', 1,1);
	co[2] = new Condition('Silicone Open-Ended', 1,2);
	co[3] = new Condition('Valved Silicone Catheter', 1,2);
	co[4] = new Condition('Polyurethane Open-Ended Catheter', 1,2);
	co[5] = new Condition('Power Injectable Catheter', 1);
	co[6] = new Condition('CVP Monitoring', 1);
	co[7] = new Condition('Single-Lumen', 1,3);
	co[8] = new Condition('Dual-Lumen', 1,3);
	co[9] = new Condition('Triple-Lumen', 1,3);
	co[10] = new Condition('Pediatric Catheter', 1);
	co[11] = new Condition('Accessories', 1);

	var pr = new Array();
	pr[0] = new Product('Hohn* Central Venous Catheter', 1, new Array(0,2,7,8), 'picc-hohn.php');
	pr[1] = new Product('PowerLine* CVC', 1, new Array(1,4,5,6,7,8), 'picc-powerline.php');
	pr[2] = new Product('PowerHohn* CVC', 1, new Array(1,4,5,6,7,8), 'picc-powerhohn.php');
	pr[3] = new Product('PowerHickman* CVC', 1, new Array(1,4,5,7,8), 'picc-powerhickman.php');
	pr[4] = new Product('Groshong* Catheter', 1, new Array(1,3,7,8), 'picc-grosh-cath.php');
	pr[5] = new Product('Hickman* Catheter', 1, new Array(1,2,7,8,9,10), 'picc-hick-brov-leon.php');
	pr[6] = new Product('Broviac* Catheter', 1, new Array(1,2,7,10), 'picc-hick-brov-leon.php');
	pr[7] = new Product('Leonard* Catheter', 1, new Array(1,2,8), 'picc-hick-brov-leon.php');
	pr[8] = new Product('Hickman* Trifusion* Catheter', 1, new Array(1,4,9), 'picc-trifusion.php');
	pr[9] = new Product('Accessories', 0);
	pr[10] = new Product('Tunnelers', 1, new Array('11'), 'catalog-cvc.php?accessories[]=55&accessories[]=59');
	pr[11] = new Product('Suture Wings', 1, new Array('11'), 'catalog-cvc.php?accessories=60');
	pr[12] = new Product('Catheter Clamps', 1, new Array('11'), 'catalog-cvc.php?accessories=53');
	pr[13] = new Product('Injection Caps', 1, new Array('11'), 'catalog-cvc.php?accessories=54');
	pr[14] = new Product('Adhesive Kit for Catheter Repair', 1, new Array('11'), 'catalog-cvc.php?accessories=52');
	pr[15] = new Product('Repair Kits', 1, new Array('11'), 'catalog-cvc.php?accessories=56');
	pr[16] = new Product('Groshong* Replacement Connectors', 1, new Array('11'), 'catalog-cvc.php?accessories=57');
	pr[17] = new Product('Coaxial Microintroducer', 1, new Array('11'), 'intro-coaxial.php');
	NavDiv('cent-ven-caths', 'cent-ven-caths', 141, 183, co, pr);

	// IR PICCs
	var co = new Array();
	co[0] = new Condition('Silicone PICC', 1,1);
	co[1] = new Condition('Polyurethane PICC', 1,1);
	co[2] = new Condition('Power Injectable PICC', 1);
	co[3] = new Condition('CVP Monitoring', 1);
	co[4] = new Condition('Single-Lumen PICC', 1,2);
	co[5] = new Condition('Dual-Lumen PICC', 1,2);
	co[6] = new Condition('Triple-Lumen PICC', 1,2);
	co[7] = new Condition('Pediatric PICC', 1);
	co[8] = new Condition('Introducer Sets', 1);
	co[9] = new Condition('Ultrasound', 1);

	var pr = new Array();
	pr[0] = new Product('IR PICCS', 0);
	pr[1] = new Product('PowerPICC SOLO* Catheter', 1, new Array(1,2,3,4,5,6,9), 'ir-powerpiccsolo.php');
	pr[2] = new Product('PowerPICC* Catheter', 1, new Array(1,2,3,4,5,6,9), 'ir-powerpicc.php');
	pr[3] = new Product('Poly RadPICC* Catheter', 1, new Array(1,3,4,5,6,7,9), 'ir-radpicc-poly.php');
	pr[4] = new Spacer(126, 25);
	pr[5] = new Product('Introducer Sets', 0);
	pr[6] = new Product('RadSTIC* Microintroducer', 1, new Array('8'), 'intro-radstic.php');
	NavDiv('irad-piccs', 'irad-piccs', 141, 183, co, pr);
	
	// Nursing PICCs
	var co = new Array();
	co[0] = new Condition('Silicone Open-Ended PICC', 1,1);
	co[1] = new Condition('Polyurethane Open-Ended PICC', 1,1);
	co[2] = new Condition('Silicone Valved PICC', 1,1);
	co[3] = new Condition('Polyurethane Valved Open-Ended', 1,1);
	co[4] = new Condition('Power Injectable PICC', 1);
	co[5] = new Condition('Pediatric PICC', 1);
	co[6] = new Condition('CVP Monitoring', 1);
	co[7] = new Condition('Single-Lumen PICC', 1,2);
	co[8] = new Condition('Dual-Lumen PICC', 1,2);
	co[9] = new Condition('Triple-Lumen PICC', 1,2);
	co[10] = new Condition('Accessories/Introducer Sets', 1);
	co[11] = new Condition('Maximal Barrier Kit', 1);
	co[12] = new Condition('Ultrasound', 1);

	var pr = new Array();
	pr[0] = new Product('Nursing PICCs', 0);
	pr[1] = new Product('PowerPICC SOLO* Catheter', 1, new Array(3,4,6,7,8,9,12), 'nurse-powerpiccsolo.php');
	pr[2] = new Product('PowerPICC* Catheter', 1, new Array(1,4,6,7,8,9,12), 'nurse-powerpicc.php');
	pr[3] = new Product('PowerGroshong* PICC', 1, new Array(2,4,7,12), 'nurse-powergroshong.php');
	pr[4] = new Product('Groshong* PICC', 1, new Array(2,5,7,8,12), 'nurse-grosh-picc.php');
	pr[5] = new Product('Poly Per-Q-Cath* PICC', 1, new Array(1,5,6,7,8,9,12), 'nurse-polyperq.php');
	pr[6] = new Product('Per-Q-Cath* PICC', 1, new Array(0,5,7,8,12), 'nurse-perqplus-picc.php');
	pr[7] = new Product('Accessories/Introducer Sets', 0);
	pr[8] = new Product('Sherlock* Tip Location System', 1, new Array(1,2,4,6,7,8,9,10,12), 'loc-sherlock.php');
	pr[9] = new Product('Maximal Barrier Kit', 1, new Array(10,11), 'acc-max-bar.php');	
	pr[10] = new Product('MicroEZ* Microintroducer', 1, new Array('10'), 'intro-microez.php');
	pr[11] = new Product('Safety Excalibur* Introducer', 1, new Array('10'), 'intro-excalibur.php');
	pr[12] = new Product('Repair Kits', 1, new Array('10'), 'catalog-nursing.php?accessories=329');
	pr[13] = new Product('Education', 0);
	pr[14] = new Product('On-line basic course', 1, new Array(0,1,2,4,5,6,7,8,9,10,11,12), 'picc-online.php');
	NavDiv('nursing-piccs', 'nursing-piccs', 141, 183, co, pr);

	// Mid-line catheters
	var co = new Array();
	co[0] = new Condition('Silicone Open-Ended Midline', 1,1);
	co[1] = new Condition('Silicone Valved', 1,1);
	co[2] = new Condition('Pediatric Midline', 1);
	co[3] = new Condition('Single-Lumen Midline', 1,2);
	co[4] = new Condition('Dual-Lumen Midline', 1,2);
	co[5] = new Condition('Introducer Sets', 1);
	co[6] = new Condition('Ultrasound', 1);

	var pr = new Array();
	pr[0] = new Product('Midline Catheters', 0);
	pr[1] = new Product('Per-Q-Cath* Plus Midline Catheter', 1, new Array(0,2,3,4,6), 'nurse-grosh-perq-mid.php');
	pr[2] = new Product('Groshong* Midline Catheter', 1, new Array(1,3,6), 'nurse-grosh-perq-mid.php');
	pr[3] = new Product('Introducer Sets', 0);
	pr[4] = new Product('MicroEZ* Microintroducer', 1, new Array('5'), 'intro-microez.php');
	pr[5] = new Product('Safety Excalibur* Introducer', 1, new Array('5'), 'intro-excalibur.php');
	pr[6] = new Product('Education', 0);
	pr[7] = new Product('On-line Basic Course', 1, new Array(0,1,2,3,4,5,6), 'picc-online.php');
	NavDiv('midline-caths', 'midline-caths', 141, 183, co, pr);


	// Dialysis Catheters
	var co = new Array();
	co[0] = new Condition('Long-Term', 1,1);
	co[1] = new Condition('Short-Term', 1,1);
	co[2] = new Condition('Single-Lumen', 1,2);
	co[3] = new Condition('Dual-Lumen', 1,2);
	co[4] = new Condition('Triple-Lumen', 1,2);
	co[5] = new Condition('Fr Size', 0);
	co[6] = new Condition('10.8', 1, 3);
	co[7] = new Condition('11.0', 1, 3);
	co[8] = new Condition('12.0', 1, 3);
	co[9] = new Condition('12.5', 1, 3);
	co[10] = new Condition('13.5', 1, 3);
	co[11] = new Condition('14.5', 1, 3);
	co[12] = new Condition('16.0', 1, 3);
	co[13] = new Condition('Tips', 0);
	co[14] = new Condition('Split-Tip', 1, 2);
	co[15] = new Condition('Stepped-Tip', 1, 2);
	co[16] = new Condition('Dialysis Accessories', 0);
	co[17] = new Condition('Introducer Sets', 1);
	co[18] = new Condition('Accessories', 1);
	co[19] = new Condition('Platforms', 0);
	co[20] = new Condition('Alphacurve* Catheter Configuration', 1);
	co[21] = new Condition('BioBloc* Coating', 1);

	var pr = new Array();
	pr[0] = new Product('Dialysis Catheters', 0);
	pr[1] = new Product('Brevia* Short-Term Catheter', 1, new Array('6'), 'dial-brevia.php');
	pr[2] = new Product('EQUISTREAM* Catheter', 1, new Array(0,3), 'dial-equistream.php');
	pr[3] = new Product('HemoSplit* Catheter', 1, new Array(0,3,10,12,16,17), 'dial-hemosplit.php');
	pr[4] = new Product('HemoSplit* XK Catheter', 1, new Array(0,3,11,12,16,17), 'dial-hemosplit-xk.php');
	pr[5] = new Product('HemoStar* Catheter (Vas-Cath)', 1, new Array(0,3,10,13,16,17), 'dial-hemostar.php');
	pr[6] = new Product('HemoStar* XK Catheter (Vas-Cath)', 1, new Array(0,3,11,13,16,17), 'dial-hemostar-xk.php');
	pr[7] = new Product('Hickman* Dialysis Catheter', 1, new Array(0,2,3,5,9,13), 'dial-hickman.php');
	pr[8] = new Product('Niagara* Catheter', 1, new Array(1,3,9,13), 'dial-niagara.php');
	pr[9] = new Product('Niagara* Slim-Cath* Catheter', 1, new Array(1,3,7,13), 'dial-niagara-slim.php');
	pr[10] = new Product('Power-Trialysis* Catheter', 1, new Array(1,4), 'dial-power-trialysis.php');
	pr[11] = new Product('Soft-Cell* Catheter', 1, new Array(0,3,8,13), 'dial-softcell.php');
	pr[12] = new Product('Introducer Sets', 0);
	pr[13] = new Product('AirGuard* Valved Introducer', 1, new Array('14'), 'dial-airguard.php');
	pr[14] = new Product('Coaxial Microintroducer', 1, new Array('14'), 'intro-coaxial.php');
	pr[15] = new Product('Split-Kit* Introducer System', 1, new Array('14'), 'dial-splitkit.php');
	pr[16] = new Product('Accessories', 0);
	pr[17] = new Product('Repair Kits', 1, new Array('15'), 'catalog-dialysis.php?procedural=107');
	pr[18] = new Product('Stand-Alone Guidewires', 1, new Array('15'), 'catalog-dialysis.php?procedural=111');
	pr[19] = new Product('Introducer Needles', 1, new Array('15'), 'catalog-dialysis.php?procedural=108');
	pr[20] = new Product('Vessel Dilators', 1, new Array('15'), 'catalog-dialysis.php?procedural=112');
	pr[21] = new Product('Miscellaneous', 1, new Array('15'), 'catalog-dialysis.php?procedural=109');
	NavDiv('dial-caths', 'dial-caths', 141, 183, co, pr);

	// Ports
	var co = new Array();
	co[0] = new Condition('Patient Size', 0);
	co[1] = new Condition('Small', 1,1);
	co[2] = new Condition('Medium', 1,1);
	co[3] = new Condition('Large', 1,1);
	co[4] = new Condition('Port Profile', 0);
	co[5] = new Condition('Low Profile', 1,2);
	co[6] = new Condition('Intermediate Profile', 1,2);
	co[7] = new Condition('Full Size Profile', 1,2);
	co[8] = new Condition('Port Configuration', 0);
	co[9] = new Condition('Single-Lumen Port', 1,3);
	co[10] = new Condition('Dual-Lumen Port', 1,3);
	co[11] = new Condition('Port-Catheters', 0);
	co[12] = new Condition('Silicone Open-Ended Catheter', 1,4);
	co[13] = new Condition('ChronoFlex* Polyurethane Open-Ended Catheter (non-valved)', 1,4);
	co[14] = new Condition('Groshong* Catheter (valved)', 1,4);
	co[15] = new Condition('Port-Placement Location', 0);
	co[16] = new Condition('Arm Placement', 1,5);
	co[17] = new Condition('Chest Placement', 1,5);
	co[18] = new Condition('Imaging Compatability MRI Safe (3T)', 0);
	co[19] = new Condition('MRI Transparent', 1,6);
	co[20] = new Condition('MRI Opaque', 1,6);
	co[21] = new Condition('Port Material', 0);
	co[22] = new Condition('Titanium', 1,7);
	co[23] = new Condition('Plastic', 1,7);
	co[24] = new Condition('Accessories', 0);
	co[25] = new Condition('Port Access Needles', 1);
	co[26] = new Condition('Introducer Sets', 1);
	
/*	// Ports  for MC-0502-00 MR Information
	var co = new Array();
	co[0] = new Condition('Patient Size', 0);
	co[1] = new Condition('Small', 1,1);
	co[2] = new Condition('Medium', 1,1);
	co[3] = new Condition('Large', 1,1);
	co[4] = new Condition('Port Profile', 0);
	co[5] = new Condition('Low Profile', 1,2);
	co[6] = new Condition('Intermediate Profile', 1,2);
	co[7] = new Condition('Full Size Profile', 1,2);
	co[8] = new Condition('Port Configuration', 0);
	co[9] = new Condition('Single-Lumen Port', 1,3);
	co[10] = new Condition('Dual-Lumen Port', 1,3);
	co[11] = new Condition('Port-Catheters', 0);
	co[12] = new Condition('Silicone Open-Ended Catheter', 1,4);
	co[13] = new Condition('ChronoFlex* Polyurethane Open-Ended Catheter (non-valved)', 1,4);
	co[14] = new Condition('Groshong* Catheter (valved)', 1,4);
	co[15] = new Condition('Port-Placement Location', 0);
	co[16] = new Condition('Arm Placement', 1,5);
	co[17] = new Condition('Chest Placement', 1,5);
	co[18] = new Condition('Imaging Capability with CECT Scans', 0);
	co[19] = new Condition('Non-Power Injectable', 1,6);
	co[20] = new Condition('Power Injectable', 1,6);
	co[21] = new Condition('Port Material', 0);
	co[22] = new Condition('Titanium', 1,7);
	co[23] = new Condition('Plastic', 1,7);
	co[24] = new Condition('Accessories', 0);
	co[25] = new Condition('Port Access Needles', 1);
	co[26] = new Condition('Introducer Sets', 1);
*/
/*	// port menu with MC-0502-00
	var pr = new Array();
	pr[0] = new Product('Ports', 0);
	pr[1] = new Product('Arterial Port', 1, new Array(2,13,17), 'port-arterial.php');
	pr[2] = new Product('M.R.I.* Dual-Lumen Port', 1, new Array(2,5,7,8,9,10,12,13,16,17), 'port-mri-dual.php');
	pr[3] = new Product('M.R.I.* Hard Base Port', 1, new Array(2,5,6,8,9,10,12,13,16,17), 'port-mri-hard.php');
	pr[4] = new Product('M.R.I.* Port', 1, new Array(2,5,6,8,9,13,16,17), 'port-mri-port.php');
	pr[5] = new Product('M.R.I.* Low-Profile Port', 1, new Array(1,2,6,8,9,10,11,12,13,16,17), 'port-mri-low.php');
	pr[6] = new Product('M.R.I.* Ultra SlimPort*', 1, new Array(0,2,3,6,9,12,13,16,17), 'port-mri-ultra.php');
	pr[7] = new Product('Peritoneal Port', 1, new Array(2,13,17), 'port-peritoneal.php');
	pr[8] = new Product('PowerPort* Implanted Port', 1, new Array(1,2,4,5,6,9,12,14,15), 'port-powerport.php');
	pr[9] = new Product('PowerPort* <i>isp</i> Implanted Port', 1, new Array(1,2,3,4,5,6,9,12,14,15), 'port-powerport-isp.php');	
	pr[10] = new Product('PowerPort* M.R.I.* Implanted Port', 1, new Array(1,2,4,5,6,9,12,14,16), 'port-powerport-mri.php');
	pr[11] = new Product('PowerPort* <i>isp</i> M.R.I.* Implanted Port', 1, new Array(1,2,4,5,6,9,12,14,16), 'port-powerport-isp-mri.php');
	pr[12] = new Product('PowerPort* <i>duo</i> M.R.I.* Implanted Port', 1, new Array(1,2,4,5,6,9,12,14,16), 'port-powerport-duo-mri.php');
	pr[13] = new Product('SlimPort* Dual-Lumen Rosenblatt* Port', 1, new Array(0,2,3,7,8,11,12,13,16,17), 'port-mri-rosen.php');
	pr[14] = new Product('Titanium Dome* Port', 1, new Array(2,5,6,10,12,13,15,17), 'port-ti-dome.php');
	pr[15] = new Product('Titanium Port', 1, new Array(2,5,6,8,9,10,12,13,15,17), 'port-ti-port.php');
	pr[16] = new Product('Titanium Low-Profile Port', 1, new Array(1,2,6,8,9,10,11,12,13,15,17), 'port-ti-low.php');
	pr[17] = new Product('Titanium SlimPort*', 1, new Array('2',9,12,13,15,17), 'port-ti-slim.php');
	pr[18] = new Product('X-Port* <i>duo</i> Port', 1, new Array(1,2,4,7,8,9,10,12,13,16,17), 'port-xport-duo.php');
	pr[19] = new Product('X-Port* Port', 1, new Array(0,2,3,6,12,13,16,17), 'port-xport.php');
	pr[20] = new Product('X-Port* <i>inline</i> Port', 1, new Array(1,2,4,12,13,16,17), 'port-xport-inline.php');
	pr[21] = new Product('X-Port* <i>isp</i> Port', 1, new Array(1,2,4,6,8,9,10,12,13,16,17), 'port-xport-isp.php');
	pr[22] = new Product('Port Access Needles', 0);
	pr[23] = new Product('LiftLoc* Safety Winged Infusion Sets', 1, new Array('17'), 'infusion-liftloc.php');
	pr[24] = new Product('Bard* Winged Infusion Sets', 1, new Array('17'), 'infusion-winged.php');
	pr[25] = new Product('Non-Coring Information', 1, new Array(''), 'bardhuberneedles.php');
	pr[26] = new Product('Introducer Sets', 0);
	pr[27] = new Product('PTFE Peel-Apart Percutaneous Introducers', 1, new Array('18'), 'intro-ptfe-peel.php');
	pr[28] = new Product('MR Information', 0);
	pr[29] = new Product('MR Information', 1, new Array('0'), 'port-mri_info.php');
	NavDiv('ports', 'ports', 141, 183, co, pr, 398, 16);


	/* port menu  */
	var pr = new Array();
	pr[0] = new Product('Ports', 0);
	pr[1] = new Product('Arterial Port', 1, new Array(2,17), 'port-arterial.php');
	pr[2] = new Product('M.R.I.* Dual-Lumen Port', 1, new Array(2,5,7,8,9,10,12,13,16,17), 'port-mri-dual.php');
	pr[3] = new Product('M.R.I.* Hard Base Port', 1, new Array(2,5,6,8,9,10,12,13,16,17), 'port-mri-hard.php');
	pr[4] = new Product('M.R.I.* Port', 1, new Array(2,5,6,8,9,13,16,17), 'port-mri-port.php');
	pr[5] = new Product('M.R.I.* Low-Profile Port', 1, new Array(1,2,6,8,9,10,11,12,13,16,17), 'port-mri-low.php');
	pr[6] = new Product('M.R.I.* Ultra SlimPort*', 1, new Array(0,2,3,6,9,12,13,16,17), 'port-mri-ultra.php');
	pr[7] = new Product('Peritoneal Port', 1, new Array(2,17), 'port-peritoneal.php');
	pr[8] = new Product('PowerPort* Implanted Port', 1, new Array(1,2,4,5,6,9,12,14,15), 'port-powerport.php');
	pr[9] = new Product('PowerPort* <i>isp</i> Implanted Port', 1, new Array(1,2,3,4,5,6,9,12,14,15), 'port-powerport-isp.php');	
	pr[10] = new Product('PowerPort* M.R.I.* Implanted Port', 1, new Array(1,2,4,5,6,9,12,14,16), 'port-powerport-mri.php');
	pr[11] = new Product('PowerPort* <i>isp</i> M.R.I.* Implanted Port', 1, new Array(1,2,4,5,6,9,12,14,16), 'port-powerport-isp-mri.php');
	pr[12] = new Product('PowerPort* <i>duo</i> M.R.I.* Implanted Port', 1, new Array(1,2,4,5,6,9,12,14,16), 'port-powerport-duo-mri.php');
	pr[13] = new Product('SlimPort* Dual-Lumen Rosenblatt* Port', 1, new Array(0,2,3,7,8,11,12,14,16,17), 'port-mri-rosen.php');
	pr[14] = new Product('Titanium Dome* Port', 1, new Array(2,5,6,10,12,14,15,17), 'port-ti-dome.php');
	pr[15] = new Product('Titanium Port', 1, new Array(2,5,6,8,9,10,12,14,15,17), 'port-ti-port.php');
	pr[16] = new Product('Titanium Low-Profile Port', 1, new Array(1,2,6,8,9,10,11,12,14,15,17), 'port-ti-low.php');
	pr[17] = new Product('Titanium SlimPort*', 1, new Array('2',9,12,14,15,17), 'port-ti-slim.php');
	pr[18] = new Product('X-Port* <i>duo</i> Port', 1, new Array(1,2,4,7,8,9,10,12,13,16,17), 'port-xport-duo.php');
	pr[19] = new Product('X-Port* Port', 1, new Array(0,2,3,6,12,16,17), 'port-xport.php');
	pr[20] = new Product('X-Port* <i>inline</i> Port', 1, new Array(1,2,4,12,13,16,17), 'port-xport-inline.php');
	pr[21] = new Product('X-Port* <i>isp</i> Port', 1, new Array(1,2,4,6,8,9,10,12,13,16,17), 'port-xport-isp.php');
	pr[22] = new Product('Port Access Needles', 0);
	pr[23] = new Product('LiftLoc* Safety Winged Infusion Sets', 1, new Array('17'), 'infusion-liftloc.php');
	pr[24] = new Product('Bard* Winged Infusion Sets', 1, new Array('17'), 'infusion-winged.php');
	pr[25] = new Product('Non-Coring Information', 1, new Array(''), 'bardhuberneedles.php');
	pr[26] = new Product('Introducer Sets', 0);
	pr[27] = new Product('PTFE Peel-Apart Percutaneous Introducers', 1, new Array('18'), 'intro-ptfe-peel.php');
	NavDiv('ports', 'ports', 141, 183, co, pr, 398, 16);



	// Feeding Devices
	var co = new Array();
	co[0] = new Condition('Initial Placement Devices', 0);
	co[1] = new Condition('PEG - Ponksy &quot;Pull&quot; Technique', 1,1);
	co[2] = new Condition('PEG - Guidewire &quot;Push&quot; Technique', 1,1);
	co[3] = new Condition('Replacement Devices', 0);
	co[4] = new Condition('Balloon G-Tube', 1,2);
	co[5] = new Condition('Low-Profile Bard Button Replacements', 1,2);
	co[6] = new Condition('Feeding and Decompression Tubes', 0);
	co[7] = new Condition('For use with Bard Button', 1,3);
	co[8] = new Condition('Jejunal Feeding/Gastric Decompression Tube', 0);
	co[9] = new Condition('J-tube - Pull Placement Technique', 1,4);
	co[10] = new Condition('J-tube - Guidewire Placement Technique', 1,4);
	co[11] = new Condition('PEG / J-tube Compatibility Chart', 1,4);
	co[12] = new Condition('Accessories', 0);
	co[13] = new Condition('PEG Cleaning Brushes', 1,5);
	co[14] = new Condition('Stoma Measuring Device', 1,5);
	co[15] = new Condition('Dual-Port Feeding Adaptors', 1,5);

	var pr = new Array();
	pr[0] = new Product('Bard* Button Replacement Gastrostomy Device', 1, new Array(4,6,7), 'feed-button.php');
	pr[1] = new Product('Bard* Jejunal Feeding/Gastric Decompression Tube', 1, new Array(9,10,11), 'feed-jejunal.php');
	pr[2] = new Product('Bard* PEG Cleaning Brush', 1, new Array('12'), 'feed-peg-brush.php');
	pr[3] = new Product('Bard* PEG Feeding Device', 1, new Array(0,1), 'feed-peg.php');
	pr[4] = new Product('Bard* Stoma Measuring Device', 1, new Array('13'), 'feed-stoma.php');
	pr[5] = new Product('Bard* Tri-Funnel Replacement Gastrostomy Tube', 1, new Array('2'), 'feed-trifunnel.php');
	pr[6] = new Product('Dual-Port Feeding Adapter', 1, new Array('14'), 'feed-dual-adapter.php');
	pr[7] = new Product('Catalog', 0);
	pr[8] = new Product('Enteral Feeding Tube Catalog', 1, new Array(), 'pdfs/other/MC-0029-02_Enteral_Feeding_Tube_Catalog_web.pdf');
	NavDiv('feed-dev', 'feed-dev', 141, 183, co, pr);

	// Ultrasound
	var co = new Array();
	co[0] = new Condition('', 0);

	var pr = new Array();
	pr[0] = new Product('Site-Rite* 6 Ultrasound System', 1, new Array('0'), 'ultra-siterite-6.php');
	pr[1] = new Product('Sherlock* II Tip Location System', 1, new Array('1'), 'loc-sherlock.php');
	pr[2] = new Product('Needle Guides', 1, new Array(), 'ultra-siterite-6-needles.php');
	pr[3] = new Product('Probe Covers', 1, new Array(), 'ultra-siterite-6-probe.php');
	pr[4] = new Product('Roll Stand', 1, new Array(), 'ultra-siterite-6-stands.php');
	pr[5] = new Product('Accessories', 1, new Array(), 'ultra-accessories.php');
	pr[6] = new Product('Service and Repair<br><span style="font-weight: normal; font-style: italic">&nbsp; - Site-Rite 2, 3, 4, 5 and 6</span>', 1, new Array(), 'legacy-service-repair.php');
	pr[7] = new Product('Clinical Data Bibliography', 1, new Array(), 'ultra-siterite-bibliography.php');
	NavDiv('ultrasound', 'us-siterite', 141, 183, co, pr);


	// Drainage
	var co = new Array();
	co[0] = new Condition('', 0);
	
	var pr = new Array();
	pr[0] = new Product('Aspira* Pleural Drainage', 1, new Array('0'), 'drainage-aspira.php');
	NavDiv('drainage', 'drainage', 290, 185, co, pr);

	// Procedural Accessories (Introducer Sets / Port Access Needles)
	var co = new Array();
	co[0] = new Condition('Port Access Needles', 0);
	co[1] = new Condition('Safety', 1, 1);
	co[2] = new Condition('Non-Safety', 1, 1);
	co[3] = new Condition('Introducer Sets', 0);
	co[4] = new Condition('PICC Placement', 1,2);
	co[5] = new Condition('Dialysis Placement', 1,2);
	co[6] = new Condition('Catheter Placement', 1,2);
	co[7] = new Condition('Port Placement', 1,2);
	co[8] = new Condition('Splittable Sheath', 1,3);
	co[9] = new Condition('Non-Splittable Sheath', 1,3);
	co[10] = new Condition('Modified Seldinger Technique', 1,4);
	co[11] = new Condition('Seldinger Technique', 1,4);
	co[12] = new Condition('Non-valved', 1,5);
	co[13] = new Condition('Valved', 1,5);
	co[14] = new Condition('Catheter Repair', 0);
	co[15] = new Condition('Polyurethane Catheter', 1);
	co[16] = new Condition('Hickman* 13.5 Fr Dual-Lumen Catheter', 1);
	co[17] = new Condition('Stand-alone Guidewires', 0);
	co[18] = new Condition('Dual-ended with J-tip', 1,6);
	co[19] = new Condition('Single-ended', 1,6);
	co[20] = new Condition('Ultrasound', 0);
	co[21] = new Condition('Procedural Accessories', 1);
	co[22] = new Condition('PICC Placement', 0);
	co[23] = new Condition('Maximal Barrier Kit', 1);

	var pr = new Array();
	pr[0] = new Product('Port Access Needles', 0);
	pr[1] = new Product('LiftLoc* Safety Infusion Set', 1, new Array('0'), 'infusion-liftloc.php');
	pr[2] = new Product('Bard* Winged Infusion Set', 1, new Array('1'), 'infusion-winged.php');
	pr[3] = new Product('Non-Coring Information', 1, new Array(''), 'bardhuberneedles.php');
	pr[4] = new Product('Introducer Sets', 0);
	pr[5] = new Product('MicroEZ* Microintroducer', 1, new Array(2,6,8,10), 'intro-microez.php');
	pr[6] = new Product('RadSTIC* Microintroducer', 1, new Array(2,6,9,10), 'intro-radstic.php');
	pr[7] = new Product('AirGuard* Valved Microintroducer', 1, new Array(3,6,11), 'dial-airguard.php');
	pr[8] = new Product('PTFE Peel-apart Percutaneous Introducer', 1, new Array(3,4,5,6,10), 'intro-ptfe-peel.php');
	pr[9] = new Product('Intro-EZE* Percutaneous Introducer', 1, new Array(4,5,6,10), 'intro-introeze.php');
	pr[10] = new Product('Coaxial Microintroducer', 1, new Array(3,4,5,7,9,10), 'intro-coaxial.php');
	pr[11] = new Product('Safety Excalibur* Introducer', 1, new Array(2,10), 'intro-excalibur.php');
	pr[12] = new Product('Catheter Repair Kit', 0);
	pr[13] = new Product('Polyurethane Catheter', 1, new Array('12'), 'catalog-dialysis.php?procedural=107');
	pr[14] = new Product('Hickman* 13.5 Fr Dual-Lumen Catheter', 1, new Array('13'), 'catalog-cvc.php?accessories=56');
	pr[15] = new Product('Stand-alone Guidewires', 0);
	pr[16] = new Product('Dual-ended with J-tip', 1, new Array('15'), 'catalog-intro.php');
	pr[17] = new Product('Single-ended', 1, new Array('16'), 'catalog-intro.php');
	pr[18] = new Product('Sterile Barriers', 0);
	pr[19] = new Product('Maximal Barrier Kit', 1, new Array('18'), 'acc-max-bar.php');
	pr[20] = new Product('Ultrasound', 0);
	pr[21] = new Product('Needle Guide Kits', 1, new Array('17'), 'ultra-siterite-6-needles.php');
	pr[22] = new Product('Roll Stands', 1, new Array('17'), 'ultra-siterite-6-stands.php');
	pr[23] = new Product('Accessories', 1, new Array('17'), 'ultra-accessories.php');
	pr[24] = new Product('Probe Cover', 1, new Array('17'), 'ultra-siterite-6-probe.php');
	NavDiv('intro-sets', 'intro-sets', 141, 183, co, pr);
}
