
var item = new Array();

c=0; item[c]=new Array("index.asp","","Home Page","Elegant Voyage, Worldwide Travel & Tour Services, Egypt, Worldwide Voyage, Cairo, Maadi, Dokki, Giza, Luxor, Aswan, Hurghada","Welcome to ElegantVoyage Website");
c++; item[c]=new Array("'3','CorporatePhilosophy','aboutus'","","Corporate Philosophy","Egypt, Travel Solutions, Nile Cruises, Safaris, Riding, Desert Travel, guests & Jet Liners","Elegant Voyage is a complete travel solutions company based in Egypt, committed ...");
c++; item[c]=new Array("'8','ECL','aboutus'","","Elegant Cruise Lines","Egypt, Cruise lines, Nile Cruisers, Luxor & Aswant, Hospitality, International Shipping, comfort","Elegant Cruise Lines is the cruising division of the company, both owning ...");
c++; item[c]=new Array("'7','localbranch','aboutus'","","Local branch offices","Egypt, elegant, tourist"," With branch offices in all the main tourist destinations, the Elegant Group ...");
c++; item[c]=new Array("'4','Management','aboutus'","","Management","Egypt, emad mikhael, multi-lingual, European, Russian, Japanese, 24, personalized","Our management team has been selected from people who are ...");
c++; item[c]=new Array("'2','Profile','aboutus'","","Our Profile","Biggest travel companies,  country specific tours, japan, spain, china, india ","Elegant Voyage is the vision of one person, Emad A Mikhael who started it ...");
c++; item[c]=new Array("'5','QualityAssurance','aboutus'","","Quality Assurance","Travel quality control, guest feedback form, trainingcustomer satisfaction","Our Quality control team is an integral component of the company ...");
c++; item[c]=new Array("'6','Transportation','aboutus'","","Transportation","Egypt, Deluxe Coaches, air-conditioned, voyage, chauffeured, limousines","We own a fleet of 44 modern, deluxe coaches, all air-conditioned ...");
c++; item[c]=new Array("'2','Career','Career'","","Careers","Egypt, elegant, voyage, travel packages, challenging, opportunities, Job opportunities, sales offices, contact persons, key address, emails","Joining the Elegant Voyage team opens doors to many exciting ...");
c++; item[c]=new Array("'2','Check','index'","","News","Cinnamon sweets, beverages, maadi, carrefour city centre, Cafe,pastries,mid day brunch,kika,dokki, Bar, shisha, coffee shop, maadi, Sohbageya, nile, giza, royal club","Check out for latest news...");
c++; item[c]=new Array("Contact.asp","","Contact Us","contacts, managers, inbound travel assistance","Contact Details..");
c++; item[c]=new Array("'15','Guide','index'","","Egypt Guide","Egypt, mediteraniean, red sea, desert land cairo, Cairo, mother of the world, ALEXANDRIA, pearl of mediterranean, Nile,temples of egypt, Sinai,mount moses, St. Catharine, burning bush, Sharm el sheikh, red sea, golden beaches, trquoise blue water, Hurghada, sea diving, Luxor, bazaars, Aswan,kingdom of dubia,old cataract hotel,felucca boat ride, elephantine island, Solar boat, cedarwood, cheops, Citadel, khan el kahalili","Egypt, the most ancient tourist country in the world lies at the North East...");
c++; item[c]=new Array("'14','Tales','index'","","Travel Tips","Climate,currency, weight and measuremnt, language,shopping, business hours, visa requiermnts, clothes","Egypt, the most ancient tourist country in the world lies at the North East ...");
c++; item[c]=new Array("EgyptTours.asp","","Egypt Tours","Egyptian tour, historical tours, Alexandria, nile cruise, cairo, Red sea adventure, oasis safaris, desert safaris, holy sites, pilgrimage, Travel plans, ittineary, options, Egypt unfolded, choose a travel plan","Individuals or group travelers, for leisure or for business you have a wide choice ...");
c++; item[c]=new Array("'6','Flight','index'","","Flight Reservation","Flight reservations, iata, charter flights, visa, applications","Our Flight Reservation / Ticket Counter is a fully accredited IATA agency ...");
c++; item[c]=new Array("hotels.asp","","Hotel Reservation","Hotel reservations, cities in egypt, Hotel informations, contact informations, star hotels at Egypt, lodging,stay,advance booking","Hotel Reservations...");
c++; item[c]=new Array("'9','Meet','index'","","Meet & Assist","Ground assistance, guides, meet and assist","Our “meet and assist” facilities are available right from the airport...");
c++; item[c]=new Array("'10','Meetings','index'","","Meetings & Incentives","Business meet, events, Business with pleasure, creative travel ideas","Wherever you are, if you want a business conference to be organized in ...");
c++; item[c]=new Array("'3','Coaches','index'","","Our Coaches & Limousines","Coaches, limousines","We own a fleet of 44 modern, deluxe coaches, all air-conditioned ...");
c++; item[c]=new Array("'11','Nile','index'","","Our Nile Cruises","Elegant voyage cruises, Egypt by sea","No visit to Egypt is really complete without taking the time to enjoy ...");
c++; item[c]=new Array("Services.asp","","Our Services","home,Elegant voyage, services, sister, concerns","Our services includes...");

