/* AUTHOR: Cooking2000 (http://www.cooking2000.com) */
/* CREATION DATE: 09/09/03 -- YY/MM/DD */
/* REVISION DATE: 09/09/03 -- YY/MM/DD */

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

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

if (mynewurltotest.match("MEAT")||mynewurltotest.match("DESSERT")||mynewurltotest.match("SALAD/")||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 = "2119696595";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 = "2119696595";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("SALAD/"))
	{
	google_ad_client = "pub-9058967679184061";google_ad_slot = "2119696595";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("SANTE"))
	{
	google_ad_client = "pub-9058967679184061";google_ad_slot = "2119696595";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 = "2119696595";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 = "2119696595";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 */
	{/* 70 à 100 */
	google_ad_client = "pub-9058967679184061";google_ad_slot = "2119696595";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="http://www.cooking2000.com/fr/recette-du-jour.htm"><img src="http://www.cooking2000.com/image/c2k-ad/autopromo/autopromo.jpg" border="0" width="728" height="90" alt="Recevez gratuitement la recette du jour..."></a><!-- AutoPromo -->');
	*/
	}
	else
	{/* 30 à 69 */
	
	google_ad_client = "pub-9058967679184061";google_ad_slot = "2119696595";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 = "2119696595";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 */


