/* AUTHOR: Cooking2000 (http://www.cooking2000.com/fr/) */
/* CREATION DATE: 05/04/16  -- YY/MM/DD */
/* REVISION DATE: 08/11/03 --  YY/MM/DD */

/* Fonction retirant les accents pour les requêtes moteurs */
function unaccent(str) {
    var s = str.replace(/[ÀÁÂÄàáâä]/g, "a");
    s = s.replace(/[ÈÉÊËèéêë]/g, "e"); 
    s = s.replace(/[ÌÍÎÏìíîï]/g, "i"); 
    s = s.replace(/[ÒÓÔÖòóôö]/g, "o");
    s = s.replace(/[ÙÚÛÜùúûü]/g, "u"); 
    s = s.replace(/[ç]/g, "c");
    s = s.replace(/[Ññ]/g, "n");
    return s;      
}

function thisbook(dotdot,ASIN,local,image,hauteur,largeur,altname,promolivre,promourl,promotexte)
{
var thispath="";
var d=document;
if (dotdot == 1){var thispath="../";}
if (dotdot == 2){var thispath="../../";}
d.write('<div style="text-align: center">');
d.write('<scr'+'ipt>topheader(\'XXVos enfants<br>vont adorer&hellip;\',"cafede"); </scr'+'ipt>');
d.write('<br><a href="http://ad.zanox.com/ppc/?5853744C10201432&ULP=[[firstcoffeefr_bouquets_7039.html]]">Le Goûter d\'Enfants<br>avec Aquarelle<br>\
<img src="http://images.aquarelle.com/bouquets/new_gouter_150.jpg" border="0" width="150" height="150" alt="Tous les bonbons de notre enfance.\
A tous les gourmands, voici notre bouquet préféré&hellip;Photo : © Aquarelle"></a>\
<img src="http://ad.zanox.com/ppv/?5853744C10201432" align="bottom" width="1" height="1" border="0" hspace="1">');
d.write('<br><a href="/fr/boutique/offrez-des-fleurs-aquarelle.htm"><b>Découvrez tous<br>les bouquets</b></a>');
document.write('<hr size="1" noshade>');
d.write('<scr'+'ipt>topheader(\'XXNotre sélection…\',"cafede"); </scr'+'ipt>');
d.write('de <a href="/fr/book.htm"><b>livres</b></a>, de <a href="/fr/video.htm"><b>films</b></a>,');
d.write('<br>de <a href="/fr/boutique/offrez-des-fleurs.htm"><b>fleuristes</b></a>, de <a href="/fr/boutique/vacances-ete.htm"><b>voyagistes</b></a>');
if (local == 1 || local == 11)
	{
/*	d.write('<br><a href="http://ad.zanox.com/ppc/?9009245C1217783111T&ULP=[[http://www.amazon.fr/exec/obidos/' + ASIN + '/zanoxaffili06-21]]" target="_blank">'); */
	d.write('<br><img src="http://www.assoc-amazon.fr/e/ir?t=cooking2000-21&l=as2&o=8&a=' + ASIN + '" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><a href="http://www.amazon.fr/gp/product/' + ASIN + '?ie=UTF8&tag=cooking2000-21&linkCode=as2&camp=1642&creative=19458&creativeASIN=' + ASIN + '" target="_blank">');

	if (local == 1)
	{
	d.write('<img src="../' + thispath + image + '" border="0" width="' + hauteur + '" height="' + largeur + '" alt="' + altname + '" hspace="3" vspace="3">');
	}
	else
	{
	d.write('<img src="' + image + '" border="0" width="' + hauteur + '" height="' + largeur + '" alt="' + altname + '" hspace="3" vspace="3">');
	}
	if (altname.match("\n"))
	{
		var reg = new RegExp("\n", "g");
		altnameHTML = altname;
		altnameHTML = altnameHTML.replace(reg, "<br>");
		d.write('<br>' + altnameHTML);
	}
	d.write('<br><img src="' + thispath + '../image/amazon/buy-from-tan.gif" border="0" width="90" height="28" alt="Passer votre commande avec Amazon.fr"></a>');
	if (promolivre == 1)
		{
		d.write('<br><a href="' + thispath + 'book/'+ promourl + '"><font color="#ff0000">Consultez notre article sur<br>' + promotexte + '</font></a>');
		}
	}
else
	{
		d.write('<br><iframe src="http://rcm-fr.amazon.fr/e/cm?t=cooking2000-21&o=8&p=8&l=as1&asins='+ASIN+'&nou=1&fc1=000000&IS2=1&lt1=_blank&lc1=0000ff&bc1=000000&bg1=ffffff&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>');
	}
d.write('</div>');
}

