var redirTime = "8000";
var redirURL = "http://www.ncpleasing.com/";
function redirHome() {
self.setTimeout("self.location.href = redirURL;",redirTime);
}



var popdomain="@ncpleasing.com"
var poptail="?subject="+escape("Message from the NCP web");

function gopostal(box) {
var popurl="mailto:";
if (box=="general") popurl=popurl+"cnorton"+popdomain+poptail;
else return;
window.location=popurl;
return;
	}

function show(id) {
        if (document.getElementById) document.getElementById(id).style.display = "block";
        else if (document.layers) document[id].display = "block";
        else if (document.all) document.all[id].style.display = "block";
        return;
}


function hide(id) {
        if (document.getElementById) document.getElementById(id).style.display = "none";
        else if (document.layers) document[id].display = "none";
        else if (document.all) document.all[id].style.display = "none";
        return;
}

function winopen(uri) {
ncpjr=window.open(uri,'ncpjr');
return;
}
function winclose() {
if (ncpjr) {
ncpjr.close();
}
return;
}

document.writeln('<link rel="StyleSheet" href="http://www.ncpleasing.com/css/ncpprint.css" media="print" type="text/css">');


/*
var sw=screen.width;
if (sw<=1024) {
document.writeln('<link rel="StyleSheet" href="css/thinksmall.css" type="text/css">'); 
*/



function largeType(id) {
        if (document.getElementById) {
        document.getElementById(id).style.fontSize = "1em";
        }
//        else if (document.layers) document[id].style.fontSize = "14px";
//        else if (document.all) document.all[id].style.style.fontSize = "14px";
        return;
}

function normalType(id) {
        if (document.getElementById) {
                document.getElementById(id).style.fontSize = ".8em";
}

 //       else if (document.layers) document[id].fontSize = "12px";
 //       else if (document.all) document.all[id].style.fontSize = "12px";
        return;
}

function hiLite(id) {
        if (document.getElementById) {
        document.getElementById(id).style.backgroundColor = "yellow";
        }
//        else if (document.layers) document[id].style.fontSize = "14px";
//        else if (document.all) document.all[id].style.style.fontSize = "14px";
        return;

}

function noLite(id) {
        if (document.getElementById) {
        document.getElementById(id).style.backgroundColor = "white";
        }
//        else if (document.layers) document[id].style.fontSize = "14px";
//        else if (document.all) document.all[id].style.style.fontSize = "14px";
        return;
}


/*
 *
 *  object constructors and code to create dictionaries
 *
 */

var paralist = new Array();
var wordlist = new Array();

function makeParalist() {
  var args = makeParalist.arguments ;
  this.para = new Array(args.length);
  for (var i = 0; i < args.length ; i++)
  {
    this.para[i] = args[i];
    }
  }
  
function makeWordlist() {  
  var args = makeWordlist.arguments ;
  this.word = new Array(args.length);
  for (var i = 0; i < args.length ; i++)
  {
    this.word[i] = args[i];
    }
  }
  
var lastword = "";
 
function emphasize(buzzword) {
  if (lastword != "") {
    for (var i = 0; i < paralist[lastword].para.length ; i++) {
    normalType(paralist[lastword].para[i]);
    }
    for (var i = 0; i < wordlist[lastword].word.length ; i++) {
    noLite(wordlist[lastword].word[i]);
    }
  }
  
  if (buzzword != "Clear Selection") {  
    for (var i = 0; i < paralist[buzzword].para.length ; i++) {
    largeType(paralist[buzzword].para[i]);
    }
    for (var i = 0; i < wordlist[buzzword].word.length ; i++) {
    hiLite(wordlist[buzzword].word[i]);
    }
    lastword = buzzword;
  }

}

function callEmphasize(chosen){
  theword =  document.forms[0].keywords.options[chosen].value;
  emphasize(theword);
  }


function showpicker(){
if (document.getElementById) {
document.getElementById("picker").style.display = "block";
return true;
}
}

paralist["Acceptance"] = new makeParalist("para2a", "para24", "para25c");
wordlist["Acceptance"] = new makeWordlist("acceptance001", "acceptance002", "acceptance003");

paralist["Amendment"] = new makeParalist("para17", "para25k");
wordlist["Amendment"] = new makeWordlist("amendment001", "amendment002");

paralist["Assignment"] = new makeParalist("para15", "para16", "para18d");
wordlist["Assignment"] = new makeWordlist("assignment001", "assignment002", "assignment003");

paralist["Casualty"] = new makeParalist("para6", "para13", "para13a");
wordlist["Casualty"] = new makeWordlist("casualty001", "casualty002", "casualty003");

paralist["Damages"] = new makeParalist("para14", "para19e");
wordlist["Damages"] = new makeWordlist("damages001", "damages002");

paralist["Default"] = new makeParalist("para18","para18f","para19", "para19e", "para20", "para22", "para25c");
wordlist["Default"] = new makeWordlist("default001", "default002", "default003", "default004", "default005", "default006","default007");

paralist["Equipment"] = new makeParalist("para1", "para2a", "para4", "para5", "para6", "para7", "para8", "para9", "para10", "para11", "para12", "para13", "para13a", "para14","para15a","para16", "para17", "para19a", "para19e", "para21", "para24", "para25a", "para25b", "para25g");
wordlist["Equipment"] = new makeWordlist("equipment001", "equipment002", "equipment003", "equipment004", "equipment005", "equipment006","equipment007", "equipment008", "equipment009", "equipment010", "equipment011", "equipment012", "equipment013", "equipment014", "equipment015", "equipment016", "equipment017", "equipment018", "equipment019", "equipment020", "equipment021", "equipment022", "equipment023", "equipment024");

