// JavaScript Document
var item = new Array();

/* Here is where all the magic happens.  
    Just enter as many additional pages that
    that you want to search, then fill in the
    additional listings for each page.
*/

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item[c]=new Array("http://www.laketahoesurgerycenter.com/index.php","","Lake Tahoe Surgery Center","index,main,start,home,front","Home page for Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/about/index.php","","About Us","about,information","Includes general information regarding Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.org/about/contact.php","","Contact Us","contact,questions,information,address,phone","Contact details for Lake Tahoe Surgery Center. Fillable form to ask questions online.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/about/location.php","","Location - Maps and Directions","maps,directions,locations,offices,surgery center","Contains address and phone numbers for Lake Tahoe Surgery Center. Also contains a map and link to directions.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/doctors/index.php","","Our Doctors","doctors,physicians,specialty,specialties,care,orthopedics,gynecology,podiatry,pain management,anesthisiology","Contains links to photos and information on each physician performing surgeries at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/info/faqs.php","","Frequently Asked Questions (FAQs)","faqs,questions,frequently asked questions","Contains answers to frequently asked questions at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/info/index.php","","Patient Information","patient information,information,resources,health topics","This page contains information and resources for patients at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/info/after.php","","After Your Surgery","resources,health resources,health information,after surgery","Contains information regarding what to do after your surgery.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/info/before.php","","When you arrive for surgery","arrive,surgery,information","Contains information on what to do when you arrive for your surgery at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/info/financial.php","","Financial Arrangements","arrive,surgery,information,payment,pay,finances,financial","Contains information regarding financial arrangements that can be made at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/info/preop.php","","Before Your Surgery","surgery,information,preop,before,prior to","Contains information regarding what you need to do before your surgery at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/info/quality.php","","Safety &amp; Quality","quality,safety,JCAHO,joint commission","Contains information regarding quality and safety at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/news/index.php","","News &amp; Events","events,news,stories","Contains news stories and other information regarding Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/pdfs/LTSCBrochure.pdf","","Lake Tahoe Surger Center brochure","brochure,general information","Contains a downloadable brochure for Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/services/index.php","","Our Services","services,procedures,specialties","Contains information regarding services available at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/services/gynecology.php","","Gynecology Services","services,procedures,specialties,gynecology","Contains information regarding Gynecology services at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/services/anesthesiology.php","","Anesthesiology Services","services,procedures,specialties,anesthesiology","Contains information regarding Anesthesiology services at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/services/general.php","","General Surgery","services,procedures,specialties,general surgery","Contains information regarding General Surgery at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/services/ortho.php","","Orthopedic Surgery","services,procedures,specialties,orthopedic surgery","Contains information regarding Orthopedic Surgery at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/services/painManagement.php","","Pain Management Services","services,procedures,specialties,pain management","Contains information regarding Pain Management services at Lake Tahoe Surgery Center.");

c++; item[c]=new Array("http://www.laketahoesurgerycenter.com/services/podiatry.php","","Podiatric Surgery","services,procedures,specialties,podiatry surgery","Contains information regarding Podiatric Surgery at Lake Tahoe Surgery Center.");

page="<html><head><link href='http://www.laketahoesurgerycenter.com/CSS/StylesSearch.css' rel='stylesheet' type='text/css' /><title>Search Results</title></head><body><div id='wrapper'><div id='container'><div id='logo'><a href='http://www.emeraldbaycenter.com'><img src='http://www.laketahoesurgerycenter.com/images/PNG/logo.png' alt='Lake Tahoe Surgery Center Logo' border='0' /></a></div><div id='content'><table border=0 cellspacing=10 width=80%><ul>";


function search() {
win = window.open("","","toolbar=yes,menubar=yes,resizable=yes,scrollbars");
win.document.write(page);
txt = frmSearch.srchval.value.split(" ");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
fnd[i] = 0; order = new Array(0, 4, 2, 3);
for (j = 0; j < order.length; j++)
for (k = 0; k < txt.length; k++)
if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
fnd[i] += (j+1);
}
for (i = 0; i < fnd.length; i++) {
n = 0; w = -1;
for (j = 0;j < fnd.length; j++)
if (fnd[j] > n) { n = fnd[j]; w = j; };
if (w > -1) total += show(w, win, n);
fnd[w] = 0;
}
win.document.write("</table><br>Total found: "+total+"<br></div></div><div id='footer'></div></div></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0]; 
line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"<br>";
line += item[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}
