$(document).ready(function() {

//Specify 31 URLs to display inside iframe, one for each day of the current month
//If this month has less than 31 days, the last few URLs won't be used.
var daycontent=new Array()
daycontent[1]="../featured-product-of-the-day/product-1.php"
daycontent[2]="../featured-product-of-the-day/product-2.php"
daycontent[3]="../featured-product-of-the-day/product-3.php"
daycontent[4]="../featured-product-of-the-day/product-4.php"
daycontent[5]="../featured-product-of-the-day/product-5.php"
daycontent[6]="../featured-product-of-the-day/product-6.php"
daycontent[7]="../featured-product-of-the-day/product-1.php"
daycontent[8]="../featured-product-of-the-day/product-2.php"
daycontent[9]="../featured-product-of-the-day/product-3.php"
daycontent[10]="../featured-product-of-the-day/product-4.php"
daycontent[11]="../featured-product-of-the-day/product-5.php"
daycontent[12]="../featured-product-of-the-day/product-6.php"
daycontent[13]="../featured-product-of-the-day/product-1.php"
daycontent[14]="../featured-product-of-the-day/product-2.php"
daycontent[15]="../featured-product-of-the-day/product-3.php"
daycontent[16]="../featured-product-of-the-day/product-4.php"
daycontent[17]="../featured-product-of-the-day/product-5.php"
daycontent[18]="../featured-product-of-the-day/product-6.php"
daycontent[19]="../featured-product-of-the-day/product-1.php"
daycontent[20]="../featured-product-of-the-day/product-2.php"
daycontent[21]="../featured-product-of-the-day/product-3.php"
daycontent[22]="../featured-product-of-the-day/product-4.php"
daycontent[23]="../featured-product-of-the-day/product-5.php"
daycontent[24]="../featured-product-of-the-day/product-6.php"
daycontent[25]="../featured-product-of-the-day/product-1.php"
daycontent[26]="../featured-product-of-the-day/product-2.php"
daycontent[27]="../featured-product-of-the-day/product-3.php"
daycontent[28]="../featured-product-of-the-day/product-2.php"
daycontent[29]="../featured-product-of-the-day/product-4.php"
daycontent[30]="../featured-product-of-the-day/product-6.php"
daycontent[31]="../featured-product-of-the-day/product-2.php"

//No need to edit after here
var mydate=new Date()
var mytoday=mydate.getDate()

// pour avoir 1 produit fixe
/*	$("#productOfTheDay").load("../featured-product-of-the-day/product-13.php", function(){
		$('.btn-readmore').find('a').each(function () {
			var $img = $('.hover', this).css("opacity", "0");
			var $img = $('.hover', this).css("display", "block");
			$(this).hover(function () {
				$img.stop().fadeTo(150, 1);
			}, function () {
				$img.stop().fadeTo(150, 0);
			});
		});
	});
*/
 //decommenter pour la rotation a chaque jour
	$("#pod").load(""+daycontent[mytoday]+"", function(){
		$('.btnMore').find('a').each(function () {
			var $img = $('.hover', this).css("opacity", "0");
			var $img = $('.hover', this).css("display", "block");
			$(this).hover(function () {
				$img.stop().fadeTo(150, 1);
			}, function () {
				$img.stop().fadeTo(150, 0);
			});
		});
	});
	
	/*$("#boxFPAlone").load(""+daycontent[mytoday]+"", function(){
		$('.btnMore').find('a').each(function () {
			var $img = $('.hover', this).css("opacity", "0");
			var $img = $('.hover', this).css("display", "block");
			$(this).hover(function () {
				$img.stop().fadeTo(150, 1);
			}, function () {
				$img.stop().fadeTo(150, 0);
			});
		});
	});*/

});