function afficherecette(url,dotdot,image,mytitle,longtitle,mydate,thisxmas)
{
var myurltotest = location.href;
mynewurltotest = myurltotest.toUpperCase();
var d=document;
if (mynewurltotest.match("DEBUG"))
{
/* Used to create NO Javascript list */
document.write('<br>');
var thispath="";
if (mydate == null){mydate="01/01/2000";}
if (longtitle == ""){var finishurl="&gt;";}else{var finishurl= '&quot;  title=&quot;' + longtitle + '&quot;&gt;';}
if (dotdot == 1){var thispath="../";}
var thisimage='&lt;IMG SRC=&quot;' + thispath + '../image/camera.gif&quot; BORDER=&quot;0&quot; WIDTH=&quot;16&quot; HEIGHT=&quot;14&quot; ALT=&quot;Cette recette contient une ou plusieurs photos&quot;&gt;&amp;nbsp;';
document.write('&lt;br&gt;&amp;#149; &lt;a href=' + '"' + thispath + url +'"' + finishurl);
if (image == 1){document.write(thisimage);}
document.write(mytitle + '&lt;/a&gt;');
}
else
{
var thispath="";
if (mydate == null){mydate="01/01/2000";}
if (typeof thisxmas != "undefined")
{
if (thisxmas == 1){thisxmas='<scr' + 'ipt>xmas(); </scr' + 'ipt>';}
}
else
{thisxmas='';}
if (longtitle == ""){var finishurl=">";}else{var finishurl= '"  title="' + longtitle + '">';}
if (dotdot == 1){var thispath="../";}
var thisimage='<IMG SRC="' + thispath + '../image/camera.gif" BORDER="0" WIDTH="16" HEIGHT="14" ALT="Cette recette contient une ou plusieurs photos">&nbsp;';
document.write('<br>&#149; <a href=' + '"' + thispath + url +'"' + finishurl);
if (image == 1){document.write(thisimage);}
document.write(mytitle + '</a>&nbsp;<scr' + 'ipt>checknew("' + mydate + '")</scr' + 'ipt>'+ thisxmas);
}
}

function afficherecette2(url,dotdot,image,mytitle,longtitle,mydate,thisxmas,thumbname,w,h)
{
var thispath="";
var mydefaultimagepath = "../image/recipe/";
if (mydate == null){mydate="01/01/2000";}
if (typeof thisxmas != "undefined")
{
if (thisxmas == 1){thisxmas='<scr' + 'ipt>xmas(); </scr' + 'ipt>';}
}
else
{thisxmas='';}
if (longtitle == ""){var finishurl=">";var longtitle=mytitle;}else{var finishurl= '"  title="' + longtitle + '">';}

if (dotdot == ""){var thispath=""; mydefaultimagepath = "/image/recipe/";}
if (dotdot == 1){var thispath="../";}
if (dotdot == 2){var thispath="../../";}

document.write('<table border="0" cellpadding="3" cellspacing="2" width="100%">');
document.write('<tr valign="top">');
document.write('<td align="center" width="90">');

if (typeof thumbname != "undefined")
{
document.write('<a href=' + '"' + thispath + url +'"' + finishurl + '<img src=' + thispath + mydefaultimagepath + thumbname + ' border="0" width="' + w + '" height="' + h + '" alt="' + longtitle +'"></a>');
}
else
document.write('&nbsp;');
document.write('</td>');
document.write('<td class="tbl" align="left" valign="middle">');
document.write('<a href=' + '"' + thispath + url +'"' + finishurl);
document.write(mytitle + '</a><br><scr' + 'ipt>checknew("' + mydate + '")</scr' + 'ipt>'+ thisxmas);
document.write('</td>');
document.write('</tr>');
document.write('</table>');
}


function afficherecette29(url,dotdot,image,mytitle,longtitle,mydate,thisxmas,thumbname,w,h)
{
var thispath="";
if (mydate == null){mydate="01/01/2000";}
thisxmas='';

if (longtitle == ""){var finishurl="&gt;";var longtitle=mytitle;}else{var finishurl= '"  title="' + longtitle + '"&gt;';}
var thispath="http://www.cooking2000.com/";
document.write('&lt;table border="0" cellpadding="3" cellspacing="2" width="100%"&gt;');
document.write('&lt;tr valign="top"&gt;');
document.write('&lt;td align="center" width="90"&gt;');

if (typeof thumbname != "undefined")
{
document.write('&lt;a href=' + '"' + thispath + 'fr/' + url +'"' + finishurl + '&lt;img src=' + '"' + thispath + "image/recipe/" + thumbname + '"' + ' border="0" width="' + w + '" height="' + h + '" alt="' + longtitle +'"&gt;&lt;/a&gt;');
}
else
document.write('&nbsp;');
document.write('&lt;/td&gt;');
document.write('&lt;td class="tbl" align="left" valign="middle"&gt;');
document.write('&lt;a href=' + '"' + thispath + 'fr/' + url +'"' + finishurl);
document.write(mytitle + '&lt;/a&gt;&lt;br&gt;');
document.write('&lt;/td&gt;');
document.write('&lt;/tr&gt;');
document.write('&lt;/table&gt;');
}

