﻿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(\" welcome manxbiker website those have visited before will notice revamped site started very bitty disjointed hope like format first time visitors please browse following pages feel what about find helpful manxbiker \",\" manxbiker manxbiker private sales this section where list details your beloved beauty event that decide part company just simply need cash don't dont forget advertising here free just email webmaster manxbiker \",\" manxbiker manxbiker recently request from edward canning biker lancashire wanted experience pillion course before first visit 2009 sent edwards details what could arranged well we've weve been updated that ed's wish granted thanks young ambassador islands biking fraternity named ryan october with bungalow asked publish also provided helmet riding gear which described highlight would like extending bikers spirit giving small taste what's whats come we've weve even photos preparing astride ryans cbr600 dreaming next year gone have received following message eddy after dave absolutely utterly amazing just couldn't couldnt comprehend speeds down bray hill were outside ninians church fantastic place spectating enclosed picture myself martins' martins promotional girls please feel free closer manxbiker story unlike other events amazed riders accessible mechanics working bikes close atmosphere intoxicating crowds enthusiastic better having talked many people staying week more vast majority felt entertainment investment laid visiting bikers missed street prom evening opinion- passing tt09 will annual pilgrimage being surpass older gents tally watching 43rd same passion prompted only shockingly part tragic death john crellin senior race watched successfully compete intouch took round started this apparently bump wrote bike returning favour when over again usually times enjoying scuba diving pistol shooting available island thanks very best looking rather pleased himself posing promotional \",\" manxbiker manxbiker this page currently being recreated with links database please bear will available shortly meantime there some still editors fav's favs \",\" manxbiker manxbiker here some very useful links that have been selected editor below number great should interest many visitors tried select them basis association with general theme this site will update locate assess value ones \",\" manxbiker contact there number links throughout site enable contact however rather than searching here quick list general query email owner webmaster manxbiker dave know events that would like adding pages request have link added addlink manxbiker \",\" manxbiker manxbiker website isle based motorcycle site hopefully will cater intended viewers irrespective whether they currently motorcyclists underlying theme here generally around activities within this does mean that rest world excluded but…… have somewhere start after motorcycle capital many thousands people nationalities editor biased proud overall however message being pressured speed restrictions rapidly increasing insurance premiums prehistoric legislation which says safer blinded than tinted visor still ride motorcycles mature years anyway individuals coming back motorcycling same reasons love please browse pages enjoy what motorcycling with item this nature elsewhere comments posted views expressed original writers liability accepted owner items erroneous libellous otherwise maliciously about \",\" manxbiker manxbiker will endeavour keep this part reasonably date with news items don't dont intend full blown service some general interest time goes check adverts private sales remember free what's whats sale little while back request from edward canning biker lancashire wanted experience pillion course before first visit 2009 click here outcome updated june join local triumph owners club club join only year owners told that number events pipeline including rideouts joining contact information fancy great biking holiday bikers hotel caters needs then avalon whitley visit news page \",\" manxbiker manxbiker events calendars select event calendar from drop down menu then click \",\" manxbiker manxbiker road racing isle while obviously dominated main events mountain circuit namely manx grand prix does stop there there numerous throughout year billown south island foremost these course southern held usually july attracting fans competitors alike from both ireland addition classic over this same circuit north andreas racing association organizes road jurby west other short aerodrome also over years that been airfield number variations configuration have used featuring runway which gets further during periods fine tuning their machinery \",\" manxbiker manxbiker isle jewel irish picturesque scenery hills plantations quarries cliffs river beds beckon trials rider most weekends will some form activity even only exhilaration being bike again number events held throughout year over various terrains over years many prestige have been indeed still manx soil addition population claims residence both dougie lampkin steve colley seen occasionally honing their skills don't dont surprised neil hodgson there links organizing clubs forthcoming meantime check manxtrials sure support youngsters checking schoolboy-trials trials riding \",\" manxbiker manxbiker what motorcycling community would complete without motocross spectacular action breathtaking jumps been unknown there some this your flavour then here also beach racing that's thats catered particularly with events organized period which always popular spectators ages excellent access good view again site grows will relevant contact details links provided meantime check peveril motorcycle club team skilly couple great sites have asked host link honest international youth event that taking place since 1980's 1980s motorcross \",\" manxbiker manxbiker please this search page your looking something more specific within site \");");
d.write("var pageMap = new Array(\"ManxBiker - Home Page\",\"For Sale\",\"Features\",\"Links\",\"Editors Fav's\",\"Contact Us\",\"about\",\"news\",\"Events\",\"Road & Circuit\",\"Trials\",\"Motocross\",\"Site Search \");");
d.write("var linkMap = new Array(\"index.html\",\"adstop.html\",\"feature1.html\",\"link.html\",\"editorslnk.html\",\"contact.html\",\"about.html\",\"news.html\",\"events.html\",\"roadcirc.html\",\"trials.html\",\"motox.html\",\"ssearch.html\");");
d.write("var preMap = new Array(\"Welcome to the ManxBiker website  For those of you who have visited before, you will notice we have now revamped the site as the old one had started to get very bitty and disjointed. We hope you like \",\"Manxbiker © ManxBiker Private Sales   This section is where we can list the details of your beloved beauty in the event that you decide to part company (or just simply need the cash.) Dont forget, ad\",\"Manxbiker © ManxBiker Recently, we had a request from Edward Canning, a biker from Lancashire, who wanted to experience a lap (pillion) of the TT Course before his first TT visit in 2009. So we sent o\",\"Manxbiker © ManxBiker This page is currently being recreated with a links database.  Please bear with us as it will be available shortly.....  In the meantime there are some links still available on t\",\"Manxbiker © ManxBiker Here are some very useful links that have been selected by the Editor. Below are a number of great links that should be of interest to many visitors. We have tried to select them\",\"Manxbiker © Contact Us  There are a number of links throughout the site to enable you to contact us.  However rather than searching, here is a quick list.    For general contact/query, email the owner\",\"Manxbiker © ManxBiker The ManxBiker website is an Isle of Man based, motorcycle site and hopefully will cater for intended viewers irrespective of whether or not they are currently motorcyclists. The \",\"Manxbiker © ManxBiker We will endeavour to keep this part reasonably up to date with any news items. We dont intend to be a full blown news service but will try and add some items of general interest\",\"Manxbiker © ManxBiker Events and Calendars Select an event calendar from the drop down menu then click “Go”  \",\"Manxbiker © ManxBiker Road racing on the Isle of Man, while obviously dominated by the two main events on the Mountain Circuit, namely the TT and the Manx Grand Prix, does not stop there.  There are n\",\"Manxbiker © ManxBiker The Isle of Man, jewel of the Irish Sea, Picturesque scenery. Hills, plantations, quarries, cliffs, river beds, beckon the trials rider.  Most weekends will see some form of acti\",\"Manxbiker © ManxBiker What motorcycling community would be complete without Motocross.  Spectacular action, breathtaking jumps and it has not been unknown for there to be some mud !  If this is your f\",\"Manxbiker © ManxBiker Please use this search page if your are looking for something more specific within this site. \");");
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();
}