﻿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(\" dipton former village located district derwentside county durham north east england group been running continuously since 1929 almost unique being joint scout guide have sections which provide wide range exciting activities young people aged between present members those over there also district explorer unit about interested joining contact want full english breakfast? along coffee mornings it's great chance meet other families talk leaders just some good food coffee held once fortnight easter fair 27th march april 10th 24th 22nd interested sections? send email with your contact details including postal address we'll well happy touch more perhaps you're youre adult wishes help maybe skill offer events could give small amount time upkeep maintenance building case we'd like hear from please again include help raise money shopping online over uk's best-known retailers sign \",\" year boys girls provide wide range activities between years already member interested joining click section below more information need uniform? click here what where \",\" logon needed links below minibus calendar \",\" click uniform badge placement year boys girls \",\" group celebrations tanfield railway saturday november 14th 2009 we're were celebrating 80th anniversary this year october held grand birthday party 	more blog archive easter fair updated march 13th 2010 this years 27th george's georges information sunday district parade dipton \",\" click uniform badge placement year boys girls \",\" click uniform badge placement year boys girls \",\" beavers turquoise sweatshirt navy blue activity trousers scouts teal green shirt with leather scout belt cubs dark where uniforms purchased from durham scout shop click here their page location also on-line scoutshops beaver \",\" scouts guides came together celebrate their 80th anniversary more than people attended dipton scout guide birthday celebrations tanfield railway sunniside gateshead members from group clambered trains looked around oldest existing railway world shared fondness movements ashcroft been scouts since leader years said everyone very windy lash down with rain morning despite weather lots mark special have here rainbow beavers cubs brownies everyone really enjoyed spending taking train always keen recruit more youngsters leaders anyone wants take part please touch which based black bull stanley county durham formed october 1929 eight members including added changed great deal they were first started grown times example there computer badge still learn look after themselves sleep tents group celebrations saturday november 14th 2009 we're were celebrating anniversary this year held grand party press advertiser evening chronicle hand publicise event below extract check full article thanks turned \",\" site here constantly updated front page provide information glance blog pages keep date with latest news events section more specific details your child's childs group more come 1stdipton ever evolving destination members entrants leaders visiting check have comments would happy hear from please email \",\" blog archive group celebrations tanfield railway saturday november 14th 2009 festive season george's georges information sunday march 2010 easter fair 13th \",\" christingle symbolic object used advent services churches many christian denominations origins moravian church with first recorded germany 1747 festive season saturday november 14th 2009 it's that time year again dipton full calendar events this christmas period here's heres list coming next couple months more information your section leader friday december service patrick's patricks church fayre black bull 00-12 donations tombola non-perishable food items greatly accepted reach leaders before sunday 20th packing marks spencer have secured slot pack help raise funds group unfortunately only those over years rules need much from parents other adults make fund raiser success \",\" easter fair thanks everyone came updated saturday march 13th 2010 updated 30th this years held 27th dipton fair great success featured tombola which sold record time raffle cake stall addition breakfasts supply once fortnight coffee mornings winners have been posted notice board black bull should site soon also missed hold every well cold drinks serve full english breakfast sandwiches along between 10am 12pm dates home page finally below photos from again thank attended made morning \",\" george's georges service 23rd april 2010 john's johns church dipton meet 15pm park parade church starts 00pm information sunday march this years district held service will take place following flags members from opposite lion should wear full uniform arrive ensure everyone starting 30pm then begin around consist readings children hymns with music provided scout band derwent muse past present also invited renew their promise refreshments available black bull afterwards year part both centenary 80th birthday guide sections \");");
d.write("var pageMap = new Array(\"Home\",\"Sections\",\"Leaders\",\"Cubs\",\"Blog\",\"Beavers\",\"Scouts\",\"Uniform\",\"80th Birthday\",\"New Site\",\"Blog Archive\",\"Festive Season\",\"Easter Fair\",\"St Georges Day Information\");");
d.write("var linkMap = new Array(\"index.html\",\"sections.html\",\"leaders.html\",\"cubs.html\",\"blog.html\",\"beavers.html\",\"scouts.html\",\"uniform.html\",\"241109_80thbrithday.html\",\"newsite.html\",\"archive.html\",\"241109_festiveseason.html\",\"130310_easterfair.html\",\"140310_stgeorges.html\");");
d.write("var preMap = new Array(\"Dipton is a former pit village located in the district of Derwentside in County Durham in the north east of England.  The group has been running continuously since 1929 and is almost unique, being a j\",\"6 to 8 year old boys and girls 8 to 10 1/2 year old boys and girls 10 1/2 to 14 year old boys and girls 5 to 7 year old girls 7 to 10 year old girls We provide a wide range of activities for boys and \",\"Logon needed to use the links below:  Minibus Calendar     \",\"Click the uniform for badge placement 8 to 10 1/2 year old boys and girls \",\"Group Celebrations on the Tanfield Railway Saturday, November 14th, 2009 We’re celebrating our 80th Anniversary this year, and on the 3rd October the Group held a grand birthday party on the Tanfield \",\"Click the uniform for badge placement 6 to 8 year old boys and girls \",\"Click the uniform for badge placement 10 1/2 to 14 year old boys and girls \",\" Beavers  Turquoise sweatshirt and Navy Blue activity trousers   Scouts  Teal Green shirt and Navy Blue activity trousers, with leather scout belt.    Cubs  Dark Green sweatshirt and Navy Blue activit\",\"SCOUTS and Guides came together to celebrate their 80th anniversary.  More than 100 people attended Dipton Scout and Guide birthday celebrations at Tanfield Railway, in Sunniside, Gateshead.  Members \",\"Our new site is now here Constantly updated front page to provide information at a glance Blog pages to keep you up to date with all the latest news and events Section pages for more specific details \",\"Blog Archive Group Celebrations on the Tanfield Railway Saturday, November 14th, 2009 Festive Season Saturday, November 14th, 2009 St George’s Day Information Sunday, March 14th 2010 Easter Fair Satur\",\"Christingle, a symbolic object used in advent services in churches of many Christian denominations. It has its origins in the Moravian Church , with the first recorded use, in Germany, in 1747. Festiv\",\"Easter Fair  Thanks to everyone who came.  Easter Fair (updated) Saturday, March 13th 2010 Updated, March 30th 2010  This years Easter Fair was held on Saturday 27th March at Dipton.  The fair was a g\",\"St. George’s Day Service 23rd April 2010 St John’s Church, Dipton  Meet 6:15pm at Dipton car park to parade to church Service starts 7:00pm  St George’s Day Information Sunday,  March 2010 This years \");");
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();
}