// ----------------------------------------------------------------------------
// Lauyan Software Javascript Search Engine 2.0
//
// This file is the JavaScript search engine for a website created by TOWeb
//
// Copyright (C) LAUYAN SOFTWARE 2006
// web: http://www.lauyan.com
// ----------------------------------------------------------------------------

STR_SEARCH_QUERY_MSG = "Résultats de la recherche pour";
STR_NO_RESULT = "Aucun résultat trouvé";
LBL_QUERY_RESULT = "résultat(s) trouvé(s) pour :&nbsp";
LBL_ITREFERENCE  = "Référence";
LBL_ITPRICE = 'Prix';
LBL_PRICEERROR = "Erreur de prix";
MIN_WORD_LEN = 2;
DISPLAY_SRCH_INFO = 1;
USE_UTF8 = 0;
REMOVE_ACCENTS = 1;
BOLD_LINKS = 1;
ONLINE_WEBSITE = 1;
ALLWORDSONLY = 0;
SHOWREFERENCES = 0;
BORDERCOLOR = "#4D4D4D";
SORTCOMPARE = 2;
itNamesArray = new Array("3-001 2010 granville format cm ",
"3-002 juillet 2010 format cm ",
"3-003 juillet 2010 format cm ",
"3-004 format juillet 2010 ",
"3-005 juin 2010 format cm ",
"3-006 juin 2010 format cm ",
"3-007",
"3-008 juin 2010 ",
"3-009 mai 2010 ",
"3-010 mai 2010 format cm ",
"3-011 avril 2010 format cm ",
"3-012 avril 2010 format m ",
"3-013 avril 2010 format cm ",
"3-014 avril 2010 format cm ",
"3-015 avril 2010 format cm ",
"3-016 avril 2010 format cm ",
"3-017 avril 2010 format 120 cm ",
"3-018 juin 2009 format  ",
"3-019 avril 2010 format cm ",
"3-020 juin 2009 format cm ",
"3-021 date 2008 format 120 cm ",
"3-022 date 2008 format cm ",
"3-023 juin 2009 format cm ",
"3-024 eglise cimetiere marin brelade jersey  ",
"3-025",
"3-026 date 2008 format cm ",
"3-027 date 2008 format cm ",
"3-028 date 2008 format 120 cm ",
"3-029 juin 2009 format cm ",
"3-030 date nov 2008 format vendue ",
"3-031 juin 2009 format  ",
"3-032 date 2008 format cm ",
"3-033 date 2008 format 120  ",
"3-034 date oct 2008 format  ",
"3-035 format date nov 2008 ",
"3-036 date 2008 format cm ",
"3-037 format date nov 2008 ",
"3-038 format date nov 2008 ",
"3-039 date 2008 format cm ",
"3-040 date 2008 format cm ",
"3-041 format date nov 2008 ",
"3-042",
"3-043 saisissez description article ici ",
"3-044 saisissez description article ici ",
"4-001 galerie  ",
"5-001 cliquez agrandir telecharger catalogue ",
"1531-01-02 2580-01-02 1531-01-02",
"1824-01-03 3040-01-03 1824-01-03  ",
"1824-01-04 3040-01-04 1824-01-04",
"1824-01-01 1531-01-01 2066-01-01 2580-01-01 1824-01-01  ",
"1824-01-06 3040-01-06 1824-01-06 1531-01-06  ",
"1824-01-07 1824-01-07",
"1531-01-08 1531-01-08 2050-01-08 2580-01-08",
"1824-01-09 1824-01-09 2580-01-09",
"1824-01-10 1531-01-10 1824-01-10 2050-01-10",
"1824-01-11 1531-01-11 1824-01-11",
"1824-01-12 1531-01-12 1824-01-12 2050-01-12",
"1824-01-13 1531-01-13 1824-01-13  ",
"1824-01-14 1531-01-14 1824-01-14",
"1531-01-15 1531-01-15 2050-01-15 2580-01-15",
"1824-01-16 3040-01-16 1824-01-16",
"1824-01-17 3040-01-17 1824-01-17",
"1824-01-18 1531-01-18 2050-01-18 1824-01-18",
"1824-01-19 1531-01-19 2050-01-19 1824-01-19",
"1824-01-20 1824-01-20 1531-01-20 2550-01-20",
"1531-01-21 1531-01-21 2550-01-21",
"1531-01-22 2050-01-22 2066-01-22 2580-01-22 1531-01-22",
"1824-01-23 2050-01-23 1824-01-23 1531-01-23",
"1824-01-24 1531-01-24 2050-01-24 3040-01-24 2580-01-24 1824-01-24",
"1824-01-25 1531-01-25 2050-01-25 2580-01-25 1824-01-25",
"1824-01-26 3040-01-26 1824-01-26",
"1824-01-27 1531-01-27 1824-01-27",
"1824-01-28 1824-01-28",
"1824-01-29 3040-01-29 1824-01-29",
"1824-01-31 1531-01-31 2050-01-31 8025-01-31 1824-01-31",
"1824-01-05 1531-01-05 2050-01-05 1824-01-05",
"1824-01-32 1531-01-32 2050-01-32 8025-01-32 1824-01-32",
"1824-01-33 1531-01-33 2050-01-33 8025-01-33 1824-01-33",
"1824-01-34 1824-01-34 1531-01-34",
"1824-01-35 1531-01-35 2050-01-35 8025-01-35 1824-01-35",
"1531-01-36 1531-01-36",
"1824-01-37 2050-01-37 8025-01-37 1824-01-37 1531-01-37",
"1531-01-38 2050-01-38 8025-01-38 1531-01-38",
"1824-01-39 1531-01-39 2050-01-39 2580-01-39 1824-01-39",
"1824-01-40 1531-01-40 2050-01-40 2580-01-40 1824-01-40",
"1531-01-41 2050-01-41 2580-01-41 1531-01-41",
"1824-01-45 3040-01-45 1824-01-45",
"1531-01-46 2580-01-46 1531-01-46 1824-01-46",
"5-044 saisissez description article ici ",
"1531-1-48 2580-1-48 1531-1-48 12040-01-48",
"1531-01-49 1531-01-49 2050-01-49",
"1531-01-49 1531-01-49 1824-01-49 saisissez description article ici ",
"1531-01-50 1531-01-50 2050-01-50 saisissez description article ici ",
"1531-01-51 1531-01-51 2050-01-51 saisissez description article ici ",
"1531-01-52 1531-01-52 2050-01-52 saisissez description article ici ",
"1531-01-54 2580-01-54 1531-01-54 12040-01-54 saisissez description article ici ",
"1531-01-55 1531-01-55 2050-01-55 1824-01-55 saisissez description article ici ",
"6-001 cliquez telecharger catalogue  ",
"1824-02-24 1824-02-24 3040-02-24",
"1824-02-01 1531-02-01 2050-02-01 1824-02-01",
"1824-02-02 1824-02-02",
"1824-02-03 3040-02-03 1824-02-03",
"1824-02-04 3040-02-04 1531-02-04 2050-02-04 2066-02-04 2580-02-04 1824-02-04",
"1824-02-05 1531-02-05 2050-02-06 2066-02-05 2580-02-05 1824-02-05",
"1824-02-06 3040-02-07 1824-02-06",
"1824-02-07 1824-02-07",
"1824-02-08 3040-02-08 1531-02-08 2066-02-08 2050-02-08 2580-02-08 1824-02-08",
"1824-02-09 3040-02-09 1824-02-09",
"1824-02-10 1531-02-10 2050-02-10 3040-02-10 2066-02-10 2580-02-10 1824-02-10",
"1531-02-25 1531-02-25 2066-02-25 2550-02-25 8025-02-25 saisissez description article ici ",
"1531-02-23 1531-02-23 2066-02-23 2550-02-25 8025-02-25",
"1531-02-16 3040-02-16 2050-02-16 2050-02-16 2580-02-16 1531-02-16",
"1531-02-18 2050-02-18 2066-02-18 2580-02-18 1531-02-18",
"1824-02-12 2050-02-12 3040-02-12 1531-02-12 1824-02-12",
"1531-02-11 2050-02-11 1531-02-11",
"1531-02-14 2050-02-14 1531-02-14",
"1531-02-15 2050-02-15 2580-02-15 2066-02-15 1531-02-15",
"1531-02-17 3040-02-17 1531-02-17",
"1824-02-19 2050-02-19 8025-02-19 1824-02-19",
"1824-02-20 1824-02-20 2050-02-20 8025-02-20",
"1824-02-21 1824-02-21 2050-02-21 2550-02-21",
"1531-02-22 1531-02-22 2066-02-22 2550-02-22 8025-02-22",
"1824-02-23 3040-02-23 1824-02-23 saisissez description article ici ",
"1824-03-01 3040-03-02 1824-03-01",
"1824-03-02 1531-03-02 2550-03-02 1824-03-02 tatihou morsalines ",
"1824-03-03 3040-03-03 1824-03-03 plus petit port france dans hague ",
"3040-03-04 3040-03-04",
"1824-03-05 1824-03-05",
"1824-03-06 1824-03-06",
"1824-03-07 2050-03-07 2580-03-07 1824-03-07 1531-03-07",
"1824-03-08 2050-03-08 1824-03-08 1531-03-08",
"1531-03-09 2050-03-09 1531-03-09 1824-03-09",
"1824-03-10 3040-03-10 1824-03-10",
"1824-03-11 1824-03-11 2050-03-11",
"1531-03-14 1531-03-14",
"1824-03-12 1824-03-12 2050-03-12",
"1824-03-13 1824-03-13 2050-03-13 8025-03-13",
"1824-03-15 3040-03-15 1824-03-15",
"1824-03-16 3040-03-16 1824-03-16",
"1531-03-17 1824-03-17 2050-03-17 8025-03-17 1531-03-17",
"1824-04-06 3040-04-06 1824-04-06",
"1531-04-01 2050-04-01 3040-04-01 1531-04-01 1824-04-01",
"1531-04-02 2050-04-02 1531-04-02 saisissez texte paragraphe ici ",
"1531-04-03 2050-04-03 1531-04-03",
"1824-04-10 1824-04-10 3040-04-10 saisissez description article ici ",
"1531-04-04 2050-04-04 1531-04-04",
"1824-4-05 3040-4-05 1824-4-05",
"1824-4-07 1531-4-07 2050-4-07 1824-4-07",
"1824-4-08 1824-4-08",
"1531-4-09 2050-4-09 3040-4-09 1531-4-09 1824-4-09");
itUrlsArray = new Array("../topic2/page1.html",
"../topic2/page2.html",
"../topic2/page3.html",
"../topic2/page4.html",
"../topic2/page5.html",
"../topic2/page6.html",
"../topic2/page7.html",
"../topic2/page8.html",
"../topic2/page9.html",
"../topic2/page10.html",
"../topic2/page11.html",
"../topic2/page12.html",
"../topic2/page13.html",
"../topic2/page14.html",
"../topic2/page15.html",
"../topic2/page16.html",
"../topic2/page17.html",
"../topic2/page18.html",
"../topic2/page19.html",
"../topic2/page20.html",
"../topic2/page21.html",
"../topic2/page22.html",
"../topic2/page23.html",
"../topic2/page24.html",
"../topic2/page25.html",
"../topic2/page26.html",
"../topic2/page27.html",
"../topic2/page28.html",
"../topic2/page29.html",
"../topic2/page30.html",
"../topic2/page31.html",
"../topic2/page32.html",
"../topic2/page33.html",
"../topic2/page34.html",
"../topic2/page35.html",
"../topic2/page36.html",
"../topic2/page37.html",
"../topic2/page38.html",
"../topic2/page39.html",
"../topic2/page40.html",
"../topic2/page41.html",
"../topic2/page42.html",
"../topic2/page43.html",
"../topic2/page44.html",
"../topic3/index.html",
"../reproductionspoi/page1.html",
"../reproductionspoi/page2.html",
"../reproductionspoi/page3.html",
"../reproductionspoi/page4.html",
"../reproductionspoi/page5.html",
"../reproductionspoi/page6.html",
"../reproductionspoi/page7.html",
"../reproductionspoi/page8.html",
"../reproductionspoi/page9.html",
"../reproductionspoi/page10.html",
"../reproductionspoi/page11.html",
"../reproductionspoi/page12.html",
"../reproductionspoi/page13.html",
"../reproductionspoi/page14.html",
"../reproductionspoi/page15.html",
"../reproductionspoi/page16.html",
"../reproductionspoi/page17.html",
"../reproductionspoi/page18.html",
"../reproductionspoi/page19.html",
"../reproductionspoi/page20.html",
"../reproductionspoi/page21.html",
"../reproductionspoi/page22.html",
"../reproductionspoi/page23.html",
"../reproductionspoi/page24.html",
"../reproductionspoi/page25.html",
"../reproductionspoi/page26.html",
"../reproductionspoi/page27.html",
"../reproductionspoi/page28.html",
"../reproductionspoi/page29.html",
"../reproductionspoi/page30.html",
"../reproductionspoi/page31.html",
"../reproductionspoi/page32.html",
"../reproductionspoi/page33.html",
"../reproductionspoi/page34.html",
"../reproductionspoi/page35.html",
"../reproductionspoi/page36.html",
"../reproductionspoi/page37.html",
"../reproductionspoi/page38.html",
"../reproductionspoi/page39.html",
"../reproductionspoi/page40.html",
"../reproductionspoi/page41.html",
"../reproductionspoi/page42.html",
"../reproductionspoi/page43.html",
"../reproductionspoi/page44.html",
"../reproductionspoi/page45.html",
"../reproductionspoi/page46.html",
"../reproductionspoi/page47.html",
"../reproductionspoi/page48.html",
"../reproductionspoi/page49.html",
"../reproductionspoi/page50.html",
"../reproductionspoi/page51.html",
"../reproductionspoi/page52.html",
"../baie-du-mont-a-hauteville-sur-mer/page1.html",
"../baie-du-mont-a-hauteville-sur-mer/page2.html",
"../baie-du-mont-a-hauteville-sur-mer/page3.html",
"../baie-du-mont-a-hauteville-sur-mer/page4.html",
"../baie-du-mont-a-hauteville-sur-mer/page5.html",
"../baie-du-mont-a-hauteville-sur-mer/page6.html",
"../baie-du-mont-a-hauteville-sur-mer/page7.html",
"../baie-du-mont-a-hauteville-sur-mer/page8.html",
"../baie-du-mont-a-hauteville-sur-mer/page9.html",
"../baie-du-mont-a-hauteville-sur-mer/page10.html",
"../baie-du-mont-a-hauteville-sur-mer/page11.html",
"../baie-du-mont-a-hauteville-sur-mer/page12.html",
"../baie-du-mont-a-hauteville-sur-mer/page13.html",
"../baie-du-mont-a-hauteville-sur-mer/page14.html",
"../baie-du-mont-a-hauteville-sur-mer/page15.html",
"../baie-du-mont-a-hauteville-sur-mer/page16.html",
"../baie-du-mont-a-hauteville-sur-mer/page17.html",
"../baie-du-mont-a-hauteville-sur-mer/page18.html",
"../baie-du-mont-a-hauteville-sur-mer/page19.html",
"../baie-du-mont-a-hauteville-sur-mer/page20.html",
"../baie-du-mont-a-hauteville-sur-mer/page21.html",
"../baie-du-mont-a-hauteville-sur-mer/page22.html",
"../baie-du-mont-a-hauteville-sur-mer/page23.html",
"../baie-du-mont-a-hauteville-sur-mer/page24.html",
"../baie-du-mont-a-hauteville-sur-mer/page25.html",
"../baie-du-mont-a-hauteville-sur-mer/page26.html",
"../reproductionscot/page1.html",
"../reproductionscot/page2.html",
"../reproductionscot/page3.html",
"../reproductionscot/page4.html",
"../reproductionscot/page5.html",
"../reproductionscot/page6.html",
"../reproductionscot/page7.html",
"../reproductionscot/page8.html",
"../reproductionscot/page9.html",
"../reproductionscot/page10.html",
"../reproductionscot/page11.html",
"../reproductionscot/page12.html",
"../reproductionscot/page13.html",
"../reproductionscot/page14.html",
"../reproductionscot/page15.html",
"../reproductionscot/page16.html",
"../reproductionscot/page17.html",
"../autreslieux/page1.html",
"../autreslieux/page2.html",
"../autreslieux/page3.html",
"../autreslieux/page4.html",
"../autreslieux/page5.html",
"../autreslieux/page6.html",
"../autreslieux/page7.html",
"../autreslieux/page8.html",
"../autreslieux/page9.html",
"../autreslieux/page10.html");
itTitlesArray = new Array("or 44",
"or 43",
"or 42",
"Or 41",
"Or 40 La plage de Jullouville",
"Or 39 Porbail",
"Or 38 Le passous",
"Or 34 la digue de Coutainville de la Mauresque vers le nord",
"Or 33 La digue de Coutainville vers le sud .",
"or 32 Le ponton a la pointe d Agon",
"Or 31 Pecheurs a pied",
"Or 30 le corps de garde de Saint - Germain sur Ay",
"OR 29 voilier",
"Or 28 Barneville-Carteret",
"Or 28 Tourville sur Sienne et le havre de la Sienne",
"Or 27 Tracteurs sur la plage",
"Ref: or 04 le port de granville",
"Ref:or 21 la cale de pirou",
"Or 26 la plage de Pirou",
"Ref : Or 20  Bulotiers a Pirou",
"0r 07 St Martin de Brehal",
"0r 16 Barfleur",
"ref :Or 22 Reville",
"0r 17 ILE de JERSEY",
"0r 18 Ile de JERSEY",
"0r 02 ST-Lô",
"0r 11 Regneville",
"0r 3-004 Coutainville",
"Or 25 échouages",
"0r 06  Péche a pied",
"Or 24 voilliers a l'echouage",
"0r 05  Pointe d' Agon",
"0r 04 La pointe d' Agon",
"0r 01 La pointe dAgon",
"0r 14 Pêche a pied",
"0r 12 Jullouville",
"or 13 Pêche a pied",
"0r 10 Scène de pêche",
"0r 03 Le Phare d 'Agon",
"0r 08 Plage de St Martin de Brehal",
"0r 15 Bouchots",
"0r 19 ILE de JERSEY",
"or 36 Jersey",
"or 37 Granville",
"De Regneville a Gouvile sur mer",
"FORMATS DISPONIBLES",
"1-02 pointe d agon",
"1-03 échouage",
"1-04 le phare de la pointe",
"1-01 la marée",
"1-06",
"1-07 pêcheurs",
"1-08 Tourville / Sienne",
"1-09 voiliers agon",
"1-10- phare d'Agon",
"1-11 maquerautier a l'entretien",
"1-12 Orage dans le havre",
"1-13 Phare de la pointe d'agon",
"1-14 LA remonte du Goëmond",
"1-15 Hotel regneville",
"1-16 smewing",
"1-17 soleil couchant",
"1-18 Ch des matelots",
"1-19 Ruet",
"1-20 le Sémaphore",
"1-21 pecherie",
"1-22",
"1-23 le pont de la roque",
"1-24 cabines de Gouville",
"1-25 le havre de la Sienne",
"1-26 Regneville la cour a tôt",
"1-27 hauteville sur mer",
"1-28 Hauteville sur mer",
"1-29 Heugueville sur sienne",
"1-31 sans gene",
"1-05  Montmartin",
"1-32 Coutainville",
"1-33 coutainville",
"1-34 les paillottes",
"1-35 mauresque",
"1-36 bazar de la mer",
"1-37 cabines de gouville",
"1-38 regnevile",
"1-39 ruet regneville",
"1-40 Pêche a pied",
"1-41 les ecrehous",
"1-45 voilier",
"1-46 phare et ponton",
"01-47",
"1-48 mauresque",
"1-53 Le Passous",
"1-49 cabines de Gouville sur mer",
"1-50 Barge",
"1-51 Pecheurs",
"1-52 le ponton",
"1-54 la pointe d Agon",
"1-55 le phare",
"FORMATS DISPONIBLES",
"2-24 Pecheurs",
"2-01 Jullouville",
"2-02 Jullouville",
"2-03 échouage",
"2-04 Trotteurs dans la baie",
"2-05  Le Mont - Michel",
"2-06 Le mont St-Michel",
"2-07 pêcheurs a granville",
"2-08 port Granville 1",
"2-09 port de Granville",
"2-10- chausey",
"2-25 le port de Granville",
"2-23 casino de Granville",
"2-16 port de Granville",
"2-18 Granville vu de Bréville",
"2-12 Bisquines a Chausey",
"2-11 Le port de granville",
"2-14 Cabines a Carolles",
"2-15 plage de Carolles",
"2-17 Chausey",
"2_19 st martin de brehal",
"2-20 St Martin de Brehal",
"2-21 St Martin de Brehal",
"2-22 StMartin de brehal",
"2-23 jullouville",
"3-01 Le port de Carentan",
"3-02 Tatihou",
"3-03 Port Racine",
"3-04 Porbail",
"3-05 barque",
"3-06 Porbail",
"3-07 Goury",
"3-08 Bulotier a Pirou",
"3-09 La cale de pirou",
"3-10 Doris en val de saire ( Reville )",
"3-11 pirou plage",
"03-14 la piscine de Pirou",
"3-12 porbail pont",
"03-13 le havre de porbail",
"3-15 Barneville -Carteret",
"3-16 Havre de StGermain/ay",
"3-17 Porbail",
"4-06 Honfleur",
"4-01 Honfleur",
"4-02 le Hutrel a St-Lô",
"4-03 la chaire ext N. Dame a St-Lô",
"4-10 Saint lo",
"4-04 vélos",
"4-05 jersey",
"4-07 jersey",
"4-08 jersey",
"4-09 les ecrehous");
itDescArray = new Array("2010 granville format 80/25 cm",
"juillet 2010 format 50/25 cm",
"juillet 2010 format 50/25 cm",
"format 50/25 cm juillet 2010",
"juin 2010  format 30/40 cm",
"juin 2010  format 80/25 cm",
"",
"juin 2010",
"mai 2010",
"Mai 2010  Format 80/25 cm",
"Avril 2010 Format 30/40 cm",
"Avril 2010 Format 40/30 m",
"Avril 2010 Format 30/40 cm",
"Avril 2010 format 30/40 cm",
"avril 2010  Format 69/23 cm",
"Avril 2010 Format :62/32 cm",
"Avril 2010 format : 40/120 cm",
"juin 2009 format : 50/25 cm",
"Avril 2010 Format : 62/32 cm",
"juin 2009 format : 50/25 cm",
"Date : 2008 Format : 40/120 cm",
"date: 2008 Format : 30/40 cm",
"juin 2009 format : 30/40 cm",
"Eglise et cimetière marin de St Brelade (Jersey)",
"",
"Date : 2008 Format : 30/40 cm",
"Date : 2008 Format : 30/40 cm",
"Date : 2008 Format : 35/120 cm",
"juin 2009 format 50/25 cm",
"Date:Nov 2008 Format:50/25 cm vendue",
"juin 2009 format 25/50 cm",
"Date : 2008 Format : 25/80 cm",
"Date : 2008 Format : 45/120 cm",
"Date : Oct 2008 Format: 65/25 cm",
"format 15/31 cm Date : nov 2008",
"Date : 2008 Format : 25/65 cm",
"format 15/31 cm Date : nov 2008",
"format 25/50 cm Date : nov 2008",
"date: 2008 Format : 30/40 cm",
"date: 2008 Format : 25/65 cm",
"format 15/31 cm Date : nov 2008",
"",
"Saisissez la description  de votre article ici",
"Saisissez la description  de votre article ici",
"GALERIE 1",
"Cliquez pour agrandir ou télécharger le catalogue",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"_",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"Saisissez la description  de votre article ici",
"",
"",
"Saisissez la description  de votre article ici",
"Saisissez la description  de votre article ici",
"Saisissez la description  de votre article ici",
"Saisissez la description  de votre article ici",
"Saisissez la description  de votre article ici",
"Saisissez la description  de votre article ici",
"Cliquez pour telecharger le catalogue",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"Saisissez la description  de votre article ici",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"Saisissez la description  de votre article ici",
"",
"Tatihou vu de Morsalines",
"Le plus petit port de france dans la hague",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"Saisissez le texte du paragraphe ici",
"",
"Saisissez la description  de votre article ici",
"",
"",
"",
"",
"");
itImgArray = new Array("../topic2/bv000044.thumb.jpg",
"../topic2/bv000043.thumb.jpg",
"../topic2/bv000042.thumb.jpg",
"../topic2/bv000041.thumb.jpg",
"../topic2/bv000040.thumb.jpg",
"../topic2/bv000039.thumb.jpg",
"../topic2/bv000038.thumb.jpg",
"../topic2/bv000035.thumb.jpg",
"../topic2/bv000034.thumb.jpg",
"../topic2/bv000033.thumb.jpg",
"../topic2/bv000032.thumb.jpg",
"../topic2/bv000031.thumb.jpg",
"../topic2/bv000030.thumb.jpg",
"../topic2/bv000029.thumb.jpg",
"../topic2/bv000028.thumb.jpg",
"../topic2/bv000027.thumb.jpg",
"../topic2/bv000025.thumb.jpg",
"../topic2/bv000021.thumb.jpg",
"../topic2/bv000026.thumb.jpg",
"../topic2/bv000020.thumb.jpg",
"../topic2/bv000002.thumb.jpg",
"../topic2/bv000007.thumb.jpg",
"../topic2/bv000022.thumb.jpg",
"../topic2/bv000012.thumb.jpg",
"../topic2/bv000010.thumb.jpg",
"../topic2/bv000009.thumb.jpg",
"../topic2/bv000008.thumb.jpg",
"../topic2/bv000003.thumb.jpg",
"../topic2/bv000024.thumb.jpg",
"../topic2/bv000016.thumb.jpg",
"../topic2/bv000023.thumb.jpg",
"../topic2/bv000004.thumb.jpg",
"../topic2/bv000001.thumb.jpg",
"../topic2/bv000011.thumb.jpg",
"../topic2/bv000017.thumb.jpg",
"../topic2/bv000014.thumb.jpg",
"../topic2/bv000015.thumb.jpg",
"../topic2/bv000019.thumb.jpg",
"../topic2/bv000006.thumb.jpg",
"../topic2/bv000005.thumb.jpg",
"../topic2/bv000018.thumb.jpg",
"../topic2/bv000013.thumb.jpg",
"../topic2/bv000036.thumb.jpg",
"../topic2/bv000037.thumb.jpg",
"../topic3/bv000011.thumb.jpg",
"../reproductionspoi/bv000029.thumb.jpg",
"../reproductionspoi/bv000001.thumb.jpg",
"../reproductionspoi/bv000002.thumb.jpg",
"../reproductionspoi/bv000003.thumb.jpg",
"../reproductionspoi/bv000014.thumb.jpg",
"",
"../reproductionspoi/bv000006.thumb.jpg",
"../reproductionspoi/bv000007.thumb.jpg",
"../reproductionspoi/bv000008.thumb.jpg",
"../reproductionspoi/bv000009.thumb.jpg",
"../reproductionspoi/bv000015.thumb.jpg",
"../reproductionspoi/bv000012.thumb.jpg",
"../reproductionspoi/bv000016.thumb.jpg",
"../reproductionspoi/bv000010.thumb.jpg",
"../reproductionspoi/bv000013.thumb.jpg",
"../reproductionspoi/bv000017.thumb.jpg",
"../reproductionspoi/bv000018.thumb.jpg",
"../reproductionspoi/bv000021.thumb.jpg",
"../reproductionspoi/bv000020.thumb.jpg",
"../reproductionspoi/bv000023.thumb.jpg",
"../reproductionspoi/bv000024.thumb.jpg",
"",
"../reproductionspoi/bv000026.thumb.jpg",
"../reproductionspoi/bv000027.thumb.jpg",
"../reproductionspoi/bv000028.thumb.jpg",
"../reproductionspoi/bv000019.thumb.jpg",
"../reproductionspoi/bv000011.thumb.jpg",
"../reproductionspoi/bv000022.thumb.jpg",
"../reproductionspoi/bv000030.thumb.jpg",
"../reproductionspoi/bv000031.thumb.jpg",
"../reproductionspoi/bv000004.thumb.jpg",
"../reproductionspoi/bv000032.thumb.jpg",
"../reproductionspoi/bv000033.thumb.jpg",
"../reproductionspoi/bv000034.thumb.jpg",
"../reproductionspoi/bv000035.thumb.jpg",
"../reproductionspoi/bv000036.thumb.jpg",
"../reproductionspoi/bv000037.thumb.jpg",
"../reproductionspoi/bv000038.thumb.jpg",
"../reproductionspoi/bv000039.thumb.jpg",
"../reproductionspoi/bv000040.thumb.jpg",
"../reproductionspoi/bv000041.thumb.jpg",
"../reproductionspoi/bv000042.thumb.jpg",
"../reproductionspoi/bv000043.thumb.jpg",
"",
"../reproductionspoi/bv000045.thumb.jpg",
"../reproductionspoi/bv000046.thumb.jpg",
"../reproductionspoi/bv000047.thumb.jpg",
"../reproductionspoi/bv000048.thumb.jpg",
"../reproductionspoi/bv000049.thumb.jpg",
"../reproductionspoi/bv000050.thumb.jpg",
"../reproductionspoi/bv000051.thumb.jpg",
"../reproductionspoi/bv000052.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000016.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000024.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000014.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000001.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000002.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000003.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000004.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000005.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000006.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000007.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000008.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000009.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000025.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000023.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000017.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000019.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000012.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000015.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000010.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000013.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000018.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000011.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000021.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000020.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000022.thumb.jpg",
"../baie-du-mont-a-hauteville-sur-mer/bv000026.thumb.jpg",
"../reproductionscot/bv000016.thumb.jpg",
"../reproductionscot/bv000001.thumb.jpg",
"../reproductionscot/bv000002.thumb.jpg",
"../reproductionscot/bv000003.thumb.jpg",
"../reproductionscot/bv000004.thumb.jpg",
"../reproductionscot/bv000005.thumb.jpg",
"../reproductionscot/bv000006.thumb.jpg",
"../reproductionscot/bv000007.thumb.jpg",
"../reproductionscot/bv000008.thumb.jpg",
"../reproductionscot/bv000009.thumb.jpg",
"../reproductionscot/bv000010.thumb.jpg",
"../reproductionscot/bv000013.thumb.jpg",
"../reproductionscot/bv000011.thumb.jpg",
"../reproductionscot/bv000012.thumb.jpg",
"../reproductionscot/bv000014.thumb.jpg",
"../reproductionscot/bv000015.thumb.jpg",
"../reproductionscot/bv000017.thumb.jpg",
"../autreslieux/bv000005.thumb.jpg",
"../autreslieux/bv000016.thumb.jpg",
"../autreslieux/bv000001.thumb.jpg",
"../autreslieux/bv000002.thumb.jpg",
"../autreslieux/bv000009.thumb.jpg",
"../autreslieux/bv000003.thumb.jpg",
"../autreslieux/bv000004.thumb.jpg",
"../autreslieux/bv000006.thumb.jpg",
"../autreslieux/bv000007.thumb.jpg",
"../autreslieux/bv000008.thumb.jpg");
itRefArray = new Array("3-001",
"3-002",
"3-003",
"3-004",
"3-005",
"3-006",
"3-007",
"3-008",
"3-009",
"3-010",
"3-011",
"3-012",
"3-013",
"3-014",
"3-015",
"3-016",
"3-017",
"3-018",
"3-019",
"3-020",
"3-021",
"3-022",
"3-023",
"3-024",
"3-025",
"3-026",
"3-027",
"3-028",
"3-029",
"3-030",
"3-031",
"3-032",
"3-033",
"3-034",
"3-035",
"3-036",
"3-037",
"3-038",
"3-039",
"3-040",
"3-041",
"3-042",
"3-043",
"3-044",
"4-001",
"5-001",
"1531-01-02 2580-01-02 1531-01-02",
"1824-01-03 3040-01-03 1824-01-03",
"1824-01-04 3040-01-04 1824-01-04",
"1824-01-01 1531-01-01 2066-01-01 2580-01-01 1824-01-01",
"1824-01-06 3040-01-06 1824-01-06 1531-01-06",
"1824-01-07 1824-01-07",
"1531-01-08 1531-01-08 2050-01-08 2580-01-08",
"1824-01-09 1824-01-09 2580-01-09",
"1824-01-10 1531-01-10 1824-01-10 2050-01-10",
"1824-01-11 1531-01-11 1824-01-11",
"1824-01-12 1531-01-12 1824-01-12 2050-01-12",
"1824-01-13 1531-01-13 1824-01-13",
"1824-01-14 1531-01-14 1824-01-14",
"1531-01-15 1531-01-15 2050-01-15 2580-01-15",
"1824-01-16 3040-01-16 1824-01-16",
"1824-01-17 3040-01-17 1824-01-17",
"1824-01-18 1531-01-18 2050-01-18 1824-01-18",
"1824-01-19 1531-01-19 2050-01-19 1824-01-19",
"1824-01-20 1824-01-20 1531-01-20 2550-01-20",
"1531-01-21 1531-01-21 2550-01-21",
"1531-01-22 2050-01-22 2066-01-22 2580-01-22 1531-01-22",
"1824-01-23 2050-01-23 1824-01-23 1531-01-23",
"1824-01-24 1531-01-24 2050-01-24 3040-01-24 2580-01-24 1824-01-24",
"1824-01-25 1531-01-25 2050-01-25 2580-01-25 1824-01-25",
"1824-01-26 3040-01-26 1824-01-26",
"1824-01-27 1531-01-27 1824-01-27",
"1824-01-28 1824-01-28",
"1824-01-29 3040-01-29 1824-01-29",
"1824-01-31 1531-01-31 2050-01-31 8025-01-31 1824-01-31",
"1824-01-05 1531-01-05 2050-01-05 1824-01-05",
"1824-01-32 1531-01-32 2050-01-32 8025-01-32 1824-01-32",
"1824-01-33 1531-01-33 2050-01-33 8025-01-33 1824-01-33",
"1824-01-34 1824-01-34 1531-01-34",
"1824-01-35 1531-01-35 2050-01-35 8025-01-35 1824-01-35",
"1531-01-36 1531-01-36",
"1824-01-37 2050-01-37 8025-01-37 1824-01-37 1531-01-37",
"1531-01-38 2050-01-38 8025-01-38 1531-01-38",
"1824-01-39 1531-01-39 2050-01-39 2580-01-39 1824-01-39",
"1824-01-40 1531-01-40 2050-01-40 2580-01-40 1824-01-40",
"1531-01-41 2050-01-41 2580-01-41 1531-01-41",
"1824-01-45 3040-01-45 1824-01-45",
"1531-01-46 2580-01-46 1531-01-46 1824-01-46",
"5-044",
"1531-1-48 2580-1-48 1531-1-48 12040-01-48",
"1531-01-49 1531-01-49 2050-01-49",
"1531-01-49 1531-01-49 1824-01-49",
"1531-01-50 1531-01-50 2050-01-50",
"1531-01-51 1531-01-51 2050-01-51",
"1531-01-52 1531-01-52 2050-01-52",
"1531-01-54 2580-01-54 1531-01-54 12040-01-54",
"1531-01-55 1531-01-55 2050-01-55 1824-01-55",
"6-001",
"1824-02-24 1824-02-24 3040-02-24",
"1824-02-01 1531-02-01 2050-02-01 1824-02-01",
"1824-02-02 1824-02-02",
"1824-02-03 3040-02-03 1824-02-03",
"1824-02-04 3040-02-04 1531-02-04 2050-02-04 2066-02-04 2580-02-04 1824-02-04",
"1824-02-05 1531-02-05 2050-02-06 2066-02-05 2580-02-05 1824-02-05",
"1824-02-06 3040-02-07 1824-02-06",
"1824-02-07 1824-02-07",
"1824-02-08 3040-02-08 1531-02-08 2066-02-08 2050-02-08 2580-02-08 1824-02-08",
"1824-02-09 3040-02-09 1824-02-09",
"1824-02-10 1531-02-10 2050-02-10 3040-02-10 2066-02-10 2580-02-10 1824-02-10",
"1531-02-25 1531-02-25 2066-02-25 2550-02-25 8025-02-25",
"1531-02-23 1531-02-23 2066-02-23 2550-02-25 8025-02-25",
"1531-02-16 3040-02-16 2050-02-16 2050-02-16 2580-02-16 1531-02-16",
"1531-02-18 2050-02-18 2066-02-18 2580-02-18 1531-02-18",
"1824-02-12 2050-02-12 3040-02-12 1531-02-12 1824-02-12",
"1531-02-11 2050-02-11 1531-02-11",
"1531-02-14 2050-02-14 1531-02-14",
"1531-02-15 2050-02-15 2580-02-15 2066-02-15 1531-02-15",
"1531-02-17 3040-02-17 1531-02-17",
"1824-02-19 2050-02-19 8025-02-19 1824-02-19",
"1824-02-20 1824-02-20 2050-02-20 8025-02-20",
"1824-02-21 1824-02-21 2050-02-21 2550-02-21",
"1531-02-22 1531-02-22 2066-02-22 2550-02-22 8025-02-22",
"1824-02-23 3040-02-23 1824-02-23",
"1824-03-01 3040-03-02 1824-03-01",
"1824-03-02 1531-03-02 2550-03-02 1824-03-02",
"1824-03-03 3040-03-03 1824-03-03",
"3040-03-04 3040-03-04",
"1824-03-05 1824-03-05",
"1824-03-06 1824-03-06",
"1824-03-07 2050-03-07 2580-03-07 1824-03-07 1531-03-07",
"1824-03-08 2050-03-08 1824-03-08 1531-03-08",
"1531-03-09 2050-03-09 1531-03-09 1824-03-09",
"1824-03-10 3040-03-10 1824-03-10",
"1824-03-11 1824-03-11 2050-03-11",
"1531-03-14 1531-03-14",
"1824-03-12 1824-03-12 2050-03-12",
"1824-03-13 1824-03-13 2050-03-13 8025-03-13",
"1824-03-15 3040-03-15 1824-03-15",
"1824-03-16 3040-03-16 1824-03-16",
"1531-03-17 1824-03-17 2050-03-17 8025-03-17 1531-03-17",
"1824-04-06 3040-04-06 1824-04-06",
"1531-04-01 2050-04-01 3040-04-01 1531-04-01 1824-04-01",
"1531-04-02 2050-04-02 1531-04-02",
"1531-04-03 2050-04-03 1531-04-03",
"1824-04-10 1824-04-10 3040-04-10",
"1531-04-04 2050-04-04 1531-04-04",
"1824-4-05 3040-4-05 1824-4-05",
"1824-4-07 1531-4-07 2050-4-07 1824-4-07",
"1824-4-08 1824-4-08",
"1531-4-09 2050-4-09 3040-4-09 1531-4-09 1824-4-09");
itPricesArray = new Array(250,
220,
150,
150,
150,
300,
270,
650,
170,
300,
150,
150,
150,
150,
160,
0.00,
600,
150,
160,
150,
500,
150,
0.00,
150,
250,
150,
0.00,
0.00,
150,
0.00,
150,
0.00,
700,
0.00,
0.00,
0.00,
0.00,
0.00,
0.00,
0.00,
0.00,
0.00,
150,
300.00,
0.00,
0.00,
16,
14,
14,
14,
0,
14,
16,
14,
14,
14,
14,
14,
14,
16,
14,
14,
14,
14,
14,
16,
16,
14,
14,
14,
14,
14,
14,
14,
14,
14,
14,
14,
14,
14,
16,
14,
16,
14,
14,
16,
14,
16,
0.00,
16,
16,
16,
16,
16,
16,
16,
16,
0,
14,
14,
14,
14,
14,
14,
14,
14,
14,
14,
14,
16,
16,
16,
16,
14,
16,
16,
16,
16,
16,
16,
16,
16,
14,
14,
14,
14,
62,
14,
14,
16,
16,
16,
14,
16,
16,
16,
16,
14,
14,
16,
14,
16,
16,
16,
14,
16,
14,
14,
14,
16);
var itemsCount = 150;
var catalogdirs = new Array("/topic2/",
"/topic3/",
"/reproductionspoi/",
"/baie-du-mont-a-hauteville-sur-mer/",
"/reproductionscot/",
"/autreslieux/");
var catalognames = new Array("Catalogue Originaux",
"Catalogue Reproductions",
"de la pte d Agon a Gouville sur mer",
"baie du Mont a Hauteville",
"Cotentin",
"autres lieux");

			
function SubmitSearch(n)
{
	var p = document.getElementsByName("jse_query");
	if( p < 0) return false;
	if( p && p[n] && p[n].value != "" ) 
	{
	  if( (p[n].value).replace(/^\s+|\s+$/g, '') != "" ) 
	  {
		var idx = 0;
		p = document.getElementsByName("minprice");
		if( p && p[idx] )
		{
			if( p[idx].value != "" && isNaN(p[idx].value) )
			{
				if( LBL_PRICEERROR != "" )
					alert( LBL_PRICEERROR );
				return false;
			}
		}
		p = document.getElementsByName("maxprice");
		if( p && p[idx] )
		{
			if( p[idx].value != "" && isNaN(p[idx].value) )
			{
				if( LBL_PRICEERROR != "" )
					alert( LBL_PRICEERROR );
				return false;
			}
		}
		p = document.getElementsByName("jse_form");
		if( p && p[n] )
			p[n].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 SortCompare2(a, b)
{
	if( SORTCOMPARE == 1 ) 
	{
	    if (a[3] < b[3]) return 1;
	    else if (a[3] > b[3]) return -1;
	    else return 0;
	}
	else if( SORTCOMPARE == 0 )
	{
	    if (a[3] > b[3]) return 1;
	    else if (a[3] < b[3]) return -1;
	    else return 0;
	}
	return -1;
}

function jseSearch2( 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();
  var sortp = getParam("sort");
  if( sortp == "0" ) {
	SORTCOMPARE = 0;
  } else if( sortp == "1" ) {
	SORTCOMPARE = 1;
  } else if( sortp == "2" )
	SORTCOMPARE = 2;
  var catfilterp = getParam("cat");
  var minPrice = getParam("minprice");
  var maxPrice = getParam("maxprice");
 
  // display the search form
  var lnktarget = "";
	query = formatChars(query);
  if( query.length == 0 ) return;
  
  var found=0, t=0, k=0, score=0, i=0;
  var keyword = "", tmp = "";
  var searchWords = new Array();

  // split search query by spaces
  searchWords = query.split(" ");
  // init result table information
  res_table = new Array(itemsCount);
  for( t=0; t<itemsCount; t++ )
  {
    res_table[t] = new Array(3);
    res_table[t][0] = 0;  // index
    res_table[t][1] = 0;  // score
    res_table[t][2] = 0;  // words found
    res_table[t][3] = 0;  // price
  }

  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<itemsCount; q++ )
	  {
		// catalog filter verification
	    if( catfilterp != "" && catfilterp != "allcat" && itUrlsArray[q].indexOf(catfilterp) == -1 ) 
			continue;
		// min and max price filter
	    if( minPrice > 0 && itPricesArray[q] < minPrice )
			continue;
	    if( maxPrice > 0 && itPricesArray[q] > maxPrice )
			continue;
		// search for keywords (an exact word doubles the score)
		score = 0;
		tmp = formatChars(itDescArray[q]);
	    if( tmp.indexOf(keyword) != -1 ) score++;
	    if( tmp.indexOf(' '+keyword+' ') != -1 ) score+=2;
		  tmp = formatChars(itTitlesArray[q]);
	  	if( tmp.indexOf(keyword) != -1 ) score++;
		  if( tmp.indexOf(' '+keyword+' ') != -1 ) score+=2;
		  tmp = formatChars(itNamesArray[q]);
	    if( tmp.indexOf(keyword) != -1 ) score++;
	    if( tmp.indexOf(' '+keyword+' ') != -1 ) score+=2;
			
	    if( score > 0 ) // && itPricesArray[q] > 0 )  // add this test in order not to display 0.00 prices 
	    {
		  if( res_table[q][1] <= 0 ) 
			found++;	// increment only if not already found with a previous keyword
	      res_table[q][0] = q;
	      res_table[q][1] = 1; // itPricesArray[q];
	      res_table[q][2]++;
	      res_table[q][3] = itPricesArray[q];
	    }
	  }
	}
  }
  if( found == 0 ) {
    document.write("<br><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++;
	}
	if( internal == null || internal != 1 ) {
		document.writeln( "<span class='wg-paragraph'>" + found + " " + LBL_QUERY_RESULT + "<strong>" +query+"</strong></span>" );
	}
	// sort by words found and scores
	if( SORTCOMPARE >= 0 && SORTCOMPARE <= 1 )
		res_table.sort(SortCompare2);	
    // display the results
	document.writeln("<table border='1' class='wg-paragraph' bordercolor='"+BORDERCOLOR+"' style='border-collapse:collapse;margin:4px;' cellspacing='2' cellpadding='2' >");

	for( var q=0; q<itemsCount; 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
		document.writeln("<tr valign='top'><td>");
		if( itImgArray[t] != "" ) {
			document.writeln("<a href=\"" + itUrlsArray[t] + lnktarget + "\">" + "<img src='"+itImgArray[t]+"' border='0' width=\"48\" height=\"48\" /></a>" );
		}
		document.writeln("</td><td>");
		if( 1 ) { //BOLD_LINKS ) {
          document.writeln("<b><a href=\"" + itUrlsArray[t] + lnktarget + "\">" + itTitlesArray[t] + "</a></b><br>" );
        } else
          document.writeln("<a href=\"" + itUrlsArray[t] + lnktarget + "\">" + itTitlesArray[t] + "</a><br>" );
		if( SHOWREFERENCES && itRefArray[t] != "" ) {
			var ref = itRefArray[t].split(' ');
			if( ref && ref[0] != "" ) 
				document.writeln( LBL_ITREFERENCE+" : "+ref[0]+"<br>" );
		}
        if( itDescArray[t].length > 2 )
			document.writeln( itDescArray[t]);
		document.writeln("</td><td nowrap>");
		if( itPricesArray[t] != ""  && itPricesArray[t] > 0 )
			document.writeln( LBL_ITPRICE+"<br><b>"+AddMonetarySymbol(moneyFormat(itPricesArray[t]))+"</b>" );
		else
			document.writeln( "&nbsp;" );
		document.writeln("</td></tr>");
      }
	}
	document.writeln("</table>");			
  }
  document.writeln("<br>");
}
