/* 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 removeHTMLtag(altname) {
var reg = new RegExp("\n", "g");
altnameHTML = altname;
altnameHTML = altnameHTML.replace(reg, "<br>");
	if (altname.match("<"))
		{
		NOTagString = "";
		for (i=0;i<altname.length;i++)
			{
			if (altname.substr(i, 1) == "<") /* On trouve le début du tag */
				{
				for (j=i;j<altname.length;j++)
					{
					if (altname.substr(j, 1) == ">")
					{
					break;
					}
					i = j+1;
					}
				}
			else
				{
				NOTagString = NOTagString + altname.substr(i, 1);
				}
			}
		}
	else
		{NOTagString = altname;}
altname = NOTagString;
return altname;
}


var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{
			string: navigator.userAgent,
			subString: "Chrome",
			identity: "Chrome"
		},
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari",
			versionSearch: "Version"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			   string: navigator.userAgent,
			   subString: "iPhone",
			   identity: "iPhone/iPod"
	    },
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};
BrowserDetect.init();

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="../../";}
if (dotdot == "color") {mycolor = "FFAA43";} else {mycolor = "8FCA00";}
d.write('<div style="text-align: center">');
d.write('<DIV ID="DIV1" CLASS="DIV_DETAILS">');
d.write('<scr'+'ipt>topheader(\'XXOffrez des fleurs\',"'+ mycolor + '"); </scr'+'ipt>');


