<!-- hide this script from non-JavaScript browsers
var MAX_ENGINES = 30;
var SNARK_STRING = "site+du+jour";
function MakeArray(n) {
for (var i = 1; i <= n; i++) {
this[i] = 0;
}
this.maxlen = n;
this.len = 0;
return this;
}
var engs = MakeArray(MAX_ENGINES);
function find_substring(needle, haystack) {
var i, needlen = needle.length, haylen = haystack.length;
for (i=0; i<=haylen-needlen; i++) {
if (needle == haystack.substring(i,i+needlen))
return i;
}
return false;
}
function Engine(name, opts, home, search) {
var snark = find_substring(SNARK_STRING, search);
this.name = name;
this.opts = opts;
this.home = home;
this.pre_snark = search.substring(0,snark);
this.post_snark= search.substring(snark+SNARK_STRING.length, search.length);
}
function Add(name, opts, home, search) {
engs.len++;
if (engs.len <= engs.maxlen) {
engs[engs.len] = new Engine(name, opts, home, search)
}
else {
alert("Better increase MAX_ENGINES: " + engs.len + ">" + engs.maxlen)
}
}
Add("Site du Jour", "",
"http://www.sitedujour.com/index.html",
"http://www.sitedujour.com/recherche.html?ed_searchCriteria=site+du+jour" );
Add("Releton", "",
"http://www.releton.com",
"http://www.releton.com/?q=site+du+jour" );
Add("Google France", "",
"http://www.google.fr",
"http://www.google.fr/search?hl=fr&q=site+du+jour&meta=" );
Add("Msn France", "",
"http://search.msn.fr",
"http://search.msn.fr/results.aspx?q=site+du+jour&FORM=MSNH&cp=65001" );
Add("Voila", "",
"http://www.voila.fr",
"http://search.ke.voila.fr/S/voila?dt=*&kw=site+du+jour" );
Add("Yahoo France", "",
"http://fr.search.yahoo.com",
"http://fr.search.yahoo.com/search?fr=fp-tab-web-t-1&ei=ISO-8859-1&p=site+du+jour&meta=vc%3D" );

function HandleForm(form) {
var i, oldq=form.query.value, newq="";
for (i=0; i<oldq.length; i++) {  // compress [ ]+ into \+
var thischar = oldq.charAt(i);
if (thischar != ' ')
newq += thischar;
else if (lastchar != ' ')
newq += '+';
lastchar = thischar;
}
var eng = engs[1+form.service.selectedIndex];
location.href = newq ? eng.pre_snark + newq + eng.post_snark : eng.home;
}
function DisplayForm() {
document.writeln('<table BORDER=0 CELLSPACING=0 CELLPADDING=0><tr><td valign=top><FORM OnSubmit="HandleForm(this); return false">');

document.writeln('<INPUT size=27 name="query">');

document.writeln('<SELECT name="service">');
for (i=1; i <= engs.len; i++) {
document.writeln("<OPTION " + engs[i].opts + "> " + engs[i].name);
}
document.writeln('</SELECT></td>');

document.writeln('<td>&nbsp;&nbsp;<input type="image" SRC="../images/ok.gif" WIDTH=46 HEIGHT=26 BORDER=0 USEMAP="#index_10_Map" value="Ok"></td></tr></form></table>');


}
DisplayForm();
// done hiding from old browsers -->
