﻿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(\" ever-growing haberdashery print embroidery shop that's thats another story check ketteringembroidery based kettering town centre northamptonshire serious about sewing stock your knitting essentials plus loads more have bean make speak first help check face book really impressed have just found that brother bringing their recently released machines come along people england only these also serious about sewing from very expensive high tech brilliant work horses pictures below activities \",\" opening hours mon  00-17 tues thurs saturday 00-16 minute parking outside shop lucky would like contact here need know give call 01536 350171 want talk lady knows pretty much everything does sewing alterations knowledge things haberdashery plus products something currently have will order richard with lots technical machine servicing repairs give advice your having problems laura areas girl fabrics also help print embroidery enquiries with a-level gcse textiles advise school projects most basics arty crafty stuff woody insecurity guard very friendly about really won't wont conversation just nudge nose whine when stop fussing \",\" come view impressive range dress fabrics girl know stock wide patterns take forward with that beautiful creation have more rolls bolts fabrics backing netting shake stick have look fabric gallery just taste available suggestions shape fall ever-growing dress colours whether budget polyester satins high quality duchess your after will something suit \",\" offer full repair servicing makes sewing machines check loyalty scheme where earn free servicing collected delivered back direct serviced free collection delivery available give ring even better into shop find more about \",\" like fabric please have when being creative \",\" updating yarn stocks regularly exciting yarns knit something beautiful with these know what ondas will soon amazed this brilliant wool just easy scarfs following brilliant customer feedback must video better than nothing when laura teeth around video publish guide spanish they using words sorry \",\" \",\" featured this month yarn currently best-sellers comes range colours brights pastels mixes marble chunky multi-shade made from 100% acrylic however don't dont this very soft comparison other acrylics 200g ball knits scarf cast stitches finished length about \",\" marble chunky 200g currently featured product month \",\" kettering sewing studio have ever-growing range sewing supplies from essentials desirables like think something everyone stock full gutermann threads starting also moon which very popular good value money 1000m they can't cant beaten variety netting from bridesmaid dresses evening gowns fancy dress costumes little mini tutus check ‘make your tutu' tutu instruction help page anti-static polyester lining \",\" \",\" \",\" help create your very personalised cross stitch pattern \",\" dress inches wide will need least metres this tutu depending full want fold netting across width usually already comes folded that have piece long half again original into quarters along folds left with seperate pieces these strips become layers your take strip join shortest edges together sides make circle repeat step three further times circles elastic around waist pull tighter stretched slightly about inch extra allow seam allowances join ends waistband this should without falling being tight uncomfortable inside another side seams wrong them loose tacking stitch running edge thread outwards gathering skirt once gathered matches size rough your finished \",\" summer prints sale metre \",\" \",\" \",\" \",\" botox refilling saggy beanbags maternity filling brand empty bags cosmetic surgery fixing holes zips embellishments liposuction removing filling from when comes bean bags email your enquiry beanbags ketteringsewingstudio bean giving concern then ring 01536 350171 it's simple with mess frank enstein they know build monster nurse pumpham says matter pump them nice firm size really does have bean that needs building then contact \",\" well underway with sewing machine department have very good range machines please feel free drop look easily arrange what that suits your pocket your projects serious about sewing happy help questions about machine sewingmachines keteringsewingstudio \",\" \");");
d.write("var pageMap = new Array(\"Kettering's Quality Haberdashery\",\"Contact us\",\"Dress Fabrics\",\"Servicing\",\"Fabric Gallery\",\"Knitting\",\"Quilters Corner\",\"Featured This Month\",\"Yarns\",\"Sewing\",\"Knitting Patterns\",\"Open Days\",\"Crafts\",\"Make your own Tutu\",\"Fabrics\",\"Patterns\",\"Handmade Locally\",\"Essentials\",\"Bean Bag Hospital\",\"Your \Sewing Machine\",\"Page 21\");");
d.write("var linkMap = new Array(\"index.html\",\"Contact1.html\",\"dressfab1.html\",\"sewmachines.html\",\"fa gallery1.html\",\"knitt yarn1.html\",\"quilting.html\",\"featured1.html\",\"yarns1.html\",\"sewing.html\",\"kpatterns.html\",\"opendays.html\",\"crafts1.html\",\"tutu.html\",\"fabrics.html\",\"patterns.html\",\"handmade.html\",\"essentials.html\",\"beanbaghospital1.html\",\"sewingmachines1.html\",\"page21.html\");");
d.write("var preMap = new Array(\"We are an ever-growing HABERDASHERY...and PRINT AND EMBROIDERY shop (but that’s another story!...check out www.ketteringembroidery.co.uk) We are based in Kettering town centre in Northamptonshire. Ser\",\"Opening Hours Mon  9:00-17:00 Tues 9:00-17:00 Wed 9:00-17:00 Thurs 9:00-17:30 Fri 9:00-17:30 Saturday 9:00-16:30  30 minute parking outside the shop...if you are lucky. If you would like to contact us\",\"Come and view our impressive range of Dress Fabrics Go Girl you know you can! We Stock a wide range of Dress Patterns to take you  forward with that beautiful creation you have in you. More Rolls and \",\"We offer a full repair and Servicing For all makes of Sewing Machines. Check out the new loyalty scheme where you  can earn free servicing!!  Sewing Machines Collected  and delivered back  direct to y\",\"We like Fabric! Please have fun when being creative... \",\"We are updating our yarn stocks regularly so pop in  to see all of the exciting new yarns...Knit something beautiful with these new yarns...  If do not know what Ondas is..  You will soon be amazed wi\",\"\",\"Featured This Month This yarn is currently one of our best-sellers. It comes in a big range of colours - Brights, Pastels, and Mixes. Marble chunky is a multi-shade yarn made from 100% Acrylic. Howeve\",\"Marble Chunky (200g). Currently our featured product of the month! \",\"At Kettering Sewing Studio we have an ever-growing range sewing supplies! From the essentials up to the desirables, we like to think we have got something for everyone. We stock the full range of Gute\",\"\",\"\",\"WE CAN HELP YOU CREATE YOUR VERY OWN PERSONALISED CROSS STITCH PATTERN! \",\"1 Our dress net is 54 inches wide, you will need at least 2 metres of net for this tutu, depending on how full you want it.  Fold the netting across the width (it usually already comes folded in this \",\"SUMMER PRINTS ON SALE! NOW...£5.60 per metre \",\"\",\"\",\"\",\"BOTOX Refilling old saggy beanbags MATERNITY Filling brand new empty bags COSMETIC SURGERY Fixing holes, new zips, embellishments etc. LIPOSUCTION Removing the filling from the beanbags  WHEN IT COMES\",\"Well we are now underway with our sewing machine department..  We have a very good range of machines for all to use..  Please feel free to drop in and have a look...  We can easily arrange for you to \",\"\");");
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();
}
