/* AUTHOR: Cooking2000 (http://www.france.cooking2000.com) */
/* CREATION DATE: 06/01/14 -- YY/MM/DD */
/* REVISION DATE: 06/01/14 -- YY/MM/DD */

function afficherecette(url,dotdot,image,mytitle,longtitle,mydate,thisxmas)
{
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><scr' + 'ipt>checknew("' + mydate + '")</scr' + 'ipt>'+ thisxmas);
}

function afficherecette2(url,dotdot,image,mytitle,longtitle,mydate,thisxmas,thumbname,w,h)
{
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="../";}
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 + "../image/recipe/" + thumbname + ' border="0" width="' + w + '" height="' + h + '" alt="' + mytitle +'"></a>');
}
else
document.write('&nbsp;');

document.write('</td>');
document.write('<td class="tbl" align="left">');
document.write('<br><a href=' + '"' + thispath + url +'"' + finishurl);
document.write(mytitle + '</a><scr' + 'ipt>checknew("' + mydate + '")</scr' + 'ipt>'+ thisxmas);
document.write('</td>');
document.write('</tr>');
document.write('</table>');
}

function checknew(date)
{
var pic = "http://www.cooking2000.com/image/new.gif";
expdate = new Date(date);
curdate = new Date();
if (expdate.getTime() > curdate.getTime())
document.write("<img src=" + pic + ">");
}

function xmas()
{
var pic = "http://www.cooking2000.com/image/x-mas/xmastree.gif";
var curdate = new Date();
var moddate=curdate.getMonth() + 1;
if ((moddate == 11) || (moddate == 12))
document.write("&nbsp;<img src=" + pic + " WIDTH='12' HEIGHT='16' ALIGN='middle' ALT='Recette de Noël'>");
}

function inforecipe(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 recettes avec ce dessin contiennent une ou plusieurs photos.</TD></TR>');
var pic = "' + thispath + '../image/x-mas/xmastree.gif";
var curdate = new Date();
var moddate=curdate.getMonth() + 1;
if ((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="http://www.cooking2000.com/fr/recettes-noel.htm">recette de Noël</a>' + ".</TD></TR>");
document.write('</TABLE>');
}

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="GiveMeTheRecipes"></a>');
document.write('<script>topheader("XXYour menu with our recipes…","cafedeca"); </script>');
/* document.write('<a href="' + thispath + 'recettes-noel.htm"><b>Recettes de Noël</b></a><br>'); */
document.write('<br><a href="' + thispath + 'cocktail.htm">Cocktails</a><br><br>');
document.write('<a href="' + thispath + 'starter.htm">Starters</a><br>');
document.write('<a href="' + thispath + 'sauce.htm">Sauces</a><br>');
document.write('<a href="' + thispath + 'salad.htm">Salads</a><br>');
document.write('<a href="' + thispath + 'fish.htm">Fishes, Seafoods</a><br>');
document.write('<a href="' + thispath + 'meat.htm">Meats</a><br>');
document.write('<a href="' + thispath + 'dish.htm">Main courses</a><br>');
document.write('<a href="' + thispath + 'veget.htm">Vegetables</a><br>');
document.write('<a href="' + thispath + 'cheese.htm">Cheeses</a>&nbsp;<script> checknew("08/31/2007"); </script><br>');
document.write('<a href="' + thispath + 'dessert.htm">Desserts</a><br>');
document.write('<hr noShade size="1">');
}

function c2khelp(dotdot,thisvalue)
{
var thispath="";
if (dotdot == 1){var thispath="../";}
if (dotdot == 2){var thispath="../../";}
document.write('<div align="center">');
document.write('<script>topheader("XXSearch<br>a recipe","cafedeca"); </script>');
document.write('<a href="' + thispath + 'advsearch.htm">Advanced search</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="http://www.cooking2000.com/advsearch.htm">');
document.write('<input type="submit" value="Search">');
document.write('<input type="hidden" name="sp-a" value="000330fe-sp1002ac6c">');
document.write('</form></div>');
}

/* 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/order-amzn.gif" BORDER="0" WIDTH="104" HEIGHT="29" 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/order-amzn.gif" BORDER="0" WIDTH="104" HEIGHT="29" ALT="Passer votre commande avec Amazon.fr"></a></td></tr>');
}
}

