var strText1 = document.getElementById("navDiv").innerHTML;
var strNewText1;

var intIndexOfMatch1 = strText1.lastIndexOf("|");

strNewText1 = strText1.slice(0, intIndexOfMatch1);

document.getElementById("navDiv").innerHTML = strNewText1;


////// REMOVE LAST TABLE CELL BORDER-RIGHT ON CATEGORY PAGE

var borderClass = "prodDiv";
var noBorderClass = "prodDivNoBorder";

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}

if(document.getElementById("noLastBorder")){
	
	var tbl = document.getElementById("noLastBorder");
	var row = tbl.rows;
	
	for(r=0;r<row.length;r++){
		
		var c = row[r].cells;
		var l = row[r].cells.length-1;
		//alert(l);
		for(i=0;i<=l;i++){
			if(i!=l){
	
				var blank = c[i].innerHTML;
				
				if(blank.trim()=="&nbsp;"){
					c[i].className = noBorderClass;
				}else{
					c[i].className = borderClass;	
				}
				
			}else{
				c[i].className = noBorderClass;	
				
			}
		}
	}
}

