﻿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(\" \",\" associated links wbta serenity haven >why choose young progressive company formed 1983 dedicated research development hairdressing techniques products highest quality >giving best possible service clientele always been brief choosing right colour cutting volumizer your look success failure with years will discuss options explores different combinations before make final decision prime concern take account life style skin tone body shape hair advice desired look home care >award winner investing children award city county swansea 1996 1999 enterprise business commitment community >the salon situated heart centre adjoining dragon hotel parking facility yards >cut blow maybe long short retro avant--guard love hair colouring brown blonds most soft nuance's nuances chocolate rich-reds course luminous coppers >volumizer from small fringe lift drop-me curls root lifter demi wave work \",\" click icon subscribe vacancy changing companies difficult transition alfredo will ensure your present future success protected previously qualified undergo brief period retraining existing experience knowledge team spirit skills techniques won't wont stop there able constantly update repertoire with latest fashions have reliability artistic flair good attitude communication dynamic give call house level module refresh courses free under modern apprentiship price application training refresher \",\" here break rules alfredo pompei submissions usually preferred email cutting down paper waste contact e-mail feed form land line text just leave message answer phone address alfredo pompei belle swansea glam wales sales alfredo appointment 01792 654044 text 07532063708 \",\" legal terms conditions access this site subject following terms conditions applicable laws browse personal entertainment information however distribute modify transmit revise contents without written permission alfredo makes warranties representations about accuracy completeness content sites hot-linked neither affiliates shall liable direct incidental consequential indirect punitive damages arising access communication material post over internet will treated confidential non-proprietary transmitting posting agree that your purpose including reproduction transmission publication broadcast furthermore unlawful threatening libellous defamatory obscene pornographic profane could constitute encourage conduct would considered criminal offence violate names logos marks appearing except otherwise noted trademarks owned used under license geography's geographys where markets products bearing such trade misuse these other provided strictly prohibited \",\" \",\" please enter your details below possession reward card enter number appropriate appointments submission form will endeavour respond your request return avoiding waiting time secure form selecting some must proceed untill have filled them reward card contact phone verify unatended appointments cancelled before otherwise charge applicable note opening 00-6 last appointment 00-17 stylist services month date time name e-mail reward card post code mobile \",\" access clients reward voucher page haven't havent signed-up form below approval have signed-up already enter your e-mail password page vouchers please note re-set also using \");");
d.write("var pageMap = new Array(\"Home\",\"About  Us\",\"Training / Vacancy\",\"Contact US\",\"Terms & Conditions\",\"Site Search\",\"Appointments\",\"Client Rewards\");");
d.write("var linkMap = new Array(\"index.html\",\"about.html\",\"training.html\",\"contact.html\",\"terms.html\",\"search.html\",\"appointments.html\",\"clirewvouch.html\");");
d.write("var preMap = new Array(\"\",\"> Associated Links Wbta Serenity Haven   >Why Choose Us...... As a young and progressive company, formed in 1983 .We are dedicated to the research and development of hairdressing techniques and produc\",\"                      Click on the Rss Icon to See / Subscribe  to our vacancy Changing companies is a difficult transition, at Alfredo Ltd. we will ensure your present and future success is protected\",\"We Are Here To Break the Rules........... ALFREDO     POMPEI  Submissions are usually preferred via email cutting down on paper waste. You can contact us by e-mail feed form ,land line, text, fax or j\",\"Legal Terms and Conditions Access to and use of this site are subject to the following terms and conditions and all applicable laws. You may browse this site for personal entertainment and information\",\"\",\"Please Enter Your details below! If you  are in possession of our REWARD CARD, Please enter the Number in the  appropriate  box , Appointments Submission Form   We will endeavour to respond to your re\",\"To access the Clients Reward & Voucher Page  If You havent Signed-Up yet, use the form below  To Get Approval. If you have signed-Up already,  enter your e-mail and password to access the page and Vo\");");
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();
}