d.write('<br><a href="http://ad.zanox.com/ppc/?5853744C10201432&ULP=[[firstcoffeefr_bouquets_13770.html]]">Naturel et raffiné<br>\
<img src="http://images.aquarelle.com/bouquets/blanc-cymbidium-vert-bis-150.jpg" border="0" width="150" height="150" alt="Le chic hivernal du blanc et du vert. \
Succombez au charme incroyable de ce bouquet vert et blanc&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><scr'+'ipt> checknew("07/31/2011"); </scr'+'ipt><br><a href="/fr/boutique/offrez-des-fleurs.htm"><b>Découvrez tous<br>les bouquets</b></a>');
document.write('<hr size="1" noshade>');
d.write('</DIV>');
/* 
document.write('<b><font color="#ff0000">Vite</font> : <a href="/fr/dossier/cadeaux-pour-noel.htm">des idées de cadeaux<br>pour terminer l\'année</a></b>&nbsp;<scr'+'ipt> checknew("12/31/2010"); </scr'+'ipt>');
document.write('<hr size="1" noshade>');
*/
d.write('<scr'+'ipt>topheader(\'XXEspace<br>shopping…\',"'+ mycolor + '"); </scr'+'ipt>');
d.write('<div style="text-align: left">');
/* 
d.write('&#149; <a href="/fr/dossier/vos-courses.htm" title="Vos courses avec Auchandirect, Carrefour, Coursengo, Houra, Monoprix et Telemarket"><b>Courses livrées à domicile</a> <font color="#ff0000">(livraison gratuite)</font></b>');
*/
d.write('<br>&#149; <a href="/fr/book.htm"><b>Livres</b></a><br>&#149; <a href="/fr/boutique/offrez-des-fleurs.htm"><b>Fleurs</b></a><br>&#149; <a href="/fr/boutique/offrez-des-parfums.htm"><b>Parfums</b></a><br>&#149; <a href="/fr/boutique/vacances-ete-hiver.htm"><b>Voyages/Séjours</b></a>');
d.write('<hr width="50%" size="1" noshade>');
d.write('</div>');
if (local == 111)
	{
			d.write('<br><a href="http://ad.zanox.com/ppc/?16648564C1237235683T&ULP=[['+ ASIN + ']]" target="_blank">');
			d.write('<img src="' + image + '" border="0" width="' + hauteur + '" height="' + largeur + '" alt="' + removeHTMLtag(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="/image/shop/fnac/commandez.png" border="0" width="100" height="30" alt="Passer votre commande avec FNAC"></a>');
	}
else
	{
		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('<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="' + removeHTMLtag(altname) + '" hspace="3" vspace="3">');
			}
			else
			{
			d.write('<img src="' + image + '" border="0" width="' + hauteur + '" height="' + largeur + '" alt="' + removeHTMLtag(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('<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)
{
/* fonction utilisée par AfficheRecetteBy2 */

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="";}
if (dotdot == 1){var thispath="../";}
if (dotdot == 2){var thispath="../../";}
if (dotdot == 0){var thispath="/fr/";}

mydefaultimagepath = "/image/recipe/";

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

if (typeof thumbname != "undefined")
{
document.write('<a href=' + '"' + thispath + url +'"' + finishurl + '<img src=' + mydefaultimagepath + thumbname + ' border="0" width="' + w + '" height="' + h + '" alt="' + removeHTMLtag(longtitle) + '" title="' + removeHTMLtag(longtitle) +'"></a>');
}
else
document.write('&nbsp;');
document.write('</td>');
document.write('<td 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="' + removeHTMLtag(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='Recettes de Noël'></a>");
}


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","8FCA00"); </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="013094085099560426388:cie3xoufmrc" />');
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: #8FCA00" />');
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","8FCA00"); </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="013094085099560426388:cie3xoufmrc" />');
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: #8FCA00" />');
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","8FCA00"); </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: #8FCA00"><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>');
*/
document.write('<a href="http://www.cooking2000.com/fr/resultats-recherche.htm?cx=013094085099560426388:cie3xoufmrc&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="' + removeHTMLtag(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="' + removeHTMLtag(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="' + removeHTMLtag(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="' + removeHTMLtag(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…","8FCA00"); </script>');

document.write('<TABLE border="0" width="100%" cellpadding="1" cellspacing="0" bordercolor="#8FCA00">');
/* 
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);
document.write('</TABLE>');
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]);
	}
}

function updatethisevent(topic)
{
thismessage = 'XXVous consultez une ancienne page de Cooking2000.<br>Pour obtenir des informations récentes,<br>visitez la page ci-dessous&nbsp;:<br>'
switch(topic)
	{
	case "cef" : 
	myupdtext = thismessage + '<a href="/fr/event/cuisines-en-fete-2011.htm">Cusines en Fête<br>du 23 au 25 septembre 2011</a>';
	break;
	case "tousaurestaurant" : 
	myupdtext = thismessage + '<a href="/fr/event/tous-au-restaurant-2011.htm">Tous au Restaurant<br>« Votre invité est notre invité »<br>du 19 au 25 septembre 2011</a>';
	break;
	case "FIPC" : 
	myupdtext = thismessage + '<a href="/fr/event/festival-international-photographie-culinaire.htm">3ème Festival International de la Photographie Culinaire<br>du 28 octobre au 13 novembre 2011</a>';
	break;
	case "SDChocolat" : 
	myupdtext = thismessage + '<a href="/fr/event/salon-du-chocolat-2011.htm">17ème Salon du Chocolat<br>du 20 au 24 octobre 2011<br>Paris Expo - Pavillons 5/2 et 5/3<br>Paris, Porte de Versailles</a>';
	break;
	case "Feteasperge" : 
	myupdtext = thismessage + '<a href="/fr/event/fete-asperge-blayais.htm">Fête de l\'Asperge du Blayais<br>à Etauliers (à 45 minutes de Bordeaux)<br>les 30 avril et 1er mai 2011</a>';
	break;
	case "falail" : 
	myupdtext = thismessage + '<a href="/fr/event/foire-ail-locon-2011.htm">Foire à l\'Ail de Locon<br>le dimanche 28 août 2011</a>';
	break;
	case "FIG" : 
	myupdtext = thismessage + '<a href="/fr/event/foire-gastronomique-dijon.htm">Foire Internationale et Gastronomique de Dijon<br>du 1er au 13 novembre 2011</a>';
	break;
	case "GDTAST" : 
	myupdtext = thismessage + '<a href="/fr/event/le-grand-tasting.htm">Le Grand Tasting 2010<br>les 11 et 12 décembre 2010</a>';
	break;
	case "PGIF" : 
	myupdtext = thismessage + '<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 = thismessage + '<a href="/fr/event/percee-vin-jaune-2012.htm"><b>La Percée du Vin Jaune</b><br>à Ruffey sur Seille (Jura)<br>les 4 et 5 février 2012</a>';
	break;
	case "FDVM" : 
	myupdtext = thismessage + '<a href="/fr/wine/paris/fetedesvendangesdemontmartre.htm">Fête des Vendanges à Montmartre<br>«&nbsp;Montmartre fête les Iles&nbsp;»<br>du 5 au 9 octobre 2011</a>';
	break;
	case "saveurs" : 
	myupdtext = thismessage + '<a href="/fr/event/salon-saveurs.htm">Salon Saveurs des Plaisirs Gourmands<br>du 2 au 5 décembre 2011 à l\'Espace Champerret et<br>du 9 au 11 décembre 2011 à Paris-Expo Porte de Versailles</a>';
	break;
	case "macaron" : 
	myupdtext = thismessage + '<a href="/fr/event/jour-du-macaron-20-mars-2011.htm">Jour du Macaron® - 20 mars 2011</a>';
	break;
	case "jndf" : 
	myupdtext = thismessage + '<a href="/fr/event/journee-nationale-du-fromage.htm">Journée National du Fromage- 27 mars 2010</a>';
	break;
	case "aalf" : 
	myupdtext = thismessage + '<a href="/fr/event/aperitif-a-la-francaise.htm">Apéritif à la française<br>dès le 1er juin 2011</a>';
	break;
	case "24hb" : 
	myupdtext = thismessage + '<a href="/fr/event/24heures-artisan-boucher.htm">24h chez mon artisan-boucher - 17 et 18 juin 2011</a>';
	break;
	case "salonagriculture" : 
	myupdtext = thismessage + '<a href="/fr/event/salon-agriculture-2012.htm">Salon de l\'Agriculture 2012<br>du 25 février au 4 mars 2012</a>';
	break;
	case "picardnoel" : /* Attention, cela concerne une page dans "InfoProd" */
	myupdtext = thismessage + '<a href="/fr/infoprod/picard-noel-2010.htm">Réveillons 2010 avec Picard</a>';
	break;
	case "sial" : 
	myupdtext = thismessage + '<a href="/fr/event/sial-2010-paris.htm">SIAL 2010 du 17 au 21 octobre 2010<br>Parc des Expositions de Paris Nord<br>Villepinte - France</a>';
	break;
	case "VAE" : 
	myupdtext = thismessage + '<a href="/fr/event/vae-expo.htm">Salon de la Vente A Emporter (VAE)<br>et de la Restauration Urbaine et Nomade <br>les 11 et 12 octobre 2011</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 <a href="../contact.htm?message=Erreur%20dans%20les%20%E9v%E9nements%20avec%20le%20code%20'+ topic + '">nous signaler cette erreur</a>.';
	}
topheader(myupdtext,'FFFF00');
}

