// 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.tahoeorthopedics.com/index.php","","Tahoe Center for Orthopedics","index,main,start,home,front","Home page for Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/about/index.php","","About Us","about,information","Includes information regarding the Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.org/about/contact.php","","Contact Us","contact,questions,information","Contact details for Tahoe Center for Orthopedics. Fillable form to ask questions online.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/about/locations.php","","Locations - Maps and Directions","maps,directions,locations,offices,doctors offices","Contains address and phone numbers for each office location. Also contains links to maps for each.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/docs/index.php","","Our Doctors","doctors,physicians,specialty,specialties,care,orthopedics,osteoporosis,rheumatology,internal medicine,physiatry,radiology","Contains links to photos and information on each physician at Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/education/index.php","","Patient Education","education,procedures,patients","Contains links to graphics and descriptions of may of the procedures and injuries seen at Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/lecture/index.php","","2011 Wellness Lecture Series","lectures,wellness,wellness lectures","This page contains information on the 2011 Wellness Lecture Series.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/news/index.php","","In the News","news,stories,press release,articles","Contains links to stories relating to the physicians and operations of Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/services/index.php","","Our Services","services,procedures,specialties","Contains links to different services available at Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/services/emergency.php","","Emergency Care","services,procedures,specialties,emergency,emergency care","Contains information regarding Emergency Care services with Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/services/hand.php","","Hand and Upper Extremity Care","services,procedures,specialties,hand,upper extremity,extremity","Contains information regarding Hand and Upper Extremity Care services with Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/services/joint-replacement.php","","Joint Replacement","services,procedures,specialties,joint,replacement,total joint replacement","Contains information regarding Joint Replacement services with Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/services/osteoporosis.php","","Osteoporosis","services,procedures,specialties,osteoporosis,bone,bone health,bone disease","Contains information regarding Osteoporosis and Metabolic Bone Disease services with Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/services/spine-care.php","","Spine Care","services,procedures,specialties,spine,spine care,back","Contains information regarding Spine Care services with Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/services/sports-medicine.php","","Sports Medicine","services,procedures,specialties,sports,sports medicine","Contains information regarding Sports Medicine services with Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/services/trauma.php","","Trauma/Fracture Care","services,procedures,specialties,trauma,fracture,break","Contains information regarding Trauma and Fracture Care services with Tahoe Center for Orthopedics.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/sponsors/index.php","","Sponsorships","sponsors,community,events","Contains information regarding the sponsorships and partners Tahoe Center for Orthopedics is participating in.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/testimonials/index.php","","Patient Testimonials","testimonials,stories,compliments","Contains testimonial stories from patients seen at a Tahoe Center for Orthopedics facility.");

c++; item[c]=new Array("http://www.tahoeorthopedics.com/video/index.php","","Informational Videos","video,education,mountain minute,you tube","This page contains recent videos for the Tahoe Center for Orthopedics as well as a link to our channel on You Tube.");

page="<html><head><link href='http://www.tahoeorthopedics.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.tahoeorthopedics.com'><img src='http://www.tahoeorthopedics.com/images/PNG/logo.png' alt='Tahoe Center for Orthopedics 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;
}
