﻿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(\" paxton power supports wildcats football watch strongman coming december 2010 welcome paxtonpowergym largest private training facility northeast serious about strongman? contact info today phone 508-791-3291 928-436-3194 email check youtube myspace facebook strengthdiscussion located grove street 01612 \",\" paxton strongman coming soon results from 2009 contest slam 2008 2007 contest  2006 2005 name e-mail address sign newsletter receive updates upcoming contests other news power \",\" paxton power largest private strongman training facility northeast located grove street train indoors converted barn also acres land host contests throughout year wife shayna have been competing promoting sport since 2003 acquired equipment over years charge only allow those serious about come join group interested hosting sanctioned contest call 508-791-3291 email info paxtonpowergym fill form below more name e-mail address your background comments location equipment that currently conan's conans wheel viking press deadlift custom wheelbarrows steel frame carry believe pulling pushing sled prowler atlas stones platforms steel logs various size tires farmers walk implements handles super yoke chain yoke kegs sand concrete water filled empty throwing plate loaded thomas inch dumbbell bars dumbbells squat rack competition bench smith machine with high pulley hack squat extension curl vertical knee raise hyper roman chair reverse flye multi-function fully adjustable preacher attachment delt machine trap mega trap bar- loadable powerstairs implement axle handle- pinch blocks rolling handles thunder bomb vbar zercher blaster belt wrist roller triceps olympic lots other accessories tons plates olympic standard ivanko bumper iron mind harness neck plenty tacky chalk \",\" \",\" nate fitzgerald shayna justin warren paul kuokkanen dave bourgeois brian kling \",\" some best supplements market sponsor team paxton body nutrition code paxton2010 receive your order supplements \",\" resources links kilo pound calculator calorie counter nastrongmaninc onebodynutrition code paxton2010 receive your order worcestercountywildcats strengthdiscussion gyms trainers totalperformancesports mystrengthdiscovery excelstrength interested having link placed website then please email submission linkadd paxtonpowergym \",\" \",\" \",\" justin warren professional strongman with american strongman corporation began competing sport 2005 2006 massachusetts state championships soon after training paxton power 2007 every local contest that entered including england's englands strongest placed nationals vegas october 2009 national carencro \",\" shayna fitzgerald competitive strongwoman having placed women division 2005 2006 2007 nationals recently 2008 also currently holds record womens deadlift 365lbs press reps deadlift licensed nationally certified massage therapist neuromuscular aesthetician personal trainer been featured worcester magazine telegram gazette landmark member nass issa nasm \",\" paul's pauls coming soon \",\" dave's daves coming soon \",\" brian's brians coming soon \",\" nathan fitzgerald competitive strongman promoter owner paxton power 2006 rhode island strongest well 2008 annual bath heritage days also massachusetts state co-chair \");");
d.write("var pageMap = new Array(\"Home\",\"Contest Info\",\"About Us\",\"Power People\",\"Team Paxton\",\"Store\",\"Links & Resources\",\"Blog\",\"Forum\",\"Justin Warren\",\"Shayna Fitzgerald\",\"Paul Kuokkanen\",\"Dave Bourgeois\",\"Brian Kling\",\"Nate Fitzgerald\");");
d.write("var linkMap = new Array(\"index.html\",\"contestinfo.html\",\"aboutus.html\",\"powerpeople.html\",\"teampaxton.html\",\"store.html\",\"linksandrresources.html\",\"blog.html\",\"forum.html\",\"justin.html\",\"shayna.html\",\"paul.html\",\"dave.html\",\"brian.html\",\"nate.html\");");
d.write("var preMap = new Array(\"Paxton Power Gym supports Wildcats Football  Watch for Paxton Strongman 6 coming December 2010! Welcome to www.paxtonpowergym.com We are the largest private Strongman training facility in the northeas\",\"Paxton Strongman 6 coming soon!   Results from our Paxton Strongman V - 2009 contest Results from our Paxton Strongman Slam I - 2009 contest Results from our Paxton Strongman IV - 2008 contest Results\",\"Paxton Power Gym is the largest private Strongman training facility in the Northeast. We are located at 306 Grove Street in Paxton, MA. We train indoors in our converted barn and also on our 2 acres o\",\"\",\"Nate Fitzgerald Shayna Fitzgerald Justin Warren Paul Kuokkanen Dave Bourgeois Brian Kling \",\" Some of the best supplements on the  market & sponsor of Team Paxton -  One Body Nutrition use code “paxton2010” and receive 10% off of your order Supplements \",\"        Resources Links Kilo to pound calculator Calorie counter nastrongmaninc.com onebodynutrition.net  use code “paxton2010” to receive 10% off of your order worcestercountywildcats.com strengthdis\",\"\",\"\",\"   Justin Warren is a professional strongman with American Strongman Corporation. He began competing in the sport in 2005. In 2006 he won the Massachusetts State Championships and soon after began tra\",\" Shayna FitzGerald is a competitive strongwoman, having placed 3rd in the Women LW division at the 2005, 2006 and 2007 Nationals and recently placed 2nd at the 2008 NAS Nationals. Shayna also currentl\",\"Paul’s Bio Coming Soon \",\"Dave’s Bio Coming Soon \",\"Brian’s Bio Coming Soon \",\" Nathan Fitzgerald is a competitive strongman, promoter and owner of Paxton Power Gym.  Nathan has won the 2006 Rhode Island Strongest Man as well as the 2008 1st Annual Bath Heritage Days Strongest M\");");
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("}");
d.write("wpDoSearch(\""+sTerms+"\");");
d.write("</script>");
d.write("</body></html>");
d.close();
}