

// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------


var s = new Array();

s[0] = "Corporate Information^corpinfo.php^DFZ commenced operations in 1983. DFZ was initially involved in the import and distribution of...^corporate, corporate information, corporate info, company";
s[1] = "What We Do (Introduction)^corpprof.php^The DFZ Group is established in the tourism industry, with businesses in Duty Free Retail, Hospitality...^corporate, introduction, what we do";
s[2] = "Corporate History and Profile^corphist.php^From our humble beginnings back in 27 July, 1983, the company began business under the name...^corporate, corporate history, company profile";
s[3] = "About DFZ Logo^dfzlogo.php^The logo design, which speaks truly of our beautiful culture and values, also carries a firm and precise....^corporate, corporate logo, company logo, dfz logo, naluri, atlan";
s[4] = "Shopping^shopping.php^Airport, bordertown, downtown and seaport shopping...^shopping, services, shop, airport, bordertown, downtown, seaport, johor bahru, bukit kayu hitam, kedah, melaka, klia, kuala lumpur, sepang, sriwani, duty free, chocolate, liquor, cigar, cigarette, langkawi, tax free, the zon, wealthouse, jasa, cergasjaya, sales, buy";
s[5] = "Dining^http://www.zonhotel.com.my/main.html^Restaurants, café, pub and bistro, wine and cigar, food court...^dining, services, food, eating, restaurants, café, pub, bistro, wine, cigar, food court, lotus garden, sukhothai, sukothai, sukotai, sukhotai, sharks fin, little havana, chinese food, hawker food, drinks, beverage, cigar, wine, beer, liquor, brandy, local food, delights, chef, hotel, johor bahru, salt n pepper, baccheus, the gallery, palm, lounge, buffet, dinner, lunch, breakfast, thai, cuisine";
s[6] = "Accommodation^accommodation.php^The ZON Regency Hotel by the Sea(formerly known as Eden Garden Hotel Johor Bahru) is located...^accommodation, accomodation, acommodation, acomodation, hotel, zon regency, services, by the sea, eden garden, johor bahru, room, lodging, stay, suites";
s[7] = "Recreation^recreation.php^Black Forest Golf and Country Club is an 18-hole par 72 championship golf course. Total...^recreation, golf, black forest, country club, services, bukit kayu hitam";
s[8] = "Transportation^transportation.php^Ferry terminal and coach transit terminal.^transportation, ferry, terminal, coach, transit, services, johor bahru";
s[9] = "Restaurants^http://www.zon.com.my/dining.html^Offering popular eastern and western cuisines.^dining, food, eating, restaurants, lotus garden, sukhothai, sukothai, sukotai, sukhotai, sharks fin, chinese food, drinks, beverage, local food, delights, chef, hotel, johor bahru, salt n pepper, buffet, dinner, lunch, breakfast, thai, cuisine";
s[10] = "Café, Pub & Bistro^http://www.zon.com.my/dining.html^Offering popular eastern and western cuisines.^dining, food, eating, café, pub, bistro, wine, drinks, beverage, wine, liquor, brandy, delights, chef, hotel, johor bahru, palm, lounge,dinner, lunch, breakfast, thai, cuisine";
s[11] = "Wine & Cigar^http://www.zon.com.my/dining.html^Offering popular eastern and western cuisines.^dining, wine, cigar, liquor, delights, hotel, johor bahru, baccheus, the gallery, smoking";
s[12] = "Food Court^http://www.zon.com.my/deptstore.html^The ZON Department Store Food Court at the Basement.^dining, food, eating, food court, hawker food, drinks, beverage, beer, local food, delights, zon, johor bahru, dinner, lunch, breakfast, cuisine";
s[13] = "Ferry Terminal^ferryterminal.php^The ZON Ferry Terminal is officially gazetted as an International Entry Point and...^transportation, ferry, terminal, zon, johor bahru";
s[14] = "Coach Transit Terminal^coachterminal.php^Aimed to provide hassle-free bus transfers for travelers, this bus terminal is operational since...^transportation, terminal, coach, transit, zon, johor bahru";
s[15] = "Join Us^joinus.php^Challenging career opportunities await you at DFZ Capital.^join, vacancy, jobs, work, dfz capital, team, vacancies";
s[16] = "Contact Us^contactus.php^If you have any questions or suggestions regarding our company, please contact us at...^contact, email, e-mail, tel, telephone, numbers, fax, facsimile, dfz capital, address, addresses, enquiries, enquiry, inquiries, inquiry, customer service, feedback, form";
s[17] = "Your Privacy^privacy.php^DFZ Capital Berhad website privacy policy page.^dfz capital, privacy, policy, read, contact";
s[18] = "Terms^terms.php^DFZ Capital Berhad website terms and conditions page.^terms, conditions, dfz capital, read, disclaimer, trademark, copyright, indemnification, restrictions, contact";
s[19] = "What is Duty Free?^whatisdutyfree.php^For eligible buyers, duty free implies exemption from import, sales or excise duties...^duty free, dfz, import, export, sales, excise, kastam, customs, shopping, zon";
s[20] = "Airport^airport.php^Visit our airport duty free shops at the major airports in Malaysia. With each shop unique in its product...^duty free, dfz, import, excise, kastam, customs, shopping, zon, KLIA, batu berendam, melaka, airport, arrival hall, sepang, main terminal building, planes, airplane";
s[21] = "Bordertown^bordertown.php^Visit our bordertown duty free shop and complexes at the major points of entry - via land - in...^duty free, dfz, shopping, zon, kelantan, excise, kastam, kota bahru, cergas jaya, kayu hitam, tax free, jasa, sriwani, black forest, duty free complex, rantau panjang, bordertown";
s[22] = "Downtown^downtown.php^Visit our downtown duty free shops and complexes at the prime tourist areas and major point of entry.^duty free, dfz, shopping, zon, sriwani, melaka, excise, kastam, johor bahru, downtown, langkawi, kayu hitam, cergas jaya, mlma, bird park, cable car, tax free, underwater world, wealthouse, sepang, KLIA, charterfield, commercial centre, tanjung tokong, penang, kedah, kuala lumpur, selangor, pantai cenang";
s[23] = "Seaport^seaport.php^Visit our seaport duty free shops and convenience store at Malaysia's major points of entry.^duty free, dfz, shopping, zon, sriwani, melaka, johor bahru, seaport, langkawi, excise, kastam";
s[24] = "Corporate Structure^corpstruct.php^The Orchard Boulevard group of companies are principally involved in property development...^corporate, company structure";
s[25] = "Board of Directors^corpbod.php^DFZ Capital Berhad Board of Directors.^corporate, board of directors";
s[26] = "Annual Reports^areports.php^DFZ Capital Berhad Annual Reports.^corporate, annual reports";

// ---------- 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 out_jse() {
	if (co == 0) {
		document.write('Your search did not match any documents.<p>Make sure all keywords are spelled correctly.<br>Try different or more specific 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>&nbsp;&nbsp;&nbsp;&nbsp;', os[2], '<p>');
		} else {
			document.write('<a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		}
	}

}
