﻿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(\" have gifts capacities gifts aren't arent until they given' given john o'brien obrien welcome development training consultancy company working with people community promote person centred actions planning organisations communities mission support build inclusive future where possible training mapped knowledge requirements health social care 0759 7103 t-r-a live \",\" knew very little found fascinating boulevard care fact that trainer practical experience made realistic mencap homes foundation shattered myths about asperger's aspergers bolton neighbourhood network very interesting well presented consolidated reinforced knowledge strategies thank ashridge boston useful theory shown practice- learning disability opportunities christchurch workshop testimonials \",\" challenge manager knows difficult enough keep staff motivated engaged challenged when they work outside your office door alone different buildings towns expected produce results deliver these must draw upon best efforts every member regardless physical location considering site mind factor this easy with some creative thought consideration there always include departmental operations goals matter where located workshop-an ongoing consultation-a hands informative experience remote management \",\" associated with poverty result emotional detachment unusual responses sensory stimuli genius heightened allergies cured mental illness? learning disabilities? absence feeling? genetically linked? autism quiz true false? inclusion person centred planning workshops \",\" person centred support interactive workshop guiding teams individuals learn grow with people they support experiential exercises demonstrate principals person centred process learning wants live that fulfil their dreams aspirations values inclusion approaches will covered three course \",\" what makes team work efficiently? workshop that explores each persons particular skills uniquely contribute success their interactive experience will teach participants understand others with very different also positively efficient effective coming together beginning keeping progress working henry ford ‘teamwork fuel allows common people achieve uncommon results' results team consolidation \",\" take part journey discovery where your team experiences first hand what life like person with autism world that friendly interactive thought provoking informative workshop awareness name= fb_share type= button_count href= http facebook sharer >share< a><script src= static fbcdn connect share text javascript script> myth easily recognise i've seen rain they alike fact people different from another they could only elements seem have common unusual difficulty social communication \",\" other available workshops risk management dementia awareness communication skills stress call more information about these other bespoke workshops range meet your teams needs \",\" consultancy services offered where specific complex client requires focused consultation with supporters within their environment advice around person centred support plans focused approaches outlined monitoring going contractual \",\" contact 0759 7103 t-r-a live right attitude development training consultancy company chelveston road raunds northamptonshire 01933 380930 \");");
d.write("var pageMap = new Array(\"Home\",\"Workshops/testimonials\",\"Remote Management\",\"Interesting Stuff\",\"Person Centred Support\",\"Team Consolidation\",\"Autism Awareness\",\"Workshops\",\"Consultancy\",\"Contact\");");
d.write("var linkMap = new Array(\"index.html\",\"page4.html\",\"page8.html\",\"page9.html\",\"page11.html\",\"page12.html\",\"page13.html\",\"page14.html\",\"page15.html\",\"page16.html\");");
d.write("var preMap = new Array(\"‘We all have gifts and capacities, But... Gifts aren’t gifts until they are given’ John O’Brien  Welcome We are a Development, Training & Consultancy Company, working with people and the community to \",\"    I knew very little so found it fascinating -  Boulevard Care   The fact that the trainer had a lot of practical experience made it   realistic - Mencap Homes Foundation   Shattered myths about Asp\",\"The Challenge! As any manager knows, it is difficult enough to keep staff motivated, engaged and challenged when they work outside your office door, let alone when they work in different buildings or \",\"1. Associated with poverty ? 2. A result of emotional detachment.?  3. Associated with unusual responses to    sensory stimuli. ? 4. Associated with genius. ? 5. Is heightened by allergies. ? 6. Can b\",\"Person Centred Support An interactive workshop guiding teams and individuals to learn to grow with the people they support. Experiential exercises to  demonstrate the principals of person centred supp\",\"What makes a team work efficiently?  A workshop that explores  how each persons particular skills can uniquely contribute  to the success of their team. An interactive experience that will teach parti\",\"Take part in a journey of discovery, where your team experiences first hand, what life is like for a person with Autism in a world that is not Autism Friendly. An interactive, thought provoking and in\",\" Other Available  Workshops  Risk Management  Dementia Awareness  Communication skills  Stress Management       Call for more information about these and other bespoke workshops A range of bespoke wor\",\"Consultancy Consultancy Services are offered where a specific complex client requires a focused consultation with supporters and client within their own environment.  Advice around specific person cen\",\"Contact 0759 486 7103 t-r-a@live.co.uk The Right Attitude Development , Training and consultancy company 49 Chelveston Road Raunds Northamptonshire   NN9 6DA          01933 380930 \");");
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();
}