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. 
  
// FORMAT: "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

// --> START OF SEARCH INDEX FOR www.diacom.ie
c=0; item[c]=new Array("index.html","","Home","index,diacom,home,front,main,page,homepage","Our home page.");

// SECTION: Diacom
c++; item[c]=new Array("diacom.htm","","About Diacom","about,us,author,press,diacom,who,Lloyd,Property,Group","Diacom was established in 1988 as a telephone systems provider to small to medium size industries ...");
c++; item[c]=new Array("contact.htm","","Contact Diacom","contact,email,e-mail,mail,address,where,phone,telephone,fax,number","How to contact Diacom.");
c++; item[c]=new Array("directions.htm","","Directions To Diacom Head Office","diacom,address,contact,map,directions,location,where,head,office","How to find the Diacom Head Office from the Walkinstown Roundabout and M50.");

// SECTION: Services
c++; item[c]=new Array("services.htm","","Diacom Managed Services","diacom,service,managed,services,support","These days' businesses are relying more and more on their IT systems to the point where they cannot function properly without them...");
c++; item[c]=new Array("itconsultancy.htm","","Diacom Managed Services: IT Consultancy","products,services,it,consultant,consultancy,consult","We provide a range of consultancy services with an aim to enhancing our customer's decision-making process in relation to a wide range of IT solutions...");
c++; item[c]=new Array("pabx.htm","","Diacom Managed Services: PABX Consultancy & Management","diacom,service,managed,services,support,pabx,management,disaster,recovery","These days' businesses are relying more and more on their IT systems to the point where they cannot function properly without them. Two issues ...");
c++; item[c]=new Array("phoneitsupport.htm","","Diacom Managed Services: Phone & IT Support","diacom,service,phone,services,support,it","More information coming soon...");

// SECTION: Products
c++; item[c]=new Array("products.htm","","Products","products,siemens,tandberg,tadiran,kirk,diacom","Diacom is one of Irelands leading Telecommunications systems supply companies. For over a decade we have been assisting business to derive competitive advantage... ");