function checknew(date)
{
var pic = "/image/nouveau.gif";
expdate = new Date(date);
expdate.setDate(expdate.getDate() + 1);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write("<img src=" + pic + " border='0' width='47' height='11' alt='Nouveau ou informations mises à jour'>");
}

function cdactu(date,mymessage)
{
if (date.substr(0, 2) == "XX")
{/*date = date.substr(2); */
date = "01/01/2020";
document.write("<br>Plus d'événements pour le moment");}
expdate = new Date(date);
expdate.setDate(expdate.getDate() + 1);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write(mymessage);
}

function gammeselect(nomselect)
{
var thispath="";
var selection = document.getElementById(nomselect).selectedIndex ;
if( selection == 0 || selection == 1) return; 
/* WARNING: path need to be hardcoded... */
if( selection == 2 ) location = "/fr/dossier.htm"
if( selection == 3 ) location = "/fr/infoprod.htm"
if( selection == 4 ) location = "/fr/sitemap.htm"
if( selection == 5 ) location = "/fr/sante.htm"
if( selection == 6 ) location = "/fr/expo.htm"
}

function xmas()
{
var pic = "/image/x-mas/xmastree.gif";
var curdate = new Date();
var moddate=curdate.getMonth() + 1;
if ((moddate == 10) || (moddate == 11) || (moddate == 12))
document.write("&nbsp;<a href=\"/fr/recettes-noel.htm\"><img src=" + pic + " border='0' width='12' height='16' align='middle' alt='Recette de Noël'></a>");
}

/* La fonction ci-dessous est à supprimer le 01 mars 2010 */
function inforecipe2007(dotdot)
{
var thispath="";
if (dotdot == 1){var thispath="../";}
document.write('<TABLE width="95%" BORDER="0"><COL WIDTH="50" ALIGN="center" VALIGN="middle">');
document.write('<TR><TD><IMG SRC="' + thispath + '../image/nouveau.gif" BORDER="0" WIDTH="47" HEIGHT="11" ALT="Recette nouvelle ou mise à jour"></TD>');
document.write('<TD style="font: x-small Verdana">Les recettes nouvelles ou mises-à-jour apparaissent avec cette image.</TD>');
document.write('</TR><TR>');
document.write('<TD><IMG SRC="' + thispath + '../image/camera.gif" BORDER="0" WIDTH="16" HEIGHT="14" ALT="Cette recette contient une ou plusieurs photos"></TD>');
document.write('<TD style="font: x-small Verdana">Les crédit-photos sont indiqués dans les recettes.</TD></TR>');
var pic = "' + thispath + '../image/x-mas/xmastree.gif";
var curdate = new Date();
var moddate=curdate.getMonth() + 1;
if ((moddate == 10) || (moddate == 11) || (moddate == 12))
document.write("<TR><TD><IMG SRC='" + thispath + "../image/x-mas/xmastree.gif' BORDER='0' WIDTH='12' HEIGHT='16' ALT='Recette de Noël' ALIGN='middle'></TD><TD style='font: x-small Verdana'>Il s"+ "'"+ "agit d"+ "'"+ "une " + '<a href="/fr/recettes-noel.htm"><b>recette de Noël</b></a>' + ".</TD></TR>");
document.write('</TABLE>');
document.write('<br>');
}


