
$(document).ready(function(){

	  $('.jour').each(function ()
		{

			 var imgtoload=$(this).attr("id");

			 if ($(this).is(".blue")){
			 $(this).html('<img src="images/btn/'+imgtoload+'_blue.png" border="0"/>');
	  		 }
			 else if ($(this).is(".torn")){
			 $(this).html('<img src="images/btn/'+imgtoload+'_torn.png" border="0"/>');
			 }
			 else if ($(this).is(".closed")){
			 $(this).html('<img src="images/btn/'+imgtoload+'_closed.png" border="0"/>');
			 }
			 else {
			 $(this).html('<img src="images/btn/'+imgtoload+'.png" border="0"/>');
			 }
		} );

	  $('#theCalendar li').each(function ()
		{
			 if ($(this).is(".today")){
			 	$(this).append('<object class="lpnIllu" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="66" height="84"><param name="movie" value="images/flash/lapincoeur.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><embed wmode="transparent" allowScriptAccess="always" src="images/flash/lapincoeur.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="66" height="84"></embed></object>');
	  		 }
	  		 else if ($(this).is(".lapinsimple")){
			 	$(this).append('<object class="lpnIllu" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="66" height="84"><param name="movie" value="images/flash/lapinsimple.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><embed wmode="transparent" allowScriptAccess="always" src="images/flash/lapinsimple.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="66" height="84"></embed></object>');
	  		 }

	  	} );

	 $('a.pasjoue').hover(
	  function () {
				var the_id = '#' + $(this).attr('id');
				  var nomimage = $(the_id + ' img').attr("src");
			   nomimage = nomimage.replace('.png','_blue.png');
				$(the_id + ' img').attr({src:nomimage});
	   }
	  ,
	  function () {
				var the_id = '#' + $(this).attr('id');
				var nomimage = $(the_id + ' img').attr("src");
		 		nomimage = nomimage.replace('_blue.png','.png');
				 $(the_id + ' img').attr({src:nomimage});
			  }
	   );
});

