// set the protocol for the page this script is being run on
var sitetuners_protocol = 'http';
if (location.protocol == 'https:') {
    sitetuners_protocol='https';
}

var sitetuners_page = sitetuners_getFileName();							// holds current page name
sitetuners_page = document.URL;
// remove 's' from https
if (sitetuners_page.substr(0,5) == 'https') {
	sitetuners_page = 'http'+sitetuners_page.substring(5);
}
// if the page contains /us then strip everything after that
var usLoc = sitetuners_page.indexOf('/us');
if (usLoc != -1) {
	sitetuners_page = sitetuners_page.substring(0, usLoc);
}
// strip everything after the "?"
var questLoc = sitetuners_page.indexOf('?');
if (questLoc != -1) {
	sitetuners_page = sitetuners_page.substring(0, questLoc);
}

function getSitetunersTrans() {
	var sitetuners_allcookies = document.cookie;
	var sitetuners_position = sitetuners_allcookies.indexOf('sitetuners_transaction96');
	if (sitetuners_position != -1) {	// a transaction exists
		// get the transaction and display an image to record the action
		var sitetuners_start = sitetuners_position + 25;
		var sitetuners_end = sitetuners_allcookies.indexOf(';', sitetuners_start);
		if (sitetuners_end == -1) sitetuners_end = sitetuners_allcookies.length;
		var sitetuners_transaction96 = unescape(sitetuners_allcookies.substring(sitetuners_start, sitetuners_end));
		return sitetuners_transaction96;
	} else {
		return '0';
	}
}

function sortNumber(a, b) {
	return a - b;
}

// code to create a masked url - NEEDS TO BE WRITTEN
function split_url(the_url) {
	return(true);
}


function get_link(the_link, the_text, display_it, make_lower, the_level) {
	if (make_lower) {
		the_text = the_text.toLowerCase();
	}
	else {
		// if too long shorten to 35
		var the_length = 26;
		if (the_text.length > 19 && the_level > 2) {
			the_text = the_text.substring(0,15) + '...';
		}
	}
	
	if (display_it) {
		return('<a href="' + the_link + '">' + the_text + '</a>');
	}
	else {
		// FOR NOW RETURN UNMASKED URL - CODE NEEDS TO BE WRITTEN - SEE SITETUNERS
		return('<a href="' + the_link + '">' + the_text + '</a>');
	}
}

function buildCrumbs(page_name, sitemap) {
	// Create the menuing structure
	var page_index = 0;
	if (page_name) {
		for (page_index = 0; page_index < sitemap.length; page_index++) {
			if (sitemap[page_index][0] == page_name) {
				break;
			}
		}
	}
	if (page_index == sitemap.length) {
		page_index = 0;
	}

	var page_level = sitemap[page_index][2];
	var breadcrumbs = '';
	if (sitemap[page_index][4] == 1) {
		breadcrumbs = get_link(sitemap[page_index-1][0], sitemap[page_index-1][1], sitemap[page_index-1][3], 1, page_level);
	}
	else {
		breadcrumbs = get_link(sitemap[page_index][0], sitemap[page_index][1], sitemap[page_index][3], 1, page_level);
	}
	
	for (j = page_index-1; j >= 0; j--) {
		if (sitemap[j][2] < page_level) {
			page_level = sitemap[j][2];
			breadcrumbs = get_link(sitemap[j][0], sitemap[j][1], sitemap[j][3], 1, page_level) + ' > ' + breadcrumbs;
		}
	}
	return (breadcrumbs);
}

function buildMenu(page_name, sitemap) {
	// Create the menuing structure
	var page_index = 0;
	if (page_name) {
		for (page_index = 0; page_index < sitemap.length; page_index++) {
			if (sitemap[page_index][0] == page_name) {
				break;
			}
		}
	}
	if (page_index == sitemap.length) {
		page_index = 0;
	}
	
	var page_id = page_index;
	var open_nav = new Array;
	open_nav[0] = page_id;
	var page_level = sitemap[page_index][2];
	var i = 1;
	for (var j = page_index-1; j >= 0; j--) {
		if (sitemap[j][2] < page_level) {
			page_level = sitemap[j][2];
			open_nav[i] = j;
			i++;
		}
	}
	
	// Create array with all submenus open that should be open
	var final_nav = new Array();
	var k = 0;
	for (i = 0; i < open_nav.length; i++) {
		j = open_nav[i];
		if ((j < (sitemap.length-1)) && (sitemap[j][2] < sitemap[j+1][2])) {
			// add all children
			j++;
			page_level = sitemap[j][2];
			while (j <= (sitemap.length-1) && (sitemap[j][2] >= page_level)) {
				if (sitemap[j][2] == page_level && (page_level != 3 || page_index == j)) {
					final_nav[k] = j;
					k++;
				}
				j++;
			}
		}				
	}
	final_nav[k] = 0;
	final_nav = final_nav.sort(sortNumber);
	
	// workaround
	var j=0;
	var final_nav = new Array();
	for (i=0; i<sitemap.length; i++) {
		if (sitemap[i][2] < 3 || i==page_index) {
			final_nav[j] = i;
			j++;
		}
	}
	final_nav = final_nav.sort(sortNumber);
	
	// build menu structure
	var menu_structure = '';
	page_level = 0;
	if (sitemap.length > 0) {
		for (j = 0; j < final_nav.length; j++) {
			i = final_nav[j];
			if (i == 164) {
				menu_structure += '<br />&nbsp;<strong>Personal</strong><br />';
			}
			if (i == 1 || i == 355 || i == 356 || i == 357) {
				menu_structure += '<br />';
			}
			if (page_level != sitemap[i][2]) {
				page_level = sitemap[i][2];
			}
			menu_structure += '&nbsp;';
			
			if (page_level > 1 && i != 1 && i != 355 && i != 356 && i != 357) {
				for (k = 1; k < page_level; k++) {
					menu_structure += '&nbsp;&nbsp;';
				}
			}
			if (i == page_id) {
				menu_structure += '<b>';
			}
			if (sitemap[i][4] == 0) {
				menu_structure += get_link(sitemap[i][0], sitemap[i][1], sitemap[i][3], 0, page_level);
				if (i == page_id)
					menu_structure += '&nbsp;<font color="red">&#187;</font>';
				menu_structure += '<br />';
			}
			else if (sitemap[i][4] != 2) {
				menu_structure += get_link(sitemap[i-1][0], sitemap[i-1][1], sitemap[i-1][3], 0, page_level);
				if (i == page_id)
					menu_structure += '&nbsp;<font color="red">&#187;</font>';
				menu_structure += '<br />';
			}
			if (i == page_id) {
				menu_structure += '</b>';
			}
			if (i == 1) {
				menu_structure += '<br />&nbsp;<strong>Business</strong><br />';
			}
		}
	}
	return (menu_structure);
}

function sitetuners_setCookie(sitetuners_cookieName, sitetuners_cookieValue, sitetuners_cookieYears) {
	// the following code sets the expiration date for the sitetuners cookies
	// the default is one year if the third argument is not passed

	if (arguments.length == 2) {
		var sitetuners_cookieYears = 1;
	}
		
	var sitetuners_expiration = new Date();
	sitetuners_expiration.setFullYear(sitetuners_expiration.getFullYear() + sitetuners_cookieYears);

	// set the domain this script is running on
	var sitetuners_domain = document.domain;
	if (!sitetuners_domain.match(/^\d+\.\d+\.\d+\.\d+$/)) {
		if (sitetuners_domain.match(/(\..+\..+$)/)) {
			sitetuners_domain = RegExp.$1;
		}
		else {
			sitetuners_domain = '';
		}
	}

	if (sitetuners_domain == '') {
		document.cookie = sitetuners_cookieName + '=' + sitetuners_cookieValue + '; path=/; expires=' + 
			sitetuners_expiration.toGMTString();
	} else {
		document.cookie = sitetuners_cookieName + '=' + sitetuners_cookieValue + '; path=/; expires=' + 
			sitetuners_expiration.toGMTString() + '; domain=' + sitetuners_domain;
	}

	sitetuners_allcookies = document.cookie;
	sitetuners_position = sitetuners_allcookies.indexOf(sitetuners_cookieName);
	if (sitetuners_position != -1) {	// cookie was set
		return true;
	}
	else {
		return false;
	}
}	// end sitetuners_setCookie

function sitetuners_getFileName() {
	var url = document.URL;
	i = url.lastIndexOf('/') + 1;
	j = url.indexOf('#', i);
	k = url.indexOf('?', i);

	if(-1 == j) {j = url.length;}
	if(-1 == k) {k = url.length;}

	return url.substring(i, Math.min(j, k));
}	// end sitetuners_getFileName

function sitetuners_getRecipeCookie(tuneup_id) {
	// check to see if we have a cookie set
	var sitetuners_recipe = '';
	var sitetuners_allcookies = document.cookie;
	var sitetuners_position = sitetuners_allcookies.indexOf('sitetuners_recipe' + tuneup_id + '=');
	if (sitetuners_position != -1) {	// get the cookie
		var sitetuners_start = sitetuners_position + String(tuneup_id).length + 18;
		var sitetuners_end = sitetuners_allcookies.indexOf(';', sitetuners_start);
		if (sitetuners_end == -1) sitetuners_end = sitetuners_allcookies.length;
		sitetuners_recipe = unescape(sitetuners_allcookies.substring(sitetuners_start, sitetuners_end));
	}
	return sitetuners_recipe;
}	// end sitetuners_getRecipeCookie


function sitetuners_getRecipeQueryString(tuneup_id) {
	var sitetuners_value='';
	var sitetuners_query = location.search.substring(1, location.search.length);
	var sitetuners_pairs = sitetuners_query.split('&');
	for(var sitetuners_index = 0; sitetuners_index < sitetuners_pairs.length; sitetuners_index++) {
		sitetuners_position = sitetuners_pairs[sitetuners_index].indexOf('=');							// Look for 'name=value'
		if (sitetuners_position == -1) continue;														// If not found, skip
		var sitetuners_argname = sitetuners_pairs[sitetuners_index].substring(0,sitetuners_position);	// Extract the name
		sitetuners_value = sitetuners_pairs[sitetuners_index].substring(sitetuners_position+1);			// Extract the value
		switch (sitetuners_argname) {
			case 'sitetuners_tuneup':
				if (sitetuners_value == tuneup_id)
					sitetuners_ok = true;
				break;
			case 'sitetuners_recipe':
				if (sitetuners_ok)
					return sitetuners_value;
				break;
			default:
				break;
		}
	}
	return '';
}	// end sitetuners_getRecipeQueryString

// This script is generated automatically based on the tuneup id on the sitetuners server. 
// Having a unique tuneup allows us to run concurrent engagements on a single site.
// NOTE: Allowing multiple tuneups to run requires passing the tuneup id to each function
// This will take some thought as we will need to handle different recipe lengths per tuneup