function recipemenu(dotdot)
{
var thispath="";
if (dotdot == 1){var thispath="../";}
if (dotdot == 2){var thispath="../../";}
document.write('<hr noShade size="1">');
document.write('<a NAME="LesRecettesVite"></a>');
document.write('<script>topheader("XXVotre menu avec nos recettes…","cafede"); </script>');
document.write('<a href="/fr/dossier/vos-courses.htm">Vos courses à domicile</a><br>');
/* document.write('<a href="/fr/recettes-noel.htm"><b>Recettes de fin d\'année</b></a>&nbsp;<scr'+'ipt> checknew("12/31/2008"); </scr'+'ipt><br>'); */
document.write('<br><a href="' + thispath + 'cocktail.htm">Cocktails</a>&nbsp;/&nbsp;<a href="' + thispath + 'wine/wine.htm">Vins</a><br><br>');
document.write('<a href="' + thispath + 'starter.htm">Entrées</a> (<a href="' + thispath + 'starter.htm#coldstarter">froides</a>&nbsp;/&nbsp;<a href="' + thispath + 'starter.htm#warmstarter">chaudes</a>)<BR>');
document.write('<a href="' + thispath + 'recettes/recette-tarte.htm">Tartes / tartelettes</a><br>');
document.write('<a href="' + thispath + 'recettes/tartare-recette.htm"><b>Tartares</b></a><br>');
document.write('<a href="' + thispath + 'egg.htm">Oeufs</a>&nbsp;/&nbsp;<a href="' + thispath + 'farce.htm">Farces</a>&nbsp;/&nbsp;<a href="' + thispath + 'sauce.htm">Sauces</a><BR>');
document.write('<a href="' + thispath + 'soupe.htm">Soupes</a><br>');
document.write('<a href="' + thispath + 'salad.htm"><b>Salades</b></a><br>');
document.write('<a href="' + thispath + 'dossier/brochette-recette.htm"><b>Brochettes</b></a><br>');
document.write('<a href="' + thispath + 'fish.htm">Poissons, Fruits de mer</a><br>');
document.write('<a href="' + thispath + 'meat.htm">Viandes</a><br>');
document.write('<a href="' + thispath + 'poultry.htm">Volailles</a><br>');
document.write('<a href="' + thispath + 'dish.htm">Plat principal</a><br>');
/* document.write('<a href="/fr/dossier/tripier.htm"><b>Produits Tripiers</b></a>&nbsp;<scr'+'ipt> checknew("11/30/2008"); </scr'+'ipt><br>'); */
document.write('<a href="' + thispath + 'veget.htm">Légumes</a><br>');
/* document.write('<a href="' + thispath + 'recettes/recette-champignon.htm"><b>Champignons</b></a>'); */
document.write('<a href="' + thispath + 'fromages.htm">Fromages</a>&nbsp;et&nbsp;<a href="' + thispath + 'dessert.htm">Desserts</a><br>');
/* document.write('<a href="/fr/recettes/recette-galette-des-rois.htm"><b>Galettes des Rois</b></a><br>'); */
document.write('<a href="' + thispath + 'dossier/glace-recette.htm"><b>Glaces</b></a>&nbsp;<scr'+'ipt> checknew("07/31/2009"); </scr'+'ipt><br><br>');
document.write('<a href="' + thispath + 'world.htm">Cuisines du monde</a><br><br>');
document.write('<a href="' + thispath + 'gastronomie/gastronomie.htm">Gastronomie</a><br>');
document.write('<hr width="50%" size="1" noshade>');
document.write('<a href="' + thispath + 'cuisine.htm"><b>Equipez votre cuisine</b></a>&nbsp;<scr'+'ipt> checknew("01/31/2009"); </scr'+'ipt><br>');
document.write('<a href="http://cooking2000.spreadshirt.net/fr/FR/Shop" target="_blank">Cadeau : le T-Shirt Cooking2000</a><br>');
document.write('<hr width="50%" size="1" noshade>');
document.write('<div align="center">');
document.write('<select name="extramenu" size="7" id="extramenu" style="font-family: Arial, Helvetica, sans-serif; font-size:11px; " onChange="gammeselect(\'extramenu\');">');
document.write('<option STYLE="background-color: #CAFEDE" value="#">Aussi sur Cooking2000…</option>');
document.write('<option value="#">------------------------</option>');
document.write('<option value="1">Nos Dossiers</option>');
document.write('<option value="2">Info Produits</option>');
document.write('<option value="3">Plan du Site</option>');
document.write('<option value="4">Santé et Alimentation</option>');
document.write('<option value="5">Sorties gourmandes</option>');
document.write('</select>');
document.write('</div>');
document.write('<hr noShade size="1">');
}


function c2khelp(dotdot,thisvalue)
{
var thispath="";
if (dotdot == 1){var thispath="../";}
if (dotdot == 2){var thispath="../../";}
document.write('<scr'+'ipt>topheader("XXRechercher<br>une recette","cafede"); </scr'+'ipt>');
document.write('<form action="/fr/resultats-recherche.htm" id="cse-search-box">');
document.write('<div><div style="text-align: center">');
document.write('<input type="hidden" name="cx" value="partner-pub-9058967679184061:1bdb84-v9b3" />');
document.write('<input type="hidden" name="cof" value="FORID:9" />');
document.write('<input type="hidden" name="ie" value="ISO-8859-1" />');
document.write('<input type="text" name="q" size="20"  value="' + thisvalue + '" style="background-color: #CAFEDE" />');
document.write('<br><input type="submit" name="sa" value="Rechercher" />');
document.write('</div></div>');
document.write('</form>');
document.write('<scr'+'ipt type="text/javascript" src="http://www.google.fr/coop/cse/brand?form=cse-search-box&amp;lang=fr"></scr'+'ipt>');
}

