

// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------


var s = new Array();

s[0] = "EdisonOil - EdisonOil^default.aspx^Edison Oil Company is a distributor of top quality gasoline and diesel fuels throughout Southwest Florida.^EdisonOil, Company, distributor, quality, gasoline, diesel, fuels, Southwest, Florida, top, Citgo , Shell,BP, Marathon, Gasoline, products , Our Network , Retail , Service , Marathon, Government ,Corporate Overview, Careers, Contact Us, Sale, Station, Development";

s[1] = "EdisonOil-Corporate^AboutUs.aspx^Corporate Overview - Edison Oil Company is a distributor of top quality gasoline and diesel fuels throughout Southwest Florida.^about us, History, mission, vision, Expertise, Gene, Patrick, Lee, Cooper, Archie, Senior Manager, GM, President, CMM level 4, Chief Executive, Supplier, Objectives, Obligations, Milestones, Our Network, Lease";

s[2] = "EdisonOil - Government^Government.aspx^Edison Oil Company had its beginning during the oil embargo of the 1970’s. In April of 1974, Walter Eakins, Sr. began Edison Oil Company.^ History, Edison Oil, mission, vision, Supplier, Objectives, Obligations, Milestones, Our Network, Products, Careers, gallons, Marathon, BP, Shell, CITGO, Lease";

s[3] = "EdisonOil - Retail^Retail.aspx^To achieve international standards of excellence in all aspects of energy and diversified business with focus on customer delight through value of products and services, and cost reduction.^History, Edison Oil, mission, vision, Supplier, Objectives, Obligations, Milestones, Our Network, Products, Careers, Presentation, Technology, Application, Environment, Drilling, Research, Development, Business, Resource Management ";

s[4] = "EdisonOil - sitemap^sitemap.aspx^To serve the national interests in oil and related sectors in accordance and consistent with Government policies.^mission, vision,  Supplier, Objectives, Obligations, Milestones, Our Network, Products, Careers, Presentation, hydrocarbon, environment, synergies, health, protection, customers, dealers, Gas ";

s[5] = "EdisonOil - services^services.aspx^By 2008 our company is planning to Expand to Allover states in USA.^Edison Oil, mission, vision, Supplier, Objectives, Obligations, Milestones, Our Network, Products, Careers, Presentation, Corporate, Continent, Gas";

s[6] = "EdisonOil - TermandCondition^TermandCondition.aspx^EdisonOil’s Global Procurement organization manages the competitive bid process to efficiently obtain goods and services from outside sources.^Edison Oil, mission, vision, Supplier, Objectives, Obligations, Milestones, Our Network, Products, Careers, Presentation, Financial, transact, business ,Gas, Technology";

s[7] = "EdisonOil - PrivacyPolicy^PrivacyPolicy.aspx^CEdisonOil supplies petroleum products and value-added services to customers throughout the United States.^Edison Oil, mission, vision, Supplier, Objectives, Obligations, Milestones, Our Network, Products, Careers, Presentation, Commercial, Retailers, Government, Agencies, operations, channels, network ";

s[8] = "EdisonOil - products^products.aspx^EdisonOil supplies and delivers fuel to the entire continental United States. We provide a single-source supply of gasoline, distillates, biofuels, and other alternative fuel products.^ integrated,Edison Oil, mission, vision, Supplier, Objectives, Obligations, Milestones, Our Network, Products, Careers, Presentation, network, refiners, suppliers, terminals, carriers, retailers, petroleum, transportation,gasoline, distillates, biofuels, marketer ";

s[9] = "EdisonOil - Commercialandindustrial^Commercialandindustrial.aspx^Edison Oil sells, repairs, and maintains commercial and retail fuel equipment for its clients. We support your purchases with repair and maintenance plans to keep you up and running^Fuel Equipment, Sales, Repair, Maintanance, Support, Services, Environment, Compliance, Presentation, Development,Corporate, Products, Contactus, diagnostics,  requirements  ";

s[10] = "EdisonOil - Products^Products.aspx^Edison Oil Company had its beginning during the oil embargo of the 1970’s. In April of 1974, Walter Eakins, Sr. began Edison Oil Company.^ Products, Edison Oil, Marathon, BP, Shell, CITGO, Oil, Lubricants, Products, Oil Products";


// ---------- end of script properties and sites ----------

d="";
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 class="footerover" href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		} else {
			document.write('<a class="sidemenuover" href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		}
	}

}

