﻿function GetSiteSearchResults(newWindow,frameObject,frameObjectName,fontFace,fontSize,fontColour,linkFace,linkSize,linkColour)
{
var sTerms="";
var iDepth = 0;
var sURL = new String(document.location);
if (sURL.indexOf("?") > 0)
{
var arrParams = sURL.split("?");
var arrURLParams = arrParams[1].split("&");
for (var i=0;i<arrURLParams.length;i++)
{
var sParam = arrURLParams[i].split("=");
var sValue = unescape(sParam[1]);
if( sParam[0] == frameObjectName)
	sTerms = sValue;
if( sParam[0] == "depth")
	iDepth = parseInt(sValue);
}
}
var d=frameObject.document;
if (sTerms=="") {d.open(); d.write("<html><head></head><body style=\"background: transparent;\"></body></html>"); d.close();return;}
var sBack=""; for (i=0; i<iDepth; i++) sBack+='..\\\\';
d.open();
d.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
d.write("<html lang=\"en\">");
d.write("<head>");
d.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">");
d.write("</head>");
d.write("<body style=\"margin: 0px 0px 0px 0px; font-family: "+fontFace+"; font-size: "+fontSize+"; color: "+fontColour+"; background: transparent;\">");
d.write("<div id=\"wpSearchResults\"></div>");
d.write("<script type=\"text/javascript\">");
d.write("var wordMap = new Array(\" order takeaway feelin' feelin hungry? from your local take away restaurant quick easy order food online enter postcode above find takeaways area indian chinese pizza delivery more city working partnership with just bring very best ordering have enter view list menus before welcome finding somewhere sometimes difficult than think although there many restaurants around london hard make minds where want sometimes just everything cant narrow down choice other occasions particular either about type location speed which feel like through partners just-eat wide variety choices your pizza available putting will what place delivered door time night perhaps friends birthday valentines work function business meeting whatever occasion look listings page search cuisine ambience cost read reviews them going ahead booking toptable hoping that eating little easier enjoyable thanks whether italian greek english european american after hope help right please note eaten these recommending service letting advertise their here decide would know then click link review call e-mail give options remember only costs week hidden small print logo positioned front subject availability some popular places include sushi pappa johns itsu bombay bicycle oysters dead sick wounded woody allen \",\" city 366a bethnal green road london 0845 22-go-eat 22-46-328 eatinthecity name e-mail address comments \",\" \",\" \",\" search results sorry apologise delay please click here enter your postcode \",\" quick lunchtime recipe ingredients tuna 185g brine spring water dolce verde lettuce ripe avocado medium large tomato cucumber onion extra virgin olive ground salt black pepper wholemeal pitta bread small instructions drain thoroughly finely chop prepare salad chopping along with chopped toss dress taste generous drizzle toast fill serve heat things little some chillies mmmm cherry desilva very nicest about life must regularly stop whatever doing devote attention eating luciano pavarotti william wright story feeling hungry? city order food online browse your local takeaway menu just clicking links ordering system secure user friendly have take away delivered within minutes straight door \",\" vegetables must diet suggest carrot cake zucchini bread pumpkin ~jim davis order takeaway online well times changing remember when hungry wanted something quick easy appropriately dressed wrapped warm head find then came option order telephone hunting around menu that know through your letterbox recently just can't cant where ring bells? never been just click links enter postcode range restaurants offer delivery area within minutes place fast food wait delivered participating from variety foods including chinese indian greek english kebab shops fish chip pizza click here \",\" restaurant reviews coming soon would like submit review please hesitate contact your restaurant reviewed undercover team know will come unexpected time giving readers genuine unbiased confident that what takes city food lovers award then give call mean order food online links very nicest things about life must regularly stop whatever doing devote attention eating luciano pavarotti william wright story \",\" city hope your hungry will time leave this site started reason alone because love food wine dine order takeaways cook lovely home made meals come with ideas well can't cant only ones know there others that just much wanted create online catered needs also gave opportunity share their recipes reviews rest world would like take away click links around straight ordering partners order quickly easily from local restaurants find works takeaway very nicest things about life must regularly stop whatever doing devote attention eating luciano pavarotti william wright story more courage than after peanut channing pollock \",\" unfortunately this part site running however will eventually able search through reviews book table many london's londons uk's restaurants quick easy with city click here order takeaway very nicest things about life must regularly stop whatever doing devote attention eating luciano pavarotti william wright story \",\" \");");
d.write("var pageMap = new Array(\"Order Takeaway | Order Food Online | Order a takeaway | Order Indian Takeaway\",\"Contact Us\",\"Terms of Use\",\"Privacy Policy\",\"Search Results\",\"Recipes, Order a takeaway | order Take away\",\"Order Takeaway | Order a takeaway online | Food Online\",\"Reviews, Restaurant reviews\",\"Eat In The City, Order a take away | order takeaway online\",\"RESTAURANTS\",\"ARTICLES\");");
d.write("var linkMap = new Array(\"index.html\",\"page7.html\",\"page8.html\",\"page9.html\",\"page11.html\",\"recipes.html\",\"takeaway.html\",\"reviews.html\",\"about.html\",\"restaurants.html\",\"articles.html\");");
d.write("var preMap = new Array(\"Order a takeaway  Feelin’ Hungry? Order a takeaway from your local take away restaurant, A quick and easy way to order food online. Enter your postcode above and find local takeaways in your area. Ind\",\"Eat In The City  366a Bethnal Green Road, Bethnal Green, London. E2 0AH  0845 22-GO-EAT 0845 22-46-328  www.eatinthecity.co.uk Name E-mail Address Comments \",\"\",\"\",\"search results Sorry We apologise for the delay:  PLEASE CLICK HERE TO ENTER YOUR POSTCODE \",\"Quick Lunchtime recipe.  Ingredients: 1 tin of tuna (185g) in brine or spring water Dolce Verde lettuce 1 ripe avocado 1 medium to large tomato ½ cucumber ½ medium onion Extra virgin olive oil Ground \",\"“Vegetables are a must on a diet. I suggest carrot cake, zucchini bread, and pumpkin pie.“	 ~Jim Davis  Order a takeaway online  Well times are changing, remember when you was hungry, wanted something\",\"Restaurant Reviews Coming Soon.............  If you would like to submit a review please do not hesitate to contact us.   If you would like your restaurant reviewed by our undercover team let us know.\",\"Eat In The City  Hi, hope your hungry! If not you will be by the time you leave this site. We started this site for one reason and one reason alone, because we love food. We love to wine and dine, ord\",\"Unfortunately this part of our site is not up and running yet, however you will eventually be able to search through, reviews and book a table at many of Londons and the UK’s restaurants, quick and e\",\"\");");
d.write("function doNav(ind)");
d.write("{");
if (newWindow)
d.write("		 window.open(\""+sBack+"\"+linkMap[ind],\"_blank\");");
else
d.write("		 parent.window.location.href=linkMap[ind];");
d.write("}");
d.write("function wpDoSearch(searchTerms){");
d.write("var terms = searchTerms.split(\" \");");
d.write("if (terms==\"\") return;");
d.write("var results = \"\";");
d.write("var resultscount = 0;");
d.write("for (var i=0; i<wordMap.length; i++)");
d.write("{");
d.write("			var found=true;");
d.write("			for (var j=0; j<terms.length; j++)");
d.write("					if (wordMap[i].indexOf(terms[j].toLowerCase())==-1) found=false;");
d.write("			if (found)");
d.write("			{");
d.write("				 results+=\"<a style=\\\"cursor: pointer; font-family: "+linkFace+"; font-size: "+linkSize+"; color: "+linkColour+"; \\\" onclick=\\\"doNav(\"+i+\");\\\"><u>\"+pageMap[i]+\"</u></a><br>\"+preMap[i]+\"...<br><br>\";");
d.write("				 resultscount++;");
d.write("			}");
d.write("}");
d.write("document.getElementById(\"wpSearchResults\").innerHTML=resultscount+\" result(s) found for search term: \"+searchTerms+\"<br><br>\"+results;");
d.write("}");
d.write("wpDoSearch(\""+sTerms+"\");");
d.write("</script>");
d.write("</body></html>");
d.close();
}