function c2khelp2009(thisvalue)
{
document.write('<scr'+'ipt>topheader("XXEn savoir plus, recherchez ce que vous voulez","cafede"); </scr'+'ipt>');
document.write('<form action="/fr/resultats-recherche.htm" id="cse-search-box">');
document.write('<div><div style="text-align: center">');
document.write('<input type="hidden" name="cx" value="partner-pub-9058967679184061:1bdb84-v9b3" />');
document.write('<input type="hidden" name="cof" value="FORID:9" />');
document.write('<input type="hidden" name="ie" value="ISO-8859-1" />');
document.write('<input type="text" name="q" size="45" value="' + thisvalue + '" style="background-color: #CAFEDE" />');
document.write('<input type="submit" name="sa" value="Rechercher" />');
document.write('</div></div>');
document.write('</form>');
document.write('<scr'+'ipt type="text/javascript" src="http://www.google.fr/coop/cse/brand?form=cse-search-box&amp;lang=fr"></scr'+'ipt>');
}

function c2khelpold(dotdot,thisvalue)
{
var thispath="";
if (dotdot == 1){var thispath="../";}
if (dotdot == 2){var thispath="../../";}
document.write('<div align="center">');
document.write('<script>topheader("XXRechercher<br>une recette","cafede"); </script>');
document.write('<a href="' + thispath + 'advsearch.htm">Recherche avancée</a>');
document.write('<form method="get" action="http://search.atomz.com/search/">');
document.write('<input type="text" size="20" name="sp-q" value="' + thisvalue + '" style="background-color: #CAFEDE"><BR>');
document.write('<input type="hidden" name="sp-not-found-page" value="/fr/advsearch.htm">');
document.write('<input type=submit value="Rechercher">');
document.write('<input type=hidden name="sp-a" value="000330fe-sp00000000">');
document.write('</form></div>');
}

/* Recherche pour les ingrédients */
function MySearch(ingredient)
{
var ingredient_title = ingredient;
queryingredient = unaccent(ingredient);
ingredient = queryingredient.toLowerCase();
document.write('<a href="http://www.cooking2000.com/fr/resultats-recherche.htm?cx=013094085099560426388:y3g9vl6hrqm&cof=FORID:11&ie=UTF-8&q='+ escape(ingredient) +'&sa=Rechercher">'+ ingredient_title + '</a>');
}

/* Affichage des livres */
function drawthisstuff(url,imagename,imgwidth,imgheight,altname,mydate)
{
var reg = new RegExp("\n", "g");
altnameHTML = altname;
altnameHTML = altnameHTML.replace(reg, "<br>");
if (url.match("amazon.fr") == null)
{
document.write('<tr class="tbl"><td width="30%" align="center"><a href="' + url + '"><img src="' + imagename + '" border="0" width="' + imgwidth + '" height="' + imgheight + '" alt="' + altname + '" hspace="3" vspace="3"></a></td><td width="50%"><a href="' + url + '">' + altnameHTML + '</a>&nbsp;<script> checknew("' + mydate + '"); </script></td><td width="20%" align="center"><a href="' + url + '" target="_blank"><IMG SRC="../../image/amazon/buy-from-tan.gif" border="0" width="90" height="28" alt="Passer votre commande avec Amazon.fr"></a></td></tr>');
}
else
{
document.write('<tr class="tbl"><td width="30%" align="center"><a href="' + url + '" target="_blank"><img src="' + imagename + '" border="0" width="' + imgwidth + '" height="' + imgheight + '" alt="' + altname + '" hspace="3" vspace="3"></a></td><td width="50%"><a href="' + url + '" target="_blank">' + altnameHTML + '</a>&nbsp;<script> checknew("' + mydate + '"); </script></td><td width="20%" align="center"><a href="' + url + '" target="_blank"><IMG SRC="../../image/amazon/buy-from-tan.gif" border="0" width="90" height="28" alt="Passer votre commande avec Amazon.fr"></a></td></tr>');
}
}

