﻿function GetSiteSearchResults(newWindow,frameObject,frameObjectName,fontFace,fontSize,fontColour,linkFace,linkSize,linkColour,resultsText)
{
var sTerms="";
var iDepth = 0;
var sURL = new String(window.location.href);
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\" \"http://www.w3.org/TR/html4/loose.dtd\">");
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(\" like honey have chosen ergonomic efficient hexagon represent core business philosophy mission unequivocal foster encourage apply high professional standards field independent forensic fire investigation fire investigation's investigations conduct truthful honest objective investigations with integrity accordance accepted scientific methodology investigators extensive experience approach provide clients leading product competitive rates investigate residential commercial structure fires vehicle wildland veld enjoy established strategic relationships other experts thus mobilise additional resources when required structures wildland vehicles search site investigation 2011 welcome anina burger erasmus \",\" owner investigator andré beer fssocdip mfssoc iaai-cfi® areas structure vehicle wildfire investigations mobile 6578 yates 0828929355 erasmus based western cape 3378 anina burger 9354 hexagon fire investigation 2011 \",\" contact hexagon fire investigation 2011 \",\" hexagon fire investigation 2011 high quality service pertaining origin cause investigation structure vehicle wildland fires includes following compilation expert reports including scene diagrams interviews photographic video record provision opinion testimony legal consultation litigation on-going commitment stay abreast with continue invest technological aids reporting presentation evidence access internationally accredited laboratory analysis fire debris samples determine possible presence ignitable liquid residues international network peers field forensic deployment trained accelerant detection scenes where required storage preservation regular attendance international seminars training opportunities services provided •					structure investigations assist residential commercial structure experienced investigators have managed many major complex investigations strategic partnerships other experts respond assist	when •					vehicle conduct types vehicle cars vehicles •					wildland developed unique methodology which apply spread wildfires •					training provide different aspects relating \");");
d.write("var pageMap = new Array(\"Home\",\"Our Investigators\",\"Contact Us\",\"Our Service\");");
d.write("var linkMap = new Array(\"index.html\",\"page4.html\",\"page5.html\",\"page7.html\");");
d.write("var preMap = new Array(\"Like the honey bee  we have chosen the ergonomic and efficient Hexagon to represent our core business philosophy  Our mission is unequivocal   to foster  encourage and apply high professional standard\",\"Owner   Investigator André de Beer Bsc  FSSocDip  MFSSoc  IAAI-CFI®  Key Areas Structure  Vehicle and Wildfire Investigations  Mobile   082 892 6578 Owner   Investigator Kim Yates  FSSocDip  MFSSoc  I\",\"Contact Us © Hexagon Fire Investigation 2011 \",\"© Hexagon Fire Investigation 2011 Why use Hexagon Fire Investigation 	 Our high quality service pertaining to the origin and cause investigation of Structure  Vehicle  Wildland fires and includes the \");");
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();
}
