

// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------


var s = new Array();
s[0] = "Paving^patios.html^For all your paving needs.^We are a block paving specialist as well";
s[1] = "Specials^special.html^our jobs that took a lost of inspiration^See what we have here";
s[2] = "Driveways^driveways.html^Selection of driveway projects.^See what we have here";
s[3] = "Slabs^patios.html^For all your paving needs.^We are a block paving specialist as well";
s[4] = "Block Paving^driveway.html^For all your paving needs.^We are a block paving specialist as well";
s[5] = "Crazy Paving^products.html^our Products.^View our products";
s[6] = "Sandstone^special.html^Selection of special projects.^See what we have here";
s[7] = "Paviors^special.html^Selection of special projects.^See what we have here";
s[8] = "Links^links.html^See our links^Pick a link";
s[9] = "Regatta^products.html^our Products.^View our products";
s[10] = "Tumbled^products.html^our Products.^View our products";
s[11] = "Decking^products.html^our Products.^View our products";
s[12] = "Edgeblocks^products.html^our Products.^View our products";
s[13] = "Brett^products.html^our Products.^View our products";
s[14] = "Alpha^products.html^our Products.^View our products";
s[15] = "Bronte^products.html^our Products.^View our products";
s[16] = "Edgeblocks^products.html^our Products.^View our products";
s[17] = "Natural Stone^products.html^our Products.^View our products";
s[18] = "Tumbled blocks^products.html^our Products.^View our products";
s[19] = "Steps^special.html^Special Jobs.^View our specials";
s[20] = "Lights^special.html^Special Jobs.^View our specials";
s[21] = "Creasing Tiles^special.html^Special Jobs.^View our specials";
s[22] = "Water Feature^special.html^Special Jobs.^View our specials";
s[23] = "Surrey Blend^special.html^Special Jobs.^View our specials";
s[24] = "TopPave^special.html^Special Jobs.^View our specials";
s[25] = "Standard Block^driveways.html^Special Jobs.^View our specials";
s[26] = "Engineering Bricks^special.html^Special Jobs.^View our specials";
s[27] = "Cobblestone^special.html^Special Jobs.^View our specials";
s[28] = "Patios^patios.html^Selection of Patios.^View our Patios";
s[29] = "Products^products.html^Selection of Products.^View our Products";
s[30] = "Avenue Paving^index.html^Avenue Paving, Natural Stone Specialist.";
s[31] = "Fineline^products.html^Selection of Products.^View our Products";
s[32] = "Antique^products.html^Selection of Products.^View our Products";
s[33] = "Bradstone^products.html^Selection of Products.^View our Products";
s[34] = "Products^products.html^Selection of Products.^View our Products";
s[35] = "Drainage^index.html^What we do.";
s[36] = "Creteprint^index.html^What we don't do.";
s[37] = "Turf^index.html^What we do.";
s[38] = "Tarmac^index.html^What we don't do.";
s[39] = "Durability^index.html^Why choose Block paving.";
s[40] = "Paths^patios.html^For all your paving needs.^We are a block paving specialist as well";
s[41] = "Specialist^index.html^What we do.";
s[42] = "Essex^index.html^What we do.";
s[43] = "Seating^special.html^Special Jobs.^View our specials";
s[44] = "Walls^special.html^Special Jobs.^View our specials";
s[45] = "Flagstones^index.html^What we do."

// ---------- end of script properties and sites ----------


var cookies = document.cookie;
var p = cookies.indexOf("d=");

if (p != -1) {
	var st = p + 2;
	var en = cookies.indexOf(";", st);
	if (en == -1) {
		en = cookies.length;
	}
	var d = cookies.substring(st, en);
	d = unescape(d);
}
var od = d;
var m = 0;
if (d.charAt(0) == '"' && d.charAt(d.length - 1) == '"') {
	m = 1;
}

var r = new Array();
var co = 0;

if (m == 0) {
	var woin = new Array();
	var w = d.split(" ");
	for (var a = 0; a < w.length; a++) {
		woin[a] = 0;
		if (w[a].charAt(0) == '-') {
			woin[a] = 1;
		}
	}
	for (var a = 0; a < w.length; a++) {
		w[a] = w[a].replace(/^\-|^\+/gi, "");
	}
	a = 0;
	for (var c = 0; c < s.length; c++) {
		pa = 0;
		nh = 0;
		for (var i = 0; i < woin.length; i++) {
			if (woin[i] == 0) {
				nh++;
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa++;
				} else {
					pa = 0;
				}
			}
			if (woin[i] == 1) {
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa = 0;
				}
			}
		}
		if (pa == nh) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;
}

if (m == 1) {
	d = d.replace(/"/gi, "");
	var a = 0;
	var pat = new RegExp(d, "i");
	for (var c = 0; c < s.length; c++) {
		var rn = s[c].search(pat);
		if (rn >= 0) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;

}


function return_query() {
	document.jse_Form.d.value = od;
}

function num_jse() {
	document.write(co);
}
function tony() {
	document.write(od);
}

function out_jse() {
	if (co == 0) {
		document.write('Your search did not match any documents.<p>Make sure all keywords are spelt correctly.<br>Try different or more general keywords.');
		return;
	}
	for (var a = 0; a < r.length; a++) {
		var os = r[a].split("^");
		if (bold == 1 && m == 1) {
			var br = "<b>" + d + "</b>";
			os[2] = os[2].replace(pat, br);
		}
		if (include_num == 1) {
			document.write(a + 1, '. <a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		} else {
			document.write('<a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		}
	}

}