/* Affichage des livres - Nouveau */
function drawthisstuff2(url,isbn,imagename,imgwidth,imgheight,altname,mydate)
{
var reg = new RegExp("\n", "g");
altnameHTML = altname;
altnameHTML = altnameHTML.replace(reg, "<br>");
if (url.match("amazon.fr") == null)
{/* Utilisé pour les événements gastro */
if (url.substr(0, 2) == "XX")
{url = url.substr(2);

expdate = new Date(mydate);
expdate.setDate(expdate.getDate() + 1);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
{
	/* Utilisé pour les événements gastro */
	document.write('<tr class="tbl"><td width="30%" align="center"><a href="' + url + '"><img src="' + imagename + '" border="0" width="' + imgwidth + '" height="' + imgheight + '" alt="' + altname + '" hspace="3" vspace="3"></a></td><td width="70%"><a href="' + url + '">' + altnameHTML + '</a><br>&nbsp;<script> checknew("' + mydate + '"); </script></td></tr>');
}
else
{
	/* Utilisé pour les événements gastro TERMINES */
	var myurltotest = location.href;
	mynewurltotest = myurltotest.toUpperCase();
	if (mynewurltotest.match("EXPO-OLD.HTM"))
		document.write('<tr class="tbl"><td width="30%" align="center"><a href="' + url + '"><img src="' + imagename + '" border="0" width="' + imgwidth + '" height="' + imgheight + '" alt="' + altname + '" hspace="3" vspace="3"></a></td><td width="70%"><a href="' + url + '">' + altnameHTML + '</a></td></tr>');
}
}
	else
	{
		document.write('<tr class="tbl"><td width="30%" align="center"><a href="' + url + '"><img src="' + imagename + '" border="0" width="' + imgwidth + '" height="' + imgheight + '" alt="' + altname + '" hspace="3" vspace="3"></a></td><td width="50%"><a href="' + url + '">' + altnameHTML + '</a>&nbsp;<script> checknew("' + mydate + '"); </script></td><td width="20%" align="center"><iframe src="http://rcm-fr.amazon.fr/e/cm?t=cooking2000-21&o=8&p=6&l=as1&asins=' + isbn+ '&nou=1&fc1=000000&lt1=_blank&lc1=0000ff&bc1=000000&bg1=ffffff&noImg=1&f=ifr" style="width:120px;height:150px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td></tr>');
	}
}
else
	{
		document.write('<tr class="tbl"><td width="30%" align="center"><a href="' + url + '" target="_blank"><img src="' + imagename + '" border="0" width="' + imgwidth + '" height="' + imgheight + '" alt="' + altname + '" hspace="3" vspace="3"></a></td><td width="50%"><a href="' + url + '" target="_blank">' + altnameHTML + '</a>&nbsp;<script> checknew("' + mydate + '"); </script></td><td width="20%" align="center"><iframe src="http://rcm-fr.amazon.fr/e/cm?t=cooking2000-21&o=8&p=6&l=as1&asins=' + isbn+ '&nou=1&fc1=000000&lt1=_blank&lc1=0000ff&bc1=000000&bg1=ffffff&noImg=1&f=ifr" style="width:120px;height:150px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td></tr>');
	}
}

function highlightrow(trname)
{
document.all.item(trname).bgColor = '#ccffcc';
}

function unhighlightrow(trname)
{
document.all.item(trname).bgColor = '';
}

function recipemenu2(dotdot)
{
var thispath="";
if (dotdot == 1){var thispath="../";}
if (dotdot == 2){var thispath="../../";}
document.write('<hr noShade size="1">');
document.write('<a NAME="LesRecettesVite"></a>');
document.write('<script>topheader("XXVotre menu avec nos recettes…","cafede"); </script>');

document.write('<TABLE border="0" width="100%" cellpadding="1" cellspacing="0" bordercolor="#cafede">');
/* 
document.write('<TR class="tblm" NAME="entrees" ID="entrees" onMouseOver="return highlightrow(\'entrees\');" onMouseOut="return unhighlightrow(\'entrees\');">'); 
document.write('<TD><a href="../starter.htm">Entrées</a></TD></TR>');
*/

url = '<a href="/fr/dossier/vos-courses.htm"><b>Vos courses à domicile</b></a>&nbsp;<script> checknew("01/31/2007"); </script>';
fillthismenu("courses",url);
// url = '<a href="' + thispath + 'recettes-noel.htm"><b>Recettes de Noël</b></a>&nbsp;<script> checknew("12/31/2006"); </script>';
//fillthismenu("noel",url);
url = '&nbsp;';
fillthismenu("thisspace",url);
url ='<a href="' + thispath + 'cocktail.htm">Cocktails</a>&nbsp;/&nbsp;<a href="' + thispath + 'wine/wine.htm">Vins</a>';
fillthismenu("cockvins",url);
url = '&nbsp;';
fillthismenu("thisspace2",url);
url = '<a href="' + thispath + 'starter.htm">Entrées</a> (<a href="' + thispath + 'starter.htm#coldstarter">froides</a>&nbsp;/&nbsp;<a href="' + thispath + 'starter.htm#warmstarter">chaudes</a>)';
fillthismenu("entrees",url);
url = '<a href="' + thispath + 'egg.htm">Oeufs</a>&nbsp;/&nbsp;<a href="' + thispath + 'farce.htm">Farces</a>&nbsp;/&nbsp;<a href="' + thispath + 'sauce.htm">Sauces</a>';
fillthismenu("oeufs",url);
url = '<a href="' + thispath + 'soupe.htm">Soupes</a>';
fillthismenu("soupes",url);
url = '<a href="' + thispath + 'salad.htm">Salades</a>';
fillthismenu("salades",url);
url = '<a href="' + thispath + 'fish.htm">Poissons, Fruits de mer</a>';
fillthismenu("poissons",url);
url = '<a href="' + thispath + 'meat.htm">Viandes</a>';
fillthismenu("viandes",url);
url = '<a href="' + thispath + 'poultry.htm">Volailles</a>';
fillthismenu("volailles",url);
url = '<a href="' + thispath + 'dish.htm">Plat principal</a>';
fillthismenu("plats",url);
url = '<a href="' + thispath + 'veget.htm">Légumes</a>';
fillthismenu("legumes",url);
url = '<a href="' + thispath + 'fromages.htm">Fromages</a>&nbsp;et&nbsp;<a href="' + thispath + 'dessert.htm">Desserts</a><br>';
fillthismenu("fromdessert",url);
url = '&nbsp;';
fillthismenu("thisspace4",url);
url = '<a href="/fr/dossier/cafe.htm">Café</a>&nbsp;<script> checknew("07/31/2007"); </script>';
fillthismenu("cafe",url);
url = '&nbsp;';
fillthismenu("thisspace5",url);
url = '<a href="' + thispath + 'world.htm">Cuisines du monde</a>';
fillthismenu("cuisinemonde",url);
url = '<a href="' + thispath + 'gastronomie/gastronomie.htm">Gastronomie</a>&nbsp;<script> checknew("12/31/2006"); </script>';
fillthismenu("gastronomie",url);
url = '&nbsp;';
fillthismenu("thisspace6",url);
url = '<a href="' + thispath + 'cuisine.htm"><b>Equipez votre cuisine</b></a>';
fillthismenu("cuisine",url);
url = '<a href="/fr/boutique/offrez-des-fleurs.htm">Offrez des fleurs</a>';
fillthismenu("fleurs",url);
document.write('</TABLE>');
document.write('<hr width="50%" size="1" noshade>');
document.write('<div align="center">');
document.write('<select name="extramenu" size="1" id="extramenu" style="font-family: Arial, Helvetica, sans-serif; font-size:11px; " onChange="gammeselect(\'extramenu\');">');
document.write('<option STYLE="background-color: #CAFEDE" value="#">Aussi sur Cooking2000…</option>');
// document.write('<option value="#"></option>');
document.write('<option value="1">Nos Dossiers</option>');
document.write('<option value="2">Info Produits</option>');
document.write('<option value="3">Plan du Site</option>');
document.write('<option value="4">Santé et Alimentation</option>');
document.write('<option value="5">Sorties gourmandes</option>');
document.write('</select>');
document.write('</div>');
document.write('<hr noShade size="1">');
}

