var tlocate = this.window.location.toString();
//console.log(tlocate.match("staffname"));
var stname = tlocate.indexOf("staffname"+"=");
var nameAnchor = tlocate.substr(stname+10);
//nameAnchor.toUpperCase();
//console.log("nameAnchor in locate :" + nameAnchor);

var staffName;

function linkName(){if (stname){return nameAnchor.toUpperCase()}}
//window.location.href="#linkName()";

//console.log(linkName());

//	console.log("first tlocate = " + tlocate);

	
function whichProd(){
	//window.location.reload(true);
	if (this.tlocate.indexOf("staines")>=0){//equals true
		tlocate = "staines";
		//alert("in carpet");
	}else if (this.tlocate.indexOf("virginia")>=0){//equals true
		tlocate = "virginia";
		//alert("in coffee table");
	}else if (this.tlocate.indexOf("directors")>=0){//equals true
		tlocate = "directors";
//		alert("in directors");
	}
	return tlocate;
}

 sTitleFLetter = whichProd().substring(0,1).toUpperCase();
 sTitleWord = whichProd().substring(1);

document.title = sTitleFLetter + sTitleWord;
