// ----------------------------------------------------------------------------
// Lauyan Software Javascript Search Engine 1.1
//
// This file is the JavaScript search engine for a website created by TOWeb
//
// Copyright (C) LAUYAN SOFTWARE
// web: http://www.lauyan.com
// ----------------------------------------------------------------------------

STR_SEARCH_QUERY_MSG = "Search results for";
STR_NO_RESULT = "No results found";
STR_SCORE = "Score";
STR_TERMS = "Terms";
STR_SEARCH_SIZE = "20";
MIN_WORD_LEN = 4;
DISPLAY_SRCH_INFO = 1;
USE_UTF8 = 0;
REMOVE_ACCENTS = 1;
BOLD_LINKS = 1;
ONLINE_WEBSITE = 1;
ALLWORDSONLY = 0;
namesArray = new Array("  ",
" model modelaircraft modelclub tauranga aircraft aircrafttmac warbirds wanaka mustang video models ",
" who's flying where ",
" rules guidelines safety  ",
" mustang warbirds wanaka footpath photos video ",
" members photos club ",
" fraser brodie's 232 ",
" albatross ",
" enter description picture here ",
" roger hudson's spitfire ",
"",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" picnic photos ",
" youngest members their trainers leon ",
" enjoying first spring sun ",
" install safety net ",
" above ground zero ",
" enter description picture here ",
" chris turner hurricane ",
" brian harris speedsters ",
" frank brown delta  ",
" tailby ",
" sutcliffe breitling  ",
" wednesday retired ",
" foamie brigade ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" their profile mustangs ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" omaka airshow ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" strange aircraft click images enlarge tmac ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" glenn's click images enlarge tmac ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" mustang photos building robart retracts ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" warbirds wanaka airshow video ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" friedrich click picture enlarge tmac ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" vaughn their colors ",
" items picco xtals forsale ",
" ideal flight starter battery tested excellent condition dimensions thick normally around your's contact info@tmac nz ",
" enter paragraph here ",
" opportunity obtain quality items details picture info@tmac don't forget include contact ",
" enter paragraph here ",
" wanted tmac ",
" wanted parts specifically shape arrangement nipple needle valve threaded other screws interchanged previously between anything thereabouts thanks- aaron booth contact aaronbooth1971@yahoo nz ",
" enter paragraph here ",
" yours- something after- details info@tmac nz ",
" enter paragraph here ",
" weather radar satalite  ",
" calculator measure wing ",
" contact contacts webmaster ",
" questons tmac ",
" photos ultrlights ultralights ultralight aircraft ",
"",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" gliding photos  ",
" group photo matamata  ",
" after takeoff  ",
" setting glider ",
" organizing winch ",
" merv ",
" launching jd ",
" concentrating hard ",
"",
" seconds jd ",
" touchdown ",
"",
" relaxed mood ",
" going day ",
" first flight ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" josef starts paint me35b ",
" after sanding ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" there  ",
" enter description picture here ",
" little higher  ",
" enter description picture here ",
" butterfly ",
" enter description picture here ",
" model ",
" lawn ",
" looks good ",
" won't ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" first flight ",
" hurricane click images enlarge tmac ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" enter description picture here ",
" weather radar satalite pitcure marine forcast  ",
" glenn's engines tmac ",
" classic aircraft tmac ",
" photos field tmac ",
" engine tmac ",
" enging running tmac ",
" engine running tmac ",
" aviation pioneer tmac ",
" tmac ",
" members tmac ",
" interim report tmac ",
" notice tmac ",
" notice tmac ",
" title album  ",
"",
"",
" members tmac ");
urlsArray = new Array("../welcome/index.html",
"../tmac/index.html",
"../flyins/index.html",
"../safetyrulesguide/index.html",
"../photoalbum/index.html",
"../tmacphotos/index.html",
"../tmacphotos/page1.html",
"../tmacphotos/page2.html",
"../tmacphotos/page3.html",
"../tmacphotos/page4.html",
"../tmacphotos/page5.html",
"../tmacphotos/page6.html",
"../tmacphotos/page7.html",
"../tmacphotos/page8.html",
"../tmacphotos/page9.html",
"../tmacphotos/page10.html",
"../tmacphotos/page11.html",
"../tmacphotos/page12.html",
"../tmacphotos/page13.html",
"../tmacphotos/page14.html",
"../tmacphotos/page15.html",
"../tmacphotos/page16.html",
"../tmacphotos/page17.html",
"../tmacphotos/page18.html",
"../tmacphotos/page19.html",
"../tmacphotos/page20.html",
"../tmacphotos/page21.html",
"../tmacphotos/page22.html",
"../tmacphotos/page23.html",
"../tmacphotos/page24.html",
"../tmacphotos/page25.html",
"../tmacphotos/page26.html",
"../tmacphotos/page27.html",
"../tmacphotos/page28.html",
"../picinicday/index.html",
"../picinicday/page1.html",
"../picinicday/page2.html",
"../picinicday/page3.html",
"../picinicday/page4.html",
"../picinicday/page5.html",
"../picinicday/page6.html",
"../picinicday/page7.html",
"../picinicday/page8.html",
"../picinicday/page9.html",
"../picinicday/page10.html",
"../picinicday/page11.html",
"../picinicday/page12.html",
"../picinicday/page13.html",
"../picinicday/page14.html",
"../picinicday/page15.html",
"../picinicday/page16.html",
"../picinicday/page17.html",
"../picinicday/page18.html",
"../picinicday/page19.html",
"../picinicday/page20.html",
"../picinicday/page21.html",
"../picinicday/page22.html",
"../picinicday/page23.html",
"../picinicday/page24.html",
"../picinicday/page25.html",
"../picinicday/page26.html",
"../picinicday/page27.html",
"../picinicday/page28.html",
"../picinicday/page29.html",
"../picinicday/page30.html",
"../picinicday/page31.html",
"../picinicday/page32.html",
"../picinicday/page33.html",
"../picinicday/page34.html",
"../picinicday/page35.html",
"../omaka/index.html",
"../omaka/page1.html",
"../omaka/page2.html",
"../omaka/page3.html",
"../omaka/page4.html",
"../omaka/page5.html",
"../omaka/page6.html",
"../omaka/page7.html",
"../omaka/page8.html",
"../omaka/page9.html",
"../omaka/page10.html",
"../omaka/page11.html",
"../omaka/page12.html",
"../omaka/page13.html",
"../omaka/page14.html",
"../omaka/page15.html",
"../omaka/page16.html",
"../omaka/page17.html",
"../omaka/page18.html",
"../omaka/page19.html",
"../omaka/page20.html",
"../omaka/page21.html",
"../omaka/page22.html",
"../omaka/page23.html",
"../omaka/page24.html",
"../omaka/page25.html",
"../omaka/page26.html",
"../omaka/page27.html",
"../omaka/page28.html",
"../omaka/page29.html",
"../omaka/page30.html",
"../omaka/page31.html",
"../omaka/page32.html",
"../omaka/page33.html",
"../omaka/page34.html",
"../omaka/page35.html",
"../omaka/page36.html",
"../omaka/page37.html",
"../omaka/page38.html",
"../omaka/page39.html",
"../omaka/page40.html",
"../omaka/page41.html",
"../omaka/page42.html",
"../omaka/page43.html",
"../omaka/page44.html",
"../omaka/page45.html",
"../omaka/page46.html",
"../omaka/page47.html",
"../omaka/page48.html",
"../omaka/page49.html",
"../omaka/page50.html",
"../omaka/page51.html",
"../omaka/page52.html",
"../omaka/page53.html",
"../omaka/page54.html",
"../omaka/page55.html",
"../omaka/page56.html",
"../omaka/page57.html",
"../omaka/page58.html",
"../omaka/page59.html",
"../omaka/page60.html",
"../omaka/page61.html",
"../omaka/page62.html",
"../omaka/page63.html",
"../omaka/page64.html",
"../omaka/page65.html",
"../omaka/page66.html",
"../omaka/page67.html",
"../omaka/page68.html",
"../omaka/page69.html",
"../omaka/page70.html",
"../omaka/page71.html",
"../omaka/page72.html",
"../omaka/page73.html",
"../omaka/page74.html",
"../omaka/page75.html",
"../omaka/page76.html",
"../strangeaircraft/index.html",
"../strangeaircraft/page1.html",
"../strangeaircraft/page2.html",
"../strangeaircraft/page3.html",
"../strangeaircraft/page4.html",
"../strangeaircraft/page5.html",
"../strangeaircraft/page6.html",
"../strangeaircraft/page7.html",
"../strangeaircraft/page8.html",
"../strangeaircraft/page9.html",
"../strangeaircraft/page10.html",
"../strangeaircraft/page11.html",
"../strangeaircraft/page12.html",
"../strangeaircraft/page13.html",
"../strangeaircraft/page14.html",
"../strangeaircraft/page15.html",
"../strangeaircraft/page16.html",
"../strangeaircraft/page17.html",
"../strangeaircraft/page18.html",
"../strangeaircraft/page19.html",
"../strangeaircraft/page20.html",
"../strangeaircraft/page21.html",
"../strangeaircraft/page22.html",
"../strangeaircraft/page23.html",
"../strangeaircraft/page24.html",
"../strangeaircraft/page25.html",
"../strangeaircraft/page26.html",
"../strangeaircraft/page27.html",
"../strangeaircraft/page28.html",
"../strangeaircraft/page29.html",
"../strangeaircraft/page30.html",
"../glennspics/index.html",
"../glennspics/page1.html",
"../glennspics/page2.html",
"../glennspics/page3.html",
"../glennspics/page4.html",
"../glennspics/page5.html",
"../glennspics/page6.html",
"../glennspics/page7.html",
"../glennspics/page8.html",
"../glennspics/page9.html",
"../glennspics/page10.html",
"../glennspics/page11.html",
"../glennspics/page12.html",
"../glennspics/page13.html",
"../glennspics/page14.html",
"../glennspics/page15.html",
"../glennspics/page16.html",
"../glennspics/page17.html",
"../glennspics/page18.html",
"../glennspics/page19.html",
"../glennspics/page20.html",
"../glennspics/page21.html",
"../glennspics/page22.html",
"../p51mustang/index.html",
"../p51mustang/page1.html",
"../p51mustang/page2.html",
"../p51mustang/page3.html",
"../p51mustang/page4.html",
"../p51mustang/page5.html",
"../p51mustang/page6.html",
"../p51mustang/page7.html",
"../p51mustang/page8.html",
"../p51mustang/page9.html",
"../p51mustang/page10.html",
"../p51mustang/page11.html",
"../p51mustang/page12.html",
"../p51mustang/page13.html",
"../p51mustang/page14.html",
"../p51mustang/page15.html",
"../p51mustang/page16.html",
"../p51mustang/page17.html",
"../p51mustang/page18.html",
"../p51mustang/page19.html",
"../p51mustang/page20.html",
"../p51mustang/page21.html",
"../p51mustang/page22.html",
"../p51mustang/page23.html",
"../p51mustang/page24.html",
"../p51mustang/page25.html",
"../p51mustang/page26.html",
"../warbirdswanaka/index.html",
"../warbirdswanaka/page1.html",
"../warbirdswanaka/page2.html",
"../warbirdswanaka/page3.html",
"../warbirdswanaka/page4.html",
"../warbirdswanaka/page5.html",
"../warbirdswanaka/page6.html",
"../warbirdswanaka/page7.html",
"../warbirdswanaka/page8.html",
"../warbirdswanaka/page9.html",
"../warbirdswanaka/page10.html",
"../warbirdswanaka/page11.html",
"../warbirdswanaka/page12.html",
"../warbirdswanaka/page13.html",
"../warbirdswanaka/page14.html",
"../warbirdswanaka/page15.html",
"../warbirdswanaka/page16.html",
"../warbirdswanaka/page17.html",
"../warbirdswanaka/page18.html",
"../warbirdswanaka/page19.html",
"../warbirdswanaka/page20.html",
"../warbirdswanaka/page21.html",
"../warbirdswanaka/page22.html",
"../warbirdswanaka/page23.html",
"../warbirdswanaka/page24.html",
"../warbirdswanaka/page25.html",
"../warbirdswanaka/page26.html",
"../warbirdswanaka/page27.html",
"../warbirdswanaka/page28.html",
"../warbirdswanaka/page29.html",
"../warbirdswanaka/page30.html",
"../warbirdswanaka/page31.html",
"../warbirdswanaka/page32.html",
"../warbirdswanaka/page33.html",
"../warbirdswanaka/page34.html",
"../warbirdswanaka/page35.html",
"../warbirdswanaka/page36.html",
"../warbirdswanaka/page37.html",
"../warbirdswanaka/page38.html",
"../warbirdswanaka/page39.html",
"../warbirdswanaka/page40.html",
"../warbirdswanaka/page41.html",
"../warbirdswanaka/page42.html",
"../warbirdswanaka/page43.html",
"../warbirdswanaka/page44.html",
"../warbirdswanaka/page45.html",
"../warbirdswanaka/page46.html",
"../warbirdswanaka/page47.html",
"../warbirdswanaka/page48.html",
"../warbirdswanaka/page49.html",
"../warbirdswanaka/page50.html",
"../warbirdswanaka/page51.html",
"../warbirdswanaka/page52.html",
"../warbirdswanaka/page53.html",
"../warbirdswanaka/page54.html",
"../warbirdswanaka/page55.html",
"../vaughnsplane/index.html",
"../vaughnsplane/page1.html",
"../vaughnsplane/page2.html",
"../vaughnsplane/page3.html",
"../vaughnsplane/page4.html",
"../vaughnsplane/page5.html",
"../vaughnsplane/page6.html",
"../garagesale/index.html",
"../garagesale/page1.html",
"../garagesale/page1.html",
"../garagesale/page2.html",
"../garagesale/page2.html",
"../wantedtobuy/index.html",
"../wantedtobuy/page1.html",
"../wantedtobuy/page1.html",
"../wantedtobuy/page2.html",
"../wantedtobuy/page2.html",
"../weather/index.html",
"../mypage/index.html",
"../contacts/index.html",
"../contact/index.html",
"../helicron/index.html",
"../helicron/page1.html",
"../helicron/page2.html",
"../helicron/page3.html",
"../helicron/page4.html",
"../helicron/page5.html",
"../helicron/page6.html",
"../helicron/page7.html",
"../tmacgliding/index.html",
"../tmacgliding/page1.html",
"../tmacgliding/page2.html",
"../tmacgliding/page3.html",
"../tmacgliding/page4.html",
"../tmacgliding/page5.html",
"../tmacgliding/page6.html",
"../tmacgliding/page7.html",
"../tmacgliding/page8.html",
"../tmacgliding/page9.html",
"../tmacgliding/page10.html",
"../tmacgliding/page11.html",
"../tmacgliding/page12.html",
"../tmacgliding/page13.html",
"../photoalbum1/index.html",
"../photoalbum1/page1.html",
"../photoalbum1/page2.html",
"../photoalbum1/page3.html",
"../photoalbum1/page4.html",
"../photoalbum1/page5.html",
"../photoalbum1/page6.html",
"../photoalbum1/page7.html",
"../photoalbum1/page8.html",
"../photoalbum1/page9.html",
"../photoalbum1/page10.html",
"../photoalbum1/page11.html",
"../photoalbum1/page12.html",
"../photoalbum1/page13.html",
"../photoalbum1/page14.html",
"../photoalbum1/page15.html",
"../photoalbum1/page16.html",
"../photoalbum1/page17.html",
"../photoalbum4/index.html",
"../photoalbum4/page1.html",
"../photoalbum4/page2.html",
"../photoalbum4/page3.html",
"../photoalbum4/page4.html",
"../photoalbum4/page5.html",
"../photoalbum4/page6.html",
"../photoalbum4/page7.html",
"../hurricanjug/index.html",
"../hurricanjug/page1.html",
"../hurricanjug/page2.html",
"../hurricanjug/page3.html",
"../hurricanjug/page4.html",
"../hurricanjug/page5.html",
"../hurricanjug/page6.html",
"../hurricanjug/page7.html",
"../hurricanjug/page8.html",
"../weatherimages/index.html",
"../glennsengines/index.html",
"../classicslidshow/index.html",
"../stripslideshow/index.html",
"../newengines/index.html",
"../engingrunning/index.html",
"../engingrunning23/index.html",
"../pioneer/index.html",
"../document1/index.html",
"../freqtags/index.html",
"../document2/index.html",
"../document3/index.html",
"../document4/index.html",
"../photoalbum2/index.html",
"../photoalbum2/page1.html",
"../photoalbum2/page2.html",
"../phonememberslist/index.html");
titlesArray = new Array("TMAC",
"TMAC Web Site Home Page",
"TMAC Whos Flying And When",
"TMAC",
"TMAC Photo Album",
"TMAC Photos",
"Cap #2.jpg",
"SANY0017.JPG",
"SANY0025.JPG",
"RIMG0011.JPG",
"02220004.JPG",
"02220006.JPG",
"09210001.JPG",
"12080057.JPG",
"12080062.JPG",
"03160012.JPG",
"12150024.JPG",
"Dsc00420.jpg",
"Dsc00426.jpg",
"Dsc00421.jpg",
"Dsc00422.jpg",
"Dsc00423.jpg",
"Dsc00424.jpg",
"Dsc00425.jpg",
"Dsc00427.jpg",
"Dsc00430.jpg",
"Dsc00431.jpg",
"Dsc00435.jpg",
"Dsc00444.jpg",
"Dsc00445.jpg",
"Dsc00440.jpg",
"Dsc00437.jpg",
"Dsc00439.jpg",
"Dsc00438.jpg",
"TMAC Picnic Day",
"RIMG0148.JPG",
"RIMG0147.JPG",
"RIMG0134.JPG",
"RIMG0145.JPG",
"NZ Visit - Aug 09 013.jpg",
"NZ Visit - Aug 09 012.jpg",
"NZ Visit - Aug 09 031.jpg",
"NZ Visit - Aug 09 032.jpg",
"NZ Visit - Aug 09 033.jpg",
"NZ Visit - Aug 09 034.jpg",
"RIMG0092.JPG",
"Apata midweek July - 08 003.jpg",
"Apata midweek July - 08 013.jpg",
"Apata midweek July - 08 020.jpg",
"Apata midweek July - 08 022.jpg",
"Apata midweek July - 08 028.jpg",
"Apata midweek July - 08 029.jpg",
"Apata midweek July - 08 030.jpg",
"Apata midweek July - 08 031.jpg",
"Apata midweek July - 08 040.jpg",
"Apata midweek July - 08 042.jpg",
"Apata midweek July - 08 044.jpg",
"Apata midweek July - 08 046.jpg",
"Apata midweek July - 08 047.jpg",
"Apata midweek July - 08 049.jpg",
"Apata midweek July - 08 052.jpg",
"Apata midweek July - 08 053.jpg",
"Apata midweek July - 08 054.jpg",
"SANY0025.JPG",
"SANY0014.JPG",
"SANY0015.JPG",
"SANY0016.JPG",
"SANY0019.JPG",
"SANY0020.JPG",
"SANY0021.JPG",
"Warbirds Omaka",
"Slide2.PNG",
"Slide3.PNG",
"Slide4.PNG",
"Slide5.PNG",
"Slide6.PNG",
"Slide7.PNG",
"Slide8.PNG",
"Slide9.PNG",
"Slide10.PNG",
"Slide11.PNG",
"Slide12.PNG",
"Slide13.PNG",
"Slide14.PNG",
"Slide15.PNG",
"Slide16.PNG",
"Slide17.PNG",
"Slide18.PNG",
"Slide19.PNG",
"Slide20.PNG",
"Slide21.PNG",
"Slide22.PNG",
"Slide23.PNG",
"Slide24.PNG",
"Slide25.PNG",
"Slide26.PNG",
"Slide27.PNG",
"Slide28.PNG",
"Slide29.PNG",
"Slide30.PNG",
"Slide31.PNG",
"Slide32.PNG",
"Slide33.PNG",
"Slide34.PNG",
"Slide35.PNG",
"Slide36.PNG",
"Slide37.PNG",
"Slide38.PNG",
"Slide39.PNG",
"Slide40.PNG",
"Slide41.PNG",
"Slide42.PNG",
"Slide43.PNG",
"Slide44.PNG",
"Slide45.PNG",
"Slide46.PNG",
"Slide47.PNG",
"Slide48.PNG",
"Slide49.PNG",
"Slide50.PNG",
"Slide51.PNG",
"Slide52.PNG",
"31626.jpg",
"avhurr_8.jpg",
"Hawker%20Hurricane%20II%20PZ865%20Duxford%202007.jpg",
"Slide53.PNG",
"Slide54.PNG",
"Slide55.PNG",
"Slide56.PNG",
"Slide57.PNG",
"Slide58.PNG",
"Slide59.PNG",
"Slide60.PNG",
"Slide61.PNG",
"Slide62.PNG",
"Slide63.PNG",
"Slide64.PNG",
"Slide65.PNG",
"Slide66.PNG",
"Slide67.PNG",
"Slide68.PNG",
"Slide69.PNG",
"Slide70.PNG",
"Slide71.PNG",
"Slide72.PNG",
"Slide73.PNG",
"Slide74.PNG",
"Strange Aircraft",
"au32.jpg",
"au31.jpg",
"au10.jpg",
"au6.jpg",
"au5.jpg",
"ac42.jpg",
"ac27.jpg",
"ac25.jpg",
"ac18.jpg",
"ab10.jpg",
"ac16.jpg",
"ab17.jpg",
"ac5.jpg",
"ab34.jpg",
"au2.jpg",
"ac30.jpg",
"ac24.jpg",
"ac14.jpg",
"ac32.jpg",
"au11.jpg",
"ac11.jpg",
"ac8.jpg",
"au3.jpg",
"ac31.jpg",
"am4.jpg",
"au27.jpg",
"au25.jpg",
"ac40.jpg",
"au4.jpg",
"au24.jpg",
"Glenn's Pics",
"IMG_1101.jpg",
"IMG_1102.jpg",
"IMG_1103.jpg",
"IMG_1105.jpg",
"IMG_1106.jpg",
"IMG_1107.jpg",
"IMG_1108.jpg",
"IMG_1109.jpg",
"IMG_1110.jpg",
"IMG_1111.jpg",
"IMG_1112.jpg",
"IMG_1117.jpg",
"IMG_1118.jpg",
"IMG_1119.jpg",
"IMG_1120.jpg",
"IMG_1121.jpg",
"IMG_1122.jpg",
"IMG_1123.jpg",
"IMG_1125.jpg",
"IMG_1124.jpg",
"IMG_1126.jpg",
"IMG_11040.jpg",
"P51 Mustang",
"1.JPG",
"2.JPG",
"6.JPG",
"7.JPG",
"9.JPG",
"10.JPG",
"15.JPG",
"17.JPG",
"18.JPG",
"19.JPG",
"20.JPG",
"23.JPG",
"26.JPG",
"28.JPG",
"33.JPG",
"29.JPG",
"38.JPG",
"37.JPG",
"39.JPG",
"41.JPG",
"44.JPG",
"45.JPG",
"47.JPG",
"49.JPG",
"50.JPG",
"52.JPG",
"Warbirds over Wanaka Photos",
"Warbirds Over Wanaka 2006 (14).JPG",
"Warbirds Over Wanaka 2006 (15).JPG",
"Warbirds Over Wanaka 2006 (16).JPG",
"Warbirds Over Wanaka 2006 (17).JPG",
"Warbirds Over Wanaka 2006 (18).JPG",
"Warbirds Over Wanaka 2006 (19).JPG",
"Warbirds Over Wanaka 2006 (20).JPG",
"Warbirds Over Wanaka 2006 (21).JPG",
"Warbirds Over Wanaka 2006 (22).JPG",
"Warbirds Over Wanaka 2006 (23).JPG",
"Warbirds Over Wanaka 2006 (24).JPG",
"Warbirds Over Wanaka 2006 (25).JPG",
"Warbirds Over Wanaka 2006 (26).JPG",
"Warbirds Over Wanaka 2006 (27).JPG",
"Warbirds Over Wanaka 2006 (28).JPG",
"Warbirds Over Wanaka 2006 (29).JPG",
"Warbirds Over Wanaka 2006 (30).JPG",
"Warbirds Over Wanaka 2006 (31).JPG",
"Warbirds Over Wanaka 2006 (32).JPG",
"Warbirds Over Wanaka 2006 (33).JPG",
"Warbirds Over Wanaka 2006 (34).JPG",
"Warbirds Over Wanaka 2006 (35).JPG",
"Warbirds Over Wanaka 2006 (36).JPG",
"Warbirds Over Wanaka 2006 (38).JPG",
"Warbirds Over Wanaka 2006 (39).JPG",
"Warbirds Over Wanaka 2006 (41).JPG",
"Warbirds Over Wanaka 2006 (42).JPG",
"Warbirds Over Wanaka 2006 (43).JPG",
"Warbirds Over Wanaka 2006 (44).JPG",
"Warbirds Over Wanaka 2006 (45).JPG",
"Warbirds Over Wanaka 2006 (46).JPG",
"Warbirds Over Wanaka 2006 (47).JPG",
"Warbirds Over Wanaka 2006 (48).JPG",
"Warbirds Over Wanaka 2006 (49).JPG",
"Warbirds Over Wanaka 2006 (50).JPG",
"Warbirds Over Wanaka 2006 (51).JPG",
"Warbirds Over Wanaka 2006 (52).JPG",
"Warbirds Over Wanaka 2006 (53).JPG",
"Warbirds Over Wanaka 2006 (54).JPG",
"Warbirds Over Wanaka 2006 (56).JPG",
"Warbirds Over Wanaka 2006 (57).JPG",
"Warbirds Over Wanaka 2006 (58).JPG",
"Warbirds Over Wanaka 2006 (59).JPG",
"Warbirds Over Wanaka 2006 (60).JPG",
"Warbirds Over Wanaka 2006 (61).JPG",
"Warbirds Over Wanaka 2006 (62).JPG",
"Warbirds Over Wanaka 2006 (63).JPG",
"Warbirds Over Wanaka 2006 (64).JPG",
"Warbirds Over Wanaka 2006 (65).JPG",
"Warbirds Over Wanaka 2006 (66).JPG",
"Warbirds Over Wanaka 2006 (67).JPG",
"Warbirds Over Wanaka 2006 (68).JPG",
"Warbirds Over Wanaka 2006 (69).JPG",
"Warbirds Over Wanaka 2006 (70).JPG",
"Warbirds Over Wanaka 2006 (71).JPG",
"Team Friedrich",
"HPIM1580.JPG",
"HPIM1583.JPG",
"HPIM1585.JPG",
"HPIM1588.JPG",
"HPIM1589.JPG",
"HPIM1604.JPG",
"TMAC Item for Sale",
"12 VOLT BATTERYS",
"Paragraph title",
"This Spot can be yours",
"Paragraph title",
"TMAC Wanted to Buy",
"Carb Parts",
"Paragraph title",
"Engine Part",
"Paragraph title",
"TMAC Weather",
"CG Calculator-MAC Calculator & CG Biplane Calculator",
"TMAC contacts",
"TMAC Questons",
"Ultra Lights",
"2267f49b1.jpg",
"2267f4bb2.jpg",
"2267f5097.jpg",
"2267f4f96.jpg",
"2267f4ea5.jpg",
"2267f4da4.jpg",
"2267f4ca3.jpg",
"TMAC Gliding",
"IMG_0290.jpg",
"NZ Aero Tow 2008 Saturday081.jpg",
"JD setting up glider",
"Organizing the winch",
"JD & Merv",
"Merv launching for JD.",
"JD concentrating hard.",
"Can you see it Merv?",
"30 seconds to go JD.",
"In for touchdown.",
"Well Merv, how was that time?",
"A relaxed mood.",
"Going to be a hard day I think.",
"Lauries DC3",
"IMAG0127.jpg",
"IMAG0085.jpg",
"IMAG0074.jpg",
"IMAG0087.jpg",
"IMAG0078.jpg",
"IMAG0083.jpg",
"IMAG0222.jpg",
"IMAG0226.jpg",
"IMAG0232.jpg",
"IMAG0235.jpg",
"IMAG0239.jpg",
"IMAG0241.jpg",
"IMAG0243.jpg",
"IMAG0246.jpg",
"IMAG0247.jpg",
"IMAG0259.jpg",
"IMAG0260.jpg",
"Chris SE5A",
"N04.jpg",
"N03.jpg",
"N02.jpg",
"N01.jpg",
"SANY0017.jpg",
"SANY0016.jpg",
"Clipboard.jpg",
"Hurricane & P47",
"SANY0124.JPG",
"SANY0126.JPG",
"SANY0127.JPG",
"SANY0093.JPG",
"SANY0095.JPG",
"SANY0096.JPG",
"SANY0097.JPG",
"SANY0101.JPG",
"Weather",
"Glenn's Engines",
"Classic Aircraft",
"Photos from the Field",
"NEW ENGINE",
"ENGING RUNNING Part 1",
"ENGINE RUNNING Part 2&3",
"AVIATION PIONEER",
"TMAC",
"Members  Freq Tags 2009",
"Interim Report Sept 2009",
"CLUB NOTICE Nov",
"CLUB NOTICE",
"Title of your album",
"Smiley_87.jpg",
"Smiley_13.jpg",
"2010 Members List");
descArray = new Array("",
"Tauranga Model Aircraft Club in the Sunny Bay Of Plenty flys every Sunday Morning at Apata. Everyone is welcome to visit our strip.",
"Allows TMAC Members to enter info about where and when they intend to fly.",
"TMAC Safety Rules & Guidelines",
"TMAC Photo album of warbirds over Wanaka plus my P51 Mustang Build and some picks of footpath art.",
"Photos of TMAC members models taken at our local flying strip.",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"TMACS picnic day and photos",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"Omaka Airshow photos",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"Click Images to Enlarge.                                                                               Back to Home|TMAC",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"Click Images to Enlarge.                                                                               Back to Home|TMAC",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"Building of my P51 mustang. It has a 41cc US Enging powering a 18x8 prop. The retracts are Robart and total weight is 12.5 kgs",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"Warbirds Over Wanaka is one of New Zealands Largest air shows. Here you can see some photos of the wonderfull aircraft on display at the show as well ...",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"Click on Picture to Enlarge.                                                                            Back to Home|TMAC",
"&",
"&",
"&",
"&",
"&",
"&",
"TMAC page of items for sale",
"&",
"&",
"&",
"&",
"TMAC's page of thing members want to buy",
"&",
"&",
"&",
"&",
"TMAC's page to see what the weather is up to",
"CG Calculator in XL format",
"TMACS contact page and commitee list of contacts",
"",
"Photos of ultralights",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"TMAC gliding page with photos",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"Photos of Lauries new DC3 and first takeoff",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"Photos of Chris's new SE5A Model Aircraft",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"Click Images to Enlarge.                                                                               Back to Home|TMAC",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"&",
"Weather page for New zealand including NZ rain radar and live tv one weather video plus marine forcast.",
"Back to Home|TMAC",
"Back to Home|TMAC",
"Back to Home|TMAC",
"Back to Home|TMAC",
"Back to Home|TMAC",
"Back to Home|TMAC",
"Back to Home|TMAC",
"Back to Home|TMAC",
"Back to Home|TMAC",
"Back to Home|TMAC",
"Back to Home|TMAC",
"Back to Home|TMAC",
"",
"&",
"&",
"Back to Home|TMAC");
sublinksArray = new Array(379);
var linksCount = 379;