// SECTION: KIRK & Products
c++; item[c]=new Array("kirk.htm","","Products: Kirk Products","products,kirk,telecom","The phones are ringing, but nobody gets them in time. Constant interruptions from loudspeaker paging, asking somebody to answer a call. Desks are full of 'please call back customer'...");
c++; item[c]=new Array("kirk_handsets.htm","","Products: Kirk Handsets","products,kirk,handsets,z3040,z4020,z4040,z4080","The KIRK handset program has handsets for all uses. If different staffs have different needs, they choose different handsets ...");
c++; item[c]=new Array("kirk_system1500.htm","","Products: Kirk System 1500","products,kirk,system,1500","Unique voice quality, efficiency and cost savings are just a few of the benefits of a KIRK wireless voice solution...");
c++; item[c]=new Array("kirk_system1500ip.htm","","Products: Kirk System 1500 IP","products,kirk,system,1500,ip","KIRK wireless communication solutions allow enterprises and organisations to obtain full benefit of IP telephony: cost savings and increased productivity ...");
c++; item[c]=new Array("kirk_system1500ip_IP_card.htm","","Products: Kirk System 1500 IP - IP Card ","products,kirk,system,1500,ip,card","The IP Card for the KIRK System 1500 IP.");
c++; item[c]=new Array("kirk_system1500_analogue_card.htm","","Products: Kirk System 1500 - Analogue Card","products,kirk,system,1500,analogue,card","The Analogue Card for the KIRK System 1500 IP.");
c++; item[c]=new Array("kirk_system1500_base_station.htm","","Products: Kirk System 1500 - Base Station ","products,kirk,system,1500,base,station","The Base Station for the KIRK System 1500.");
c++; item[c]=new Array("kirk_system1500_IP_card.htm","","Products: Kirk System 1500 - IP Card","products,kirk,system,1500,ip,card","The IP Card for the KIRK System 1500.");
c++; item[c]=new Array("kirk_system1500_ISDN_card.htm","","Products: Kirk System 1500 - ISDN Card","products,kirk,system,1500,isdn,card","The ISDN Card for the KIRK System 1500.");
c++; item[c]=new Array("kirk_system1500_repeater.htm","","Products: Kirk System 1500 - Repeater","products,kirk,system,1500,repeater","The Repeater for the KIRK System 1500.");
c++; item[c]=new Array("kirk_system1500_wireless_server.htm","","Products: Kirk System 1500 - Wireless Server","products,kirk,system,1500,wireless,server","The Wireless Server for the KIRK System 1500.");
c++; item[c]=new Array("kirk_system500.htm","","Products: Kirk System 500","products,kirk,system,500","The KIRK System 500 is a wireless telephone system for enterprises and organisations with up to eight wireless users. ");
c++; item[c]=new Array("kirk_system600ip.htm","","Products: Kirk System 600 IP","products,kirk,system,600,ip","The KIRK System 600 IP is the ideal wireless voice solution for smaller to medium sized enterprises and organisations, using a voice enabled network from Cisco Systems. ");
c++; item[c]=new Array("kirk_z3040.htm","","Products: Kirk Handsets - z3040","products,kirk,handsets,z3040","KIRK telecom products are well-known throughout the world for their simple, classic design - and the KIRK Z-3040 is no exception . The elegance of the classic design, the...");
c++; item[c]=new Array("kirk_z4020.htm","","Products: Kirk Handsets - z4020","products,kirk,handsets,z4020","The KIRK Z-4020 handset is a robust, well designed and price competitive handset. It meets the demands for free mobility and is built for long-term dependability in harsh environments.");
c++; item[c]=new Array("kirk_z4040.htm","","Products: Kirk Handsets - z4040","products,kirk,handsets,z4040","The KIRK Z-4040 handset is a robust, well designed and full feature handset that meets the demands for easy mobility and is for built for long-term dependability in harsh environments..");
c++; item[c]=new Array("kirk_z4080.htm","","Products: Kirk Handsets - z4080","products,kirk,handsets,z4080","Release date to be defined...");

// SECTION: Siemens & Products
c++; item[c]=new Array("siemens.htm","","Products: Siemens Products","products,siemens,hipath,hi,path,hi-path,optipoint","View our range of Siemens products aimed at making business communications easier. ");
c++; item[c]=new Array("hipath3000.htm","","Products: Siemens Hi-Path 3000","products,siemens,hipath,hi,path,hi-path,3000","HiPath™ 3000 is the multifunctional communication system for integrated voice and data solutions.");
c++; item[c]=new Array("hipath3000managerc.htm","","Products: Siemens Hi-Path 3000 Manager C","products,siemens,hipath,hi,path,hi-path,hi-path3000,3000,manager,c,managerc","HiPath 3000 Manager C enables to perform standard administration tasks to HiPath 3000 without external assistance. ");
c++; item[c]=new Array("hipath500.htm","","Products: Siemens Hi-Path 500","products,siemens,hipath,hi,path,hi-path,500","The HiPath 500 communications platform boasts a convincing and extensive range of convenient features.");
c++; item[c]=new Array("hipath500tech.htm","","Products: Siemens Hi-Path 500 - Technical Information","products,siemens,hipath,hi,path,hi-path,hi-path500,500,technical","Siemens Hi-Path 500 Technical Information");
c++; item[c]=new Array("hipathhg1500.htm","","Products: Siemens Hi-Path 1500","products,siemens,hipath,hi,path,hi-path,hg,hi-pathhg1500,1500","HiPath HG 1500 transforms the HiPath 3000 series into a communication server in the LAN. This makes voice, fax and data communication possible via the ISDN carrier network from any PC networked via the LAN.");
c++; item[c]=new Array("optipoint500.htm","","Products: Siemens Optipoint 500","products,siemens,hipath,hi,path,hi-path,optipoint,500,optipoint500","OptiPoint 500 telephones are designed to provide rapid and easy access to the relevent HiPath features.");
c++; item[c]=new Array("xpressionsv2.htm","","Products: Siemens Xpressions Compact Version 2","products,siemens,xpressions,version,v2,2.0,compact,voicemail,voice mail","HiPath Xpressions Compact V2.0 allows your company to carry out daily telecommunication in and flexible a speedy manner.");

