/* AUTHOR: Cooking2000 (http://www.france.cooking2000.com) */
/* CREATION DATE: 04/11/28 -- AA/MM/JJ */
/* REVISION DATE: 08/02/19 -- AA/MM/JJ */

var myurltotest = location.href;
mynewurltotest = myurltotest.toUpperCase();

if (mynewurltotest.match("PRINTEMPS")||(mynewurltotest.match("PRINT") == null))
{
var d=document;

if (mynewurltotest.match("MEAT")||mynewurltotest.match("DOSSIER")||mynewurltotest.match("DESSERT")||mynewurltotest.match("DISH/")||mynewurltotest.match("SANTE")||mynewurltotest.match("SOUPE")||mynewurltotest.match("VEGET")) /* en MAJUSCULES... */
{
	if (mynewurltotest.match("MEAT"))
	{
	google_ad_client = "pub-9058967679184061";/* 728x90, viandes 12/08/09 - cet ensemble est différent (ad_slot) des autres */
	google_ad_slot = "4203567220";google_ad_width = 728;google_ad_height = 90;
	d.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	}
	if (mynewurltotest.match("DOSSIER"))
	{
	google_ad_client = "pub-9058967679184061";/* 728x90, viandes 12/08/09 - cet ensemble est différent (ad_slot) des autres */
	google_ad_slot = "4203567220";google_ad_width = 728;google_ad_height = 90;
	d.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	}
	if (mynewurltotest.match("DESSERT"))
	{
	google_ad_client = "pub-9058967679184061";/* 728x90, dessert 15/08/09 - cet ensemble est différent (ad_slot) des autres */
	google_ad_slot = "9024553297";google_ad_width = 728;google_ad_height = 90;
	d.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	}
	if (mynewurltotest.match("DISH/"))
	{
	d.write('<a href="http://ad.zanox.com/ppc/?13076514C1177501612T"><img src="http://ad.zanox.com/ppv/?13076514C1177501612" align="bottom" width="728" height="90" border="0" hspace="1" alt="728x90  actu"></a>');
	}
	if (mynewurltotest.match("SANTE"))
	{
	google_ad_client = "pub-9058967679184061";google_ad_slot = "0104381632";google_ad_width = 728;google_ad_height = 90;
	d.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	}
	if (mynewurltotest.match("SOUPE"))
	{
	google_ad_client = "pub-9058967679184061";google_ad_slot = "0104381632";google_ad_width = 728;google_ad_height = 90;
	d.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	}
	if (mynewurltotest.match("VEGET"))
	{
	google_ad_client = "pub-9058967679184061";google_ad_slot = "0104381632";google_ad_width = 728;google_ad_height = 90;
	d.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	}

}
else
{
var how_many_ads = 100;
var now = new Date()
var sec = now.getSeconds()
var ad = (sec % how_many_ads)*1.66;
ad +=1;
if (ad>=30)
{/* 30 à 100 */
today = new Date();
weekday= today.getDay()
/*alert(weekday);
/* Samedi=6
if (weekday == 5 || weekday == 3) */
	if (ad>=90) /* Remettre à 70 */
	{/* 90 à 100 */
	google_ad_client = "pub-9058967679184061";google_ad_slot = "0104381632";google_ad_width = 728;google_ad_height = 90;
	d.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	/* 
	d.write('<!-- AutoPromo --><a href="/fr/recette-du-jour.htm"><img src="/image/c2k-ad/autopromo/autopromo.jpg" border="0" width="728" height="90" alt="Recevez gratuitement la recette du jour..."></a><!-- AutoPromo -->');
	*/
	}
	else
	{/* 30 à 89 */
	google_ad_client = "pub-9058967679184061";google_ad_slot = "0104381632";google_ad_width = 728;google_ad_height = 90;
	d.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	}
}
else
{/* 0 à 29 */
	google_ad_client = "pub-9058967679184061";google_ad_slot = "0104381632";google_ad_width = 728;google_ad_height = 90;
	d.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
}
} /* (utilisé pour condition FREE/FORTUNECITY) */

} /* utilisé si impression */