// The sitetuners_handler function changes any customer specific display issues.
function sitetuners_handler(tuneup_id) {
	switch (tuneup_id) {
		case 96:
			if (sitetuners_exclude96) {
				return;
			}
		
			// if the recipe is still blank then the on-demand javascript did not finish.
			// set the recipe to the default value and save it as a cookie so this user
			// continues to get the original website displayed to them. also delete a 
			// transaction cookie if for some reason one exists in this browser.
			if (sitetuners_recipe96 == '') { 	
				sitetuners_recipe96 = 'Naaaaaaa';
				sitetuners_setCookie('sitetuners_recipe96', sitetuners_recipe96);
				sitetuners_setCookie('sitetuners_transaction96', 'X', -1);
			}
			
			// Parse sitetuners_recipe into variables
			sitetuners96_var01 = sitetuners_recipe96.substr(1,1);
			sitetuners96_var02 = sitetuners_recipe96.substr(2,1);
			sitetuners96_var03 = sitetuners_recipe96.substr(3,1);
			sitetuners96_var04 = sitetuners_recipe96.substr(4,1);
			sitetuners96_var05 = sitetuners_recipe96.substr(5,1);
			sitetuners96_var06 = sitetuners_recipe96.substr(6,1);
			sitetuners96_var07 = sitetuners_recipe96.substr(7,1);
			// user defined site tuning code goes here
	
			// **********************************
			// New javascript version of menuing
			// **********************************
			
			// Note the format of the array
			// 0 - page name
			// 1 - text to show up in menus and breadcrumbs
			// 2 - menu level
			// 3 - indicator on whether or not to display html href or javascript href
			// 4 - indicator if menu item is displayed on breadcrumbs only (for form submitted pages) 1=yes, 0=no
			
			var sitemap = new Array();
			sitemap[0] = ['http://www.ilrg.com/index.html', 'Home', 0, 1, 0];
			sitemap[1] = ['http://www.ilrg.com/forms/index.html', 'Forms', 1, 1, 0];
			sitemap[2] = ['http://www.ilrg.com/forms/st_buyingandselling.html', 'Buying &amp; Selling', 2, 0, 0];
				sitemap[3] = ['http://www.ilrg.com/forms/business-sale.html', 'Agreement to Sell Business', 3, 0, 0];
				sitemap[4] = ['http://www.ilrg.com/forms/sellartwork.html', 'Agreement to Sell Works of Art', 3, 0, 0];
				sitemap[5] = ['http://www.ilrg.com/forms/sellprop.html', 'Agreement to Sell Personal Property', 3, 0, 0];
				sitemap[6] = ['http://www.ilrg.com/forms/billsale.html', 'Bill of Sale of Personal Property (Warranty)', 3, 0, 0];
				sitemap[7] = ['http://www.ilrg.com/forms/billofsale-warranty', 'Bill of Sale of Personal Property (Warranty)', 3, 0, 1];
				sitemap[8] = ['http://www.ilrg.com/forms/billsale-asis.html', 'Bill of Sale of Personal Property (No Warranty)', 3, 0, 0];
				sitemap[9] = ['http://www.ilrg.com/forms/billofsale-asis', 'Bill of Sale of Personal Property (No Warranty)', 3, 0, 1];
				sitemap[10] = ['http://www.ilrg.com/forms/billofsaleboat.html', 'Bill of Sale of Boat/Vessel (Warranty)', 3, 0, 0];
				sitemap[11] = ['http://www.ilrg.com/forms/billofsaleboat-warranty', 'Bill of Sale of Boat/Vessel (Warranty)', 3, 0, 1];
				sitemap[12] = ['http://www.ilrg.com/forms/billofsaleboat-asis.html', 'Bill of Sale of Boat/Vessel (No Warranty)', 3, 0, 0];
				sitemap[13] = ['http://www.ilrg.com/forms/billofsaleboat-asis', 'Bill of Sale of Boat/Vessel (No Warranty)', 3, 0, 1];
				sitemap[14] = ['http://www.ilrg.com/forms/billofsaleauto.html', 'Bill of Sale of Motor Vehicle (Warranty)', 3, 0, 0];
				sitemap[15] = ['http://www.ilrg.com/forms/billofsaleauto-warranty', 'Bill of Sale of Motor Vehicle (Warranty)', 3, 0, 1];
				sitemap[16] = ['http://www.ilrg.com/forms/billofsaleauto-asis.html', 'Bill of Sale of Motor Vehicle (No Warranty)', 3, 0, 0];
				sitemap[17] = ['http://www.ilrg.com/forms/billofsaleauto-asis', 'Bill of Sale of Motor Vehicle (No Warranty)', 3, 0, 1];
				sitemap[18] = ['http://www.ilrg.com/forms/busbillofsale.html', 'Bill of Sale of Business', 3, 0, 0];
				sitemap[19] = ['http://www.ilrg.com/forms/exclusiv.html', 'Exclusive Right to Sell', 3, 0, 0];
				sitemap[20] = ['http://www.ilrg.com/forms/installmentsale.html', 'Installment Sale &amp; Security Agreement', 3, 0, 0];
				sitemap[21] = ['http://www.ilrg.com/forms/listing.html', 'Open Listing Realty Agreement', 3, 0, 0];
				sitemap[22] = ['http://www.ilrg.com/forms/quitclam.html', 'Quitclaim Bill of Sale', 3, 0, 0];
				sitemap[23] = ['http://www.ilrg.com/forms/quitdeed.html', 'Quitclaim Deed', 3, 0, 0];
				sitemap[24] = ['http://www.ilrg.com/forms/saleofgoods.html', 'Sale of Goods Agreement', 3, 0, 0];
				sitemap[25] = ['http://www.ilrg.com/forms/wrntybil.html', 'Warranty Bill of Sale', 3, 0, 0];
				sitemap[26] = ['http://www.ilrg.com/forms/wrntdeed.html', 'Warranty Deed', 3, 0, 0];
				sitemap[27] = ['http://www.ilrg.com/forms/warrantydeed-vendorslien.html', 'Warranty Deed with Vendor\'s Lien', 3, 0, 0];
				sitemap[28] = ['http://www.ilrg.com/forms/delivdem.html', 'Demand of Delivery', 3, 0, 0];
				sitemap[29] = ['http://www.ilrg.com/forms/cod_term.html', 'Notice of C.O.D. Terms', 3, 0, 0];
				sitemap[30] = ['http://www.ilrg.com/forms/defect.html', 'Product Defect Notice', 3, 0, 0];			
			sitemap[31] = ['http://www.ilrg.com/forms/st_borrowingandlending.html', 'Borrowing &amp; Lending', 2, 0, 0];
				sitemap[32] = ['http://www.ilrg.com/forms/balloon.html', 'Balloon Note', 3, 0, 0];
				sitemap[33] = ['http://www.ilrg.com/forms/consloan.html', 'Consumer Loan Agreement', 3, 0, 0];
				sitemap[34] = ['http://www.ilrg.com/forms/demand.html', 'Demand Note', 3, 0, 0];
				sitemap[35] = ['http://www.ilrg.com/forms/demndpro.html', 'Demand Promissory Note', 3, 0, 0];
				sitemap[36] = ['http://www.ilrg.com/forms/guaranty.html', 'Guaranty', 3, 0, 0];
				sitemap[37] = ['http://www.ilrg.com/forms/notdeflt.html', 'Notice of Default in Payment', 3, 0, 0];
				sitemap[38] = ['http://www.ilrg.com/forms/plgstock.html', 'Pledge of Shares of Stock', 3, 0, 0];
				sitemap[39] = ['http://www.ilrg.com/forms/promisry.html', 'Promissory Installment Note', 3, 0, 0];
				sitemap[40] = ['http://www.ilrg.com/forms/promnote', 'Promissory Installment Note', 3, 0, 1];
				sitemap[41] = ['http://www.ilrg.com/forms/promnote-balloon.html', 'Promissory Installment Note (w/Balloon Payment)', 3, 0, 0];			
				sitemap[42] = ['http://www.ilrg.com/forms/promnote-balloon', 'Promissory Installment Note (w/Balloon Payment)', 3, 0, 1];
				sitemap[43] = ['http://www.ilrg.com/forms/receipt.html', 'Receipt', 3, 0, 0];
				sitemap[44] = ['http://www.ilrg.com/forms/securityagree.html', 'Security Agreement', 3, 0, 0];
			sitemap[45] = ['http://www.ilrg.com/forms/st_businessventures.html', 'Business Ventures', 2, 0, 0];
				sitemap[46] = ['http://www.ilrg.com/forms/agreemnt.html', 'General Agreement', 3, 0, 0];
				sitemap[47] = ['http://www.ilrg.com/forms/salesrep.html', 'Sales Representative Agreement', 3, 0, 0];
				sitemap[48] = ['http://www.ilrg.com/forms/adagency.html', 'Advertising Agency Agreement', 3, 0, 0];
				sitemap[49] = ['http://www.ilrg.com/forms/vfictname.html', 'Conduct of Business Under Fictitious Name', 3, 0, 0];
				sitemap[50] = ['http://www.ilrg.com/forms/jointventure.html', 'Joint Venture Agreement', 3, 0, 0];
				sitemap[51] = ['http://www.ilrg.com/forms/llc-articlesorg.html', 'Articles of Organization', 3, 0, 0];
				sitemap[52] = ['http://www.ilrg.com/forms/llc-articlesorg', 'Articles of Organization', 3, 0, 1];
				sitemap[53] = ['http://www.ilrg.com/forms/llc-opag-man.html', 'Operating Agreement (Manager-Managed)', 3, 0, 0];
				sitemap[54] = ['http://www.ilrg.com/forms/llc-opag-man', 'Operating Agreement (Manager-Managed)', 3, 0, 1];
				sitemap[55] = ['http://www.ilrg.com/forms/llc-opag-mem.html', 'Operating Agreement (Member-Managed)', 3, 0, 0];
				sitemap[56] = ['http://www.ilrg.com/forms/llc-opag-mem', 'Operating Agreement (Member-Managed)', 3, 0, 1];
				sitemap[57] = ['http://www.ilrg.com/forms/partnership-agreement.html', 'Partnership Agreement', 3, 0, 0];
				sitemap[58] = ['http://www.ilrg.com/forms/property-mgmt.html', 'Property Management Agreement', 3, 0, 0];			
			sitemap[59] = ['http://www.ilrg.com/forms/st_creditandcollection.html', 'Credit &amp; Collection', 2, 0, 0];
				sitemap[60] = ['http://www.ilrg.com/forms/credauth.html', 'Authorization to Release Credit Information', 3, 0, 0];
				sitemap[61] = ['http://www.ilrg.com/forms/credinfo.html', 'Credit Information Request', 3, 0, 0];
				sitemap[62] = ['http://www.ilrg.com/forms/paydemnd.html', 'Demand for Payment', 3, 0, 0];
				sitemap[63] = ['http://www.ilrg.com/forms/dispacct.html', 'Disputed Account Settlement', 3, 0, 0];
				sitemap[64] = ['http://www.ilrg.com/forms/linecreditprom.html', 'Line of Credit Promissory Note', 3, 0, 0];
				sitemap[65] = ['http://www.ilrg.com/forms/authreqt.html', 'Requesting Authorization to Release Credit', 3, 0, 0];
				sitemap[66] = ['http://www.ilrg.com/forms/corcredt.html', 'Notice to Correct Credit', 3, 0, 0];
				sitemap[67] = ['http://www.ilrg.com/forms/stopcred.html', 'Notice to Stop Credit Charge', 3, 0, 0];
				sitemap[68] = ['http://www.ilrg.com/forms/refreqst.html', 'Request for Reference', 3, 0, 0];
			sitemap[69] = ['http://www.ilrg.com/forms/st_employment.html', 'Employment', 2, 0, 0];
				sitemap[70] = ['http://www.ilrg.com/forms/applicant-release.html', 'Applicant Information Release', 3, 0, 0];
				sitemap[71] = ['http://www.ilrg.com/forms/employmentapp.html', 'Application for Employment', 3, 0, 0];
				sitemap[72] = ['http://www.ilrg.com/forms/assignpre-emp.html', 'Assignment of Pre-Employment Works', 3, 0, 0];

				sitemap[73] = ['http://www.ilrg.com/forms/commission.html', 'Commission Agreement for Independent Contractor', 3, 0, 0];
				sitemap[74] = ['http://www.ilrg.com/forms/commission', 'Commission Agreement for Independent Contractor', 3, 0, 1];
				sitemap[75] = ['http://www.ilrg.com/forms/commission-indem.html', 'Commission Agreement with Indemnity Clause', 3, 0, 0];
				sitemap[76] = ['http://www.ilrg.com/forms/commission-indem', 'Commission Agreement with Indemnity Clause', 3, 0, 1];

				sitemap[77] = ['http://www.ilrg.com/forms/contrctr.html', 'Contractor Agreement', 3, 0, 0];
				sitemap[78] = ['http://www.ilrg.com/forms/nocompet.html', 'Employee Non-Compete Agreement', 3, 0, 0];
				sitemap[79] = ['http://www.ilrg.com/forms/non-disc.html', 'Employee Non-Disclosure Agreement', 3, 0, 0];
				
				sitemap[80] = ['http://www.ilrg.com/forms/employ-confid-st.html', 'Employee Confidentiality, Non-Compete', 3, 0, 0];
				sitemap[81] = ['http://www.ilrg.com/forms/employ-confid', 'Employee Confidentiality, Non-Compete', 3, 0, 1];
				
				sitemap[82] = ['http://www.ilrg.com/forms/employmt.html', 'Employment Agreement', 3, 0, 0];
				sitemap[83] = ['http://www.ilrg.com/forms/employ-release.html', 'Employment Separation Agreement', 3, 0, 0];
				sitemap[84] = ['http://www.ilrg.com/forms/indep-contractor.html', 'Independent Contractor Agreement', 3, 0, 0];

				sitemap[85] = ['http://www.ilrg.com/forms/independent-contractor-addendum.html', 'Independent Contractor Non-Compete Agreement Addendum', 3, 0, 0];

				sitemap[86] = ['http://www.ilrg.com/forms/telecommuting.html', 'Telecommuting Agreement', 3, 0, 0];
				sitemap[87] = ['http://www.ilrg.com/forms/discipln.html', 'Disciplinary Notice', 3, 0, 0];
				sitemap[88] = ['http://www.ilrg.com/forms/drugtest.html', 'Consent for Drug/Alcohol Testing', 3, 0, 0];
				sitemap[89] = ['http://www.ilrg.com/forms/dismisal.html', 'Notice of Dismissal', 3, 0, 0];
				sitemap[90] = ['http://www.ilrg.com/forms/terminat.html', 'Notice of Termination Due to Work Rules Violation', 3, 0, 0];
				sitemap[91] = ['http://www.ilrg.com/forms/payrlded.html', 'Payroll Deduction Authorization', 3, 0, 0];
				sitemap[92] = ['http://www.ilrg.com/forms/deposit.html', 'Direct Deposit Authorization', 3, 0, 0];
				sitemap[93] = ['http://www.ilrg.com/forms/polygraf.html', 'Polygraph Consent', 3, 0, 0];
				sitemap[94] = ['http://www.ilrg.com/forms/employ-warning.html', 'Warning for Unsatisfactory Performance', 3, 0, 0];
				sitemap[95] = ['http://www.ilrg.com/forms/acuerdo-de-contratista-independiente.html', 'Independent Contractor Agreement (Spanish Translation)', 3, 0, 0];

			sitemap[96] = ['http://www.ilrg.com/forms/st_leasesandrealestate.html', 'Leases &amp; Real Estate', 2, 0, 0];
				sitemap[97] = ['http://www.ilrg.com/forms/lease.html', 'Agreement to Lease (Residential Lease)', 3, 0, 0];
				sitemap[98] = ['http://www.ilrg.com/forms/lease-res', 'Agreement to Lease (Residential Lease)', 3, 0, 1];
				sitemap[99] = ['http://www.ilrg.com/forms/commleas.html', 'Agreement to Lease (Commercial Lease)', 3, 0, 0];
				sitemap[100] = ['http://www.ilrg.com/forms/lease-comm', 'Agreement to Lease (Commercial Lease)', 3, 0, 1];
				sitemap[101] = ['http://www.ilrg.com/forms/equiplease.html', 'Agreement to Lease (Equipment Lease) (w/Warranty)', 3, 0, 0];
				sitemap[102] = ['http://www.ilrg.com/forms/lease-equip-warranty', 'Agreement to Lease (Equipment Lease) (w/Warranty)', 3, 0, 1];
				sitemap[103] = ['http://www.ilrg.com/forms/lease-equip-asis.html', 'Agreement to Lease (Equipment Lease) (Limited Warranty)', 3, 0, 0];
				sitemap[104] = ['http://www.ilrg.com/forms/lease-equip-asis', 'Agreement to Lease (Equipment Lease) (Limited Warranty)', 3, 0, 1];

				sitemap[105] = ['http://www.ilrg.com/forms/lease-res-ext.html', 'Agreement to Extend Lease (Residential Lease)', 3, 0, 0];
				sitemap[106] = ['http://www.ilrg.com/forms/lease-com-ext.html', 'Agreement to Extend Lease (Commercial Lease)', 3, 0, 0];

				sitemap[107] = ['http://www.ilrg.com/forms/sublease.html', 'Agreement to Sublease/Sublet', 3, 0, 0];
				sitemap[108] = ['http://www.ilrg.com/forms/sublease', 'Agreement to Sublease/Sublet', 3, 0, 1];

				sitemap[109] = ['http://www.ilrg.com/forms/realestate-lead-rental.html', 'Lead-Based Paint Disclosure Statement (Rental)', 3, 0, 0];
				sitemap[110] = ['http://www.ilrg.com/forms/lease-personal.html', 'Lease of Personal Property', 3, 0, 0];
				sitemap[111] = ['http://www.ilrg.com/forms/lease-to-purchase.html', 'Lease to Purchase Option Agreement', 3, 0, 0];				
				sitemap[112] = ['http://www.ilrg.com/forms/listing.html', 'Open Listing Realty Agreement', 3, 0, 0];							
				sitemap[113] = ['http://www.ilrg.com/forms/exoption.html', 'Tenant\'s Notice to Exercise Purchase Option', 3, 0, 0];
				sitemap[114] = ['http://www.ilrg.com/forms/vacate.html', 'Landlord\'s Notice to Vacate', 3, 0, 0];
				sitemap[115] = ['http://www.ilrg.com/forms/rental-checklist.html', 'Rental Property Inspection Checklist', 3, 0, 0];
				sitemap[116] = ['http://www.ilrg.com/forms/reslease-guaranty.html', 'Residential Lease Guaranty & Guarantor Application', 3, 0, 0];
				sitemap[117] = ['http://www.ilrg.com/forms/rentlapp.html', 'Residential Rental Application', 3, 0, 0];
				sitemap[118] = ['http://www.ilrg.com/forms/rentlapp-alt.html', 'Residential Rental Application', 3, 0, 0];
				sitemap[119] = ['http://www.ilrg.com/forms/threeday.html', 'Notice to Vacate for Non-Payment of Rent', 3, 0, 0];
				sitemap[120] = ['http://www.ilrg.com/forms/deedoftrust.html', 'Deed of Trust', 3, 0, 0];
				sitemap[121] = ['http://www.ilrg.com/forms/grantdeed.html', 'Grant Deed', 3, 0, 0];
				sitemap[122] = ['http://www.ilrg.com/forms/realestate-lead-sales.html', 'Lead-Based Paint Disclosure Statement (Sales)', 3, 0, 0];
				sitemap[123] = ['http://www.ilrg.com/forms/mortdeed.html', 'Mortgage Deed', 3, 0, 0];
				sitemap[124] = ['http://www.ilrg.com/forms/quitclam.html', 'Quitclaim Bill of Sale', 3, 0, 0];
				sitemap[125] = ['http://www.ilrg.com/forms/quitdeed.html', 'Quitclaim Deed', 3, 0, 0];
				sitemap[126] = ['http://www.ilrg.com/forms/realestate-purchase-co.html', 'Real Estate Purchase Contract (Condominium)', 3, 0, 0];
				sitemap[127] = ['http://www.ilrg.com/forms/realestate-purchase-fr.html', 'Real Estate Purchase Contract (Farm and Ranch)', 3, 0, 0];
				sitemap[128] = ['http://www.ilrg.com/forms/realestate-purchase.html', 'Real Estate Purchase Contract (Residential)', 3, 0, 0];
				sitemap[129] = ['http://www.ilrg.com/forms/realestate-purchase-up.html', 'Real Estate Purchase Contract (Unimproved Property)', 3, 0, 0];
				sitemap[130] = ['http://www.ilrg.com/forms/realestate-addendum-backup.html', 'Real Estate Purchase Contract Addendum: Back-Up Contract', 3, 0, 0];
				sitemap[131] = ['http://www.ilrg.com/forms/realestate-sellerdisc.html', 'Seller\'s Disclosure of Property Condition', 3, 0, 0];
				sitemap[132] = ['http://www.ilrg.com/forms/lease-temp-purchaser.html', 'Temporary Residential Lease (Occupied by Purchaser)', 3, 0, 0];
				sitemap[133] = ['http://www.ilrg.com/forms/lease-temp-seller.html', 'Temporary Residential Lease (Occupied by Seller)', 3, 0, 0];
				sitemap[134] = ['http://www.ilrg.com/forms/wrntybil.html', 'Warranty Bill of Sale', 3, 0, 0];
				sitemap[135] = ['http://www.ilrg.com/forms/wrntdeed.html', 'Warranty Deed', 3, 0, 0];
				sitemap[136] = ['http://www.ilrg.com/forms/warrantydeed-debt.html', 'Warranty Deed Subject to Debt', 3, 0, 0];
				sitemap[137] = ['http://www.ilrg.com/forms/warrantydeed-vendorslien.html', 'Warranty Deed with Vendor\'s Lien', 3, 0, 0];
				sitemap[138] = ['http://www.ilrg.com/forms/reslease.html', 'Agreement to Lease - Residential Lease Short Form', 3, 0, 0];
			sitemap[139] = ['http://www.ilrg.com/forms/st_protectionoflegalrights.html', 'Protection of Rights', 2, 0, 0];
				sitemap[140] = ['http://www.ilrg.com/forms/affidavt.html', 'Affidavit (General)', 3, 0, 0];
				sitemap[141] = ['http://www.ilrg.com/forms/affidavit-gen', 'Affidavit (General)', 3, 0, 1];
				sitemap[142] = ['http://www.ilrg.com/forms/badcheck.html', 'Bad Check Notice Form', 3, 0, 0];
				sitemap[143] = ['http://www.ilrg.com/forms/clamlien.html', 'Claim of Lien Form', 3, 0, 0];
				sitemap[144] = ['http://www.ilrg.com/forms/confidagree.html', 'Confidentiality Agreement', 3, 0, 0];
				sitemap[145] = ['http://www.ilrg.com/forms/nototsue.html', 'Covenant Not to Sue', 3, 0, 0];
				sitemap[146] = ['http://www.ilrg.com/forms/finalnot.html', 'Final Notice Before Legal Action', 3, 0, 0];
				sitemap[147] = ['http://www.ilrg.com/forms/release.html', 'General Release', 3, 0, 0];
				sitemap[148] = ['http://www.ilrg.com/forms/indemnit.html', 'Indemnity Agreement', 3, 0, 0];
				sitemap[149] = ['http://www.ilrg.com/forms/recission-mutual.html', 'Mutual Recission of Contract', 3, 0, 0];
				sitemap[150] = ['http://www.ilrg.com/forms/mutualrelease.html', 'Mutual Release', 3, 0, 0];
				sitemap[151] = ['http://www.ilrg.com/forms/indvrele.html', 'Release -- Individual ', 3, 0, 0];
				sitemap[152] = ['http://www.ilrg.com/forms/mortrele.html', 'Release -- Mortgage', 3, 0, 0];
				sitemap[153] = ['http://www.ilrg.com/forms/foia_req.html', 'Request Under Freedom of Information Act', 3, 0, 0];
				sitemap[154] = ['http://www.ilrg.com/forms/acuerdo-de-confidencialidad.html', 'Confidentiality Agreement (Spanish Translation) - Acuerdo de Confidencialidad', 3, 0, 0];

			sitemap[155] = ['http://www.ilrg.com/forms/st_transfersandassignments.html', 'Transfers &amp; Assigns', 2, 0, 0];
				sitemap[156] = ['http://www.ilrg.com/forms/assnasts.html', 'Assignment of Assets', 3, 0, 0];
				sitemap[157] = ['http://www.ilrg.com/forms/assgncon.html', 'Assignment of Contract', 3, 0, 0];
				sitemap[158] = ['http://www.ilrg.com/forms/insassgn.html', 'Assignment of Insurance Policy', 3, 0, 0];
				sitemap[159] = ['http://www.ilrg.com/forms/mrtassgn.html', 'Assignment of Mortgage', 3, 0, 0];
				sitemap[160] = ['http://www.ilrg.com/forms/assign-oilgas.html', 'Assignment of Oil and Gas Lease', 3, 0, 0];
				sitemap[161] = ['http://www.ilrg.com/forms/consassn.html', 'Consent of Assignment', 3, 0, 0];
				sitemap[162] = ['http://www.ilrg.com/forms/genassgn.html', 'General Assignment', 3, 0, 0];
				sitemap[163] = ['http://www.ilrg.com/forms/notassgn.html', 'Notice of Assignment', 3, 0, 0];
			sitemap[164] = ['http://www.ilrg.com/forms/st_estateplanning.html', 'Estate Planning', 2, 0, 0];
				sitemap[165] = ['http://www.ilrg.com/forms/lastwill-married-ac.html', 'Last Will (Married with Adult Children)', 3, 0, 0];
				sitemap[166] = ['http://www.ilrg.com/forms/lastwill-married-ac', 'Last Will (Married with Adult Children)', 3, 0, 1];
				sitemap[167] = ['http://www.ilrg.com/forms/lastwill.html', 'Last Will (Married with Minor Children)', 3, 0, 0];
				sitemap[168] = ['http://www.ilrg.com/forms/lastwill-married', 'Last Will (Married with Minor Children)', 3, 0, 1];
				sitemap[169] = ['http://www.ilrg.com/forms/lastwill-married-nc.html', 'Last Will (Married with No Children)', 3, 0, 0];
				sitemap[170] = ['http://www.ilrg.com/forms/lastwill-married-nc', 'Last Will (Married with No Children)', 3, 0, 1];
				sitemap[171] = ['http://www.ilrg.com/forms/lastwill-single-ac.html', 'Last Will (Single with Adult Children)', 3, 0, 0];
				sitemap[172] = ['http://www.ilrg.com/forms/lastwill-single-ac', 'Last Will (Single with Adult Children)', 3, 0, 1];
				sitemap[173] = ['http://www.ilrg.com/forms/lastwill-single-mc.html', 'Last Will (Single with Minor Children)', 3, 0, 0];
				sitemap[174] = ['http://www.ilrg.com/forms/lastwill-single-mc', 'Last Will (Single with Minor Children)', 3, 0, 1];
				sitemap[175] = ['http://www.ilrg.com/forms/lastwill-single-mc-tr.html', 'Last Will (Single with Minor Children - Includes Trust)', 3, 0, 0];
				sitemap[176] = ['http://www.ilrg.com/forms/lastwill-single-mc-tr', 'Last Will (Single with Minor Children - Includes Trust)', 3, 0, 1];
				sitemap[177] = ['http://www.ilrg.com/forms/lastwill-single2.html', 'Last Will (Single with No Children)', 3, 0, 0];
				sitemap[178] = ['http://www.ilrg.com/forms/lastwill-single', 'Last Will (Single with No Children)', 3, 0, 1];
				sitemap[179] = ['http://www.ilrg.com/forms/irrev-trust.html', 'Irrevocable Trust Agreement', 3, 0, 0];
				sitemap[180] = ['http://www.ilrg.com/forms/trustrev.html', 'Revocable Living Trust', 3, 0, 0];
				sitemap[181] = ['http://www.ilrg.com/forms/trustrev-premium.html', 'Revocable Living Trust (Premium Version)', 3, 0, 0];
				sitemap[182] = ['http://www.ilrg.com/forms/trustrev-ab-premium.html', 'AB Revocable Living Trust (Premium Version)', 3, 0, 0];
				sitemap[183] = ['http://www.ilrg.com/forms/trustrev-marital-premium.html', 'Shared/Marital Revocable Living Trust (Premium Version)', 3, 0, 0];
			sitemap[184] = ['http://www.ilrg.com/forms/st_maritalandfamily.html', 'Marital &amp; Family', 2, 0, 0];
				sitemap[185] = ['http://www.ilrg.com/forms/auth-foreigntravel.html', 'Authorization for Foreign Travel with Minor', 3, 0, 0];
				sitemap[186] = ['http://www.ilrg.com/forms/auth-minormed.html', 'Authorization for Minor\'s Medical Treatment', 3, 0, 0];
				sitemap[187] = ['http://www.ilrg.com/forms/auth-tempguardian.html', 'Authorization for Temporary Guardianship of Minor', 3, 0, 0];
				sitemap[188] = ['http://www.ilrg.com/forms/childcustody.html', 'Child Custody and Visitation Agreement', 3, 0, 0];
				sitemap[189] = ['http://www.ilrg.com/forms/parent-consent-surgery.html', 'Consent of Parent for Surgery for Minor', 3, 0, 0];
				sitemap[190] = ['http://www.ilrg.com/forms/divorce-mc.html', 'Divorce (No-Fault, Minor Children)', 3, 0, 0];
				sitemap[191] = ['http://www.ilrg.com/forms/divorce-mc', 'Divorce (No-Fault, Minor Children)', 3, 0, 1];
				sitemap[192] = ['http://www.ilrg.com/forms/divorce-nc.html', 'Divorce (No-Fault, No Children)', 3, 0, 0];
				sitemap[193] = ['http://www.ilrg.com/forms/divorce-nc', 'Divorce (No-Fault, No Children)', 3, 0, 1];
				sitemap[194] = ['http://www.ilrg.com/forms/divorce-mc-setag.html', 'Divorce - Marital Settlement Agreement (Minor Children)', 3, 0, 0];
				sitemap[195] = ['http://www.ilrg.com/forms/divorce-mc-setag', 'Divorce - Marital Settlement Agreement (Minor Children)', 3, 0, 1];
				sitemap[196] = ['http://www.ilrg.com/forms/divorce-nc-setag.html', 'Divorce - Marital Settlement Agreement (No Children)', 3, 0, 0];
				sitemap[197] = ['http://www.ilrg.com/forms/divorce-nc-setag', 'Divorce - Marital Settlement Agreement (No Children)', 3, 0, 1];
				
				sitemap[198] = ['http://www.ilrg.com/forms/divorce-nf-mc-al-judgment.html', 'Divorce - Decree Alabama (Minor Children)', 3, 0, 0];
				sitemap[199] = ['http://www.ilrg.com/forms/divorce-nf-mc-az-decree.html', 'Divorce - Decree Arizona (Minor Children)', 3, 0, 0];
				sitemap[200] = ['http://www.ilrg.com/forms/divorce-nf-mc-ar-decree.html', 'Divorce - Decree Arkansas (Minor Children)', 3, 0, 0];
				sitemap[201] = ['http://www.ilrg.com/forms/divorce-nf-mc-id-decree.html', 'Divorce - Decree Idaho (Minor Children)', 3, 0, 0];
				sitemap[202] = ['http://www.ilrg.com/forms/divorce-nf-mc-il-judgment.html', 'Divorce - Decree Illinois (Minor Children)', 3, 0, 0];
				sitemap[203] = ['http://www.ilrg.com/forms/divorce-nf-mc-ia-decree.html', 'Divorce - Decree Iowa (Minor Children)', 3, 0, 0];
				sitemap[204] = ['http://www.ilrg.com/forms/divorce-nf-mc-mi-jdgmt.html', 'Divorce - Decree Michigan (Minor Children)', 3, 0, 0];
				sitemap[205] = ['http://www.ilrg.com/forms/divorce-nf-mc-ms-jdgmt.html', 'Divorce - Decree Mississippi (Minor Children)', 3, 0, 0];
				sitemap[206] = ['http://www.ilrg.com/forms/divorce-nf-mc-mo-decree.html', 'Divorce - Decree Missouri (Minor Children)', 3, 0, 0];
				sitemap[207] = ['http://www.ilrg.com/forms/divorce-nf-mc-nv-decree.html', 'Divorce - Decree Nevada (Minor Children)', 3, 0, 0];
				sitemap[208] = ['http://www.ilrg.com/forms/divorce-nf-mc-nm-decree.html', 'Divorce - Decree New Mexico (Minor Children)', 3, 0, 0];
				sitemap[209] = ['http://www.ilrg.com/forms/divorce-nf-mc-ny-judgment.html', 'Divorce - Decree New York (Minor Children)', 3, 0, 0];
				sitemap[210] = ['http://www.ilrg.com/forms/divorce-nf-mc-nc-decree.html', 'Divorce - Decree North Carolina (Minor Children)', 3, 0, 0];
				sitemap[211] = ['http://www.ilrg.com/forms/divorce-nf-mc-oh-decree.html', 'Divorce - Decree Ohio (Minor Children)', 3, 0, 0];
				sitemap[212] = ['http://www.ilrg.com/forms/divorce-nf-mc-ok-decree.html', 'Divorce - Decree Oklahoma (Minor Children)', 3, 0, 0];
				sitemap[213] = ['http://www.ilrg.com/forms/divorce-nf-mc-tx-decree.html', 'Divorce - Decree Texas (Minor Children)', 3, 0, 0];
				sitemap[214] = ['http://www.ilrg.com/forms/divorce-nf-mc-ut-decree.html', 'Divorce - Decree Utah (Minor Children)', 3, 0, 0];
				sitemap[215] = ['http://www.ilrg.com/forms/divorce-nf-mc-va-decree.html', 'Divorce - Decree Virginia (Minor Children)', 3, 0, 0];
				sitemap[216] = ['http://www.ilrg.com/forms/divorce-nf-mc-wi-judgment.html', 'Divorce - Decree Wisconsin (Minor Children)', 3, 0, 0];

				sitemap[217] = ['http://www.ilrg.com/forms/divorce-nf-nc-al-judgment.html', 'Divorce - Decree Alabama (No Children)', 3, 0, 0];
				sitemap[218] = ['http://www.ilrg.com/forms/divorce-nf-nc-az-decree.html', 'Divorce - Decree Arizona (No Children)', 3, 0, 0];
				sitemap[219] = ['http://www.ilrg.com/forms/divorce-nf-nc-ar-decree.html', 'Divorce - Decree Arkansas (No Children)', 3, 0, 0];
				sitemap[220] = ['http://www.ilrg.com/forms/divorce-nf-nc-id-decree.html', 'Divorce - Decree Idaho (No Children)', 3, 0, 0];
				sitemap[221] = ['http://www.ilrg.com/forms/divorce-nf-nc-il-judgment.html', 'Divorce - Decree Illinois (No Children)', 3, 0, 0];
				sitemap[222] = ['http://www.ilrg.com/forms/divorce-nf-nc-ia-decree.html', 'Divorce - Decree Iowa (No Children)', 3, 0, 0];
				sitemap[223] = ['http://www.ilrg.com/forms/divorce-nf-nc-ky-decree.html', 'Divorce - Decree Kentucky (No Children)', 3, 0, 0];
				sitemap[224] = ['http://www.ilrg.com/forms/divorce-nf-nc-mi-jdgmt.html', 'Divorce - Decree Michigan (No Children)', 3, 0, 0];
				sitemap[225] = ['http://www.ilrg.com/forms/divorce-nf-nc-ms-jdgmt.html', 'Divorce - Decree Mississippi (No Children)', 3, 0, 0];
				sitemap[226] = ['http://www.ilrg.com/forms/divorce-nf-nc-mo-decree.html', 'Divorce - Decree Missouri (No Children)', 3, 0, 0];
				sitemap[227] = ['http://www.ilrg.com/forms/divorce-nf-nc-ne-decree.html', 'Divorce - Decree Nebraska (No Children)', 3, 0, 0];
				sitemap[228] = ['http://www.ilrg.com/forms/divorce-nf-nc-nv-decree.html', 'Divorce - Decree Nevada (No Children)', 3, 0, 0];
				sitemap[229] = ['http://www.ilrg.com/forms/divorce-nf-nc-nj-decree.html', 'Divorce - Decree New Jersey (No Children)', 3, 0, 0];
				sitemap[230] = ['http://www.ilrg.com/forms/divorce-nf-nc-nm-decree.html', 'Divorce - Decree New Mexico (No Children)', 3, 0, 0];
				sitemap[231] = ['http://www.ilrg.com/forms/divorce-nf-nc-ny-judgment.html', 'Divorce - Decree New York (No Children)', 3, 0, 0];
				sitemap[232] = ['http://www.ilrg.com/forms/divorce-nf-nc-nc-decree.html', 'Divorce - Decree North Carolina (No Children)', 3, 0, 0];
				sitemap[233] = ['http://www.ilrg.com/forms/divorce-nf-nc-oh-decree.html', 'Divorce - Decree Ohio (No Children)', 3, 0, 0];
				sitemap[234] = ['http://www.ilrg.com/forms/divorce-nf-nc-ok-decree.html', 'Divorce - Decree Oklahoma (No Children)', 3, 0, 0];
				sitemap[235] = ['http://www.ilrg.com/forms/divorce-nf-nc-tx-decree.html', 'Divorce - Decree Texas (No Children)', 3, 0, 0];
				sitemap[236] = ['http://www.ilrg.com/forms/divorce-nf-nc-ut-decree.html', 'Divorce - Decree Utah (No Children)', 3, 0, 0];
				sitemap[237] = ['http://www.ilrg.com/forms/divorce-nf-nc-wi-judgment.html', 'Divorce - Decree Wisconsin (No Children)', 3, 0, 0];
				sitemap[238] = ['http://www.ilrg.com/forms/divorce-nf-nc-wy-decree.html', 'Divorce - Decree Wyoming (No Children)', 3, 0, 0];
				
			sitemap[239] = ['http://www.ilrg.com/forms/cohab-agreement.html', 'Living Together Agreement - Nonmarital Cohabitation', 3, 0, 0];
				sitemap[240] = ['http://www.ilrg.com/forms/cohab-gay.html', 'Living Together Agreement - Gay & Lesbian Couples', 3, 0, 0];
				sitemap[241] = ['http://www.ilrg.com/forms/marital-counseling.html', 'Marital Counseling', 3, 0, 0];
				sitemap[242] = ['http://www.ilrg.com/forms/premarit.html', 'Pre-Marital Agreement', 3, 0, 0];
				sitemap[243] = ['http://www.ilrg.com/forms/premarit-substantial-husb.html', 'Pre-Marital Agreement (Husband with Substantial Assets)', 3, 0, 0];
				sitemap[244] = ['http://www.ilrg.com/forms/premarit-substantial-wife.html', 'Pre-Marital Agreement (Wife with Substantial Assets)', 3, 0, 0];
				sitemap[245] = ['http://www.ilrg.com/forms/premarit-substantial-both.html', 'Pre-Marital Agreement (Husband &amp; Wife with Substantial Assets)', 3, 0, 0];
				sitemap[246] = ['http://www.ilrg.com/forms/premarit2.html', 'Pre-Marital Agreement (Alternate)', 3, 0, 0];
				sitemap[247] = ['http://www.ilrg.com/forms/resign.html', 'Resignation', 3, 0, 0];
				sitemap[248] = ['http://www.ilrg.com/forms/fieltrip.html', 'Trip Permission', 3, 0, 0];
			sitemap[249] = ['http://www.ilrg.com/forms/st_namechange.html', 'Name Change', 2, 0, 0];
				sitemap[250] = ['http://www.ilrg.com/forms/namechange-adult.html', 'Petition for Change of Name of Adult', 3, 0, 0];
				sitemap[251] = ['http://www.ilrg.com/forms/namechange-adult', 'Petition for Change of Name of Adult', 3, 0, 1];
				sitemap[252] = ['http://www.ilrg.com/forms/namechange-minor.html', 'Petition for Change of Name of Minor', 3, 0, 0];
				sitemap[253] = ['http://www.ilrg.com/forms/namechange-minor', 'Petition for Change of Name of Minor', 3, 0, 1];
			sitemap[254] = ['http://www.ilrg.com/forms/st_powerofattorney.html', 'Power of Attorney', 2, 0, 0];
				sitemap[255] = ['http://www.ilrg.com/forms/powatrny.html', 'Power of Attorney (General)', 3, 0, 0];
				sitemap[256] = ['http://www.ilrg.com/forms/powatrny-husb-wife.html', 'Power of Attorney (Husband and Wife)', 3, 0, 0];
				sitemap[257] = ['http://www.ilrg.com/forms/powrevoc.html', 'Power of Attorney Revocation', 3, 0, 0];
				sitemap[258] = ['http://www.ilrg.com/forms/powatty-military-gen.html', 'Military General Power of Attorney', 3, 0, 0];
				sitemap[259] = ['http://www.ilrg.com/forms/powatty-military-spec.html', 'Military Special Power of Attorney', 3, 0, 0];
				sitemap[260] = ['http://www.ilrg.com/forms/powerofattorney-gd.html', 'General Durable for Property &amp; Finances (Immediate)', 3, 0, 0];
				sitemap[261] = ['http://www.ilrg.com/forms/powerofattorney-gd', 'General Durable for Property &amp; Finances (Immediate)', 3, 0, 1];
				sitemap[262] = ['http://www.ilrg.com/forms/powerofattorney-gd-disab.html', 'General Durable for Property &amp; Finances (Disability)', 3, 0, 0];
				sitemap[263] = ['http://www.ilrg.com/forms/powerofattorney-gd-disab', 'General Durable for Property &amp; Finances (Disability)', 3, 0, 1];
				sitemap[264] = ['http://www.ilrg.com/forms/states/al-powerofattorney.html', 'Alabama Durable Power of Attorney', 3, 0, 0];
				sitemap[265] = ['http://www.ilrg.com/forms/states/ar-powerofattorney.html', 'Arkansas Statutory General Power of Attorney', 3, 0, 0];
				sitemap[266] = ['http://www.ilrg.com/forms/states/ca-powerofattorney.html', 'California Uniform Statutory Form Power of Attorney (Immediate)', 3, 0, 0];
				sitemap[267] = ['http://www.ilrg.com/forms/states/co-powerofattorney.html', 'Colorado Statutory General Power of Attorney', 3, 0, 0];
				sitemap[268] = ['http://www.ilrg.com/forms/states/ct-powerofattorney.html', 'Connecticut Statutory Short Form Power of Attorney', 3, 0, 0];
				sitemap[269] = ['http://www.ilrg.com/forms/states/dc-powerofattorney.html', 'District of Columbia Statutory General Power of Attorney', 3, 0, 0];
				sitemap[270] = ['http://www.ilrg.com/forms/states/ga-powerofattorney.html', 'Georgia Statutory Power of Attorney', 3, 0, 0];
				sitemap[271] = ['http://www.ilrg.com/forms/states/il-powerofattorneyshort.html', 'Illinois Statutory Short Form Power of Attorney for Property', 3, 0, 0];
				sitemap[272] = ['http://www.ilrg.com/forms/states/mn-powerofattorney.html', 'Minnesota Statutory Short Form Power of Attorney', 3, 0, 0];
				sitemap[273] = ['http://www.ilrg.com/forms/states/mt-powerofattorney.html', 'Montana Statutory Power of Attorney Form', 3, 0, 0];
				sitemap[274] = ['http://www.ilrg.com/forms/states/ne-powerofattorneyshort.html', 'Nebraska Statutory Short Form Power of Attorney', 3, 0, 0];
				sitemap[275] = ['http://www.ilrg.com/forms/states/nm-powerofattorney.html', 'New Mexico Statutory General Power of Attorney for Property, Finances, and Health Care (Immediate)', 3, 0, 0];
				sitemap[276] = ['http://www.ilrg.com/forms/states/ny-powerofattorney-gd-immed.html', 'New York Durable General Power of Attorney Statutory Short Form (Immediate)', 3, 0, 0];
				sitemap[277] = ['http://www.ilrg.com/forms/states/ny-powerofattorney-gd-spring.html', 'New York Durable General Power of Attorney Statutory Short Form (Upon Disability or Future Event)', 3, 0, 0];
				sitemap[278] = ['http://www.ilrg.com/forms/states/ny-powerofattorney-nondur.html', 'New York Nondurable Power of Attorney Statutory Short Form', 3, 0, 0];
				sitemap[279] = ['http://www.ilrg.com/forms/states/nc-powerofattorneyshort.html', 'North Carolina Statutory Short Form of General Power of Attorney', 3, 0, 0];
				sitemap[280] = ['http://www.ilrg.com/forms/states/ok-powerofattorney.html', 'Oklahoma Statutory Form for Power of Attorney', 3, 0, 0];
				sitemap[281] = ['http://www.ilrg.com/forms/states/rh-powerofattorneyshort.html', 'Rhode Island Short Form Power of Attorney', 3, 0, 0];
				sitemap[282] = ['http://www.ilrg.com/forms/states/tx-powerofattorney.html', 'Texas Statutory Durable Power of Attorney', 3, 0, 0];
				sitemap[283] = ['http://www.ilrg.com/forms/states/vt-powerofattorney.html', 'Vermont Power of Attorney for Property', 3, 0, 0];
				sitemap[284] = ['http://www.ilrg.com/forms/states/wi-powerofattorneyfinprop.html', 'Wisconsin Basic Power of Attorney for Finances and Property', 3, 0, 0];
				sitemap[285] = ['http://www.ilrg.com/forms/states/wi-powerofattorney.html', 'Wisconsin Statutory Power of Attorney Form', 3, 0, 0];
				sitemap[286] = ['http://www.ilrg.com/forms/poder-de-abogado.html', 'Power of Attorney (General) (Spanish Translation) - Poder General de Abogado', 3, 0, 0];

			sitemap[287] = ['http://www.ilrg.com/forms/st_healthcare.html', 'Health Care', 2, 0, 0];
				sitemap[288] = ['http://www.ilrg.com/forms/livingwill.html', 'Living Will Declaration', 3, 0, 0];
				sitemap[289] = ['http://www.ilrg.com/forms/livingwill2.html', 'Living Will Declaration (Alternate Form)', 3, 0, 0];
				sitemap[290] = ['http://www.ilrg.com/forms/states/al-livingwill.html', 'Alabama Living Will', 3, 0, 0];
				sitemap[291] = ['http://www.ilrg.com/forms/states/ak-livingwill.html', 'Alaska Statutory Living Will', 3, 0, 0];
				sitemap[292] = ['http://www.ilrg.com/forms/states/az-livingwill.html', 'Arizona Living Will', 3, 0, 0];
				sitemap[293] = ['http://www.ilrg.com/forms/states/ar-livingwill.html', 'Arkansas Living Will', 3, 0, 0];
				sitemap[294] = ['http://www.ilrg.com/forms/states/ca-livingwill.html', 'California Statutory Living Will', 3, 0, 0];
				sitemap[295] = ['http://www.ilrg.com/forms/states/ca-medicaldirective.html', 'California Advance Health Care Directive', 3, 0, 0];
				sitemap[296] = ['http://www.ilrg.com/forms/states/co-medicaltreatmentdec.html', 'Colorado Declaration as to Medical or Surgical', 3, 0, 0];
				sitemap[297] = ['http://www.ilrg.com/forms/states/ct-lifesupport.html', 'Connecticut Form on Withdrawal of Life Support Systems', 3, 0, 0];
				sitemap[298] = ['http://www.ilrg.com/forms/states/de-healthcare.html', 'Delaware Advance Health-Care Directive', 3, 0, 0];
				sitemap[299] = ['http://www.ilrg.com/forms/states/fl-livingwill.html', 'Florida Living Will', 3, 0, 0];
				sitemap[300] = ['http://www.ilrg.com/forms/states/ga-livingwill.html', 'Georgia Living Will', 3, 0, 0];
				sitemap[301] = ['http://www.ilrg.com/forms/states/hi-livingwill.html', 'Hawaii Living Will', 3, 0, 0];
				sitemap[302] = ['http://www.ilrg.com/forms/states/id-livingwill.html', 'Idaho Living Will', 3, 0, 0];
				sitemap[303] = ['http://www.ilrg.com/forms/states/in-livingwill.html', 'Indiana Living Will', 3, 0, 0];
				sitemap[304] = ['http://www.ilrg.com/forms/states/in-prolongproced.html', 'Indiana Life Prolonging Procedures Declaration', 3, 0, 0];
				sitemap[305] = ['http://www.ilrg.com/forms/states/ky-livingwill.html', 'Kentucky Living Will', 3, 0, 0];
				sitemap[306] = ['http://www.ilrg.com/forms/states/md-advancedirective.html', 'Maryland Advance Health Care Directive', 3, 0, 0];
				sitemap[307] = ['http://www.ilrg.com/forms/states/md-livingwill.html', 'Maryland Living Will', 3, 0, 0];
				sitemap[308] = ['http://www.ilrg.com/forms/states/mo-livingwill.html', 'Missouri Living Will', 3, 0, 0];
				sitemap[309] = ['http://www.ilrg.com/forms/states/nv-healthdirective.html', 'Nevada Declaration Regarding Life-Sustaining Treatment', 3, 0, 0];
				sitemap[310] = ['http://www.ilrg.com/forms/states/nh-livingwill.html', 'New Hampshire Living Will', 3, 0, 0];
				sitemap[311] = ['http://www.ilrg.com/forms/states/nm-healthdirect.html', 'New Mexico Optional Advance Health-Care Directive', 3, 0, 0];
				sitemap[312] = ['http://www.ilrg.com/forms/states/ny-livingwill.html', 'New York Living Will', 3, 0, 0];
				sitemap[313] = ['http://www.ilrg.com/forms/states/nc-livingwill.html', 'North Carolina Living Will', 3, 0, 0];
				sitemap[314] = ['http://www.ilrg.com/forms/states/ok-medicaldirective.html', 'Oklahoma Advance Directive for Health Care', 3, 0, 0];
				sitemap[315] = ['http://www.ilrg.com/forms/states/or-livingwill.html', 'Oregon Living Will', 3, 0, 0];
				sitemap[316] = ['http://www.ilrg.com/forms/states/or-healthdirect.html', 'Oregon Advance Directive', 3, 0, 0];
				sitemap[317] = ['http://www.ilrg.com/forms/states/pa-medicaldirective.html', 'Pennsylvania Medical Directive', 3, 0, 0];
				sitemap[318] = ['http://www.ilrg.com/forms/states/sc-livingwill.html', 'South Carolina Living Will', 3, 0, 0];
				sitemap[319] = ['http://www.ilrg.com/forms/states/sd-livingwill.html', 'South Dakota Statutory Living Will', 3, 0, 0];
				sitemap[320] = ['http://www.ilrg.com/forms/states/tn-livingwill.html', 'Tennessee Statutory Living Will Form', 3, 0, 0];
				sitemap[321] = ['http://www.ilrg.com/forms/states/tx-meddirect.html', 'Texas Statutory Advance Medical Directive', 3, 0, 0];
				sitemap[322] = ['http://www.ilrg.com/forms/states/tx-meddirectminor.html', 'Texas Statutory Directive to Physicians on Behalf of a Minor', 3, 0, 0];
				sitemap[323] = ['http://www.ilrg.com/forms/states/ut-healthdirect.html', 'Utah Living Will', 3, 0, 0];
				sitemap[324] = ['http://www.ilrg.com/forms/states/vt-terminalcare.html', 'Vermont Terminal Care Document', 3, 0, 0];
				sitemap[325] = ['http://www.ilrg.com/forms/states/va-medicaldirective.html', 'Virginia Advance Medical Directive', 3, 0, 0];
				sitemap[326] = ['http://www.ilrg.com/forms/states/wa-livingwill-poa.html', 'Washington Living Will with Health Care Power of Attorney', 3, 0, 0];
				sitemap[327] = ['http://www.ilrg.com/forms/states/wa-healthdirect.html', 'Washington Statutory Health Care Directive', 3, 0, 0];
				sitemap[328] = ['http://www.ilrg.com/forms/states/wv-livingwill.html', 'West Virginia Living Will', 3, 0, 0];
				sitemap[329] = ['http://www.ilrg.com/forms/states/wy-livingwill.html', 'Wyoming Living Will', 3, 0, 0];
				sitemap[330] = ['http://www.ilrg.com/forms/states/al-powerofattorneyhealth.html', 'Alabama Durable Health Care Power of Attorney', 3, 0, 0];
				sitemap[331] = ['http://www.ilrg.com/forms/states/az-powerofattorneyhealth.html', 'Arizona Health Care Power of Attorney', 3, 0, 0];
				sitemap[332] = ['http://www.ilrg.com/forms/states/ca-powerofattorneyhealth.html', 'California Durable Power of Attorney for Health Care', 3, 0, 0];
				sitemap[333] = ['http://www.ilrg.com/forms/states/ca-powerofattorneynotice.html', 'California Durable Power of Attorney Required Notice Form', 3, 0, 0];
				sitemap[334] = ['http://www.ilrg.com/forms/states/co-powerofattorneyhealth.html', 'Colorado Durable Power of Attorney for Health Care', 3, 0, 0];
				sitemap[335] = ['http://www.ilrg.com/forms/states/ct-healthagent.html', 'Connecticut Appointment of Health Care Agent', 3, 0, 0];
				sitemap[336] = ['http://www.ilrg.com/forms/states/fl-surrogate.html', 'Florida Designation of Health Care Surrogate', 3, 0, 0];
				sitemap[337] = ['http://www.ilrg.com/forms/states/il-powerofattorneyhealth.html', 'Illinois Statutory Short Form Power of Attorney for Health Care', 3, 0, 0];
				sitemap[338] = ['http://www.ilrg.com/forms/states/ia-powerofattorneyhealth.html', 'Iowa Durable Power of Attorney for Health Care', 3, 0, 0];
				sitemap[339] = ['http://www.ilrg.com/forms/states/ks-powerofattorneyhealth.html', 'Kansas Durable Power of Attorney for Health Care Decisions', 3, 0, 0];
				sitemap[340] = ['http://www.ilrg.com/forms/states/mi-dpoa-healthcare.html', 'Michigan Durable Power of Attorney for Health Care', 3, 0, 0];
				sitemap[341] = ['http://www.ilrg.com/forms/states/ne-powerofattorneyhealth.html', 'Nebraska Power of Attorney for Health Care', 3, 0, 0];
				sitemap[342] = ['http://www.ilrg.com/forms/states/nv-powerofattorneyhealth.html', 'Nevada Statutory Durable Power of Attorney for Health Care Decisions', 3, 0, 0];
				sitemap[343] = ['http://www.ilrg.com/forms/states/nm-powerofattorney.html', 'New Mexico Statutory General Power of Attorney for Property, Finances, and Health Care', 3, 0, 0];
				sitemap[344] = ['http://www.ilrg.com/forms/states/nh-powerofattorneyhealth.html', 'New Hampshire Statutory Durable Power of Attorney for Health Care', 3, 0, 0];
				sitemap[345] = ['http://www.ilrg.com/forms/states/ny-healthproxy.html', 'New York Health Care Proxy', 3, 0, 0];
				sitemap[346] = ['http://www.ilrg.com/forms/states/nj-health-care-proxy.html', 'New Jersey Health Care Proxy', 3, 0, 0];
				sitemap[347] = ['http://www.ilrg.com/forms/states/nc-powerofattorneyhealth.html', 'North Carolina Statutory Form Health Care Power of Attorney', 3, 0, 0];
				sitemap[348] = ['http://www.ilrg.com/forms/states/nd-powerofattorneyhealth.html', 'North Dakota Statutory Form Durable Power of Attorney for Health Care', 3, 0, 0];
				sitemap[349] = ['http://www.ilrg.com/forms/states/oh-powerofattorneyhealth-dur.html', 'Ohio Durable Power of Attorney for Health Care', 3, 0, 0];
				sitemap[350] = ['http://www.ilrg.com/forms/states/rh-powerofattorneyhealth.html', 'Rhode Island Statutory Form Durable Power of Attorney for Health Care', 3, 0, 0];
				sitemap[351] = ['http://www.ilrg.com/forms/states/sc-powerofattorneyhealth.html', 'South Carolina Statutory Health Care Power of Attorney', 3, 0, 0];
				sitemap[352] = ['http://www.ilrg.com/forms/states/tx-powerofattorneymed.html', 'Texas Statutory Medical Power of Attorney', 3, 0, 0];
				sitemap[353] = ['http://www.ilrg.com/forms/states/vt-attorneypowerofattorneyhealth.html', 'Vermont Statutory Durable Power of Attorney for Health Care', 3, 0, 0];
				sitemap[354] = ['http://www.ilrg.com/forms/states/wi-powerofattorneyhealth.html', 'Wisconsin Power of Attorney for Health Care', 3, 0, 0];
				sitemap[355] = ['http://www.ilrg.com/forms/hipaa-authorization-waiver.html', 'HIPAA Authorization & Waiver', 3, 0, 0];
			sitemap[356] = ['http://www.ilrg.com/forms/testimonials.html', 'Testimonials', 2, 0, 0];
			sitemap[357] = ['http://www.ilrg.com/cart.php', 'Shopping Cart', 2, 0, 0];
				sitemap[358] = ['https://www.ilrg.com/checkout.php', 'Checkout', 3, 0, 2];
				sitemap[359] = ['http://www.ilrg.com/checkout.php', 'Checkout', 3, 0, 2];
			sitemap[360] = ['http://www.ilrg.com/cgi-bin/ilrgsearch2.cgi', 'Search Results', 2, 0, 2];
			sitemap[361] = ['https://www.ilrg.com/download.php', 'Download Now', 2, 0, 2];
			sitemap[362] = ['http://www.ilrg.com/cgi-bin/faq/faq.cgi?submit', 'Download Now', 2, 0, 2];
			sitemap[363] = ['https://secure.authorize.net/gateway/transact.dll', 'Purchase Thank You', 1, 0, 2];
			sitemap[364] = ['http://www.ilrg.com/forms/formsoffer/', 'Terms and Conditions for Forms Compliance Offer', 1, 0, 2];
			sitemap[365] = ['http://www.ilrg.com/forms/divorcenctest/us/', 'Divorce (No-Fault, No Children)', 2, 0, 2];
			
			//
			// new search engine update
			//
			//sitemap[366] = ['http://www.ilrg.com/searchforms/', 'Search Results', 2, 0, 2];

			var menu_structure = buildMenu(sitetuners_page, sitemap);
			menu_structure = '<span style="font-size: .75em; color: blue; font-family: Arial, Helvetica, sans-serif;">' + menu_structure + '</span>';
			var breadcrumbs = buildCrumbs(sitetuners_page, sitemap);
			if ((sitetuners_page == 'http://www.ilrg.com/searchforms/') || (sitetuners_page == 'http://www.ilrg.com/searchforms/index.php'))
			{
				breadcrumbs += ' &gt; <a href="http://www.ilrg.com/forms/">forms</a> &gt; <a href="http://www.ilrg.com/searchforms/">search</a>';
			}
			breadcrumbs = '<span style="font-size: .75em; color: blue; font-family: Arial, Helvetica, sans-serif; padding-left: 10px; padding-right: 10px;"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/breadcrumb.gif">&nbsp;&nbsp;<strong>you are here:</strong> ' + breadcrumbs + '</span><br />';
			
			// **********************************
			// New javascript version of menuing
			// **********************************
						
			if (sitetuners96_var01 && sitetuners96_var02 && sitetuners96_var03 && sitetuners96_var04 && sitetuners96_var05 && sitetuners96_var06 && sitetuners96_var07) {
				if (sitetuners96_var01 != 'a' || sitetuners96_var02 != 'a' || sitetuners96_var03 != 'a' || sitetuners96_var04 != 'a' || sitetuners96_var05 != 'a' || sitetuners96_var06 != 'a' || sitetuners96_var07 != 'a') {
					var stFoot = document.getElementById('_stFoot');
					if (stFoot) {
						stFoot.innerHTML = 'An operating division of';
					}
				}
			}
			
			// Branding - 01
			switch (sitetuners96_var01) {
				case 'a':	// OrigBrand
				default:
					break;
				case 'b':	// NewBrand
					var stVar01 = document.getElementById('_stVar01');
					var stVar03 = document.getElementById('_stVar03');
					var searchPage = document.getElementById('_stSearch2');
					if (stVar01) {
						if (stVar03 || searchPage) {
							stVar01.innerHTML = '<a href="http://www.ilrg.com/"><img border="0" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/publiclegal.gif"></a>';
						}
						else {
							stVar01.innerHTML = '<a href="http://www.ilrg.com/"><img border="0" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/publiclegalforms.gif"></a>';
						}
					}
					break;
			}

			var font75 = '';
			// PageStructure - 02
			switch (sitetuners96_var02) {
				case 'a':	// OrigStructure
				default:
					var stTribalHoriz = document.getElementById('_stTribalHoriz');
					if (stTribalHoriz && sitetuners_page.indexOf('checkout.php') == -1 && sitetuners_page.indexOf('cart.php') == -1 && sitetuners_protocol != 'https') {
						// Tribal ADs  Old Code
						//stTribalHoriz.innerHTML = '<div align="center"><img border="0" src="' + sitetuners_protocol + '://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
						//	'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" target=_blank>' +
						//	'<img src="' + sitetuners_protocol + '://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" ' +
						//	'width=120 height=600 border=0 alt="Click Here"></a></div>';
						// Tribal ADs New Code
							stTribalHoriz.innerHTML =  '<iframe src="http://www.ilrg.com/forms/tribalHori.html" width="728" height="120" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no allowTransparency=true ></iframe>';
					}
					break;
				case 'b':	// NewStructure
					var searchPage = document.getElementById('_stSearch2');
					if (!searchPage) {
					var stMenu = document.getElementById('_stMenu');
					if (stMenu) {
						stMenu.parentNode.removeChild(stMenu);						
					}
					var stMenu2 = document.getElementById('_stMenu2');
					if (stMenu2) {
						stMenu2.parentNode.removeChild(stMenu2);
					}
					var stVar03 = document.getElementById('_stVar03');
					if (!stVar03) {
						// get the body tag
						var bodyTag = document.getElementsByTagName('body').item(0);
						var bodyHTML = bodyTag.innerHTML;
						bodyTag.style.backgroundImage = 'none';
						bodyTag.style.marginTop = '0px';
						bodyTag.style.paddingTop = '0px';
						bodyTag.style.marginLeft = '0px';
						bodyTag.style.paddingLeft = '0px';
						bodyTag.style.marginBottom = '0px';
						bodyTag.style.paddingBottom = '0px';
						bodyTag.style.marginRight = '0px';
						bodyTag.style.paddingRight = '0px';
						bodyTag.style.fontSize = '16px';
						bodyTag.style.textAlign = 'left';
						
						var mainTable = document.createElement('table');
						mainTable.style.fontSize = '16px';
						mainTable.style.marginTop = '0px';
						mainTable.style.paddingTop = '0px';
						mainTable.style.marginLeft = '0px';
						mainTable.style.paddingLeft = '0px';
						mainTable.style.marginBottom = '0px';
						mainTable.style.paddingBottom = '0px';
						mainTable.style.marginRight = '0px';
						mainTable.style.paddingRight = '0px';
						mainTable.cellPadding='0';
						mainTable.cellSpacing='0';
	
						var tableBody = document.createElement('tbody');
						var tableRowHeader = document.createElement('tr');
						tableRowHeader.style.paddingBottom = '0px';
						tableRowHeader.style.borderBottom = '0px';
						var tableRowHeader2 = document.createElement('tr');
						tableRowHeader2.style.marginBottom = '7px';
						var tableColHeader = document.createElement('td');
						tableColHeader.setAttribute("id","newHeader");
						tableColHeader.colSpan = '3';
						tableColHeader.style.paddingBottom = '7px'; 
						tableColHeader.style.paddingLeft = '7px'; 
						tableColHeader.style.paddingRight = '7px'; 
						tableColHeader.style.paddingTop = '7px'; 
						var tableColHeader2 = document.createElement('td');
						tableColHeader2.width = '100%';
						tableColHeader2.colSpan = '3';
						tableColHeader2.vAlign = 'middle';
						tableColHeader2.style.background='url(\'' + sitetuners_protocol + '://www.ilrg.com/sitetuners/blue-navbg.gif\') repeat-x';
						if (sitetuners96_var01 == 'a') {
							tableColHeader2.innerHTML = '<span style="vertical-align: middle; color: #FFFFFF; font-weight: bold; font-size: .75em; font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;</span>';
						}
						else {
							tableColHeader2.innerHTML = '<span style="float:left; vertical-align: middle; color: #FFFFFF; font-weight: bold; font-size: .75em; font-family: Arial, Helvetica, sans-serif;">&nbsp;&nbsp;A product of the Internet Legal Research Group (ILRG)</span>';
						}
						var tollfree = 'Toll-free: 1-800-987-9087';
						var tableRow = document.createElement('tr');
						var tableCol1 = document.createElement('td');
						var tableCol2 = document.createElement('td');
						var tableCol3 = document.createElement('td');
						tableCol1.vAlign = 'top';
						tableCol1.noWrap = 'nowrap';
						tableCol1.bgColor = '#EAEAEA';
						tableCol1.style.background='url(\'' + sitetuners_protocol + '://www.ilrg.com/sitetuners/leftnav-bgfade.jpg\') repeat-y';
//						tableCol1.width='172px';
//						tableCol1.style.paddingLeft = '5px';
						tableCol1.width='142px';
						tableCol1.style.paddingLeft = '2px';
						tableCol1.style.paddingTop = '10px';
						tableCol1.style.paddingBottom = '10px';
						if (menu_structure) {
							tableCol1.innerHTML = menu_structure;
						}
						tableCol2.vAlign = 'top';
						tableCol2.style.borderRight = 'thin #CCCCCC solid';
						tableCol2.style.paddingLeft = '10px';
						tableCol2.style.paddingRight = '10px';
						tableCol2.style.paddingLeft = '0px';
						tableCol2.style.paddingRight = '0px';
						tableCol2.style.paddingTop = '10px';
						tableCol2.style.paddingBottom = '10px';
						tableCol2.width = '100%';
						tableCol3.style.paddingTop = '10px';
						tableCol3.style.paddingBottom = '10px';
						tableCol3.style.paddingLeft = '0px';
						tableCol3.style.paddingRight = '0px';
						var stVar05 = document.getElementById('_stVar05');
						var stVar05Form = document.getElementById('_stVar05Form');
						var additionalTestimonials = '<br /><br />"Thank you for a fantastic resource! We are a small business, and the cost to have an attorney draw up this agreement is hard on a small business. This form serves our purpose well. Thank you."<br /><br />"Awesome site... exactly what I was looking for... thanks for making it available!"';
						if (stVar05 && stVar05Form) {
							additionalTestimonials = '';
						}
						var col3HTML = '<p align="center"><a target="_blank" href="https://www.scanalert.com/RatingVerify?ref=www.ilrg.com"><img width="94" height="54" border="0" src="//images.scanalert.com/meter/www.ilrg.com/13.gif" alt="HACKER SAFE certified sites prevent over 99.9% of hacker crime." oncontextmenu="alert(\'Copying Prohibited by Law - HACKER SAFE is a Trademark of ScanAlert\'); return false;"></a></p>' +
							'<p align="center"><a href="http://www.truste.org/ivalidate.php?url=www.ilrg.com&sealid=101" target="_blank"><img border="0" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/truste_seal_web.gif"></a></p>' +
							'<p><a href="https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.ILRG.COM&lang=en" target="_blank"><img border="0" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/_stVerisign.gif"></a></p>' +
							'<center><table style="font-family: Arial;" cellSpacing=3 cellPadding=0 width=129 border=0>' +
							'<tbody><tr><td>';
						if (sitetuners_page.indexOf('checkout.php') == -1 && sitetuners_page.indexOf('cart.php') == -1 && sitetuners_protocol != 'https') {
							// Tribal ADs Old Code
							//col3HTML = col3HTML + '<div align="center"><img border="0" src="' + sitetuners_protocol + '://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
							//	'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" target=_blank>' +
							//	'<img src="' + sitetuners_protocol + '://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" ' +
							//	'width=120 height=600 border=0 alt="Click Here"></a></div>';
							// Tribal ADs New Code
								col3HTML = col3HTML + '<iframe src="http://www.ilrg.com/forms/tribalVert.html" width="120" height="600" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no allowTransparency=true ></iframe>';
						
						}
						col3HTML = col3HTML + '<span style="font-size: 9pt;"><P align=center><B style="color: #F17D00;"><I>Customer<br />Testimonials</I></B><span style="font-size: .75em;">' +
							'<br /><br />"Your site contains the best forms available. As an attorney that practices ' +
							'for many clients, your site is great."<br /><br />"I have regular need for legal ' +
							'documents and will be in touch further for more purchases. Your customer service has ' +
							'been excellent."' + additionalTestimonials + '</span></p>' +
							'<center><a href="/forms/testimonials.html" style="font-size: .75em;">More Testimonials</a></center></span></p></span></td></tr></tbody></table></center><br />';

						tableCol3.innerHTML = col3HTML;
						if (stVar05 && stVar05Form) {
//							tableCol3.innerHTML = tableCol3.innerHTML + '<img border="0" src="http://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
//								'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" target=_blank>' +
//								'<img src="http://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" ' +
//								'width=120 height=600 border=0 alt="Click Here"></a>';
						}
						tableCol3.vAlign = 'top';
						tableCol3.align = 'center';
	
						// remove the HTML from the body
						bodyTag.innerHTML = '';
						
						// add the column to the Header row
						tableRowHeader.appendChild(tableColHeader);					
						// add the heading to the table body
						tableBody.appendChild(tableRowHeader);
	
						// add the second column to the Header row
						tableRowHeader2.appendChild(tableColHeader2);
						// add the heading to the table body
						tableBody.appendChild(tableRowHeader2);
	
						// add the colums to the row
						tableRow.appendChild(tableCol1);
						tableRow.appendChild(tableCol2);
						tableRow.appendChild(tableCol3);					
						
						// add the row to the table body
						tableBody.appendChild(tableRow);
						
						// add the table body to the table
						mainTable.appendChild(tableBody);
	
						// add the table to the document body
						bodyTag.appendChild(mainTable);
	
						var tribalLoc = bodyHTML.indexOf('_stTribal');
						if (tribalLoc != -1) {
							var ttLoc = bodyHTML.toLowerCase().indexOf('</tt>');
							var centerLoc = bodyHTML.toLowerCase().indexOf('</center>', ttLoc);
							
							bodyHTML = bodyHTML.substring(0, centerLoc+8) + 
								'<center><span style="width: 95%; text-align: justify;">' +
								bodyHTML.substring(centerLoc+9) + '</span></center>';
						}
						tableCol2.innerHTML = breadcrumbs + bodyHTML;
						
// 2007 12 28 - in all cases of 3 colums remove _sttribalhoriz
	
//var stTribal = document.getElementById('_stTribal');
//if (stTribal) {	
//						tollfree = stTribal.innerHTML;
//						var bracketLoc = tollfree.indexOf('>');
//						tollfree = tollfree.substring(bracketLoc+1);
//						var bracketLoc = tollfree.indexOf('>');
//						tollfree = tollfree.substring(bracketLoc+1);
//						var brLoc = tollfree.toLowerCase().indexOf('<br');
//						tollfree = tollfree.substring(0, brLoc);
//						stTribal.innerHTML = '';
//}
//else {
//	tollfree = '';
//}
						
						// move the logo before the table
						var stVar01 = document.getElementById('_stVar01');
						if (stVar01) {
							tableSearch = document.getElementById("search");
							search_value = '';
							state_value = '';
							if ((tableSearch != null) && tableSearch.innerHTML)
							{
								if (document.getElementById('_search') != null)
									search_value = document.getElementById('_search').value.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;');
								
								if (document.getElementById('_state') != null)
									state_value = document.getElementById('_state').value.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;');
								
								searchParent = tableSearch.parentNode;
								searchParent.removeChild(tableSearch);
								tableSearch = tableSearch.innerHTML;
							}
							/*else*/
							{
								tableSearch = '<table style="margin-left:auto;margin-right:auto"><tr><td><input type="text" size="17" name="search" id="_search" value="'+search_value+'" /></td><td><select name="state" id="_state"><option selected="selected">Select State</option><option value="Alabama">Alabama</option>\
<option value="Alaska">Alaska</option>\
<option value="Arizona">Arizona</option>\
<option value="Arkansas">Arkansas</option>\
<option value="California">California</option>\
<option value="Colorado">Colorado</option>\
<option value="Connecticut">Connecticut</option>\
<option value="Delaware">Delaware</option>\
<option value="District of Columbia">District of Columbia</option>\
<option value="Florida">Florida</option>\
<option value="Georgia">Georgia</option>\
<option value="Hawaii">Hawaii</option>\
<option value="Idaho">Idaho</option>\
<option value="Illinois">Illinois</option>\
<option value="Indiana">Indiana</option>\
<option value="Iowa">Iowa</option>\
<option value="Kansas">Kansas</option>\
<option value="Kentucky">Kentucky</option>\
<option value="Louisiana">Louisiana</option>\
<option value="Maine">Maine</option>\
<option value="Maryland">Maryland</option>\
<option value="Massachusetts">Massachusetts</option>\
<option value="Michigan">Michigan</option>\
<option value="Minnesota">Minnesota</option>\
<option value="Mississippi">Mississippi</option>\
<option value="Missouri">Missouri</option>\
<option value="Montana">Montana</option>\
<option value="Nebraska">Nebraska</option>\
<option value="Nevada">Nevada</option>\
<option value="New Hampshire">New Hampshire</option>\
<option value="New Jersey">New Jersey</option>\
<option value="New Mexico">New Mexico</option>\
<option value="New York">New York</option>\
<option value="North Carolina">North Carolina</option>\
<option value="North Dakota">North Dakota</option>\
<option value="Ohio">Ohio</option>\
<option value="Oklahoma">Oklahoma</option>\
<option value="Oregon">Oregon</option>\
<option value="Pennsylvania">Pennsylvania</option>\
<option value="Rhode Island">Rhode Island</option>\
<option value="South Carolina">South Carolina</option>\
<option value="South Dakota">South Dakota</option>\
<option value="Tennessee">Tennessee</option>\
<option value="Texas">Texas</option>\
<option value="Utah">Utah</option>\
<option value="Vermont">Vermont</option>\
<option value="Virginia">Virginia</option>\
<option value="Washington">Washington</option>\
<option value="West Virginia">West Virginia</option>\
<option value="Wisconsin">Wisconsin</option>\
<option value="Wyoming">Wyoming</option>\
<option value="All States">All States</option></select>\
	</td>\
<td><input type="image" name="doSearch" value="Search" src="/images/search_button.png" /></td></tr></table>';
								tableSearch = tableSearch.replace('<option value="'+state_value+'">','<option value="'+state_value+'" selected="selected">');
							}
							tableColHeader.innerHTML = '<span style="float: left;width:30%">' + stVar01.innerHTML + '</span><span style="float:left;width:40%;text-align:center;color:#fff;margin:0;padding:0;margin-top:0.5em"><form action="/searchforms/" method="get" style="margin:0;padding:0">' + tableSearch + '</form></span><span style="float:right; color: #003466; font-family: Arial, Helvetica, sans-serif; font-size: 1.25em; font-weight: bold; margin-top: 10px;">' + tollfree + '</span>';
							/*tableColHeader.innerHTML = '<span style="float: left">' + stVar01.innerHTML + '</span><span style="float:right; color: #003466; font-family: Arial, Helvetica, sans-serif; font-size: 1.25em; font-weight: bold; margin-top: 10px;">' + tollfree + '</span>';*/
							bodyTag.insertBefore(stVar01, mainTable);
							stVar01.parentNode.removeChild(stVar01);
						}
						else {
							tableColHeader.innerHTML = '<span style="float: left"><img border="0" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/publiclegalforms.gif"></span><span style="float:right; color: #003466; font-family: Arial, Helvetica, sans-serif; font-size: 1.25em; font-weight: bold; margin-top: 10px;">' + tollfree + '</span>';
						}

						font75 = ' font-size: .75em;';

						// remove privacy logo if it exists on the page					
						var stPrivacy = document.getElementById("_stPrivacy");
						if (stPrivacy) {
							var parent = stPrivacy.parentNode;
							parent.removeChild(stPrivacy);
						}
						// remove any html within _stSpecial span
						var stSpecial = document.getElementById("_stSpecial");
						if (stSpecial) {
							var parent = stSpecial.parentNode;
							parent.removeChild(stSpecial);
						}
						// remove any html within _stAttorney span
						var stAttorney = document.getElementById("_stAttorney");
						if (stAttorney) {
							var parent = stAttorney.parentNode;
							parent.removeChild(stAttorney);
						}
						// remove any html within _stPoll span
						var stPoll = document.getElementById("_stPoll");
						if (stPoll) {
							var parent = stPoll.parentNode;
							parent.removeChild(stPoll);
						}
					}
					}
					break;					
			}

			// HomePage - 03
			var stVar03 = document.getElementById('_stVar03');
			if (stVar03) {
//				stVar03.innerHTML = stVar03.innerHTML.replace('http://www.ilrg.com/forms/index.html', '/forms/index.html');
				if (sitetuners96_var01 == 'b') {
					stVar03.innerHTML = stVar03.innerHTML.replace(/the <strong>Internet Legal Research Group/i, '<strong>PublicLegal, a product of the Internet Legal Research Group (ILRG)');							
				}
			}
			switch (sitetuners96_var03) {
				case 'a':	// OrigHome
				default:
					var stTribal = document.getElementById('_stTribal');
					if (stVar03 && stTribal) {
//						stTribal.innerHTML = '<br /><img border="0" src="http://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
//						'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=468x60&requestID=1370457704" target=_blank>' +
//						'<img src="http://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=468x60&requestID=1370457704" ' +
//						'width=468 height=60 border=0 alt="Click Here"></a><br />' +
//						'<tt><b><font size="-5">Support The Internet Legal Research Group; Visit Our Advertisers</font></b></tt>';
					}
					break;
				case 'b':	// NewHome
					if (stVar03) {
						stVar03.innerHTML = stVar03.innerHTML.replace(/<form/i, '<div style="font-size: 1em; font-weight: bold; color: #000000; font-family:Arial, Helvetica, sans-serif;" align="center"><table cellpadding="10px"><tbody><tr><td align="center"><a href="forms/index.html"><img border="0" src="sitetuners/publiclegalforms.gif"></a></td><td valign="bottom"><a href="forms/index.html" style="font-size: 1.25em; color: blue; font-weight: bold;">Over 2000 FREE legal forms & documents</a><br /><br /></td></tr></tbody></table></div><form');
					}
					break;
			}

			// Generic fix for non forms pages that need the tribal information
			var stVar04d = document.getElementById('_stVar04d');
			var stVar04 = document.getElementById('_stVar04');
			
			if (!stVar04 && stVar04d && sitetuners96_var02 == 'a') {
				var stTribal = document.getElementById('_stTribal');
				var stTribalHoriz = document.getElementById('_stTribalHoriz');
				if (stTribal) {
//					stTribal.innerHTML = '<br /><img border="0" src="http://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
//					'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=468x60&requestID=1370457704" target=_blank>' +
//					'<img src="http://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=468x60&requestID=1370457704" ' +
//					'width=468 height=60 border=0 alt="Click Here"></a><br />' +
//					'<tt><b><font size="-5">Support The Internet Legal Research Group; Visit Our Advertisers</font></b></tt>';
				}

				if (stTribalHoriz) {
//					stTribalHoriz.innerHTML = '<img border="0" src="http://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
//					'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" target=_blank>' +
//					'<img src="http://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" ' +
//					'width=120 height=600 border=0 alt="Click Here"></a>';
				}
			}

			// FormsPage - 04
			var stVar04 = document.getElementById('_stVar04');
			switch (sitetuners96_var04) {
				case 'a':	// OrigForms
				default:
					var stTribal = document.getElementById('_stTribal');
					var stTribalHoriz = document.getElementById('_stTribalHoriz');
					if (stVar04 && sitetuners96_var02 == 'a' && stTribal && stTribalHoriz) {
//						stTribal.innerHTML = '<br /><img border="0" src="http://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
//						'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=468x60&requestID=1370457704" target=_blank>' +
//						'<img src="http://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=468x60&requestID=1370457704" ' +
//						'width=468 height=60 border=0 alt="Click Here"></a><br />' +
//						'<tt><b><font size="-5">Support The Internet Legal Research Group; Visit Our Advertisers</font></b></tt>';						

//						stTribalHoriz.innerHTML = '<img border="0" src="http://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
//						'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" target=_blank>' +
//						'<img src="http://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" ' +
//						'width=120 height=600 border=0 alt="Click Here"></a>';
					}
					if (sitetuners96_var02 == 'b') {
						var stVar04 = document.getElementById('_stVar04d');
						if (stVar04) {
							stVar04.parentNode.removeChild(stVar04);
						}
					}
					break;
				case 'b':	// NewForms
					if (stVar04) {
						stVar04.innerHTML = '<h1 align="center">FREE Legal Forms Archive</h1>' +
						'<h2 align="center">Over 2000 forms & documents</h2>' +
						'<center>' +
						'<form action="/cgi-bin/ilrgsearch2.cgi" method="POST">' +
						'<input type="hidden" name="boolean" value="ANY">' +
						'<p align="center">' +
						'<input type="text" size="17" name="terms"> ' +
						'<input type="hidden" name="searchscope" value="formsloc"> ' +
						'<input type="submit" value="Search"></p>' +
						'</form>' +
						'</center>' +
						'<table align="center" width="300"><tr><td>' +
						'<h3><b>Business</b></h3>' +
						'<ol style="font-family: Arial; font-size: 10pt">' +
						'<b>' +
						'<li><a href="st_buyingandselling.html">Buying and Selling</a></li>' +
						'<li><a href="st_borrowingandlending.html">Borrowing and Lending</a></li>' +
						'<li><a href="st_businessventures.html">Business Ventures</a></li>' +
						'<li><a href="st_creditandcollection.html">Credit and Collection</a></li>' +
						'<li><a href="st_employment.html">Employment</a></li>' +
						'<li><a href="st_leasesandrealestate.html">Leases and Real Estate</a></li>' +
						'<li><a href="st_protectionoflegalrights.html">Protection of Legal Rights</a></li>' +
						'<li><a href="st_transfersandassignments.html">Transfers and Assignments</a></li>' +
						'</ol>' +
						'<h3><b>Personal</b></h3>' +
						'<ol style="font-family: Arial; font-size: 10pt">' +
						'<li><a href="st_estateplanning.html">Estate Planning</a></li>' +
						'<li><a href="st_maritalandfamily.html">Marital and Family</a></li>' +
						'<li><a href="st_namechange.html">Name Change</a></li>' +
						'<li><a href="st_powerofattorney.html">Power of Attorney</a></li>' +
						'<li><a href="st_healthcare.html">Health Care</a></li>' +
						'</ol>' +
						'</td></tr></table>';
						var stVar04 = document.getElementById('_stVar04d');
						if (stVar04) {
							stVar04.parentNode.removeChild(stVar04);
						}
						var stVar04 = document.getElementById('_stVar04f');
						if (stVar04) {
							stVar04.parentNode.removeChild(stVar04);
						}
						var stVar04 = document.getElementById('_stVar04g');
						if (stVar04) {
							stVar04.parentNode.removeChild(stVar04);
						}
					}
					break;
			}
			var stLastWill = document.getElementById('_stLastWill');
			var stVar04 = document.getElementById('_stVar04');
			if (stVar04 || stLastWill) {
				var bodyTag = document.getElementsByTagName('body').item(0);
				var bodyHTML = bodyTag.innerHTML;
				bodyHTML = bodyHTML.replace('billofsaleboat-warranty/us', 'billofsaleboat.html');
				bodyHTML = bodyHTML.replace('billofsaleboat-asis/us', 'billofsaleboat-asis.html');
				bodyHTML = bodyHTML.replace('billofsaleauto-warranty/us', 'billofsaleauto.html');
				bodyHTML = bodyHTML.replace('billofsaleauto-asis/us', 'billofsaleauto-asis.html');
				bodyHTML = bodyHTML.replace('promnote-balloon/us/', 'promnote-balloon.html');
				bodyHTML = bodyHTML.replace('llc-articlesorg/us', 'llc-articlesorg.html');
				bodyHTML = bodyHTML.replace('llc-opag-man/us', 'llc-opag-man.html');
				bodyHTML = bodyHTML.replace('llc-opag-mem/us', 'llc-opag-mem.html');
				bodyHTML = bodyHTML.replace('lease-equip-asis/us', 'lease-equip-asis.html');
				bodyHTML = bodyHTML.replace('commission/us', 'commission.html');
				bodyHTML = bodyHTML.replace('commission-indem/us', 'commission-indem.html');
				bodyHTML = bodyHTML.replace('employ-confid/us', 'employ-confid-st.html');
				bodyHTML = bodyHTML.replace('sublease/us/', 'sublease.html');
				bodyHTML = bodyHTML.replace('divorce-mc-setag/us/', 'divorce-mc-setag.html');
				bodyHTML = bodyHTML.replace('divorce-nc-setag/us/', 'divorce-nc-setag.html');
				bodyHTML = bodyHTML.replace('divorce-mc/us/', 'divorce-mc.html');
				bodyHTML = bodyHTML.replace('divorce-nc-test/us/', 'inc-divorce-nc-body.inc');
				bodyHTML = bodyHTML.replace('namechange-adult/us', 'namechange-adult.html');
				bodyHTML = bodyHTML.replace('namechange-minor/us', 'namechange-minor.html');
				bodyHTML = bodyHTML.replace('lastwill-single/us/', 'lastwill-single2.html');
				bodyHTML = bodyHTML.replace('lastwill-married-ac/us/', 'lastwill-married-ac.html');
				bodyHTML = bodyHTML.replace('lastwill-married-nc/us/', 'lastwill-married-nc.html');
				bodyHTML = bodyHTML.replace('lastwill-single-mc/us/', 'lastwill-single-mc.html');
				bodyHTML = bodyHTML.replace('lastwill-single-ac/us/', 'lastwill-single-ac.html');
				bodyHTML = bodyHTML.replace('lastwill-single-mc-tr/us/', 'lastwill-single-mc-tr.html');
				
				bodyTag.innerHTML = bodyHTML;
			}

			// ProductPage - 05
			// change color of $50 offer
			var stStateValid = document.getElementById("_stStateValid");
			if (stStateValid && sitetuners96_var05 != 'a') {
				stStateValid.style.backgroundColor = '#ffffff';
			}
			var stVar05 = document.getElementById('_stVar05');
			var stVar05Form = document.getElementById('_stVar05Form');
			if (stVar05 && stVar05Form) {
				var stQuestions = document.getElementById('_stQuestions');
				var questionHTML = '';
				if (stQuestions) {
					questionHTML = '<br />' + stQuestions.innerHTML;
					questionHTML = questionHTML.replace('390', '100');
					questionHTML = questionHTML.replace('400px', '100px');
				}
				var st50Dollars = document.getElementById('_st50Dollars');
				if (st50Dollars) {
					questionHTML = questionHTML + '<br />' + st50Dollars.innerHTML;
				}

				var stForm = stVar05Form.innerHTML;
				var blueInstant = '<table border="0" align="center" cellpadding="0" cellspacing="0"style="font-size: 16px;">' + //  bgcolor="#DFDFFF" 
					'<tr>' +			
					'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-left-corner.gif" width="15" height="15"></td>' +
					'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="370" height="15"></td>' +
					'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-right-corner.gif" width="15" height="15"></td>' +	
					'</tr>' +
					'<tr>' +
					'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-left.gif"> </td>' +
					'<td align="center">' +
					'<div style="margin-bottom: 10px; margin-top: 0px; font-size: 24px; font-weight: bold;">Instant Download - <span style="color: green">Only $' +
					sitetuners_price +
					'</span></div>' +
					'<table style="margin-bottom: 0px; margin-top: 0px;"><tbody><tr><td><ul style="font-weight: bold; font-size: 16px; margin-bottom: 0px;">' +
					'<li style="margin-bottom: 10px">Professional MS Word formatting&nbsp;<img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/word.gif"></li>' +
					'<li style="margin-bottom: 10px">Fully editable &amp; reusable</li>' +
					'<li style="margin-bottom: 10px">Lifetime updates</li>' +
					'<li style="margin-bottom: 0px">Accuracy guarantee</li>' +
					'</ul></td></tr></tbody></table>' +
					'<div align="center" style="font-size: 24px; font-weight: bold; font-color: blue; margin-bottom: 5px; margin-top: 5px;"><a href="' + sitetuners_link + '">Add to Cart</a></div>' +
					'<a href="' + sitetuners_link + '"><img src="' + sitetuners_protocol + '://www.ilrg.com/graphics/creditcards.jpg" border="0"></a>' +
					'</td>' +
					'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-right.gif"> </td>' +
					'</tr>' +
					'<tr> ' +
					'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-left-corner.gif" width="15" height="15"></td>' +
					'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="370" height="15"></td>' +
					'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-right-corner.gif" width="15" height="15"></td>' +
					'</tr>' +
					'</table>';
				var getitfree = '<table border="0" align="center" cellpadding="0" cellspacing="0"style="font-size: 16px;">' + //  bgcolor="#DFDFFF" 
					'<tr>' +			
					'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-left-corner.gif" width="15" height="15"></td>' +
					'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="40" height="15"></td>' +
					'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-right-corner.gif" width="15" height="15"></td>' +	
					'</tr>' +
					'<tr>' +
					'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-left.gif"> </td>' +
					'<td align="center">' +
					'<h4>Get It Free</h4><p style="font-size: .75em; text-align: justify;">"cut &amp; paste" the text below, reconstruct in your text editing program, and re-format to your needs.' +					'</td>' +
					'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-right.gif"> </td>' +
					'</tr>' +
					'<tr> ' +
					'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-left-corner.gif" width="15" height="15"></td>' +
					'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="40" height="15"></td>' +
					'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-right-corner.gif" width="15" height="15"></td>' +
					'</tr>' +
					'</table>'; 
	
				// get the name of the form - it should be between the <b> tags
				var formName = 'Form name needs to be wrapped with span!';
				var stFormName = document.getElementById('_stFormName');
				if (stFormName) {
					formName = stFormName.innerHTML;
				}
				switch (sitetuners96_var05) {
					case 'a':	// OrigProduct
					default:
						stVar05Form.style.fontFamily = 'Arial, Helvetica, sans-serif';
						stVar05Form.style.fontSize = '10pt';
						switch (sitetuners96_var02) {
							case 'a':	// OrigStructure
							default:
								var stTribal = document.getElementById('_stTribal');
								var stTribalHoriz = document.getElementById('_stTribalHoriz');
								if (stTribal && stTribalHoriz) {
//									stTribal.innerHTML = '<br /><img border="0" src="http://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
//									'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=468x60&requestID=1370457704" target=_blank>' +
//									'<img src="http://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=468x60&requestID=1370457704" ' +
//									'width=468 height=60 border=0 alt="Click Here"></a><br />' +
//									'<tt><b><font size="-5">Support The Internet Legal Research Group; Visit Our Advertisers</font></b></tt>';						
			
//									stTribalHoriz.innerHTML = '<img border="0" src="http://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
//									'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" target=_blank>' +
//									'<img src="http://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" ' +
//									'width=120 height=600 border=0 alt="Click Here"></a>';
								}
								break;
							case 'b':	// NewStructure
								var stVar05Word = document.getElementById('_stVar05Word');
								var stVar05Scan = document.getElementById('_stVar05Scan');
								var stVar05Auto = document.getElementById('_stVar05BuyIt');
								if (tableCol3 && stVar05Scan && stVar05Auto) {
									stVar05Auto.innerHTML = '';
									stVar05Scan.innerHTML = '';
								}
								if (stVar05 && stVar05Word) {
									stVar05.innerHTML = stVar05Word.innerHTML;
								}
								break;
						}
						break;
					case 'b':	// NewProduct
						// remove any html within _stAttorney span
						var stAttorney = document.getElementById("_stAttorney");
						if (stAttorney) {
							var parent = stAttorney.parentNode;
							parent.removeChild(stAttorney);
						}
						if (stVar05) {
							stVar05.innerHTML = '<span style="font-family:Arial, Helvetica, sans-serif">' +
								'<div align="center" style="font-size: 24px; font-weight: bold; text-align: center; margin: 10px 0px 10px 0px;">' + formName + '</div>' +
								'<table style="font-size: 16px;"><tbody>' +
								'<tr><td>' +
								blueInstant +
								'</td><td style="padding-right: 35px;">' +
								getitfree +
								'</td></tr>' +
								'<tr><td colspan="2" align="left" style="padding: 35px 0px 15px 0px;' + font75 + '">' +
								stForm +
								'</td></tr>' +
								'<tr><td colspan="2" align="center">' +
								blueInstant +
								'</td></tr>' +
								'</tbody></table></span><br /><br />' +
								questionHTML;
						}
						break;
					case 'c':	// NewProduct2
						// remove any html within _stAttorney span
						var stAttorney = document.getElementById("_stAttorney");
						if (stAttorney) {
							var parent = stAttorney.parentNode;
							parent.removeChild(stAttorney);
						}
						if (stVar05) {
							stVar05.innerHTML = '<span style="font-family:Arial, Helvetica, sans-serif">' +
								'<div align="center" style="font-size: 24px; font-weight: bold; text-align: center; margin: 10px 0px 10px 0px;">' + formName + '</div>' +
								'<table style="font-size: 16px;"><tbody>' +
								'<tr><td align="center">' +
								blueInstant +
								'</td></tr>' +
								'<tr><td align="left" style="padding: 35px 0px 15px 0px;' + font75 + '">' +
								stForm +
								'</td></tr>' +
								'<tr><td align="center">' +
								blueInstant +
								'</td></tr>' +
								'</tbody></table></span><br /><br />' +
								questionHTML;
						}
						break;
				}
			}

			// ShoppingCart - 06
			var stVar06 = document.getElementById('_stVar06');
			var stVar06a = document.getElementById('_stVar06a');
			var stVar06b = document.getElementById('_stVar06b');
			var stVar06c = document.getElementById('_stVar06c');
			var stVar06Top = document.getElementById('_stVar06Top');
			if (stVar06 && stVar06a && stVar06b && stVar06c && stVar06Top) {
				switch (sitetuners96_var06) {
					case 'a':	// OrigCart
					default:
						if (sitetuners96_var02 == 'b') {
							stVar06Top.innerHTML = '';
							// now remove the left and right columns
							var table2 = document.getElementById('table2');
							var table6 = document.getElementById('table6');
							if (table2 && table6 && tableCol3) { // move testimonials to right column
//								tableCol3.appendChild(table2);
//								tableCol3.appendChild(table6);
							}
							stVar06.removeChild(stVar06a);
							stVar06.removeChild(stVar06b);
							var cartRow1 = document.getElementById('cartRow1');
							var cartR1C1 = document.getElementById('cartR1C1');
							var cartR1C3 = document.getElementById('cartR1C3');
							if (cartRow1 && cartR1C1 && cartR1C3) {
								cartRow1.removeChild(cartR1C1);
								cartRow1.removeChild(cartR1C3);
							}
						}						
						break;
					case 'b':	// NewCart
						var stVar06VS = document.getElementById('_stVar06Verisign');
						var Verisign = '';
						if (stVar06VS) {
							Verisign = stVar06VS.innerHTML;
						}
						stVar06Top.innerHTML = '';
						stVar06.removeChild(stVar06a);
						stVar06.removeChild(stVar06b);
						stVar06c.style.display = 'none';
						var stVar06Title = document.getElementById('_stVar06Title');
						if (stVar06Title) {
							if (sitetuners96_var02 == 'b') {
								stVar06Title.innerHTML = '<h2 align="center">Shopping Cart</h2>' +
									'<ul>' +
									'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Immediate download access &amp; email with attachments</li>' +
									'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Fully editable &amp; reusable forms</li>' +
									'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Lifetime updates &amp; accuracy guarantee</li>' +
									'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Professional MS Word formatting</li>' +
									'</ul>' +
									'<center style="padding: 0px 0px 15px 0px;"><table style="padding: 0px 0px 10px 0px;"><tbody><tr style="padding: 0px 0px 0px 0px;">' +
									'<td colspan="3" align="center"><img border="0" src="/graphics/visamcamexdiscpp.jpg"></td>' +
									'</tr></tbody></table></center>';
							}
							else {
								stVar06Top.style.fontFamily = 'arial, helvetica, sans-serif, geneva';
								stVar06Top.innerHTML = '<h2 align="center">Shopping Cart</h2>' +
									'<div align="right"><table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table7"><tr><td>' +
									'<b><font face="Arial" size="2"><a href="http://www.ilrg.com/">Main Menu</a> > ' +
									'<a href="http://www.ilrg.com/forms/">Legal Forms Archive</a> &gt; Form Purchase</font></b></td>' +
									'<td><p align="right"><font face="Arial" size="2"><b>Question? Call us toll-free at ' +
									'<font color="#FF0000">1-800-987-9087, Ext. 1</font> --	24x7!</b></font></td></tr>' +
									'</table></div><hr size="1">';
								stVar06Title.innerHTML = '<ul>' +
									'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Immediate download access &amp; email with attachments</li>' +
									'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Fully editable &amp; reusable forms</li>' +
									'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Lifetime updates &amp; accuracy guarantee</li>' +
									'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Professional MS Word formatting</li>' +
									'</ul>' +
									'<center style="padding: 0px 0px 15px 0px;"><table style="padding: 0px 0px 10px 0px;"><tbody><tr style="padding: 0px 0px 0px 0px;">' +
									'<td colspan="3" align="center"><img border="0" src="/graphics/visamcamexdiscpp.jpg"></td>' +
									'</tr><tr>' +
									'<td style="padding-right: 30px;"><a target="_blank" href="https://www.scanalert.com/RatingVerify?ref=www.ilrg.com"><img width="94" height="54" border="0" src="//images.scanalert.com/meter/www.ilrg.com/13.gif" alt="HACKER SAFE certified sites prevent over 99.9% of hacker crime." oncontextmenu="alert(\'Copying Prohibited by Law - HACKER SAFE is a Trademark of ScanAlert\'); return false;"></a></td>' +
									'<td><a href="http://www.truste.org/ivalidate.php?url=www.ilrg.com&sealid=101" target="_blank"><img border="0" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/truste_seal_web.gif"></a></td>' +
									'<td style="padding-left: 30px;"><a href="https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.ILRG.COM&lang=en" target="_blank"><img border="0" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/_stVerisign.gif"></a></td>' +
									'</tr></tbody></table></center>';
							}
						}
						var stVar06Related = document.getElementById('_stVar06Related');
						var stVar06Table = document.getElementById('_stVar06Table');
						if (stVar06Table) {
							// make the subtotal larger
							var stVar06Sub = document.getElementById('_stVar06Subtotal');
							if (stVar06Sub) {
								stVar06Sub.innerHTML = '<span style="font-size: 1em; font-weight: bold;">' + stVar06Sub.innerHTML + '</span>';
							}

							// cart, add the blue table
							var cartTable = stVar06Table.innerHTML;

							// clean up the html
							var trStart = cartTable.toLowerCase().indexOf('<tr');
							var trEnd = cartTable.toLowerCase().indexOf('</tr>');
							cartTable = cartTable.replace(cartTable.substring(trStart, trEnd+5), '');
//							cartTable = cartTable.replace('<table', '<table bgcolor="#DFDFFF"');
							cartTable = cartTable.replace('Current Subtotal', '<span style="font-size: 1em">Subtotal</span>');
							cartTable = cartTable.replace(/ bgcolor="#d0d0d0"/gi, '');
							cartTable = cartTable.replace(/ bgcolor="#f0f0f0"/gi, '');
							cartTable = cartTable.replace(/ bgcolor="#ffffff"/gi, '');
							cartTable = cartTable.replace(/ bgcolor=#d0d0d0/gi, '');
							cartTable = cartTable.replace(/ bgcolor=#f0f0f0/gi, '');
							cartTable = cartTable.replace(/ bgcolor=#ffffff/gi, '');
//							cartTable = cartTable.replace(/<td>/gi, '<td style="font-size: .8em;">');							
						}
						if (!stVar06Related && stVar06Table) {
							PayPal_form = document.getElementById("paypal");
							if (PayPal_form != null)
							{
								PayPal_form.parentNode.removeChild(PayPal_form);
								PayPal_form = PayPal_form.innerHTML;
								if (PayPal_form)
								{
									PayPal_form = '<br><div style="text-align:right">' + PayPal_form + '</div>';
								}
								else
								{
									PayPal_form = '';
								}
							}
							else
							{
								PayPal_form = '';
							}
							
							stVar06Table.innerHTML = '' +
								'<table border="0" align="center" cellpadding="0" cellspacing="0">' + //  bgcolor="#DFDFFF"
								'<tr>' +			
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-left-corner.gif" width="15" height="15"></td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="540" height="15"></td>' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-right-corner.gif" width="15" height="15"></td>' +	
								'</tr>' +
								'<tr>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-left.gif"> </td>' +
								'<td align="center">' +
								'<h3>Current Cart Contents</h3>' +
								cartTable +
								'<div align="right" style="margin-top: 25px">' +
								'<table style="width:100%"><tr><td style="width:50%;text-align:left">' +
								'<a href="http://www.ilrg.com/forms/"><img style="border:none" src="/graphics/btn_cont_shopping.gif" alt="Continue Shopping"></a>' +
								'</td><td style="text-align:right">' +
								'<form action="https://www.ilrg.com/checkout.php" method="POST" style="margin:0">' +
								'<input type="image" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/_stProceed.jpg">' +
								'</form>' +
								'</td></tr></table>' +
								'</div>' + PayPal_form +
								'</td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-right.gif"> </td>' +
								'</tr>' +
								'<tr> ' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-left-corner.gif" width="15" height="15"></td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="540" height="15"></td>' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-right-corner.gif" width="15" height="15"></td>' +
								'</tr>' +
								'</table>';
						}
						if (stVar06Related && stVar06Table) {
							// Related documents, add the blue table
							var relatedTable = stVar06Related.innerHTML;

							var stFax = document.getElementById('_stFax');
							var Fax = '';
							if (stFax) {
								Fax = stFax.innerHTML;
								var parent = stFax.parentNode;
								parent.removeChild(stFax);
							}
							
							PayPal_form = document.getElementById("paypal");
							if (PayPal_form != null)
							{
								PayPal_form.parentNode.removeChild(PayPal_form);
								PayPal_form = PayPal_form.innerHTML;
								if (PayPal_form)
								{
									PayPal_form = '<br><div style="text-align:right">' + PayPal_form + '</div>';
								}
								else
								{
									PayPal_form = '';
								}
							}
							else
							{
								PayPal_form = '';
							}
//							stVar06Table.innerHTML = '<table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#DFDFFF">' +
							stVar06Table.innerHTML = '' +
								'<table border="0" align="center" cellpadding="0" cellspacing="0">' + //  bgcolor="#FFFFFF"
								'<tr>' +			
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-left-corner.gif" width="15" height="15"></td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="540" height="15"></td>' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-right-corner.gif" width="15" height="15"></td>' +	
								'</tr>' +
								'<tr>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-left.gif"> </td>' +
								'<td align="center">' +
								'<h3>Current Cart Contents</h3>' +
								cartTable +
								'<div align="right" style="margin-top: 25px">' +
								'<table style="width:100%"><tr><td style="width:50%;text-align:left">' +
								'<a href="http://www.ilrg.com/forms/"><img style="border:none" src="/graphics/btn_cont_shopping.gif" alt="Continue Shopping"></a>' +
								'</td><td style="text-align:right">' +
								'<form action="https://www.ilrg.com/checkout.php" method="POST">' +
								'<input type="image" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/_stProceed.jpg">' +
								'</form>' +
								'</td></tr></table>' +
								'</div> ' + Fax +
								'<h3>Related Documents</h3>' +
								relatedTable +								
								'<div align="right" style="margin-top: 25px">' +
								'<table style="width:100%"><tr><td style="width:50%;text-align:left">' +
								'<a href="http://www.ilrg.com/forms/"><img style="border:none" src="/graphics/btn_cont_shopping.gif" alt="Continue Shopping"></a>' +
								'</td><td style="text-align:right">' +
								'<form action="https://www.ilrg.com/checkout.php" method="POST" style="margin:0">' +
								'<input type="image" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/_stProceed.jpg">' +
								'</form>' +
								'</td></tr></table>' +
								'</div>' + PayPal_form +
								'</td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-right.gif"> </td>' +
								'</tr>' +
								'<tr> ' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-left-corner.gif" width="15" height="15"></td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="540" height="15"></td>' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-right-corner.gif" width="15" height="15"></td>' +
								'</tr>' +
								'</table>';
							var parent = stVar06Related.parentNode;
							parent.removeChild(stVar06Related);
						}
						var stVar06Checkout = document.getElementById('_stVar06Checkout');
						if (stVar06Checkout) {
//							stVar06Checkout.innerHTML = '<span style="color: blue; font-weight: bold">Safe &amp; Smart Shopping</span>';
							var parent = stVar06Checkout.parentNode;
							parent.removeChild(stVar06Checkout);
						}
						var stVar06Cust = document.getElementById('_stVar06Cust');
						if (stVar06Cust) {
							stVar06Cust.style.display = 'none';
						}
						break;
				}
			}

			// Checkout - 07
			switch (sitetuners96_var07) {
				case 'a':	// OrigCheckout
				default:
					break;
				case 'b':	// NewCheckout
					var stVar07CartTitle = document.getElementById('_stVar07CartTitle');
					if (stVar07CartTitle) {
						if (sitetuners96_var02 == 'b') {
							stVar07CartTitle.innerHTML = '';
							
							if ((paypal_page == null) || !paypal_page) {
								stVar07CartTitle.innerHTML = '<h2 align="center" style="padding: 0px 0px 0px 0px; font-family: arial, helvetica, sans-serif, geneva;">Secure Checkout</h2>' +
								'<ul>' +
								'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Immediate download access &amp; email with attachments</li>' +
								'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Fully editable &amp; reusable forms</li>' +
								'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Lifetime updates &amp; accuracy guarantee</li>' +
								'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Professional MS Word formatting</li>' +
								'</ul>' +
								'<center style="padding: 0px 0px 15px 0px;"><table style="padding: 0px 0px 10px 0px;"><tbody><tr style="padding: 0px 0px 0px 0px;">' +
								'<td colspan="3" align="center"><img border="0" src="/graphics/visamcamexdiscpp.jpg"></td>' +
								'</tr></tbody></table></center>';
							}
							else
							{
								stVar07CartTitle.innerHTML = '<h2 align="center" style="padding: 0px 0px 0px 0px; font-family: arial, helvetica, sans-serif, geneva;">PayPal Checkout</h2>';
							}
						}
						else {
							stVar07CartTitle.innerHTML = '<h2 align="center" style="padding: 0px 0px 0px 0px; font-family: arial, helvetica, sans-serif, geneva;">Secure Checkout</h2>' +
								'<ul>' +
								'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Immediate download access &amp; email with attachments</li>' +
								'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Fully editable &amp; reusable forms</li>' +
								'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Lifetime updates &amp; accuracy guarantee</li>' +
								'<li style="font-weight: bold; font-family: arial, helvetica, sans-serif, geneva; font-size: .75em;">Professional MS Word formatting</li>' +
								'</ul>' +
								'<center style="padding: 0px 0px 15px 0px;"><table style="padding: 0px 0px 10px 0px;"><tbody><tr style="padding: 0px 0px 0px 0px;">' +
								'<td colspan="3" align="center"><img border="0" src="/graphics/visamcamexdiscpp.jpg"></td>' +
								'</tr><tr>' +
								'<td style="padding-right: 30px;"><a target="_blank" href="https://www.scanalert.com/RatingVerify?ref=www.ilrg.com"><img width="94" height="54" border="0" src="//images.scanalert.com/meter/www.ilrg.com/13.gif" alt="HACKER SAFE certified sites prevent over 99.9% of hacker crime." oncontextmenu="alert(\'Copying Prohibited by Law - HACKER SAFE is a Trademark of ScanAlert\'); return false;"></a></td>' +
								'<td><a href="http://www.truste.org/ivalidate.php?url=www.ilrg.com&sealid=101" target="_blank"><img border="0" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/truste_seal_web.gif"></a></td>' +
								'<td style="padding-left: 30px;"><a href="https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.ILRG.COM&lang=en" target="_blank"><img border="0" src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/_stVerisign.gif"></a></td>' +
								'</tr></tbody></table></center>';
						}
							
						var inputTags = document.getElementsByTagName('input');
						if (inputTags) {
							// traverse the tags and make appropriate changes
							for (var i=0; i < inputTags.length; i++) {
								switch (inputTags[i].name) {
									case 'x_card_code':
										var newElement = document.createElement('input');
										newElement.setAttribute('type', 'hidden');
										newElement.setAttribute('name', 'x_card_code');
										newElement.setAttribute('value', '');
										inputTags[i].parentNode.replaceChild(newElement, inputTags[i]);
										break;
									case 'x_company':
										var newElement = document.createElement('input');
										newElement.setAttribute('type', 'hidden');
										newElement.setAttribute('name', 'x_company');
										newElement.setAttribute('value', '');
										inputTags[i].parentNode.replaceChild(newElement, inputTags[i]);
										break;
									case 'nocvm':
										var newElement = document.createElement('input');
										newElement.setAttribute('type', 'hidden');
										newElement.setAttribute('name', 'nocvv');
										newElement.setAttribute('value', '1');
										inputTags[i].parentNode.replaceChild(newElement, inputTags[i]);
										break;
									default:
										break;
								}
							}
						}

						var stVar07Form = document.getElementById('_stVar07Form');
						if (stVar07Form) {
							var formHTML = stVar07Form.innerHTML;
							formHTML = formHTML.replace(/<form /i, '<form onSubmit="return ValidateCheckoutForm();" ');
							formHTML = formHTML.replace(/Company:/i, '&nbsp;');
							formHTML = formHTML.replace(/\<b\>\*\<\/b\>/gi, '');
							formHTML = formHTML.replace(/\(fields marked /gi, '');
							formHTML = formHTML.replace(/are required\)/gi, '');
							formHTML = formHTML.replace(/ bgcolor="#d0d0d0"/gi, '');
							formHTML = formHTML.replace(/ bgcolor=#d0d0d0/gi, '');
							formHTML = formHTML.replace(/Card Verification #:/i, '');
							formHTML = formHTML.replace(/Card Verification #:/i, '&nbsp;');
							formHTML = formHTML.replace(/What's This\?/i, '');
							formHTML = formHTML.replace(/Not on my card /i, '');
							formHTML = formHTML.replace(/Please wait up to 45 seconds after submitting your order./i, '');
							
							stVar07Form.innerHTML = '<span style="font-family: arial, helvetica, sans-serif, geneva;"><table border="0" align="center" cellpadding="0" cellspacing="0">' + //  bgcolor="#DFDFFF"
								'<tr>' +			
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-left-corner.gif" width="15" height="15"></td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="540" height="15"></td>' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-right-corner.gif" width="15" height="15"></td>' +	
								'</tr>' +
								'<tr>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-left.gif"> </td>' +
								'<td align="center">' +
								formHTML +
								'</td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-right.gif"> </td>' +
								'</tr>' +
								'<tr> ' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-left-corner.gif" width="15" height="15"></td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="540" height="15"></td>' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-right-corner.gif" width="15" height="15"></td>' +
								'</tr>' +
								'</table></span>';
						}
						if (stVar06c) {
							stVar06c.style.display = 'none';
						}
						var stHS = document.getElementById('_stHS');
						if (stHS) {
							stHS.style.display = 'none';
						}
						var stVar06Table = document.getElementById('_stVar06Table');
						if (stVar06Table) {
							// make the subtotal larger
							var stVar06Sub = document.getElementById('_stVar06Subtotal');
							if (stVar06Sub) {
								stVar06Sub.innerHTML = '<span style="font-size: 1em; font-weight: bold;">' + stVar06Sub.innerHTML + '</span>';
							}
	
							// cart, add the blue table
							var cartTable = stVar06Table.innerHTML;
	
							// clean up the html
							var trStart = cartTable.toLowerCase().indexOf('<tr');
							var trEnd = cartTable.toLowerCase().indexOf('</tr>');
							cartTable = cartTable.replace(cartTable.substring(trStart, trEnd+5), '');
//							cartTable = cartTable.replace('<table', '<table bgcolor="#DFDFFF"');
							cartTable = cartTable.replace('Current Subtotal', '<span style="font-size: 1.25em">Subtotal</span>');
							cartTable = cartTable.replace(/ bgcolor="#d0d0d0"/gi, '');
							cartTable = cartTable.replace(/ bgcolor="#f0f0f0"/gi, '');
							cartTable = cartTable.replace(/ bgcolor="#ffffff"/gi, '');
							cartTable = cartTable.replace(/ bgcolor=#d0d0d0/gi, '');
							cartTable = cartTable.replace(/ bgcolor=#f0f0f0/gi, '');
							cartTable = cartTable.replace(/ bgcolor=#ffffff/gi, '');
							
							stVar06Table.innerHTML = '<span style="font-family: arial, helvetica, sans-serif, geneva;"><table border="0" align="center" cellpadding="0" cellspacing="0">' + //  bgcolor="#DFDFFF"
								'<tr>' +			
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-left-corner.gif" width="15" height="15"></td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="540" height="15"></td>' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-top-right-corner.gif" width="15" height="15"></td>' +	
								'</tr>' +
								'<tr>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-left.gif"> </td>' +
								'<td align="center">' +
								'<h3>Order Summary</h3>' +
								cartTable +
								'</td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-right.gif"> </td>' +
								'</tr>' +
								'<tr> ' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-left-corner.gif" width="15" height="15"></td>' +
								'<td background="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom.gif"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/spacer.gif" width="540" height="15"></td>' +
								'<td width="15" height="15"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/bluebox-bottom-right-corner.gif" width="15" height="15"></td>' +
								'</tr>' +
								'</table></span>';

							var stVar07Submit = document.getElementById('_stVar07Submit');
							if (stVar07Submit) {
								stVar07Submit.innerHTML = '<a href="javascript: if (ValidateCheckoutForm()) { document.checkout.submit() }"><img src="' + sitetuners_protocol + '://www.ilrg.com/sitetuners/_stPlaceOrder.jpg" border="0"></a><br /><br />'; 
							}
						}
					}
					break;
			}

			// in all cases remove feedback
			var stRateJS = document.getElementById('_stRateJS');
			if (stRateJS) {
				stRateJS.innerHTML = '';
			}

			// in all cases of search replace the unformatted state pages
			var searchPage = document.getElementById('_stSearch');
			if (searchPage) {
				var bodyTag = document.getElementsByTagName('body').item(0);
				var bodyHTML = bodyTag.innerHTML;
				bodyHTML = bodyHTML.replace('billofsaleboat-warranty/us', 'billofsaleboat.html');
				bodyHTML = bodyHTML.replace('billofsaleboat-asis/us', 'billofsaleboat-asis.html');
				bodyHTML = bodyHTML.replace('billofsaleauto-warranty/us', 'billofsaleauto.html');
				bodyHTML = bodyHTML.replace('billofsaleauto-asis/us', 'billofsaleauto-asis.html');
				bodyHTML = bodyHTML.replace('promnote-balloon/us/', 'promnote-balloon.html');
				bodyHTML = bodyHTML.replace('llc-articlesorg/us', 'llc-articlesorg.html');
				bodyHTML = bodyHTML.replace('llc-opag-man/us', 'llc-opag-man.html');
				bodyHTML = bodyHTML.replace('llc-opag-mem/us', 'llc-opag-mem.html');
				bodyHTML = bodyHTML.replace('lease-equip-asis/us', 'lease-equip-asis.html');
				bodyHTML = bodyHTML.replace('commission/us', 'commission.html');
				bodyHTML = bodyHTML.replace('commission-indem/us', 'commission-indem.html');
				bodyHTML = bodyHTML.replace('employ-confid/us', 'employ-confid-st.html');
				bodyHTML = bodyHTML.replace('sublease/us/', 'sublease.html');
				bodyHTML = bodyHTML.replace('divorce-mc-setag/us/', 'divorce-mc-setag.html');
				bodyHTML = bodyHTML.replace('divorce-nc-setag/us/', 'divorce-nc-setag.html');
				bodyHTML = bodyHTML.replace('divorce-mc/us/', 'divorce-mc.html');
				bodyHTML = bodyHTML.replace('divorce-nc/us/', 'divorce-nc.html');
				bodyHTML = bodyHTML.replace('namechange-adult/us', 'namechange-adult.html');
				bodyHTML = bodyHTML.replace('namechange-minor/us', 'namechange-minor.html');
				bodyHTML = bodyHTML.replace('lastwill-single/us/', 'lastwill-single2.html');
				bodyHTML = bodyHTML.replace('lastwill-married-ac/us/', 'lastwill-married-ac.html');
				bodyHTML = bodyHTML.replace('lastwill-married-nc/us/', 'lastwill-married-nc.html');
				bodyHTML = bodyHTML.replace('lastwill-single-mc/us/', 'lastwill-single-mc.html');
				bodyHTML = bodyHTML.replace('lastwill-single-ac/us/', 'lastwill-single-ac.html');
				bodyHTML = bodyHTML.replace('lastwill-single-mc-tr/us/', 'lastwill-single-mc-tr.html');
				
				bodyTag.innerHTML = bodyHTML;
				
				if (sitetuners96_var01 == 'b') {
					var stResults = document.getElementById('_stResults');
					if (stResults) {
						var spanElem = document.createElement("span");

						var theResults = 'Search Results';
						spanElem.innerHTML = '<h1 align="center" style="font-family: Arial, Helvetica, sans-serif;">' + theResults + '</h1>';
						stResults.parentNode.replaceChild(spanElem, stResults);
					}
				}
			}
			
			var searchPage = document.getElementById('_stSearch');
			var searchPage2 = document.getElementById('_stSearch2');
			if (searchPage || searchPage2) {
				var stTribal = document.getElementById('_stTribal');
				var stTribalHoriz = document.getElementById('_stTribalHoriz');
				if (sitetuners96_var01 != 'b' && sitetuners96_var02 != 'b') {
					if (stTribal) {
//						stTribal.innerHTML = '<br /><img border="0" src="http://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
//						'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=468x60&requestID=1370457704" target=_blank>' +
//						'<img src="http://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=468x60&requestID=1370457704" ' +
//						'width=468 height=60 border=0 alt="Click Here"></a><br />' +
//						'<tt><b><font size="-5">Support The Internet Legal Research Group; Visit Our Advertisers</font></b></tt>';
					}
	
					if (stTribalHoriz) {
//						stTribalHoriz.innerHTML = '<img border="0" src="http://www.ilrg.com/graphics/advertisement.gif" width="120" height="10"><br>' +
//						'<a href="http://a.tribalfusion.com/i.click?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" target=_blank>' +
//						'<img src="http://a.tribalfusion.com/i.ad?site=InternetLegalResourceGuide&adSpace=ROS&size=120x600&requestID=481900567" ' +
//						'width=120 height=600 border=0 alt="Click Here"></a>';
					}
				}
			}

			// display the page
			var sitetuners_hidden = document.getElementById("sitetuners_hidden96");
			if (sitetuners_hidden) {
				sitetuners_hidden.style.display = 'block';
			}
			break;
		default:
			break;
	}
} // end sitetuners_handler

// *************************************************************************************
// SPECIFIC FOR TUNEUP 96
// *************************************************************************************

// Check for sitetuners_exclude. This variable should be set ABOVE of this included script
// in INLINE javascript code. This variable should be set to true if we do not want 
// any site tuning to take place. Do this if we need to exclude ip addresses, private label
// visitors, previous purchasers, etc.
if (typeof sitetuners_exclude96 == "undefined") {
	var sitetuners_exclude96 = false;
}

// if we can't access document.getElementById or document.getElementsByTagName functionality exclude this visitor
if (!document.getElementById || !document.getElementsByTagName || !document.insertBefore) {
	sitetuners_exclude96 = true;
}
	
if (!sitetuners_exclude96) {		// we only run the code if we can use this functionality
	// initialize sitetuners variables
	var sitetuners_transaction96 = '';

	// initialize individual vars here
	var sitetuners96_var01 = '';
	var sitetuners96_var02 = '';
	var sitetuners96_var03 = '';
	var sitetuners96_var04 = '';
	var sitetuners96_var05 = '';
	var sitetuners96_var06 = '';
	var sitetuners96_var07 = '';

	// if a recipe was posted
	if (!(typeof x_sitetuners_recipe == "undefined")) {
		if (x_sitetuners_recipe.length > 0 ) {
			sitetuners_setCookie('sitetuners_recipe96', x_sitetuners_recipe);
		}
	}

	// get the recipe from the URL's Query String
	var sitetuners_recipe96 = sitetuners_getRecipeQueryString(96);
	var sitetuners_recipe96 = 'Nbbbacbb';
	if (sitetuners_recipe96 != '') {
		sitetuners_setCookie('sitetuners_recipe96', sitetuners_recipe96);
	}
	else {
		sitetuners_recipe96 = sitetuners_getRecipeCookie(96);
		// can we get the recipe from a cookie
		if (sitetuners_recipe96 == '') {
			if (sitetuners_setCookie('sitetuners_recipe96', 'Naaaaaaa')) {
				// Fetch the element pointed to by the id. If it exists, we destroy it so we can create a new one.
				var sitetuners_script = document.getElementById('sitetuners_script96');
		
				// Point at the script tag, if it exists
				var sitetuners_head = document.getElementsByTagName("head").item(0);
				// Destroy the tag, if it exists
				if (sitetuners_script) {
					// Destroy object
					sitetuners_head.removeChild(sitetuners_script);
				}   // Create the new script tag
				sitetuners_script = document.createElement('script');
		
				// Setup the src attribute of the script tag
				sitetuners_script.src = sitetuners_protocol + '://clients.sitetuners.com/getrecipejs.php?sitetuners_tuneup=96';
				sitetuners_script.type = 'text/javascript';
				sitetuners_script.language = 'javascript';
				sitetuners_script.id = 'sitetuners_script96';
		
				// Create the new script tag which causes the proxy to be called
				sitetuners_head.appendChild(sitetuners_script);					
			}
			else {	// there's no recipe we're live and we can't set a cookie so exclude this visitor
				// default to all a's sitetuners_exclude96 = true;
			}
		}
	}
}

// if sitetuners_exclude has not been set to false in the above code hide any client
// html so we can begin to make the page changes in sitetuners_handler()
if (!sitetuners_exclude96) {
	document.write('<style type=\"text/css\">');
	document.write('#sitetuners_hidden96 { display:none }');
	document.write('</style>');
}

// *************************************************************************************
// SPECIFIC FOR TUNEUP 96
// *************************************************************************************