function SubmitSearch(n)
{
	var p = document.getElementsByName("jse_query");
	var idx = n;  if( p < 0) return false;
	if( p && p[idx] && p[idx].value != "" ) {
	if( (p[idx].value).replace(/^\s+|\s+$/g, '') != "" ) {
		p = document.getElementsByName("jse_form");
		if( p && p[idx] )
			p[idx].submit();
		return true;
	  }
	}
	return false;
}
function switchSearchLang(lang,emptycart)
{
	var params = "";
	var currURL = document.location.href;
	var newURL = (currURL.lastIndexOf('_frame/search2') >= 0) ? "search2":"search";
	if( lang != "" )
		newURL += "-"+lang;
	newURL += ".html";
	var paramIndex = currURL.lastIndexOf('?');
	if( paramIndex > -1 )
		newURL += "?" + currURL.substr( paramIndex + 1 );
	if( emptycart && typeof(CleanShopcart) != "undefined" )
		CleanShopcart();
	document.location.href = newURL;
	return false;
}

// getParam returns the value of the specified GET parameter
function getParam(paramName)
{
    paramStr = document.location.search;
    if( paramStr == "" )
        return "";
    if( paramStr.charAt(0) == "?" )
        paramStr = paramStr.substr(1);
    arg = (paramStr.split("&"));
    for( i=0; i<arg.length; i++ ) 
    {
      arg_values = arg[i].split("=")
      if( unescape(arg_values[0]) == paramName ) 
      {
         if( USE_UTF8 == 1 && self.decodeURIComponent ) // check if decodeURIComponent() is defined
            ret = decodeURIComponent(arg_values[1]);
         else
            ret = unescape(arg_values[1]);  // IE 5.0 and older does not have decodeURI
         return ret;
      }
    }
    return "";
}