function fillthismenu(myID,url)
{
document.write('<TR class="tbl" NAME="'+ myID +'" ID="' + myID +'" onMouseOver="return highlightrow(\'' + myID + '\');" onMouseOut="return unhighlightrow(\'' + myID + '\');">'); 
document.write('<TD>' + url + '</TD></TR>');
}


function controle_choix() 
{
	if (document.formulaire.cases.checked == true) 
		{detailsVisibility('none');}
	else
		{detailsVisibility('block');}
}

function detailsVisibility(option)
{
//chargez tous les éléments DIV dans un tableau
divs = document.getElementsByTagName('DIV');
//parcourez en boucle les éléments DIV les uns après les autres
for (i=0;i<divs.length;i++)
{
	if (divs[i].className == "DIV_DETAILS")
	{
		//définissez la propriété d'affichage à "block" ou "none"
		//en fonction du choix effectué au niveau de la case d'option
		divs[i].style.display = option;
	}
}
}

function translaterecipe(r7name)
{
MyText = "Aidez-nous à traduire la page " + r7name ;
document.write("<a href=\"../traduire-recette.htm?"+ escape(MyText)+"\">Aidez-nous à traduire la page " + r7name + " en anglais.</a>");
}

//
// 2008/01 - Fonction utilisé pour afficher 2 recettes sur une ligne
//
function AfficheRecetteBy2(data1,data2)
{
if (((data1.length==10) && (data2.length==10))&&(data1[3]!=data2[3]))
	{
	document.write('<br><table summary="" border="0">');
	document.write('<tr class="tbl">');
	document.write('<td width="250">');
	afficherecette2(data1[0],data1[1],data1[2],data1[3],data1[4],data1[5],data1[6],data1[7],data1[8],data1[9]);
	document.write('</td>');
	document.write('<td width="250">');
		if (data2[0] == "dummy")
			{
			document.write('&nbsp;');
			}
		else
			{
			afficherecette2(data2[0],data2[1],data2[2],data2[3],data2[4],data2[5],data2[6],data2[7],data2[8],data2[9]);
			}
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
	}
else
	{
	document.write('<b>Erreur affichage du titre de la recette pour</b> <br>'+ data1[3]+'<br>ou<br>'+ data2[3]);
	}
}

