

// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------


var s = new Array();

s[0] = "Folding Umbrellas^FoldingUmbrellas.html^Strombergbrand - Folding Umbrellas^umbrellas, folding";
s[1] = "Golf Umbrellas^GolfUmbrellas.html^Strombergbrand - Golf Umbrellas^umbrellas, golf, sports";
s[2] = "Fashion Umbrellas^FashionUmbrellas.html^Strombergbrand - Golf Umbrellas^umbrellas, fashion";
s[3] = "Exclusive Items^ExclusiveItems.html^Strombergbrand - Exclusive Items^exclusive, items, umbrellas";
s[4] = "Patio and Market Umbrellas^PatioAndMarketUmbrellas.html^Strombergbrand - Patio And Market Umbrellas^patio, market, umbrellas";
s[5] = "Custom Work^CustomWork.html^Strombergbrand - Custom Work^custom, work, umbrellas";
s[6] = "Spectrum Automatic Folding^Folding-SpecetrumAutomaticFolding.html^Strombergbrand - Spectrum Automatic Folding ^spectrum, automatic, folding, umbrella, 42EZF";
s[7] = "Econo Folding Umbrella^Folding-EconoFoldingUmbrella.html^Strombergbrand - Econo Folding Umbrella^econo, folding, umbrella,  41MN";
s[8] = "Vented Little Giant Folding Golf^Folding-VentedLittleGiant.html^Strombergbrand - Vented Little Giant^vented, little giant, folding, golf, umbrella, 58EZF-V";
s[9] = "Vented Grand Practicality^Folding-VentedGrandPracticality.html^Strombergbrand - Vented Grand Practicality^vented, grand, folding, golf, umbrella,488FGR-V";
s[10] = "Mighty Mite Auto Open & Close^Folding-MightyMiteAutoOpen&Close.html^Strombergbrand - Mighty Mite Auto Open & Close^mighty, mite, auto, open, close, umbrella, 44MNAOC";
s[11] = "Vented Grand Traveler^Folding-VentedGrandTraveler.html^Strombergbrand - Vented Grand Traveler^vented, grand, traveler, umbrella, 48EZF-V";
s[12] = "Patriot Automatic Folding^Folding-ThePatriot.html^Strombergbrand - Patriot Automatic Folding^patriot, automatic, folding, umbrella,42EZF-PATRIOT";
s[13] = "Casino Cards Automatic Folding^Folding-CasinoCards.html^Strombergbrand - Casino Cards Automatic Folding^casino, cards, automatic, folding, umbrella, 42CC";
s[14] = "Casino Automatic Folding^Folding-TheCasinoAutomatic.html^Strombergbrand - Casino Automatic Folding^casino, automatic, folding, umbrella, 42CAS";
s[15] = "Global Folding^Folding-TheGlobal.html^Strombergbrand - Global Folding^global, folding, umbrella, 48EZF-G";
s[16] = "Undercover Blue Sky Folding^Folding-UndercoverBlueSky.html^Strombergbrand - Undercover Blue Sky Folding^undercover, blue, sky, folding, umbrella, 48EZSKY";
s[17] = "Comic Automatic Folding^Folding-TheComicAutomatic.html^Strombergbrand - Comic Automatic Folding^comic, automatic, folding, umbrella, 1031CMF";
s[18] = "Executive Brief^Folding-TheExecutiveBrief.html^Strombergbrand - Executive Brief^executive, brief, umbrella, 7600BG";
s[19] = "Executive SR^Folding-TheExecutiveSr.html^Strombergbrand - Executive SR^executive, SR, umbrella, case, 7400, ";
s[20] = "Executive JR^Folding-ExecutiveJr.html^Strombergbrand - Executive JR^executive, JR, umbrella, case,  7200";
s[21] = "Typhoon Tamer Checkerboard^Typoon-Tamer-Checkboard.html^Strombergbrand - Typhoon Tamer Checkerboard^typhoon, tamer, checkerboard, umbrella, TT30C";
s[22] = "Typhoon Tamer Solid^Typoon-TamerSolid.html^Strombergbrand - Typhoon Tamer Solid^typhoon, tamer, solid, umbrella, TT30S";
s[23] = "Typhoon Tamer™ - Alternating^Typhoon-Tamer-Alternating.html^Strombergbrand - Typhoon Tamer™ - Alternating^typhhon, tamer, alternating, umbrella, TT30A";
s[24] = "Mid-Size Golf^TheMid-SizeGolfItem.html^Strombergbrand - Mid-Size Golf^mid-size,golf, umbrellas, 54AFG (Was Item #54GV)";
s[25] = "Wedge - Classic Wood Shaft Golf^The-Wedge.html^Strombergbrand - Wedge - Classic Wood Shaft Golf^wedge, classic, wood, shaft umbrella, 60WS";
s[26] = "Club Canopy™ - Sports & Doorman Umbrella^TheClubCanopy.html^Strombergbrand - Club Canopy™ - Sports & Doorman Umbrella^club, canopy, sports, doorman, umbrella, 308ST";
s[27] = "Vented Square Deal™^The-vented-square.html^Strombergbrand - Vented Square Deal™^vented, square, deal, umbrella, 62SQ-V";
s[28] = "Golf Club Saver™^TheGolfClubSaver.html^Strombergbrand - Golf Club Saver™^gold, club, saver, umbrella, CPTB-1";
s[29] = "Patriot Golf™^The-Patriot-Golf.html^Strombergbrand - Patriot Golf™^patriot, golf, umbrella, 62AFG-P";
s[30] = "Blue Sky Fashion™ - Auto Opening^blue-sky.html^Strombergbrand - Blue Sky Fashion™ - Auto Opening^blue, sky, fashion, auto, opening, umbrella, 24SKY";
s[31] = "Universal Fashion™ - Auto Opening^TheUniversalFashion.html^Strombergbrand - Universal Fashion™ - Auto Opening^universal,fashion, auto, opening, umbrella, 24SO";
s[32] = "Urban Brolly™ - Auto Opening^Urban-Brolly.html^Strombergbrand - Urban Brolly™ - Auto Opening^urban, brolly, auto, opening, umbrella, 24WSO";
s[33] = "Global Business™ - Auto Opening^TheGlobalBusiness&Trade.html^Strombergbrand - Global Business™ - Auto Opening^global, business, auto, opening, umbrella, 1040B";
s[34] = "Silverado™ - Auto Opening^Silverado.html^Strombergbrand - Silverado™ - Auto Opening^silverado, auto, opening, umbrella, 2000";
s[35] = "Latest News™ - Auto Opening^TheLatestNews.html^Strombergbrand - Latest News™ - Auto Opening^latest, news, auto, opening, umbrella, 1020NW";
s[36] = "QuadT™ - Auto Opening^TheQuad.html^Strombergbrand - QuadT™ - Auto Opening^quad, auto, opening, umbrella, 27SQ";
s[37] = "Clearview FashionTM — Auto Opening^TheClearviewFashion.html^Strombergbrand - Clearview FashionTM — Auto Opening^clearview, fashion, auto, opening, umbrella, 48CLR";
s[38] = "The Safety UmbrellaTM^TheSafetyUmbrella.html^Strombergbrand - The Safety UmbrellaTM^safety, transparent, umbrella, 46SFTY, unvented";
s[39] = "Six Section Patio Umbrella^Patio-Products.html^Strombergbrand - Six Section Patio Umbrella^six, section, patio, vented, umbrella, PUM66";
s[40] = "The Children’s FashionTM — Small Size^TheChildrensFashionTM-SmallSize.html^Strombergbrand -The Children’s FashionTM — Small Size^small, children, fashion, transparent, umbrella, 34CH, unvented";
s[41] = "Double Covers^CustomWork.html^Strombergbrand - Double Covers^double, covers, umbrella";
s[42] = "Full Color Panels^CustomWork.html^Strombergbrand - Full Color Panels^full, color, panel, umbrella";
s[43] = "Step & Repeat^CustomWork.html^Strombergbrand - Step & Repeat^step, repeat, umbrella";
s[44] = "Full Coverage Printing^CustomWork.html^Strombergbrand - Full Coverage Printing^full, coverage, printing, umbrella";
s[45] = "Anything is Possible^CustomWork.html^Strombergbrand - Anything is Possible^anything, is, possible, umbrella";
s[46] = "Custom Handles^CustomWork.html^Strombergbrand - Custom Handles^custom, handles, umbrella";
s[47] = "Lasered Handles^CustomWork.html^Strombergbrand - Lasered Handles^lasered, handles, umbrella";
s[48] = "Custom Folding^CustomWork.html^Strombergbrand - Custom Folding^custom, folding, umbrella";
s[49] = "Cammo^Cammo.html^Strombergbrand - Cammo^cammo, folding, brolly";
s[50] = "Little Giant^Folding-LittleGiant.html^Strombergbrand - Little Giant^cammo, folding, umbrella, little, giant, 58EZF, unvented";
s[51] = "The Grand PracticalityTM - Unvented^Folding-GrandPracticality.html^Strombergbrand - The Grand PracticalityTM - Unvented^practicality, umbrella, 488FGR, unvented";
s[52] = "The Eco Umbrella Automatic Folding^TheEcoUmbrella.html^Strombergbrand - The Eco Umbrella Automatic Folding^eco, umbrella, 82ECO, unvented, automatic, folding";
s[53] = "The Just-In-Time Utility Umbrella^Just-In-TimeUtilityUmbrella.html^Strombergbrand - The Just-In-Time Utility Umbrella^just, time, umbrella, 36MN, unvented, folding";
s[54] = "The Casino Dice Automatic Folding^Folding-CasinoDice.html^Strombergbrand - The Casino Dice Automatic Folding^casino, dice, umbrella, 42CD, unvented, folding";
s[55] = "The Casino Slots Automatic Folding^Folding-CasinoSlots.html^Strombergbrand - The Casino Slots Automatic Folding^casino, slots, umbrella, 42CS, unvented, folding";
s[56] = "The Tornado Golf^TheTornadoGolf.html^Strombergbrand - The Tornado Golf^golf, tornado, umbrella, 83TOR, unvented";
s[57] = "The Hole-in-OneTM^TheHoleInOne.html^Strombergbrand - The Hole-in-OneTM^hole, one, umbrella, 62AFG, unvented";


// ---------- end of script properties and sites ----------
//s[40] = "Eight Section Patio Umbrella^Patio-Products2.html^Strombergbrand - Eight Section Patio Umbrella^eight, section, patio, umbrella, PUM68";

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 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>');
		}
	}

}
