jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return	-c * ((t=t/d-1)*t*t*t - 1) + b;
};

$(function(){
	jQuery.fx.off = false;
	$(".marcoDerecho").mbMaskGallery({
		type:"normal",
		galleryMask:"images/eventos/mask.png",
		galleryColor:"#E3E1D6",
		loader:false,
		changeOnClick:false,
		fadeTime: 1,
		slideTimer: 0
	});
	
	
	$("#marcoIzquierdo").mbMaskGallery({
		type:"normal",
		galleryMask:"images/eventos/mask.png",
		galleryColor:"#E3E1D6",
		loader:false,
		changeOnClick:false
	});
	
	$("#proxEvento-imagen").mbMaskGallery({
		type:"normal",
		galleryMask:"images/eventos/mask.png",
		galleryColor:"#E3E1D6",
		loader:false,
		changeOnClick:false,
		fadeTime: 1,
		slideTimer: 0
	});

});

function get_month(params){
	
	$.ajax({
		type: "POST",
	 	url: "xml/calendario.php",
	 	data: params,
	 	cache: false,
		async: false,
		success: function(html){
			$('#calendario-content').html(html);
		}
	});
	
}

function switchBackground(position, minHeight){
	$('#calendario-content').css({ backgroundPosition: position, height: minHeight });
}


function galOver(element){
	$(".galCurso-globo", $(element)).show();
}

function galOut(element){
	$(".galCurso-globo", $(element)).hide();
}


function getEvent(id) {
	
	$.ajax({
		type: "POST",
		url: "xml/evento.php",
		data: "id="+id,
		cache: false,
		async: false,
		success: function(html){
			$('#derecha').html(html);
			loadMask();
		}
	});
	
}


function loadMask(){
	$("#marcoDerecho").mbMaskGallery({
		type:"normal",
		galleryMask:"images/eventos/mask.png",
		galleryColor:"#E3E1D6",
		loader:false,
		changeOnClick:false
	});
}