function AfficheRecetteBy29(data1,data2)
{
if (((data1.length==10) && (data2.length==10))&&(data1[3]!=data2[3]))
	{
	document.write('&lt;br&gt;&lt;table summary="" border="0"&gt;');
	document.write('&lt;tr class="tbl"&gt;');
	document.write('&lt;td width="250"&gt;');
	afficherecette29(data1[0],data1[1],data1[2],data1[3],data1[4],data1[5],data1[6],data1[7],data1[8],data1[9]);
	document.write('&lt;/td&gt;');
	document.write('&lt;td width="250"&gt;');
		if (data2[0] == "dummy")
			{
			document.write('&nbsp;');
			}
		else
			{
			afficherecette29(data2[0],data2[1],data2[2],data2[3],data2[4],data2[5],data2[6],data2[7],data2[8],data2[9]);
			}
	document.write('&lt;/td&gt;');
	document.write('&lt;/tr&gt;');
	document.write('&lt;/table&gt;');
	}
else
	{
	document.write('&lt;b&gt;Erreur affichage du titre de la recette pour&lt;/b&gt; &lt;br&gt;'+ data1[3]+'&lt;br&gt;ou&lt;br&gt;'+ data2[3]);
	}
}



//
// 2008/04 - Fonction utilisé pour afficher toujours le dernier Salon Saveurs
// La fonction salonsaveurupdate doit être supprimée.

function salonsaveurupdate()
{
myupdtext = 'XX<img src="../../image/graphical/bulb.gif" border="0" width="20" height="20" alt="Cooking2000 vous informe">&nbsp;Consultez notre page&nbsp;<img src="../../image/graphical/bulb.gif" border="0" width="20" height="20" alt="Cooking2000 vous informe"><br><a href="/fr/event/salon-saveurs.htm">Salon Saveurs des Plaisirs Gourmands<br>Edition d\'Hiver<br>du 5 au 8 décembre 2008</a>';
topheader(myupdtext,'cafede');
}


function perceevinjauneupdate()
{
myupdtext = 'XXConsultez notre page<br><a href="/fr/event/percee-vin-jaune-2010.htm">La Percée du Vin Jaune<br>à Poligny Jura)<br>les 6 et 7 février 2010</a>';
topheader(myupdtext,'cafede');
}

function updatethisevent(topic)
{
switch(topic)
	{
	case "SDChocolat" : 
	myupdtext = 'XXConsultez notre page<br><a href="/fr/event/salon-du-chocolat-2009.htm">15ème Salon du Chocolat<br>du 14 au 18 octobre 2009<br>Paris Expo - Pavillons 5/2 et 5/3<br>Paris, Porte de Versailles</a>';
	break;
	case "FIG" : 
	myupdtext = 'XXConsultez notre page<br><a href="/fr/event/foire-gastronomique-dijon.htm">Foire Internationale et Gastronomique de Dijon<br>du 30 octobre au 11 novembre 2009</a>';
	break;
	case "GDTAST" : 
	myupdtext = 'XXConsultez notre page<br><a href="/fr/event/le-grand-tasting.htm">Le Grand Tasting 2009<br>les 4 et 5 décembre 2009</a>';
	break;
	case "PGIF" : 
	myupdtext = 'XXConsultez notre page<br><a href="/fr/event/patrimoine-gourmand-idf.htm">Fête du Patrimoine Gourmand d\'Ile de France<br>Les Saveurs d\'Ile de France à Paris<br>les 19 et 20 septembre 2009</a>';
	break;
	case "vinjaune" : 
	myupdtext = 'XXConsultez notre page<br><a href="/fr/event/percee-vin-jaune-2010.htm">La Percée du Vin Jaune<br>à Poligny (Jura)<br>les 6 et 7 février 2010</a>';
	break;
	case "FDVM" : 
	myupdtext = 'XXConsultez notre page<br><a href="/fr/wine/paris/fetedesvendangesdemontmartre.htm">Fête des Vendanges à Montmartre<br>Cuvée "Les trois baudets"<br>du 07 au 11 octobre 2009</a>';
	break;
	case "VAE" : 
	myupdtext = 'XX<a href="/fr/event/vae-expo.htm">Consultez notre page à jour :<br>Salon de la Vente A Emporter (VAE)<br>et de la Restauration Urbaine et Nomade <br>23 & 24 septembre 2009</a>';
	break;
	case "saveurs" : 
	myupdtext = 'XX<a href="/fr/event/salon-saveurs.htm">Consultez notre page à jour :<br>Salon Saveurs des Plaisirs Gourmands<br>Edition Automne/Hiver<br>du 4 au 7 décembre 2009</a>';
	break;
	case "macaron" : 
	myupdtext = 'XX<a href="/fr/event/jour-du-macaron-20-mars-09.htm">Consultez notre page à jour :<br>Jour du Macaron® - 20 mars 2009</a>';
	break;
	case "jndf" : 
	myupdtext = 'XX<a href="/fr/event/journee-nationale-du-fromage.htm">Consultez notre page à jour :<br>Journée National du Fromage- 27 mars 2010</a>';
	break;
	default :
	myupdtext = 'XXVous êtes sur une page qui n\'est pas à jour,<br>mais nous ne pouvons pas vous donner la raison.<br>Merci de nous contacter pour nous signaler cette erreur.';
	}
topheader(myupdtext,'yellow');
}
