/**
 * Process used in contact smoothbox
 * Allow Newsletter field management and calender showing
 */
window.addEvent('domready',
	function()
	{
		if(parent.$("email_news") && parent.$("email_news").value != "Votre Email" && parent.$("email_news").value != "" )
		{
			$("email").value = parent.$("email_news").value;
			$("NOui").checked = true;
			iCpt = 0;
			
			while($("demande").options[iCpt])
			{
				if($("demande").options[iCpt].value == "2")
					$("demande").options[iCpt].selected = true;
				iCpt++;
			}
		}
		
		//calendar
		new Calendar(
			{
				calendarEveDuInput: 'd/m/Y',
				calendarEveAuInput: 'd/m/Y',
				offset : 1
			},
			{
				pad : 0,
				direction:1
			}
		);
	}
);
