﻿function GetSiteSearchResults(newWindow,frameObject,frameObjectName,fontFace,fontSize,fontColour,linkFace,linkSize,linkColour,resultsText)
{
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(\" email info ayutthayathai sitemap privacy statement ©ayutthaya thai restaurant rights reserved hosting heart internet design holapa designed using warm welcome ayutthaya ceased trading have negotiated offer with siam buri anlaby road loyalty card holders hand your they will give discount from bill offer only valid till august 2010 cannot used conjunction other \",\" about ayutthaya thai restaurant traditional based hull city centre been serving local residents along with visitors since 2001 philosophy keep authentic simple head chef born hence difficult pronounce name cooking long remember commercially history lesson founded king u-thong 1350 capital then siam thailand over years became largest cities within asia during 17th century admired foreign outstanding beauty prosperity during history involved some wars twice suffered major defeats eventually 1769 completely destroyed burnt down resulting move bangkok which remains today ruins ancient greatest world time still stand 1991 whole unesco world heritage site ever less than hours drive train well worth trip even days where hectic lifestyle become distant memory more serene life sampled \",\" menus evening menu lunchtime \",\" find google opens window \",\" links like thai food then your tableware here? traditional massage comfort security home further information contact daeng email visit myspace page clicking card cheap flight accommodation comparison site trip thailand anywhere else efficient cost accountancy service ideal small businesses looking sell restaurant? advertising here local hull band renaissance boys visit them here>> hear samples their music \",\" news view current news letter clicking link download version click here latest review from hull daily mail \",\" site \",\" privacy statement privacy visitors important recognize that your personal information here what types receive collect when visit site safeguard never sell pass third parties files with most other websites data contained files include internet protocol address such shaw cable browser used internet explorer firefox time visited which pages throughout cookies beacons cookies store also party advertisements support some these advertisers technology beacons they advertise will send google through adsense program including  the some cases whether have flash installed this generally geotargeting purposes showing york real estate someone example certain based specific sites cooking frequents choose disable selectively turn settings managing preferences programs norton security however this affect able interact well could inability login services logging into forums accounts \");");
d.write("var pageMap = new Array(\"Ayutthaya Thai Restaurant Hull\",\"Ayutthaya Thai\",\"Menus\",\"Find Us\",\"Links\",\"News\",\"Site Map\",\"Privacy Statement\");");
d.write("var linkMap = new Array(\"index.html\",\"about_us.html\",\"Menus.html\",\"find_us.html\",\"links.html\",\"news.html\",\"site_map.html\",\"privacy_statement.html\");");
d.write("var preMap = new Array(\" email: info@ayutthayathai.co.uk  Sitemap - Privacy Statement - ©Ayutthaya Thai Restaurant , all rights reserved - Hosting by Heart Internet - Design by Holapa Ltd. Designed using  A Warm Welcome To t\",\"About Us The Ayutthaya Thai Restaurant is a traditional Thai Restaurant based in Hull city Centre and has been serving the local Hull residents along with visitors to the city since 2001. Our philosop\",\"Menus Evening Menu Lunchtime Menu  \",\"Find Us Google Map (opens in new window)  \",\"Links If you like Thai food then why not buy your own Thai tableware here? Traditional Thai Massage in the comfort and security of your own home. For further information contact Daeng. email or visit \",\"News  You can view our current news letter by clicking on the link  or you can download a pdf version by clicking on the pdf link. Click here to see PDF version of latest review from Hull Daily Mail \",\"Site Map \",\"Privacy Statement The privacy of our visitors is important to us.  We recognize that privacy of your personal information is important. Here is information on what types of personal information we rec\");");
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+\" "+resultsText+" \"+searchTerms+\"<br><br>\"+results;");
d.write("}");
while(sTerms.indexOf("\"") != -1 ) {
sTerms = sTerms.replace("\"","");
};
d.write("wpDoSearch(\""+sTerms+"\");");
d.write("</script>");
d.write("</body></html>");
d.close();
}