function getQueryParam()
{
  var query = getParam("jse_query");
  query = query.replace(/[\++]/g, " ");  // replace any '+' with spaces
  query = query.replace(/\</g, "&lt;");
  query = query.replace(/[\"+]/g, " ");
	return query;
}

function replaceAll(str,from,to) 
{
    var idx = str.indexOf(from);
    while( idx > -1 ) {
        str = str.replace(from, to); 
        idx = str.indexOf(from);
    }
    return str;
}

// lowercase, remove quotes and accents
function formatChars(str) 
{
    str = str.toLowerCase();
    if( REMOVE_ACCENTS ) 
    {
      var a = "àáâãäåòóôõöèéêëçìíîïùúûüÿñ";
      var b = "aaaaaaoooooeeeeciiiiuuuuyn";
      for( i=0; i<a.length; i++ )
        str = replaceAll( str, a.charAt(i), b.charAt(i) );
    }
    str = replaceAll( str, "'", " " );
    return str;
}

function SortCompare(a, b)
{
  if( a[2] == b[2] )
  {  
    if (a[1] < b[1]) return 1;
    else if (a[1] > b[1]) return -1;
    else return 0;
  }
  else if (a[2] < b[2]) return 1;
    else return -1;
}

function jseSearch( internal )
{
  // get params
  var rootURL = '';
	var SelfURL = document.location.href;
  var paramIndex = SelfURL.indexOf("?");    
  if (paramIndex > -1)
     SelfURL = SelfURL.substr(0, paramIndex);
  paramIndex = SelfURL.indexOf("#");
  if (paramIndex > -1)
    SelfURL = SelfURL.substr(0, paramIndex);        
	if (ONLINE_WEBSITE) 
	{
		paramIndex = SelfURL.lastIndexOf('/');
		if (paramIndex > -1) 
		{
			rootURL = SelfURL.substr(0, paramIndex);
			paramIndex = rootURL.lastIndexOf('/');
			if (paramIndex > -1) {
				rootURL = SelfURL.substr(0, paramIndex+1);
			} else
			  rootURL = '';
		}
	}	
  SelfURL = SelfURL.replace(/\</g, "&lt;");
  SelfURL = SelfURL.replace(/\"/g, "&quot;");

  var query = getQueryParam();

  // display the search form
  var lnktarget = "";
/*	if( internal == null || internal != 1 )
	{
    document.writeln("<form method=\"get\" action=\"" + SelfURL + "\">");
    document.writeln("<input type=\"text\" name=\"jse_query\" size=\"" + STR_SEARCH_SIZE + "\" value=\"" + query + "\" />");
    document.writeln("<input type=\"submit\" value=\"" + STR_SEARCH_BUTTON + "\" />");
    document.writeln("</form>");
  }
  */
  if( internal == 1 ) {
	 lnktarget = "\" target=\"_blank";
  }
	
  query = formatChars(query);
  if( query.length == 0 ) return;
  
  var found=0, t=0, k=0, score=0, subscore=0, i=0;
  var keyword = "", tmp = "";
  var searchWords = new Array();

  // split search query by spaces
  searchWords = query.split(" ");
	if( internal == null || internal != 1 ) {
		document.writeln( "<span class='wg-paragraph'>" + STR_SEARCH_QUERY_MSG + " : <strong>" +query+"</span></strong><br>");
  }
  // init result table information
  res_table = new Array(linksCount);
  for( t=0; t<linksCount; t++ )
  {
    res_table[t] = new Array(4);
    res_table[t][0] = 0;  // index
    res_table[t][1] = 0;  // score
    res_table[t][2] = 0;  // words found
    res_table[t][3] = ""; // sublinks (output string)
  }
  var significantwords = 0;

  // begin search ...
  for( i=0; i<searchWords.length; i++ )
  {
    keyword = searchWords[i];
    if( keyword.length > MIN_WORD_LEN ) // skip "small" words
	{
	  significantwords++;
	  for(var q=0; q<linksCount; q++ )
	  {
	    t = q;
	    score = 0;
	
	    // search for keywords (an exact word doubles the score)
		  tmp = formatChars(descArray[t]);
	    if( tmp.indexOf(keyword) != -1 ) score++;
	    if( tmp.indexOf(' '+keyword+' ') != -1 ) score+=2;
		  tmp = formatChars(titlesArray[t]);
	  	if( tmp.indexOf(keyword) != -1 ) score++;
		  if( tmp.indexOf(' '+keyword+' ') != -1 ) score+=2;
	    if( namesArray[t].indexOf(keyword) != -1 ) score++;
	    if( namesArray[t].indexOf(' '+keyword+' ') != -1 ) score+=2;
	
		// search for keywords in sublinks (i.e. bookmarks)
	    k = q+1;
		while( k <= linksCount )
		{
			tmp = descArray[k];
			if( tmp == null || tmp.charAt(0) != '&' ) break;
			subscore = 0;
			tmp = formatChars(descArray[k]);
			if( tmp.indexOf(keyword) != -1 ) subscore++;
			if( tmp.indexOf(' '+keyword+' ') != -1 ) subscore+=2;
			tmp = formatChars(titlesArray[k]);
			if( tmp.indexOf(keyword) != -1 ) subscore++;
			if( tmp.indexOf(' '+keyword+' ') != -1 ) subscore+=2;
			if( namesArray[k].indexOf(keyword) != -1 ) subscore++;
			if( namesArray[k].indexOf(' '+keyword+' ') != -1 ) subscore+=2;
			
			if( subscore > 0 )
			{
				var idx = urlsArray[t].indexOf('@');
				if( idx > 0 ) 
				{
					var lnk = urlsArray[k].substr(0, idx)
					if( res_table[t][3].indexOf( lnk ) == -1 )
						res_table[t][3] += "<tr><td width='35'>&nbsp;</td><td><a href=\"" + urlsArray[k].substr(idx+1) + "\" name=\"" + lnk + "\">" + titlesArray[k] + "</a></td></tr>";
				} else if( res_table[t][3].indexOf( "\"" + urlsArray[k] + "\"" ) == -1 )
					res_table[t][3] += "<tr><td width='35'>&nbsp;</td><td><a href=\"" + urlsArray[k] + lnktarget + "\">" + titlesArray[k] + "</a></td></tr>";
//	           		if( B OLD_LINKS )  res_table[t][3] += "<tr><td width='50'>&nbsp</td><td><b><a href='" + urlsArray[k] +"'>" + titlesArray[k] + "</a></b></td></tr>";
				score += subscore;
			}	
			k++;
		}
		q = k-1;
				
	    if( score > 0 )
	    {
	      res_table[t][0] = t;
	      res_table[t][1] += score;
	      res_table[t][2]++;
	      found++;
	    }
	  }
	}
  }
  if( found == 0 ) {
    document.write("<p class='wg-paragraph'><b>" + STR_NO_RESULT + "</b></p>");
  } 
  else 
  {
/*	if( ALLWORDSONLY )
	{
		//  if all words only then we recount and filter amoung the results to get the total of found items
		found = 0;
		for( var z=0; z<itemsCount; z++ )
			if( res_table[z][1] > 0 ) // display only results with a positive score
			if( !ALLWORDSONLY || (ALLWORDSONLY && res_table[z][2] == significantwords) )
				found++;
	}
  */
	// sort by words found and scores
    res_table.sort(SortCompare);	
    // display the results
	document.writeln( '<div class="wg-paragraph">' );
    for( q=0; q<found; q++ )
      if( res_table[q][1] > 0 ) // display only results with a positive score
	  if( !ALLWORDSONLY || (ALLWORDSONLY && res_table[q][2] == significantwords) )
	  {
		t = res_table[q][0];    // get page index

		var lnk = urlsArray[t] + lnktarget;
		var idx = urlsArray[t].indexOf('@');
		if( idx > 0 ) 
			lnk = urlsArray[t].substr(idx+1);
			
		if( BOLD_LINKS ) {
		  document.writeln("<br><b>" + (q+1) + ". <a href=\"" + lnk + "\">" + titlesArray[t] + "</a></b>" );
		} else
		  document.writeln("<br><b>" + (q+1) + ".</b> <a href=\"" + lnk + "\">" + titlesArray[t] + "</a>" );
        if( descArray[t].length > 2 )
          document.writeln("<br>" + descArray[t] );
        if( DISPLAY_SRCH_INFO ) 
		{
			document.write("<br><span style='font-size: 80%; font-style: italic;'>");
			if( !ALLWORDSONLY )
			  document.write("" + STR_TERMS + ": " + res_table[q][2] + " - " );
			document.write("" + STR_SCORE + ": " + res_table[q][1] );
			if( urlsArray[t].indexOf('@') > 0 ) {
			  document.writeln(" - URL: 'TOWeb demonstration'</span>");
			} else if(ONLINE_WEBSITE) {
			  document.writeln(" - URL: " + rootURL + urlsArray[t].substr(3) + "</span>");
			} else
			  document.writeln(" - URL: " + urlsArray[t] + "</span>");
      	}
		if( res_table[q][3].length > 0 ) { 
      	  document.writeln( '<table class="wg-paragraph">' + res_table[q][3] + '</table>' );
      	} else document.writeln("<br>");
      }
 	document.writeln( '</div>' );
  }
  document.writeln("<br>");
}
