﻿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(\" news welcome thank visiting website please click pages navigation left access rest site would like contact please here continually adding more products visit again soon looking something particular search below follow this link find fascinating facts about pewter shouldn't shouldnt dishwasher original re-enactors market 12-14 november 2010 next events where will trading international living history fayre 29-31 october medieval christmas bishops palace lincoln december \",\" about family business have been selling pewter since 2002 stock both historical replica pieces modern historically inspired giftware main clients always members re-enactment community also supply museums sell general public like think something everyone \",\" general enquiries have questions please contact telephone number e-mail addresses below e-mail enquiries reivertrading reiver_trading btinternet 1476 571106 \",\" privacy policy reiver trading will need take some personal data from order process your pass this information other party without express permission know annoying spam similar junk mail wish mailing list send occasional newsletters letting lines products generally keeping touch \",\" terms conditions shipping handling price items exclusive postage packing please contact obtain inclusive post destinations sent registered royal mail delivery overseas orders will most appropriate method depending size value delivery normally carry each item stock usually dispatched within working days payment being cleared larger quantities need made order this case time longer advise when place returns check your upon receipt event defect error please then arrange return replacement your statutory rights affected \",\" pewterware click buttons purple left hand navigation explore different ranges pewterware sell ever wondered crafted? below some youtube videos showing material turned into beautiful items films have accompanying soundtrack would like back take enjoyable look selection pictures pewter please click here please note gallery images accompanied music follow this link find fascinating facts about shouldn't shouldnt dishwasher \",\" tankards lidded baluster tankard pint with hammerhead thumbpiece plus bellied flat \",\" this page still under construction please visit again soon thank \",\" this page still under construction please visit again soon thank \",\" giftware looking present with difference? check range gentleman's gentlemans pocket watches ladies' ladies pendant both styles have pewter insert front cover skeleton movement battery operated both come year guarantee gents only plus excellent value please click here giftware also includes cufflinks hipflasks purse mirrors trinket boxes \",\" this page still under construction please visit again soon thank \",\" gents pocket watches more giftware including cufflinks flasks ladies pendant purse mirrors trinket boxes click buttons purple left hand navigation giftware ranges \",\" ladies watches celtic knot design with purple stone insert tone never ending range gents pocket watches found here ladies plus triple swirl interested items please contact reivertrading btinternet confirm total cost including click terms conditions please click image larger version highlighted there also coordinating trinket boxes \",\" gents pocket watches tone celtic knot design never ending triple swirl tudor rose gents pocket watches plus cross with stone insert green interested items range please contact reivertrading btinternet confirm total cost including postage packing click here terms conditions fighter plane ladies pendant found please click image larger version highlighted there also coordinating cufflinks flasks available \",\" \",\" know? pewter been used britain since roman times middle ages pewterers belong craft guilld pewter sell made england from copper antimony these help harden lead free perfectly safe drink reputed have slight antibacterial properties most precious metal after platinum gold silver caring your before first should washed warm soapy water with soft cloth cleaned this each subsequent tempting though might dishwasher clean dishwasher detergent harsh will badly scratch maintain pewter's pewters shine polished occasionally proprietary polish \",\" flasks	 stainless steel flasks with pewter inserts items highlighted there also coordinating gents pocket watch available view watches page please click here interested range contact reivertrading btinternet confirm total cost including click terms conditions triple swirl celtic knot design never ending tone boss cufflinks leatherette cufflinks tops oval design circle square cufflink wooden matching pewter insert knot black stone green tone \",\" wooden trinket boxes with pewter inserts items highlighted there also co-ordinating ladies pocket watch available view watches page please click here interested range contact reivertrading btinternet confirm total cost including click terms conditions purse mirrors stainless steel mirrors backs this under construction visit again soon thank \",\" links many customers interested historical replica items below list links companies also cater re-enactors museums schools general history enthusiasts please note that while have included these good faith reiver trading cannot accept responsibility content external sites other medieval woodcraft carpentry reproductions historicaly inspired originals busy mole music specialist suppliers early musical instruments recorded music sheet makers small harps lyres helen history writing interpretation merchant venturers historical glass other trinity court potteries iron 18th century ceramics guild saynt luke printed drawn medieval replicas paper parchment either based adaptations using appropriate graphic elements from specific time frame region histrenact directory things with re-enactment including societies events weapons arms armour derbyshire historic makers period firearms shooting museums theatre collectors suppliers authentic maille costume cloaked daggered handmade cloaks costume sally pointer silk wool stockings knitted hats order perfumes cosmetics herbs potions books seamstress clothing re-enactors enthusiasts real hire workshops hire \");");
d.write("var pageMap = new Array(\"Reiver Trading - Handcast Quality English Pewter\",\"Reiver Trading - About Us\",\"Reiver Trading - Contact Us\",\"Reiver Trading - Privacy Policy\",\"Reiver Trading - Terms and Conditions\",\"Reiver Trading - Our Pewterware\",\"Reiver Trading - Tankards\",\"Reiver Trading - Flagons\",\"Reiver Trading - Bowls, Plates and Spoons\",\"Reiver Trading - Giftware\",\"Reiver Trading - Goblets\",\"Reiver Trading - Giftware launch page\",\"Reiver Trading - Ladies Watches\",\"Reiver Trading - Gents Watches\",\"Reiver Trading - Image Gallery \",\"Reiver Trading - Pewter Facts\",\"Reiver Trading - More Giftware for Him\",\"Reiver Trading - More Giftware for Her\",\"Links\");");
d.write("var linkMap = new Array(\"index.html\",\"about_us.html\",\"contact_us.html\",\"privacy_policy.html\",\"terms_and_conditions.html\",\"our_pewterware.html\",\"tankards_page1.html\",\"flagons.html\",\"bowls_plates_and_spoons.html\",\"giftware.html\",\"goblets.html\",\"giftware_launchpage.html\",\"ladies_watches.html\",\"gents_watches.html\",\"image_gallery.html\",\"pewter_facts.html\",\"moregiftwareforhim.html\",\"moregiftwareforher.html\",\"links.html\");");
d.write("var preMap = new Array(\"News Welcome... Thank you for visiting our website,   Please click on the pages on the navigation bar on the left to access the rest of our site. If you would like to contact  us please click here.   \",\"About Us  We are a family run business and have been selling pewter since 2002 and we stock both historical  replica pieces and modern historically inspired giftware.   Our main clients have always be\",\"General Enquiries  If you have any questions please contact us our telephone number and e-mail addresses are below: E-mail:  enquiries@reivertrading.co.uk Or:  reiver_trading@btinternet.com Tel:  +44 \",\"Privacy Policy  We at Reiver Trading will need to take some personal data from you in order to process your order.  We will not pass this information on to any other party without your express permiss\",\"Terms and Conditions  Shipping and Handling:  The price of all items is exclusive of postage and packing. Please contact us to obtain a price inclusive of post and packing.  All items to UK destinatio\",\"Our Pewterware  Click on the buttons on the purple left hand navigation bar to explore the different ranges of pewterware we sell. Ever wondered how pewterware is crafted?  Below are some “YouTube” vi\",\"Tankards Lidded Baluster Tankard(1 ⅓ pint)  with hammerhead thumbpiece  £99.50 plus  p and p Lidded Bellied Tankard (1 ½ pint) with flat thumbpiece  £47.00 plus  p and p Lidded Bellied Tankard (2 pint\",\"This page is still under construction please visit again soon, thank you. \",\"This page is still under construction please visit again soon, thank you. \",\"Giftware Are looking for a present with a difference?    Check out our new  range of gentleman’s pocket watches and ladies’ pendant/bag watches. Both styles have a pewter insert on the front cover.   \",\"This page is still under construction please visit again soon, thank you. \",\"Gents Pocket Watches  More Giftware for Him including Cufflinks and  Hip Flasks  Ladies Bag/Pendant Watches  More Giftware for Her including Purse Mirrors and Trinket Boxes  Click on the buttons on th\",\"Ladies Watches Celtic Knot design with purple stone insert Two tone Celtic  Knot design Never ending Knot design Our range of gents pocket watches can be found here All ladies watches are  £20 plus p \",\"Gents Pocket Watches Two Tone Celtic Knot design * Never ending Knot design * Triple Swirl Celtic Knot design * Tudor Rose design All gents pocket watches are £39.50 plus p and p Celtic Cross design w\",\"\",\"Did You Know?... Pewter has been used in Britain since Roman Times. In the Middle Ages, pewterers had to belong to a Craft Guilld All of the pewter we sell is made in England The pewter we sell is mad\",\"Hip Flasks	 £19.50 Stainless steel flasks with pewter inserts For items highlighted with * there is also a coordinating gents pocket watch available.  To view the watches page  please click here If yo\",\"Wooden Trinket Boxes £7.00 with pewter inserts For items highlighted with * there is also a co-ordinating ladies pocket watch available.  To view the watches page  please click here If you are interes\",\"Links  For our many customers who are interested in historical replica items below is a list of links to companies who also cater for re-enactors museums, schools, and general history enthusiasts  Ple\");");
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();
}