﻿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(\" \",\" full range alptech walking poles click pictures larger back homepage hill hiker super antishock system quicklock adjustment 68-143 piece aircraft alloy lightweight durable protective tungsten with interchangeable basket rubber comfortable wide wrist strap ergonomic dual grip handle full accessories available money back guarantee completely delighted power positive angle terrain pole upright photo unscrew handle camera mount fantishock travel mate great travel companion engineered highest standard adjustable 5-97cm folds less than 31cm rubber foot crook spare ferrules quantity colour price each natural cork upright comfier grip available black sorry blue temporarily stock black \",\" full range alptech accessories click pictures larger back homepage pair rubber ferrules trekking feet able cope with condition baskets softer ground like marshes testing riverbeds suitable pole reliable folding clips fasten your pair walking poles together spare pole clips attach feet conditions fantastic value quantity price \",\" some exciting gifts great bargains click pictures larger back homepage personal chocolate fountain “it’s ours it’s mine perfect parties dinner deux just only needs 400g chocolate ideal dieting chocoholic appears solid sculpture from afar upon closer inspection will amazed brilliant shining melted flowing over elegantly curved tiers gift gathering chocoholics dream come true just your favourite start dipping fruit marshmallows biscuit fingers your naughty anything else tried with hard frozen balls cornish cream warm sets delicious innovative auger system means clogging unlike some cheaper made less reasonably priced models dimensions height 225mm width 150mm cuddle squishee probably softest cushion have ever cuddled super comfy body pillow special microbeads ease stress away approximate size 35cm 22cm 16cm each neck fitted neck chrome bottle butler spring loaded arms adjust hold different shape bottles litre safely looks location sideboard looks good kitchen even kids squashes they love direct this incredible price have seen exact same high street well known stores sites probably sorry glass included electronic sudoku number game features million games help play function number hints started superb join millions players newest spec model easy fits into pocket reviewed television press sudoku huge success pleasure pump will must home office only uses dispense spirits liquors beers wines mixers juices squash also oils such olive liquid soaps bath bubbles bathroom uses endless much little liquid require squeeze nozzle trigger like filling works gravity feed batteries pumping required texas hold professional poker everything need playing hugely popular each comes stylish printed presentation full instructions makes contains *quality felt surface *200 quality poker chips *poker chip rack decks poker cards *dealer button *easy learn stainless steel elegant stainless steel bowls make easy cleaning pieces this model attractive finish remote control helicopter flown thought flying expensive more astonishing channel remote control indoor helicopter ages suitable small children reviewed experts delivers hours entertainment everyone very affordable charges quickly handset reqs 8xaa incl everlasting micro torch absolutely technology wind dynamo torch that smaller than house short power twin ultra-bright led’s giving ample bright light minutes absolute essential rings around especially nights longer colour quantity price click here video action colourur design skateboard quality reliability would expect alptech product sturdy wood composite base performance trucks durable wheels available designs \",\" delighted with your alptech outdoors product return goods full refund within days condition that arrives back unused saleable this does affect statuatory rights next deliveries please order before 11am orders taken after will sent following should arrive delivery address next only includes working monday friday alptech-outdoors sell pass customer details third parties terms conditions privacy policy outlined below back homepage \",\" comments questions queries welcome also order telephone using contact information below alptech outdoors bude cornwall united kingdom ex23 1288 353112 355025 e-mail sales alptech-outdoors back homepage \",\" superb quality super antishock walking poles tested mountains world simply click pictures below onto product page perfect compliment your alptech full range accessories stocking large original gifts extraordinary value money \",\" back previous page 													 homepage video does play automatically must enable site activex controls click flashing page \",\" search results either click link would like enter another search below back homepage \");");
d.write("var pageMap = new Array(\"Alptech Home\",\"Walking Poles\",\"Walking Pole Accessories\",\"Gifts\",\"Terms and Conditions\",\"Contact Us\",\"Alptech Home\",\"Helicopter Video Demonstration\",\"Search Results\");");
d.write("var linkMap = new Array(\"index.html\",\"walkingpoles.html\",\"walkingpoleaccessories.html\",\"gifts.html\",\"termsandconditions.html\",\"contact.html\",\"alptechhome.html\",\"page8.html\",\"searchresults.html\");");
d.write("var preMap = new Array(\"\",\"Our full range of Alptech Walking Poles, click on the pictures for larger pictures. ( Back to Homepage ) Hill Hiker  Super S8 On/Off Antishock System,  Quicklock Adjustment (68-143 cm),  3 Piece Aircr\",\"Our full range of Alptech Accessories, click on the pictures for larger pictures. ( Back to Homepage )  Pair of Rubber Ferrules  Pair of Trekking Feet, able to cope with any condition.   Pair of Baske\",\"Some exciting gifts and great bargains, click on the pictures for larger pictures. ( Back to Homepage ) Personal Chocolate Fountain “It’s not ours, it’s mine!” Perfect for parties, dinner à deux (or j\",\"If you are not delighted with your Alptech Outdoors product, you may return the goods for a full refund within 7 days, on condition that it arrives back in a new unused saleable condition.  This does \",\"Any comments, questions or queries are welcome, and you can also order by telephone, using the contact information below. Alptech Outdoors PO Box 20  Bude  Cornwall  United Kingdom  EX23 9HL   Tel: +4\",\"Our superb quality Super S8 Antishock Walking poles, tested on the mountains of the world.  Simply Click on the pictures below to go onto the product page. The perfect compliment to your Alptech poles\",\"(Back to previous Page)													(Back to Homepage) (Back to previous Page)													(Back to Homepage) If the video does not play automatically, you must enable the site to run ActiveX controls\",\"Search Results, either click on the link you would like, or enter another search below. ( Back to Homepage ) \");");
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();
}