// SECTION: Tadiran & Products
c++; item[c]=new Array("tadiran.htm","","Products: Tadiran Products","products,tadiran,coral,flexicom,communications,systems","Serving offices needing as few as 20 ports to large enterprises needing more than 6,000 ports, Coral systems deliver the applications and solutions to help you succeed ...");
c++; item[c]=new Array("tadiranfaq.htm","","Products: Tadiran - Frequently Asked Questions","products,tadiran,questions,answers,faq","Tadiran FAQ.");
c++; item[c]=new Array("coralcallmaster.htm","","Products: Tadiran - Coral Callmaster","products,tadiran,coral,callmaster,call,master","Whether you have 6 agents or 600, Coral CallMaster helps you meet the myriad challenges of managing your call center with sophisticated ACD capabilities for centralized or networked sites.");
c++; item[c]=new Array("coralflexicom.htm","","Products: Tadiran - Coral Flexicom","products,tadiran,coral,flexicom","To remain competitive, today's businesses strive to achieve efficiency throughout the organization. Seamless, reliable communications systems that connect corporate and regional offices are vital to success and growth.");
c++; item[c]=new Array("coralflexicom200.htm","","Products: Tadiran - Coral Flexicom 200","products,tadiran,coral,flexicom,200","Powerful, state-of-the-art communications for the small business needing up to 200 ports.");
c++; item[c]=new Array("coralflexicom400.htm","","Products: Tadiran - Coral Flexicom 400","products,tadiran,coral,flexicom,400","Full-featured communications in a mid-sized platform supporting up to 384 ports.");
c++; item[c]=new Array("coralflexicom5000.htm","","Products: Tadiran - Coral Flexicom 5000","products,tadiran,coral,flexicom,5000","Duplicate processors for medium to large businesses needing 5,000 ports and critical component redundancy.");
c++; item[c]=new Array("coralflexicom6000.htm","","Products: Tadiran - Coral Flexicom 6000","products,tadiran,coral,flexicom,6000","High traffic duplicate processors for large businesses needing 6,000 ports and critical component redundancy.");
c++; item[c]=new Array("coralflexsets.htm","","Products: Tadiran - Coral FlexSets","products,tadiran,coral,flexicom,flexsets,flex,sets","Available in several models with a wide range of features and options, FlexSets are true information terminals offering versatility and flexibility. From 6 to as many as 148 user-defined buttons...");
c++; item[c]=new Array("coralipx.htm","","Products: Tadiran - Coral IPx","products,tadiran,coral,ipx,","Coral IPx allows you to take advantage of IP telephony without sacrificing the functionality you need, such as ACD and call center...");
c++; item[c]=new Array("coralipx500.htm","","Products: Tadiran - Coral IPx 500","products,tadiran,coral,ipx,500","The Coral IPx 500 is a compact communications server with all the power of a full Coral PBX. With the Coral IPx 500, you can...");
c++; item[c]=new Array("ivmf.htm","","Products: Tadiran iVMF ","products,tadiran,coral,ivmf,voice,messaging,voicemail,voice mail","The i VMF helps small businesses give a big business impression. Compatible with the your IPx 500 or Coral® 200 system, i VMF provides feature-rich voice messaging that is just right for the small business bottom line.");
c++; item[c]=new Array("ucmc.htm","","Products: Tadiran uCMC","products,tadiran,coral,ucmc,icmc,unified,messaging,center,centre,voicemail,voice mail","The unified Coral Message Center ( u CMC) makes it easier for your employees to access the information that they need to keep your business running smoothly. ");
c++; item[c]=new Array("tadiran_messaging_solutions.htm","","Products: Tadiran Voice Messaging Solutions","products,tadiran,coral,wwo,world wide office,simplicity,SIMPLICITY,voicemail,voice mail","Coral World Wide Office: An external, PC-based, Unified Messaging server. SIMPLICITY: An advanced voice messaging server.");

