// ----------------------------------------------------------------------------
// 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("4-001",
"5-001 against racism premiere dans sportswear ligne vetements concue nos createurs disponible sur notre boutique internet creations associations entreprises particuliers personnalisez demande concept unique monde uni c'est homme femme enfant design moderne symbolique son ambition etre acceptee tous parole est chose regard autre pret porter personnalise l'emploi sport rue sont malheureusement pas epargnes racisme discrimination l'intolerance ainsi violence avons pense souhaitez vetement avec logo pouvons repondre n'ayez peur exprimer vision choses peut changer toute vie alors ensemble luttons donnons new name for the portez differents styles lutter contre toutes ses faces tenons remercier avoir pris soin lire document esperant fait prendre conscience travail societe prions d'agreer madame monsieur meilleures salutations tres bientot ",
"6-001 panino associe graffitees makers sont completement impregner l'actualite footballistique autant marseillaise nationale international s'est donne mission defendre popularite football marseillais the world ",
"7-001 rues mars pluriel est trompeur graffiteesmakers l'origine c'est d'abord homme seul bonar taggeur grapheur graphiste d'images couleurs impose son style dans milieu culturel underground depuis dix ans murs marseille ville portent ses traces vie officielle l'homme signe logos pochettes disques affiches nombreux artistes 2005 soutenu quelques amis saute pas lance marque vetements donne nouvelle visibilite griffe via internet succes immediat graphismes touchent large clientele rappeurs connus comme soprano leader psy rime sont fans meme americains public enemy passage l'automne 2006 craquent creations langage relecture personnelle claquante codes graph rue grandes figures culture populaire gangsters flamboyants fils ghetto sportifs dechus heros ceux societe d'aujourd'hui 2007 alors participe lancement d'une seconde marseillaise centree sur foot panino nouvel elan collections s'ouvrent d'autres graphistes points diffusion multiplient toute france quarantaine aujourd'hui l'esprit marseillais constitutif n'est frein bien contraire rebelle fiere inventive capital sud fascine tout pays l'etranger belgique suisse exemples plus frappants official vandal t-shirts from ligne urbaine ",
"9-001",
"9-002",
"9-003",
"9-004",
"9-005",
"9-006",
"9-007 saisissez texte paragraphe ici ",
"9-008",
"9-009",
"10-001",
"10-002",
"10-003",
"10-004",
"10-005",
"10-006",
"10-007",
"10-008",
"10-009",
"11-001 tsgmkrs0029 description produit official graffitees makers tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees ",
"11-002 description produit official graffitees makers sweat manches longues serigraphie haute resistance etiquettes tissees ",
"11-003 tsgmkrs0019 description produit nino las favelas tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees ",
"11-004 tsgmkrs0020 description produit nino las favelas tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees ",
"11-005 tsgmkrs0047 description produit nino las favelas tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees ",
"11-006 description produit nino las favelas tee manches longues coton qualite 190 serigraphie haute resistance etiquettes tissees ",
"11-007 tsgmkrs0008 description produit marseille style tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees ",
"11-008 tsgmkrs0012 description produit clash culture tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees ",
"11-009 tsgmkrs0023 description produit graffiti session tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees ",
"11-010 tsgmkrs0017 description produit nino las favelas tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees ",
"11-011 tsgmkrs0049 description produit skulls rouge tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees ",
"11-012 description produit addict tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees paragraphe ici ",
"11-013 description produit portos locos tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees paragraphe ici ",
"11-014 description produit don't play with baby tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees paragraphe ici ",
"11-015 description produit urban school rules tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees paragraphe ici ",
"11-016 description produit writers deluxe tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees paragraphe ici ",
"11-017 description produit graffitees burner tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees paragraphe ici ",
"11-018 description produit gotink violet jaune tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees paragraphe ici ",
"11-019 description produit gotink noir bleu tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees paragraphe ici ",
"11-020 description produit smokin everyday tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees paragraphe ici ",
"11-021 description produit zepekenho tee manches courtes coton qualite 190 serigraphie haute resistance etiquettes tissees paragraphe ici ",
"13-001",
"13-002",
"13-003",
"13-004",
"13-005",
"13-006",
"13-007",
"13-008",
"13-009",
"13-010",
"13-011",
"13-012",
"13-013",
"13-014",
"13-015",
"13-016",
"13-017",
"13-018",
"13-019",
"13-020",
"14-001",
"14-002",
"15-001",
"15-002",
"15-003",
"15-004",
"15-005",
"15-006",
"15-007",
"15-008",
"15-009",
"16-001",
"16-002",
"16-003",
"16-004",
"16-005",
"16-006",
"17-001",
"17-002",
"17-003",
"17-004",
"17-005",
"17-006",
"17-007",
"17-008",
"17-009",
"17-010",
"17-011",
"17-012",
"17-013",
"17-014",
"17-015",
"17-016",
"18-001",
"23-001  ",
"30-001  ");
itUrlsArray = new Array("../catalogue2/index.html",
"../catalogue/index.html",
"../fcpanino/index.html",
"../graffiteesmakers/index.html",
"../magasin1/page1.html",
"../magasin1/page2.html",
"../magasin1/page3.html",
"../magasin1/page4.html",
"../magasin1/page5.html",
"../magasin1/page6.html",
"../magasin1/page7.html",
"../magasin1/page8.html",
"../magasin1/page9.html",
"../magasinfcpanino/page1.html",
"../magasinfcpanino/page2.html",
"../magasinfcpanino/page3.html",
"../magasinfcpanino/page4.html",
"../magasinfcpanino/page5.html",
"../magasinfcpanino/page6.html",
"../magasinfcpanino/page7.html",
"../magasinfcpanino/page8.html",
"../magasinfcpanino/page9.html",
"../topicgm/page1.html",
"../topicgm/page2.html",
"../topicgm/page3.html",
"../topicgm/page4.html",
"../topicgm/page5.html",
"../topicgm/page6.html",
"../topicgm/page7.html",
"../topicgm/page8.html",
"../topicgm/page9.html",
"../topicgm/page10.html",
"../topicgm/page11.html",
"../topicgm/page12.html",
"../topicgm/page13.html",
"../topicgm/page14.html",
"../topicgm/page15.html",
"../topicgm/page16.html",
"../topicgm/page17.html",
"../topicgm/page18.html",
"../topicgm/page19.html",
"../topicgm/page20.html",
"../topicgm/page21.html",
"../levre/page1.html",
"../levre/page2.html",
"../levre/page3.html",
"../levre/page4.html",
"../levre/page5.html",
"../levre/page6.html",
"../levre/page7.html",
"../levre/page8.html",
"../levre/page9.html",
"../levre/page10.html",
"../levre/page11.html",
"../levre/page12.html",
"../levre/page13.html",
"../levre/page14.html",
"../levre/page15.html",
"../levre/page16.html",
"../levre/page17.html",
"../levre/page18.html",
"../levre/page19.html",
"../levre/page20.html",
"../barre/page1.html",
"../barre/page2.html",
"../langue/page1.html",
"../langue/page2.html",
"../langue/page3.html",
"../langue/page4.html",
"../langue/page5.html",
"../langue/page6.html",
"../langue/page7.html",
"../langue/page8.html",
"../langue/page9.html",
"../nez/page1.html",
"../nez/page2.html",
"../nez/page3.html",
"../nez/page4.html",
"../nez/page5.html",
"../nez/page6.html",
"../magasin/page1.html",
"../magasin/page2.html",
"../magasin/page3.html",
"../magasin/page4.html",
"../magasin/page5.html",
"../magasin/page6.html",
"../magasin/page7.html",
"../magasin/page8.html",
"../magasin/page9.html",
"../magasin/page10.html",
"../magasin/page11.html",
"../magasin/page12.html",
"../magasin/page13.html",
"../magasin/page14.html",
"../magasin/page15.html",
"../magasin/page16.html",
"../magasin2/index.html",
"../videospub/index.html",
"../catalogue1/index.html");
itTitlesArray = new Array("Présentation",
"Qui sommes nous?",
"Fada Comme Panino",
"Titre de paragraphe",
"Débardeur à Capuche femme",
"Chemise femme manches courtes cintrée",
"T-shirt Femme base-ball mini manches",
"Débardeur à bretelles",
"Alicia",
"Nikobello",
"Tshirt Sans manche",
"Casquettes Army",
"Débardeur Homme",
"Alerte au ChigunkuNiang",
"Didier Reviens !",
"Diego Siempre",
"Manches Longues / Diego Siempre",
"Goethals",
"Sweat Nasri",
"Waddle Attitude ML",
"Ziz'Street Football",
"Spider Mandanda",
"Classic logo Black",
"Classic logo Black",
"Dadinho",
"Dadinho",
"Dadinho",
"Dadinho",
"Marseille Original",
"Marseille vs Paris",
"Vandal tee N°1",
"Ze Pequenho",
"13 Skulls",
"Graffitees Makers - Addict",
"Graffitees Makers - Portos Locos",
"Graffitees Makers - Don't Play With Me Baby",
"Graffitees Makers - Old School Rules",
"Graffitees Makers - Writers Deluxe",
"Graffitees Makers - Graffitees Burner",
"Graffitees Makers - Gotink 2",
"Graffitees Makers - Gotink 2",
"Graffitees Makers - Smokin Everyday",
"Graffitees Makers - Zepekenho",
"Titan boule Brillante",
"Titan boule Brillante",
"Titan boule",
"Titan boule",
"UV boule Paillettes",
"UV unicolor boule",
"UV Beach-design",
"Beach Ball Piercing",
"UV Zèbre",
"Spike",
"Spike",
"Spike",
"Spike Black",
"Spike 2 Colors",
"Spike UV Beach-Ball",
"Spike UV Beach-Ball",
"Spike UV Cones",
"Spike UV Cones",
"Spike UV Cones",
"Spike UV Cones",
"Barre Simple - Langue",
"Barre Simple - Langue",
"Barbell titanium",
"Barbell titanium",
"Barbell titanium",
"UV Flower",
"UV Chekers",
"Fluo Smiley",
"UV Zèbre",
"UV Zèbre",
"Zèbre",
"Droite",
"Droite",
"Droite",
"Droite",
"Angle",
"Angle",
"Ying Yang",
"Offspring",
"UV Etoile",
"UV Chekers",
"UV Strip A",
"UV Vague",
"FLEUR Transparent",
"Nombril",
"Nombril",
"Fleur",
"Nombril",
"Ligne Titane",
"Ligne Titane",
"Nombril",
"Nombril",
"Nombril",
"Clous d'oreille inox.",
"Titre de paragraphe",
"Kiu Dizzy : DARK INSPIRATION");
itDescArray = new Array("",
"Against Racism  Une première dans le sportswear  Une ligne de vêtements conçue par nos créateurs disponible sur notre boutique internet & des créations, que vous, associations, entreprises et particuliers, personnalisez à votre demande.  Un concept unique pour un monde uni.  Against Racism c'est pour homme, femme et enfant. Un design moderne et symbolique. Son ambition : être acceptée de tous La p...",
"FC Panino, associé de Graffitees Makers sont complètement imprégner de l'actualité footballistique, autant marseillaise que nationale... International  S'est donné pour mission de défendre la popularité du football Marseillais et International in the world.",
"Des rues de Mars Le pluriel est trompeur. GraffiteesMakers, à l'origine, c'est d'abord un homme. Un seul.  Bonar, taggeur, grapheur, graphiste. Un homme d'images et de couleurs qui a imposé son style dans le milieu culturel underground...  Depuis dix ans, les murs de Marseille, sa ville, portent ses traces.  Sa vie officielle, l'homme signe logos, pochettes de disques, affiches pour de nombreux ar...",
"",
"",
"",
"",
"",
"",
"Saisissez le texte du paragraphe ici",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"[TSGMKRS0029]  Description du Produit    Official Graffitees Makers.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).",
"Description du Produit    Official Graffitees Makers.  Sweat manches longues (sérigraphie haute résistance - 2 étiquettes tissées).",
"[TSGMKRS0019]  Description du Produit    El nino de las favelas.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).",
"[TSGMKRS0020]  Description du Produit    El nino de las favelas.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).",
"[TSGMKRS0047]  Description du Produit    El nino de las favelas.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).",
"Description du Produit    El nino de las favelas.  Tee Manches Longues (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).",
"[TSGMKRS0008]  Description du Produit    Marseille style.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).",
"[TSGMKRS0012]  Description du Produit  Clash culture.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).",
"[TSGMKRS0023]  Description du Produit    Graffiti session.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).",
"[TSGMKRS0017]  Description du Produit    El nino de las favelas.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).",
"[TSGMKRS0049]  Description du Produit    13 Skulls Rouge.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).",
"Description du Produit    GM Addict .  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).paragraphe ici",
"Description du Produit    GM Portos Locos.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).paragraphe ici",
"Description du Produit    GM Don't Play With Me Baby.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).paragraphe ici",
"Description du Produit    GM Urban School Rules.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).paragraphe ici",
"Description du Produit    GM Writers Deluxe.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).paragraphe ici",
"Description du Produit    GM Graffitees Burner.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).paragraphe ici",
"Description du Produit    GM Gotink 2 Violet Jaune.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).paragraphe ici",
"Description du Produit    GM Gotink 2 Noir Bleu.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).paragraphe ici",
"Description du Produit    GM Smokin Everyday.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).paragraphe ici",
"Description du Produit    GM Zepekenho.  Tee manches courtes (coton qualité 190 gr - sérigraphie haute résistance - 2 étiquettes tissées).paragraphe ici",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"");
itImgArray = new Array("../catalogue2/bv000014.thumb.jpg",
"../catalogue/bv000004.gif",
"../fcpanino/bv000014.thumb.jpg",
"../graffiteesmakers/bv000002.thumb.jpg",
"../magasin1/bv000097.thumb.jpg",
"../magasin1/bv000079.thumb.jpg",
"../magasin1/bv000067.thumb.jpg",
"../magasin1/bv000055.thumb.jpg",
"../magasin1/bv000008.thumb.jpg",
"../magasin1/bv000017.thumb.jpg",
"../magasin1/bv000061.thumb.jpg",
"../magasin1/bv000073.thumb.jpg",
"../magasin1/bv000091.thumb.jpg",
"../magasinfcpanino/bv000014.thumb.jpg",
"../magasinfcpanino/bv000004.thumb.jpg",
"../magasinfcpanino/bv000006.thumb.jpg",
"../magasinfcpanino/bv000007.thumb.jpg",
"../magasinfcpanino/bv000010.thumb.jpg",
"../magasinfcpanino/bv000001.thumb.jpg",
"../magasinfcpanino/bv000021.thumb.jpg",
"../magasinfcpanino/bv000023.thumb.jpg",
"../magasinfcpanino/bv000002.thumb.jpg",
"../topicgm/bv000013.thumb.jpg",
"../topicgm/bv000006.thumb.jpg",
"../topicgm/bv000019.thumb.jpg",
"../topicgm/bv000020.thumb.jpg",
"../topicgm/bv000027.thumb.jpg",
"../topicgm/bv000004.thumb.jpg",
"../topicgm/bv000049.thumb.jpg",
"../topicgm/bv000053.thumb.jpg",
"../topicgm/bv000057.thumb.jpg",
"../topicgm/bv000065.thumb.jpg",
"../topicgm/bv000029.thumb.jpg",
"../topicgm/bv000001.thumb.jpg",
"../topicgm/bv000010.thumb.jpg",
"../topicgm/bv000011.thumb.jpg",
"../topicgm/bv000012.thumb.jpg",
"../topicgm/bv000015.thumb.jpg",
"../topicgm/bv000016.thumb.jpg",
"../topicgm/bv000009.thumb.jpg",
"../topicgm/bv000017.thumb.jpg",
"../topicgm/bv000021.thumb.jpg",
"../topicgm/bv000022.thumb.jpg",
"../levre/bv000033.thumb.jpg",
"../levre/bv000035.thumb.jpg",
"../levre/bv000039.thumb.jpg",
"../levre/bv000037.thumb.jpg",
"../levre/bv000014.thumb.jpg",
"../levre/bv000002.thumb.jpg",
"../levre/bv000004.thumb.jpg",
"../levre/bv000006.thumb.jpg",
"../levre/bv000008.thumb.jpg",
"../levre/bv000010.thumb.jpg",
"../levre/bv000012.thumb.jpg",
"../levre/bv000015.thumb.jpg",
"../levre/bv000017.thumb.jpg",
"../levre/bv000019.thumb.jpg",
"../levre/bv000021.thumb.jpg",
"../levre/bv000023.thumb.jpg",
"../levre/bv000025.thumb.jpg",
"../levre/bv000027.thumb.jpg",
"../levre/bv000029.thumb.jpg",
"../levre/bv000031.thumb.jpg",
"../barre/bv000014.thumb.jpg",
"../barre/bv000001.thumb.jpg",
"../langue/bv000014.thumb.jpg",
"../langue/bv000001.thumb.jpg",
"../langue/bv000002.thumb.jpg",
"../langue/bv000003.thumb.jpg",
"../langue/bv000004.thumb.jpg",
"../langue/bv000010.thumb.jpg",
"../langue/bv000012.thumb.jpg",
"../langue/bv000015.thumb.jpg",
"../langue/bv000017.thumb.jpg",
"../nez/bv000014.thumb.jpg",
"../nez/bv000001.thumb.jpg",
"../nez/bv000002.thumb.jpg",
"../nez/bv000003.thumb.jpg",
"../nez/bv000004.thumb.jpg",
"../nez/bv000005.thumb.jpg",
"../magasin/bv000014.thumb.jpg",
"../magasin/bv000067.thumb.jpg",
"../magasin/bv000053.thumb.jpg",
"../magasin/bv000055.thumb.jpg",
"../magasin/bv000057.thumb.jpg",
"../magasin/bv000059.thumb.jpg",
"../magasin/bv000063.thumb.jpg",
"../magasin/bv000002.thumb.jpg",
"../magasin/bv000005.thumb.jpg",
"../magasin/bv000065.thumb.jpg",
"../magasin/bv000006.thumb.jpg",
"../magasin/bv000001.thumb.jpg",
"../magasin/bv000003.thumb.jpg",
"../magasin/bv000007.thumb.jpg",
"../magasin/bv000008.thumb.jpg",
"../magasin/bv000009.thumb.jpg",
"../magasin2/bv000014.thumb.jpg",
"",
"");
itRefArray = new Array("4-001",
"5-001",
"6-001",
"7-001",
"9-001",
"9-002",
"9-003",
"9-004",
"9-005",
"9-006",
"9-007",
"9-008",
"9-009",
"10-001",
"10-002",
"10-003",
"10-004",
"10-005",
"10-006",
"10-007",
"10-008",
"10-009",
"11-001",
"11-002",
"11-003",
"11-004",
"11-005",
"11-006",
"11-007",
"11-008",
"11-009",
"11-010",
"11-011",
"11-012",
"11-013",
"11-014",
"11-015",
"11-016",
"11-017",
"11-018",
"11-019",
"11-020",
"11-021",
"13-001",
"13-002",
"13-003",
"13-004",
"13-005",
"13-006",
"13-007",
"13-008",
"13-009",
"13-010",
"13-011",
"13-012",
"13-013",
"13-014",
"13-015",
"13-016",
"13-017",
"13-018",
"13-019",
"13-020",
"14-001",
"14-002",
"15-001",
"15-002",
"15-003",
"15-004",
"15-005",
"15-006",
"15-007",
"15-008",
"15-009",
"16-001",
"16-002",
"16-003",
"16-004",
"16-005",
"16-006",
"17-001",
"17-002",
"17-003",
"17-004",
"17-005",
"17-006",
"17-007",
"17-008",
"17-009",
"17-010",
"17-011",
"17-012",
"17-013",
"17-014",
"17-015",
"17-016",
"18-001",
"23-001",
"30-001");
itPricesArray = new Array(0.00,
0.00,
0.00,
0.00,
15.00,
20.00,
15.00,
15.00,
25.00,
25.00,
15.00,
15.00,
15.00,
15.00,
15.00,
15.00,
20.00,
15.00,
25.00,
20.00,
15.00,
25.00,
15.00,
25.00,
15.00,
15.00,
15.00,
20.00,
15.00,
15.00,
15.00,
15.00,
15.00,
15.00,
20.00,
20.00,
20.00,
20.00,
20.00,
20.00,
20.00,
20.00,
20.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
2.00,
2.00,
4.00,
4.00,
4.00,
6.00,
6.00,
6.00,
6.00,
6.00,
6.00,
5.00,
5.00,
5.00,
5.00,
5.00,
5.00,
15.00,
15.00,
10.00,
10.00,
10.00,
10.00,
10.00,
10.00,
10.00,
10.00,
10.00,
10.00,
10.00,
10.00,
10.00,
10.00,
10.00,
0.00,
0.00);
var itemsCount = 99;
var catalogdirs = new Array("/catalogue2/",
"/catalogue/",
"/fcpanino/",
"/graffiteesmakers/",
"/magasin1/",
"/magasinfcpanino/",
"/topicgm/",
"/levre/",
"/barre/",
"/langue/",
"/nez/",
"/magasin/",
"/magasin2/",
"/videospub/",
"/catalogue1/");
var catalognames = new Array("Présentation Amon Distribution",
"Présentation Against Racism",
"Présentation FC Panino",
"Présentation GraffiteesMakers",
"Magasin Against Racism",
"Magasin FC Panino",
"Magasin GMakers 132",
"Lèvre - Labret",
"Barre",
"Langue",
"Nez",
"Nombril",
"Oreilles",
"Vidéos Pubicitaires",
"Vidéos Promo.");

			
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>");
}
