var brandName = "PHH Mortgage";
var parentBrandName = "PHH Corporation";
function writeParentBrand() {
   document.write(parentBrandName);
}
function writeBrand() {
	document.write(brandName);
}

var tries = 0;

function nav_reselect(theID) {
	if (top.nav && (top.nav.loaded == 1)) { 
		top.nav.cm_selectMe(theID);
	} else {
		//alert("tries: " + tries);
		if (tries < 10) {
			var cmd = "nav_reselect('"+theID+"')";
			setTimeout(cmd,300); 
			tries++;
		} else {
			// give up			
		}
	}
}

function nav_reselectTool(theID) {
	if (top.nav && (top.nav.loaded == 1)) { 
		top.nav.cm_selectTool(theID);
	} else {
		if (tries < 10) {
			var cmd = "nav_reselectTool('"+theID+"')";
			setTimeout(cmd,300); 
			tries++;
		} else {
			// give up
		}
	}
}

function nav_select(theID) {	
	tries = 0;
	
	if (top.nav && (top.nav.loaded == 1)) { 
		top.nav.cm_selectMe(theID);
	} else {
		var cmd = "nav_reselect('"+theID+"')";
		setTimeout(cmd,300); 
	}
}
function nav_selectTool(theID) {
	tries = 0;
	
	if (top.nav && (top.nav.loaded == 1)) { 
		top.nav.cm_selectTool(theID);
	} else {
		var cmd = "nav_reselectTool('"+theID+"')";
		setTimeout(cmd,300); 
	}
}