// SECTION: Tandberg & Products
c++; item[c]=new Array("tandberg.htm","","Products: Tandberg Products","products,tandberg,video,conference,conferencing","Experience TANDBERG videoconferencing. Accomplish more without leaving the office. It’s as fast as a phone call and just as easy to connect. Offering all the advantages of a face-to-face meeting, but much easier to arrange. ");
c++; item[c]=new Array("tand1000.htm","","Products: Tandberg 1000","products,tandberg,video,conference,conferencing,1000","For executive offices and small meeting rooms. The TANDBERG 1000 has state-of-the-art technology in a desktop system that delivers style and performance in equal measure.");
c++; item[c]=new Array("tand1000Cisco.htm","","Products: Tandberg 1000 for Cisco CallManager","products,tandberg,video,conference,conferencing,1000,Cisco,CallManager,Call,Manager","For executive offices and small meeting rooms. The TANDBERG 1000 for Cisco CallManager provides the ultimate visual communications experience as a fully integrated part of the Cisco IP telephony environment. The features of Cisco CallManager, such as forward, transfer and hold are supported. Video is no longer just as easy as a phone call — it is a phone call.");
c++; item[c]=new Array("tand2500.htm","","Products: Tandberg 2500","products,tandberg,video,conference,conferencing,2500","For medium to large-sized meeting rooms. The TANDBERG 2500 is a complete videoconferencing system in a compact package.");
c++; item[c]=new Array("tand550.htm","","Products: Tandberg 500","products,tandberg,video,conference,conferencing,500","For offices and small meeting rooms. The TANDBERG 550 provides essential videoconferencing features for face-to-face meetings with the quality and reliability found in all TANDBERG equipment.");
c++; item[c]=new Array("tand550Cisco.htm","","Products: Tandberg 500 for Cisco CallManager","products,tandberg,video,conference,conferencing,500,Cisco,CallManager,Call,Manager","For offices and small meeting rooms. The TANDBERG 550 provides essential videoconferencing features for face-to-face meetings with the quality and reliability found in all TANDBERG equipment.");
c++; item[c]=new Array("tand6000.htm","","Products: Tandberg 6000","products,tandberg,video,conference,conferencing,6000","For medium- to large-sized meeting rooms and boardrooms. The TANDBERG 6000's high-end performance features, large monitors and precision audio create a collaborative meeting environment.");
c++; item[c]=new Array("tand7000.htm","","Products: Tandberg 7000","products,tandberg,video,conference,conferencing,7000","For the boardroom and executive conference room. Shares the performance features of the TANDBERG 8000, but with a smaller profile. Bright, clear displays framed in an elegant design.");
c++; item[c]=new Array("tand770.htm","","Products: Tandberg 770","products,tandberg,video,conference,conferencing,770","For offices and small meeting rooms. Provides all the essential functionality for visual communications. This compact unit conveniently transforms any standard TV into an interactive meeting place, providing users with an outstanding business tool.");
c++; item[c]=new Array("tand8000.htm","","Products: Tandberg 8000","products,tandberg,video,conference,conferencing,8000","For the boardroom. Sleek, elegant design combined with state-of-the-art engineering. The most advanced features and functions for mission critical communication. 50’’ plasma screens provide exceptional visibility for the ultimate in functionality and style.");
c++; item[c]=new Array("tand880.htm","","Products: Tandberg 880","products,tandberg,video,conference,conferencing,880","For medium to small-sized meeting rooms. The TANDBERG 880 incorporates the features and functions of larger systems in a portable, high performance set-top box.");
c++; item[c]=new Array("tand990.htm","","Products: Tandberg 990","products,tandberg,video,conference,conferencing,900","For medium- to small-sized meeting rooms, and shared office environments. Provides high bandwidth capabilities for excellent quality point-to-point and multisite calls in a flexible, set-top system.");
c++; item[c]=new Array("tanddirector.htm","","Products: Tandberg Director","products,tandberg,video,conference,conferencing,director","Bringing together world-class technologies, the TANDBERG Director gives the user many features and functionalities never before available in a single mobile system.");
c++; item[c]=new Array("tand8000mxp.htm","","Products: Tandberg 8000 MXP","products,tandberg,video,conference,conferencing,8000,mxp","For the boardroom. Sleek, elegant design combined with state-of-the-art engineering. The most advanced features and functions for mission critical communication. 50'' plasma screens and a best-in-class audio system provide the ultimate video experience.");
c++; item[c]=new Array("tand7000mxp.htm","","Products: Tandberg 7000 MXP","products,tandberg,video,conference,conferencing,7000,mxp","For the boardroom and executive conference room. Shares the performance features of the TANDBERG 8000 MXP, but with a smaller profile. Bright, clear displays framed in an elegant design and superior audio provide a face-to-face quality experience.");
c++; item[c]=new Array("tand6000mxp.htm","","Products: Tandberg 6000 MXP","products,tandberg,video,conference,conferencing,6000,mxp","For medium to large sized meeting rooms and boardrooms. High-end performance features, large monitors and precision audio create a collaborative meeting environment for even the largest groups. Share knowledge simply, quickly and efficiently with any location in the world.");
c++; item[c]=new Array("tand3000mxp.htm","","Products: Tandberg 3000 MXP","products,tandberg,video,conference,conferencing,3000,mxp","For medium to large sized meeting rooms. A complete video system in a compact package. With a specially designed cart, this versatile unit can be moved to wherever you need it most.");
c++; item[c]=new Array("tand990mxp.htm","","Products: Tandberg 990 MXP","products,tandberg,video,conference,conferencing,900,mxp","For medium to small sized meeting rooms, and shared office environments. Provides high bandwidth capabilities for excellent quality point-to-point and multisite calls in a flexible, set-top system.");
c++; item[c]=new Array("tand880mxp.htm","","Products: Tandberg 880 MXP","products,tandberg,video,conference,conferencing,880,mxp","For medium to small sized meeting rooms as well as shared office environments. Incorporates the features and functions of larger systems in a portable, high performance set-top unit.");
c++; item[c]=new Array("tand770mxp.htm","","Products: Tandberg 770 MXP","products,tandberg,video,conference,conferencing,770,mxp","For offices and small meeting rooms. Provides all the essential functionality for visual communications. This compact unit conveniently transforms any standard TV into an interactive meeting place, providing users with an outstanding business tool.");
c++; item[c]=new Array("tandportable6000mxp.htm","","Products: Tandberg Portable 6000 MXP","products,tandberg,video,conference,conferencing,demonstration,event,exhibition,transport,portable,6000,mxp","The TANDBERG Portable 6000 MXP is ideal for demonstrations and special events. Its compact case makes it easy to transport and assemble wherever it is needed most. Features the extensive functionality of the TANDBERG 6000 MXP video system in a compact portable case.");
c++; item[c]=new Array("tandportable3000mxp.htm","","Products: Tandberg Portable 3000 MXP","products,tandberg,video,conference,conferencing,demonstration,event,exhibition,transport,portable,3000,mxp","The TANDBERG Portable 3000 MXP is ideal for demonstrations and special events. Its compact case makes it easy to transport and assemble wherever it is needed most. Featuring the extensive functionality of the TANDBERG 3000 MXP video system.");
c++; item[c]=new Array("tandportable2500.htm","","Products: Tandberg Portable 2500","products,tandberg,video,conference,conferencing,demonstration,event,exhibition,transport,portable,2500","The TANDBERG Portable 2500 is ideal for demonstrations and special events. Its compact case makes it easy to transport and assemble wherever it is needed most. Featuring the extensive functionality of the TANDBERG 2500 video system.");
c++; item[c]=new Array("tandinternii.htm","","Products: Tandberg Intern II","products,tandberg,video,conference,conferencing,intern,health,healthcare,medical,hospital","Mobile Tele-HealthCare Unit. The TANDBERG Intern II Tele-HealthCare Solution has been specifically designed for applications where a smaller, more mobile system is required, while still retaining the sophisticated technology and flexibility of larger units. The Intern II can be utilized for many clinical appl...");
c++; item[c]=new Array("tandtacticalii.htm","","Products: Tandberg Tactical II","products,tandberg,video,conference,conferencing,tactical,field,government,military,civilian,portable,case","Limited Release / For field use by military and civilian personnel. The TANDBERG Tactical II is ideal for field use by government, local and civilian personnel. Its heavy-duty case makes it easy to transport and use wherever it is needed. From crisis management to mobile offices, the Tactical II enables quick connections while you are on the go.");
c++; item[c]=new Array("tandmcu.htm","","Products: Tandberg MCU","products,tandberg,video,conference,conferencing,mcu,multipoint,control,unit ","Designed specifically for the enterprise market Easily Deployable and Scalable The TANDBERG MCU allows you to connect multiple audio and video sites in one or more simultaneous conferences. Easily deployable and scalable, the TANDBERG MCU supports mixed ISDN and IP video calls, and optimizes network resources for the most cost-effective communication...");
c++; item[c]=new Array("tandgateway.htm","","Products: Tandberg Gateway","products,tandberg,video,conference,conferencing,gateway","The TANDBERG Gateway combines H.264 support with unique call transfer capabilities, complete feature transparency, and full downspeeding in order to provide an IP video meeting solution of unparalleled simplicity to users. Plug-and-play technology, load balance control, and support of the complete TANDBERG feature...");
c++; item[c]=new Array("tandgatekeeper.htm","","Products: Tandberg Gatekeeper","products,tandberg,video,conference,conferencing,gatekeeper","The TANDBERG Gatekeeper is a high-performance, reliable, secure, and easy-to-use gatekeeper designed to complement TANDBERG's infrastructure solutions. The TANDBERG Gatekeeper allows customers to have an end-to-end infrastructure solution.");
c++; item[c]=new Array("tandmps.htm","","Products: Tandberg Media Processing System","products,tandberg,video,conference,conferencing,mps,media,processing,system","MPS is a reliable, scalable multipoint control unit. Low life cycle costs and feature-rich support for video endpoints make MPS ideal for enterprise, public sector and education organizations as well as for service providers.");
c++; item[c]=new Array("tandtms.htm","","Products: Tandberg Management Suite","products,tandberg,video,conference,conferencing,tms,management,suite,manage","The TANDBERG Management Suite (TMS) makes it easy for administrators to manage and maintain their entire video network and schedule video meetings. The centralized system reduces costs and saves time by delivering realtime information and powerful diagnostics.");
c++; item[c]=new Array("tandscheduler.htm","","Products: Tandberg Scheduler","products,tandberg,video,conference,conferencing,scheduler","An intuitive web-based scheduling tool for anyone in the organization. Simple, point-and-click steps simplify the simultaneous scheduling of video systems and meeting rooms — resulting in increased usage and higher return on investment.");
c++; item[c]=new Array("tandinstantmessenger.htm","","Products: Tandberg Instant Messenger","products,tandberg,video,conference,conferencing,instant,messenger,messaging","Video communication is faster and more easily accessible with TANDBERG Instant Messenger (IM). Reaching beyond text-based IM, TANDBERG IM allows users to initiate chat, video, voice and web communications with one click.");


