

// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------


var s = new Array();

s[0] = "Darwich^../index.html^Darwich gallery for Egyptian Gifts^ Egypt, Gifts, souvenirs, arts, crafts, shopping, history, ancient, photos, music, museum, antiques, pyramids, sphinx, box, shop, handcrafts, handicarfts, papyrus, paintings, gold, cartouches, hieroglyphics, pharaonic, jewelry, leather, perfume bottles glass, reproduction, replica, unique, historical, furnishings, decorator, design, middle eastern, biblical, holiday, worship, pharaoh,";
s[1] = "About Us^../about.html^All About the company and Owner .^ about, Darwich, owner, ahmed, mostapha,";
s[2] = "Contact Us^../contact.html^If you want to contact us , you can browse this page.^ contact, phone, address, fax, cellular, mobile";
s[3] = "Guestbook^../guestbook.html^Sign our Guestbook.^ guestbook, sign, visitor,";
s[4] = "The Gallery^../visit.html^Visit the Gallery Rooms.^Egypt, Gifts, souvenirs, arts, crafts, shopping, history, ancient, photos, music, museum, antiques, pyramids, sphinx, box, shop, handcrafts, handicarfts, papyrus, paintings, gold, cartouches, hieroglyphics, pharaonic, jewelry, leather, perfume bottles glass, reproduction, replica, unique, historical, furnishings, decorator, design, middle eastern, biblical, holiday, worship, pharaoh, plats, copper, gold, jewelry, image, old, scene, imitation, frame, chess, backgammon,";
s[5] = "Photo Gallery^../photo.html^View our Photo Gallery.^ alex, image, picture, photo, coptic, islamic, modern, musuem, alexandria, cairo, giza, pyramid, edfu, luxor, abu simple, tomb, temple, sakara, sakkara, Nefertari, horus, tut, tutankhamen, neferiti, setti, hator, hatour, God, goddess, nut, isis, mask, queen, king, shinqx, mummy, cofin,";
s[6] = "Music^../muisc.html^Listen to Egyptian Music in .mid format .^ music, song, singer, poem,";
s[7] = "Fact & Miracle^../miracle.html^Some fact and miracle of the great Pharaohs .^ fact, miracl, magic,";
s[8] = "Mother of Pearl^../mop/mop.htm^The Mother of Pearl Rooms.^ mother of pearl, box, plat, frame, chess, backgammon, pharon, oval, round, rectagular, octagonal, hexagular, edge, tresures, shap, inlaid, wood, wooden, islamic art, art, ";
s[9] = "Papyrus^../papyrus/papyrus.htm^Papyrus Hand Painting .^ papyrus, paper, painting, hand painting, drawing, draw, mask, tutankhamen, nefertiti, goddess , god, nut, horus, isis, hator, pyramid, sphinx, nefertari, boat, hunting, fishing, lotus, cleopatra, setti, egyptian, life, cofin, throne, akhen-aten, akhenaton, akhen-aton, fighting, fight, maat, judgment, musician, music,";
s[10] = "Old Papyrus^../oldpap/index.html^Old Papyrus Hand Painting .^old papyrus, old, papyrus, paper, painting, hand painting, drawing, draw, mask, tutankhamen, nefertiti, goddess , god, nut, horus, isis, hator, pyramid, sphinx, nefertari, boat, hunting, fishing, lotus, cleopatra, setti, egyptian, life, cofin, throne, akhen-aten, akhenaton, akhen-aton, fighting, fight, maat, judgment, musician, music,";
s[11] = "Copper Plats^../copper/cooper.html^Hand grooved copper plats.^copper, plats, hand made, hand, grooved, groved, decorative plats, decor, decoretiv, hanging , wall,";
s[12] = "Leather crafts^../leather/index.html^Leather Crafs , jewelry box, frames and more .^leather, box, frame, cigaret, cigar, picture, coaster,";
s[13] = "Glass Bottles^../glass/index.html^A variety of mouth blow Glass .^ glass, mouth, blow, perfume, bottles, candle, color, colour,";
s[14] = "Statues^../statue/index.html^Egyptian Statues .^ statue, ushabti, anubis, tut, tutankhamen, tutankhamon, nefetriti, oblisk, oblesk, pyramid, scarab, beetle, amon, ramses, ramsis, aton,";
s[15] = "Stationary^../stat/index.html^Stationary goods.^ pen, statue, calender, calendar, writing pad, pad, note, writ, writing, throne, chair, anubis, tutankhamon, tutankhamen, nefertiti, sphinx, pyramid, key, holder, fan,";
s[16] = "Imitation Jewelry^../jewellery/index.html^Collection of Imatation Jewelry.^ Jewelry, necklas, neckles, pendent, cartouch, wing, chain, charm,";
s[17] = "Gold^../gold/index.html^Gold pendents and cartouch^ cartouch, gold, ring, pendent, pyramod, sphinx, tut, tutankhamon, tutankhamen, nefertiti, eye, horus,";
s[18] = "Old Scene^../image/image.html^Old image from Egypt on copper work .^image, photo, copper, devid, roberts, egypt, tut, tutankhamon, tutankhamen, nefertit, ramses, ramsis, hunting, throne,";
s[19] = "Wholesale^../dist.html^Wholesales.^wholesale, distrebuter, distrebutar, volume, order, bazar, shope, shopping,";
s[20] = "Round Box^../mop/M450.htm^Round shape Mother of Pearl Box.^round, box, Mother of Pearl,";
s[21] = "Plats^../mop/Mplats.htm^Plats with mother of pearl.^plat, plats, mother, pearl, mother of pearl, box,";
s[22] = "Oval Box^../mop/M400.htm^Oval shape Mother of Pearl Box. ^oval, mother, pearl, mother of pearl, box,";
s[23] = "Square Box^../mop/M470.htm^Square shape Mother of Pearl Box. ^square, mother, pearl, mother of pearl, box,";
s[24] = "Treasure Box^../mop/M580.htm^Treasure shape Mother of Pearl Box.^Treasure, mother, pearl, mother of pearl, box,";
s[25] = "Pharaoh Box^../mop/M200.htm^Mother of Pearl Box with Pharaohs Design.^Pharaoh, mother, pearl, mother of pearl, box,";
s[26] = "Rectagular Box^../mop/M100.htm^Rectagular Box with Mother of Pearl.^box, rectangular, mother of pearl, inlaid,";
s[27] = "Rectagular Box^../mop/M500.htm^Rectagular Box with Mother of Pearl.^box, rectangular, mother of pearl, inlaid,";
s[28] = "Rectagular Box^../mop/M530.htm^Rectagular Box with Mother of Pearl.^box, rectangular, mother of pearl, inlaid,";
s[29] = "Frame^../mop/M490.htm^Picture frame with Mother of Pearl.^frame, arabesque, rectangular, mother of pearl, inlaid,";
s[30] = "Frame^../mop/M670.htm^Picture frame with Mother of Pearl.^frame, arabesque, rectangular, mother of pearl, inlaid,"
s[31] = "Frame^../mop/M680.htm^Picture frame with Mother of Pearl.^frame, arabesque, rectangular, mother of pearl, inlaid,"
s[32] = "Vase^../mop/MVASE.htm^Woden Vases with Mother of Pearl.^vase, rectangular, mother of pearl, inlaid,"
s[33] = "Chesse^../mop/Mchesse.htm^Chesse board with Mother of Pearl.^Chess, game, board, rectangular, mother of pearl, inlaid,"
s[34] = "Chesse^../mop/Mchesse1.htm^Chesse board with Mother of Pearl.^Chess, game, board, rectangular, mother of pearl, inlaid,"
s[35] = "Chesse^../mop/Mchesse2.htm^Chesse board with Mother of Pearl.^Chess, game, board, rectangular, mother of pearl, inlaid,"
s[36] = "Backgammon^../mop/MBACKGAMMON.htm^Chesse and Backgammon with Mother of Pearl.^Chess, game, backgammon, board, rectangular, mother of pearl, inlaid,"
s[37] = "Plats^../mop/M241.htm^Mother of Pearl Plats with Pharaons Dessin.^Pharaon, plat, plats, mother, pearl, mother of pearl, box,";
s[38] = "Hexagonal box^../mop/M260.htm^Hexagonal box with Mother of Pearl.^box, Hexagonal, mother, pearl, mother of pearl,";




// ---------- 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 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>');
		}
	}

}

