﻿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(\" construction begins site will updated regular basis with news projects pages hoping include team- short look each team members their particular expertise gallery extensive gallery jobs have undertaken over past years design some design work been involved products details items supply links links page pages that interest customers demonstrate quality high resolution images plenty interesting features suggestions previous customer photos your pride wish display please e-mail andrew info surfaceanddesign surface design's designs website long overdue overhaul begun updating designing constructing cobra colin elison recently prize best cobra replica tatton park undertook full respray worked produce fine finish coat paint paintwork crash repair insurance work composite fabrication modifications supply body panel site local gazette picked lead from started program- government funded project help business blackpool area reporter well acquainted history recounting times escorted premises thankfully articles positive note noted good companies emerging remnants once great name local reports \",\" contact surface design unit business park bristol avenue blackpool lancashire 01253 info surfaceanddesign opening hours 8am-5 30pm mon-fri 8am-12pm \",\" search results \",\" gallery \",\" meet team dave worked bodyshop years along with fellow partners mick andy began surface design april 2007 bringing vast amounts crash repair experience vaster wisdom that only come maturity enjoys culture team peaceful workshop runs dave's daves relaxed approach life continues outside work when found sauntering scenery lake district doing spot quiet fishing time hopes slowing things down further into retirement office spent coventry university after graduating masters transport essentially very precise colouring landed placement where design sagaris offered tuscan interior facelift project co-started since acquired management skills direct company through 300% expansion juggling customer relations accountancy promotions other varieties organisational process outside somewhere waves north wales surfing swell causing avalanches alps stretching snowboarding legs cartridge third partner specialises sublime surfacing highest standards progressed from foreman overseeing quality control development surfacer cars like boys loves fast like pride golf white russet brown apprentice kane joined august 2009 finishing college education blackpool fylde college impressed socks heading full employment completes city guild qualification summer 2010 plans boss running he's going would surprised… mike williams march having ‘man contacts' contacts liasing dealers sales admin section organising distribution parts overseas motor vehicle guilds also member institute industry meaning sign wants feel clever works alongside office putting unhealthy fascination good meeting enthusiasts sharing sports stories generally ‘talking tvr' either retired millionaire whichever comes first trevor cooper dedicated production engineer involved models onwards september spends days dismantling rebuilding customers' customers vehicles being implementation some exclusive improvements upgrades offers existing model range working wide variety skilfully piecing them back together more agreeably than they arrived says find personally satisfying part strives produce best possible malcolm ashworth been renown softest most dexterous painting hands industry tender attention detail gentle towards colleagues makes malc favourite ballroom dancing yoga unusually large collection nice shoes \",\" tuscan bonnet modification bonnet flip modification allows access engine without removing cover utilising existing fixing points with addition pair stainless steel struts lifted great ease slide show below shows process involved keep video lifting coming soon costs standard conversion struts						£670+vat paint under satin black													£175+vat covering panel black fitted £140+vat			 slideshow photography copyright keevil \",\" \",\" copyright rights reserved site design \");");
d.write("var pageMap = new Array(\"Home\",\"Contact Us\",\"Search Results\",\"Gallery\",\"Team S&D\",\"Tuscan Flip Bonnet\",\"Modifications\",\"Welcome\");");
d.write("var linkMap = new Array(\"home.html\",\"page4.html\",\"page5.html\",\"page6.html\",\"page8.html\",\"page9.html\",\"page10.html\",\"index.html\");");
d.write("var preMap = new Array(\"Construction Begins! The new site will be updated on a regular basis with news and new projects.   Pages we are hoping to include: The S&D Team- a short look at each of the team members and their part\",\"Contact  Surface & Design, Unit 14 TVR Business Park, Bristol Avenue, Blackpool, Lancashire, FY2 0JF  01253 595 800 Info@surfaceanddesign.com  Opening Hours: 8am-5:30pm Mon-Fri 8am-12pm Sat  \",\"Search Results  \",\"Gallery  \",\"Meet the Team Old man Dave The Old Man worked in the TVR bodyshop for years and years. And years. Dave, along with fellow partners Mick and Andy began Surface & Design in April 2007, bringing vast amo\",\"Tuscan Bonnet Modification The bonnet flip modification allows access to the engine bay without removing the engine cover. Utilising existing fixing points and with the addition of a pair of stainless\",\"\",\"Copyright © All rights reserved. Site design: S&D \");");
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();
}