// --> END OF SEARCH INDEX

// The results page that is created from the search:
//page="<html><head><title>Search Results</title></head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";
//page="<html><head><title>.: Diacom :. Search Results</title><style type="text/css">a:visited{text-decoration: none;}a:hover{text-decoration: underline;}a:active{color: #313031;text-decoration: none;}a:link{text-decoration: none;}body{margin-top: 50px;}</style></head><body bgcolor='white'><center><table border=0 cellspacing=10 width=80%>";
page_head="<html><head><title>.: Diacom :. Search Results</title><style type='text/css'>a:visited{text-decoration: none;}a:hover{text-decoration: underline;}a:active{color: #000000;text-decoration: none;}a:link{text-decoration: none;}body{margin-top: 50px;background-color: #ECEEFB;}</style><link href='../css/style.css' rel='stylesheet' type='text/css'></head>";
page_body="<body><center><table class='text' border=0 cellspacing=10 width=90% bgcolor='#FFFFFF'><p><img src='../images/diacom/diacom_landscape.gif' align='right'><span class='heading'><br><br>Search Results</span><span class='text'> - Sorted by relevency</span></p>";

function search(frm) 
{
   win = window.open("","","scrollbars=yes,status,resizable,width=635,height=450");
   win.document.write(page_head);
   win.document.write(page_body);
   txt = frm.srchval.value.split(" "); // get the Search Query input and split into words.
   fnd = new Array(); total=0;
      
   for (i = 0; i < item.length; i++) 		// go through search items
   {
      fnd[i] = 0; 							// Set found to zero.
	  order = new Array(0, 4, 2, 3);		// Which parts of search item to check.
	  for (j = 0; j < order.length; j++)	// Go through these parts.
         for (k = 0; k < txt.length; k++)	// Go through input string
            if (( matches = item[i][order[j]].toLowerCase().indexOf(txt[k].toLowerCase()) ) > -1 && txt[k] != "") 
											// If (input string is in item.order && input is not blank).
               fnd[i] += (j+1+ matches); 	// Gives priority to matches found in the keywords 
			   								// followed by title, description, then URL.
											// If all match, then fnd[i] = 10.
											/* Added '+ matches' for greater resolution */
									
   // Now every item has a 'fnd' score of at least 0.
   }
   once=false;
   best=0;
   
   for (i = 0; i < fnd.length; i++) 	// Repeats the below for entire array.
   {
      n = 0; 
	  w = -1;
	        
	  for (j = 0; j < fnd.length; j++)	// Searches fnd array for largest number and prints.
	  {
         if (fnd[j] > n) 				// If number is the biggest so far...
	     { 
			n = fnd[j]; w = j;			// store it
		 };
	  }
      if (w > -1)
	  {
  	    if(!once)						// Give the results a percentage score.
		{ best = n; once=true; }
	  	n = d_places((n/best)*100,2);
		
		total += show(w, win, n);
	  }
      fnd[w] = 0;						// Remove from array.
   }
  
   win.document.write("</table><br><span class='text'>Total found: "+total+"</span><br></body></html>");
   win.document.close();
}

function show(which,wind,num) 
{
   link = item[which][1] + item[which][0]; 
   line = "<tr><td><a href='"+link+"' class='tadiran_heading_sub' target=_blank>"+item[which][2]+"</a><span class='small_link'> &nbsp;&nbsp;&nbsp;Match Score: "+num+"%</span><br>";
   line += item[which][4] + "<br><span class='small_link'>"+link+"<br></span></td></tr>";
   
   wind.document.write(line);
   
   return 1;
}
function d_places(n,p) // Set the decimal precision
{
	var factor = 1;
	var ans  = 0;
	var j = 0;
	for (j = 1; j <= p; j++)
		factor =  factor * 10.0;
	ans = (Math.round(n*factor))/factor;
	return ans;
}