paralist["Expiration"] = new makeParalist("para10");
wordlist["Expiration"] = new makeWordlist("expiration001");

paralist["Fees"] = new makeParalist("para5", "para14", "para19e");
wordlist["Fees"] = new makeWordlist("fees001", "fees002", "fees003");

paralist["Indemnification"] = new makeParalist("para5", "para12", "para14");
wordlist["Indemnification"] = new makeWordlist("indemnification001", "indemnification002", "indemnification003");

paralist["Insurance"] = new makeParalist("para4", "para6", "para24");
wordlist["Insurance"] = new makeWordlist("insurance001", "insurance002", "insurance003");

paralist["Location"] = new makeParalist("para9", "para10");
wordlist["Location"] = new makeWordlist("location001", "location002");

paralist["Maintenance"] = new makeParalist("para4", "para7", "para9", "para13a", "para14");
wordlist["Maintenance"] = new makeWordlist("maintenance001", "maintenance002", "maintenance003", "maintenance004", "maintenance005");

paralist["Net_Lease"] = new makeParalist("para4");
wordlist["Net_Lease"] = new makeWordlist("net_lease001")

paralist["Notice"] = new makeParalist("para2a", "para2b", "para3", "para6", "para9", "para14", "para16", "para17","para18a","para18b", "para19", "para19c", "para22", "para25e");
wordlist["Notice"] = new makeWordlist("notice001", "notice002", "notice003", "notice004", "notice005", "notice006","notice007", "notice008", "notice009", "notice010", "notice011", "notice012", "notice013");

paralist["Obligation"] = new makeParalist("para2a", "para2b", "para4", "para7", "para12", "para13", "para14", "para15a", "para16", "para17", "para20", "para21", "para22", "para25i");
wordlist["Obligation"] = new makeWordlist("obligation001", "obligation002", "obligation003", "obligation004", "obligation005", "obligation006","obligation007", "obligation008", "obligation009", "obligation010", "obligation011", "obligation012", "obligation013", "obligation014");

paralist["Personal_Property"] = new makeParalist("para11");
wordlist["Personal_Property"] = new makeWordlist("personal_property001");

paralist["Property"] = new makeParalist("para5a", "para6", "para8", "para11", "para18d", "para22",  "para24", "para25a", "para25b", "para25c", "para25d", "para25f", "para25g","para25h", "para25i", "para25k");
wordlist["Property"] = new makeWordlist("property001", "property002", "property003", "property004", "property005", "property006");

paralist["Remove"] = new makeParalist("para8", "para9", "para19a");
wordlist["Remove"] = new makeWordlist("remove001", "remove002", "remove003");

paralist["Representation"] = new makeParalist("para18c", "para22");
wordlist["Representation"] = new makeWordlist("representation001", "representation002");

paralist["Return"] = new makeParalist("para10", "para14", "para19");
wordlist["Return"] = new makeWordlist("return001", "return002", "return003");

paralist["Schedule"] = new makeParalist("para1", "para2a", "para2b", "para3", "para4", "para7", "para9", "para10", "para11", "para12a", "para13", "para13a", "para14", "para15a", "para16", "para17","para18a","para18b", "para18c", "para19b", "para19c", "para19e", "para20", "para21", "para22",  "para24", "para25a", "para25b", "para25c", "para25d", "para25f", "para25g","para25h", "para25i", "para25k");
wordlist["Schedule"] = new makeWordlist("schedule001", "schedule002", "schedule003", "schedule004", "schedule005", "schedule006","schedule007", "schedule008", "schedule009", "schedule010", "schedule011", "schedule012", "schedule013", "schedule014", "schedule015", "schedule016", "schedule017", "schedule018", "schedule019", "schedule020", "schedule021", "schedule022", "schedule023", "schedule024", "schedule025", "schedule026", "schedule027", "schedule028", "schedule029", "schedule030", "schedule031", "schedule032", "schedule033", "schedule034", "schedule035");

paralist["Security"] = new makeParalist("para11", "para16", "para17");
wordlist["Security"] = new makeWordlist("security001", "security002", "security003");

paralist["Sublease"] = new makeParalist("para15", "para15a");
wordlist["Sublease"] = new makeWordlist("sublease001", "sublease002");

paralist["Substitution"] = new makeParalist("para1", "para8");
wordlist["Substitution"] = new makeWordlist("substitution001", "substitution002");

paralist["Taxes"] = new makeParalist("para4", "para5", "para5a");
wordlist["Taxes"] = new makeWordlist("taxes001", "taxes002", "taxes003");

paralist["Term"] = new makeParalist("para2", "para2a", "para2b", "para7",  "para10", "para11");
wordlist["Term"] = new makeWordlist("term001", "term002", "term003", "term004", "term005", "term006");

paralist["Termination"] = new makeParalist("para2a", "para2b", "para14", "para19e");
wordlist["Termination"] = new makeWordlist("termination001", "termination002", "termination003", "termination004");

paralist["Title"] = new makeParalist("para11", "para17", "para24");
wordlist["Title"] = new makeWordlist("title001", "title002", "title003");

paralist["UCC"] = new makeParalist("para12a", "para17", "para19d", "para25k");
wordlist["UCC"] = new makeWordlist("UCC001", "UCC002", "UCC003", "UCC004");

paralist["Waiver"] = new makeParalist("para11","para19", "para19e", "para25c");
wordlist["Waiver"] = new makeWordlist("waiver001", "waiver002", "waiver003", "waiver004");

paralist["Warranty"] = new makeParalist("para12", "para18c");
wordlist["Warranty"] = new makeWordlist("warranty001", "warranty002");