page="<html><head><title>ElegantVoyage Search Results</title><script language='javascript'>";

page=page+"function fnBrowse(argPageid,argTitle,argPath){"
page=page+"window.opener.document.frmMain.hdnPageID.value=argPageid;";
page=page+"window.opener.document.frmMain.hdnPageTitle.value=argTitle;";
page=page+"window.opener.document.frmMain.hdnXMLpath.value=argPath;";
page=page+"window.opener.document.frmMain.action='InnerContent.asp';window.opener.document.frmMain.submit();}";
page=page+"function getURL(location){window.opener.location.href=location;}";



page=page+"</script></head><body bgcolor='#FFFFFF'><center><table border=0 cellspacing=2 cellpadding=5 width=100%><tr><td colspan=2 height=50 align=left valign=middle bgcolor=#D39E5C><font face=arial size=2 color=#000000><strong>Search Results</strong></font></td></tr>";

function search() 
{
	win = window.open("","","scrollbars=yes,resizable=yes,location=no,directories=no,toolbar=no,status=yes,menubar=no,width=580,height=400,left=30,top=40");
	win.document.write(page);
	str = new String(document.frmsearch.txtsearch.value)
	str1 = new String(str.toLowerCase())
	txt = str1.split(" ");
	fnd = new Array(); total=0;
	for (i = 0; i < item.length; i++) 
	{
		fnd[i] = 0;
		order = new Array(0, 4, 2, 3);
		for (j = 0; j < order.length; j++)
			for (k = 0; k < txt.length; k++)
				if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
				fnd[i] += (j+1);
	}
	for (i = 0; i < fnd.length; i++) 
	{
		n = 0; w = -1;
		for (j = 0;j < fnd.length; j++)
		if (fnd[j] > n) 
		{ 
			n = fnd[j]; w = j; 
		};
		if (w > -1) 
			total += showresult(w, win, n);
			fnd[w] = 0;
	}
	win.document.write("</center></table><hr><br><div><font face=arial size=2 color=#D39E5C><strong>Total found: "+total+"</strong></font></div><br></body></html>");
	win.document.close();
}

function showresult(which,wind,num) 
{
	link = item[which][1] + item[which][0]; 
//	alert(link);
	if((link=="index.asp")||(link=="Contact.asp")||(link=="EgyptTours.asp")||(link=="hotels.asp")||(link=="Services.asp"))
		{
	line = "<tr><td><font face=arial size=2 color=#333333><a href=Javascript:getURL('"+link+"') title='"+item[which][2]+"'><font face=arial size=2 color=#663300><strong>"+item[which][2]+"</strong></font></a><br>"+ item[which][4] + "</font></td><td><font face=arial size=2 color=#333333></td></tr>";
		}
	else
	{
	line = "<tr><td><font face=arial size=2 color=#333333><a href=Javascript:fnBrowse("+link+") title='"+item[which][2]+"'><font face=arial size=2 color=#663300><strong>"+item[which][2]+"</strong></font></a><br>"+ item[which][4] + "</font></td><td><font face=arial size=2 color=#333333></td></tr>";
	}
	wind.document.write(line);
	return 1;
}