function BSC_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=BSC_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function BSC_showHideLayers() {
  var i,p,v,obj,args=BSC_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=BSC_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function BSC_highlightDeviceRow() {
	var i,p,v,obj,args=BSC_highlightDeviceRow.arguments;
	for (i=0; i<(args.length-1); i+=2) { 
		if ((obj=BSC_findObj(args[i]))!=null) { 
			onClr=args[i+1];
			if (obj.style) { 
				obj.bgColor=onClr
			}
		}
	}
}

function showContent(which) {
	BSC_showHideLayers('layer_sterlingmono','','hide','layer_imagerii','','hide','layer_thruway','','hide','layer_mach1','','hide','layer_amplatz','','hide','layer_hemashield','','hide','layer_cws','','hide','layer_filterwire','','hide','layer_bothstents','','hide','layer_zipwire','','hide')
	BSC_showHideLayers("layer_" + which,'','show')
	BSC_highlightDeviceRow('row_sterlingmono','#ffffff','row_imagerii','#ffffff','row_thruway','#ffffff','row_mach1','#ffffff','row_amplatz','#ffffff','row_hemashield','#ffffff','row_cws','#ffffff','row_filterwire','#ffffff','row_zipwire','#ffffff')
	BSC_highlightDeviceRow("row_" + which,"#ffffe7")
}

function openbscwinxtras(dest){
bscwinxtras = window.open(dest,'bscwinxtras');
setTimeout('bscwinxtras.focus();',250);
return;
}


function winOpen(URL, windowName, width, height, left, top, resizable, location, menubar, scrollbars, status, toolbar, directories){
	var windowFeatures;
	windowFeatures = '';
	if (width != '')
		windowFeatures = windowFeatures+'width='+width+',';
	if (height != '')
		windowFeatures = windowFeatures+'height='+height+',';
	if (left != '')
		windowFeatures = windowFeatures+'height='+height+',';
	if (top != '')
		windowFeatures = windowFeatures+'height='+height+',';
	if (resizable)
		windowFeatures = windowFeatures+'resizable,';
	if (location)
		windowFeatures = windowFeatures+'location,';
	if (menubar)
		windowFeatures = windowFeatures+'menubar,';
	if (scrollbars)
		windowFeatures = windowFeatures+'scrollbars,';
	if (status)
		windowFeatures = windowFeatures+'status,';
	if (toolbar)
		windowFeatures = windowFeatures+'toolbar,';
	if (directories)
		windowFeatures = windowFeatures+'directories,';
	window.open(URL, windowName, windowFeatures);
}

