$(function(){
	$("#calendar").datepicker({
		dayNamesShort: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sam'],
		monthNamesShort: ['Ian','Feb','Mar','Apr','Mai','Iun','Iul','Aug','Sep','Oct','Nov','Dec']
	});
});

function doSave()
{
	var el = $('.galleria_wrapper img').attr('src');
	var pw = window.open(el, "_new");
//	document.location.href = el;
}

function doPrint()
{
	var el = $('.galleria_wrapper img').attr('src');
	var pw = window.open(el, "_new");
	pw.print();
}

function doEmail()
{
	$('#sendEmail').toggle();
}
function doSendEmail()
{
	var email = $('#recipeEmail').val();
	var el = $('.galleria_wrapper img').attr('src');
	$.ajax({
		type: "POST",
		url: "http://www.cris-tim.ro/email-recipe",
		data: "email="+email+"&image="+el,
		success: function(msg){
			$('#sendEmail').toggle();
		}
	});
}
