﻿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(\" surface design prestige automotive bodywork specialist with supurb reputation striving perfection projects 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 have been approached classic sportscar magazine help restoration their project cars reliant scimitar martin port from looking team class fibreglass experts work magic were only happy will number rolling reports itself starting introduction january issue published early first steps taken strip original paintwork arriving here bristol avenue begin repairs 12th december take look website details this exciting reliant scimitar griffith from norway left hand drive man's mans obsession create truly bespoke vehicle responsible exterior development provided successful tweaks enhance both looks functionality revised door mirror installation strut assisted bonnet opening improved light bonnet vent plate plinth integral charge point carbon fibre engine trim panel clutch foot rest design bespoke colour wealth experience refinishing many years knowledge skills gained engineering across factory combines staff body shop paint production crash repair departments this given crucial that demand undertake your requirements undertaken variety marques welcome further demonstrate capabilities please gallery evidence unrivalled resurfacing results committed quality excellence understand importance customer satisfaction complete peace mind meticulous giving valued attention deserves providing second-to-none lotus elan after gruelling time spent removing seven layers poor repaired painstakingly re-tissued entire before skim with solid foundation straightened panels aligned primes coats straightening ready perfect white specification careful rebuild replacing refurbishing parts where needed puts finishing touches suffice there tears when finally left \",\" contact surface design unit business park bristol avenue blackpool lancashire 01253 info surfaceanddesign opening hours 8am-5 30pm mon-fri mornings apointment \",\" search results \",\" gallery \",\" office andy spent years coventry university after graduating with masters transport design essentially very precise colouring landed placement where worked design team sagaris offered tuscan interior facelift project co-started surface 2007 since acquired management skills direct company through past outside work found somewhere waves north wales surfing swell causing avalanches alps enjoys stretching snowboarding legs rhiannon browning undertaking nitty gritty paperwork numbers helped steer business success proven herself petrol head ownership renovation land rover leightweight which soon trawling green lanes lancashire adrian hook since 2009 super been preparing cars ready their final coat paint with experience knows effort needed provide that quality finish seeing grin factor customers faces they drive away refinishing extend outside classic currently restoring looks forward take family camper wherever road takes chill guitar couple beers mike williams joined march 2010 having ‘man contacts' contacts liasing dealers sales admin section organising distribution parts overseas motor vehicle city guilds qualification also member institute industry meaning sign when wants feel clever works alongside office putting unhealthy fascination things good meeting fellow enthusiasts sharing sports stories generally ‘talking tvr' hopes either retired millionaire whichever comes first graduate kane august finishing college education blackpool fylde college impressed socks partners full time employment completing guild summer 2011 plans boss running he's going would surprised… trevor cooper dedicated production engineer involved development models from onwards september spends days dismantling rebuilding customers' vehicles being implementation some exclusive improvements upgrades offers existing model range working wide variety come into workshop skilfully piecing them back together more agreeably than arrived says find personally satisfying part strives produce best possible malcolm ashworth boys renown softest most dexterous painting hands industry attention detail considered approach results finest finishes pass malcolm's malcolms knowledge paints second none understands trickeries make each shade tick identify code yards dave bodyshop along mick began april bringing vast amounts crash repair vaster wisdom only maturity culture peaceful runs dave's daves relaxed life continues sauntering scenery lake district doing spot quiet fishing slowing down further retirement cartridge third partner specialises sublime surfacing highest standards progressed foreman overseeing control surfacer like loves fast like pride golf white russet brown team \",\" 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 \",\" \",\" prices exclusive paint front respray full same colour change elise £750 £2370 £2645 esprit £975 £3205 £3530 £1000 £3310 £3660 £1050 £3390 £3740 cerbera £900 £2810 £3110 chimaera £800 £2500 £2775 griffith £2400 £2675 series taimar £775 sagaris £3005 £3300 £2450 £2725 t350c £850 £2620 £2915 t350t £2755 £3055 tamora £2395 £2670 tuscan £950 £2770 £3050 £2870 £3150 wedge £2750 £3030 lotus \");");
d.write("var pageMap = new Array(\"Home\",\"Contact Us\",\"Search Results\",\"Gallery\",\"Team S&D\",\"Tuscan Flip Bonnet\",\"Modifications\",\"Welcome\",\"Page 9\",\"Pricing\");");
d.write("var linkMap = new Array(\"home.html\",\"page4.html\",\"page5.html\",\"page6.html\",\"page8.html\",\"page9.html\",\"page10.html\",\"index.html\",\"page11.html\",\"page12.html\");");
d.write("var preMap = new Array(\"Surface & Design are a prestige automotive bodywork specialist with a supurb reputation, striving for perfection in all projects.  Cobra Colin Elison has recently won 1st prize for the best cobra repl\",\"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 Sat  Mornings by Apoint\",\"Search Results  \",\"Gallery  \",\"The Man in the Office Andy spent 4 years at Coventry University and, after graduating with a masters in Transport Design, (essentially very precise colouring in), he landed a placement at TVR where \",\"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 \",\"\",\"Prices are exclusive of Paint and VAT Front respray Full respray  (same colour) Full respray (colour change) Elise £750 £2370 £2645 Esprit S1 £975 £3205 £3530 Esprit S2/S3 £1000 £3310 £3660 Esprit S4/\");");
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();
}
