function efectoTrans(capa, efec){
}
function desplazarCapa(capa,efec) {
	efectoTrans(capa,efec);
	return desplazarCapaBase(capa,efec);
}
function desplazarCapaBase(capa,efec) {
	var vCapa=capa.split("_");
	var totCapa=(vCapa.length)-1;
	var nCapa="";
	var nPagi="";
	for(var i=0;i<totCapa;i++) {
		if (nCapa.length > 0) {
			nCapa += "_";
		}
		nCapa += vCapa[i];
		if (i > 0) {
			if (nPagi.length > 0) {
				nPagi += "_";
			}
			nPagi += vCapa[i];
		}
	}
	nPagi +="_"+vCapa[totCapa];
	switch(efec) {
		case 'FADE': {
			$("#"+nCapa).fadeOut("slow",function(){
				$.ajax({
					url: "aux/_" + nPagi + ".html",
					success: function(data){
						$("#"+nCapa).html(data);
						$("#"+nCapa).fadeIn("slow");
						iniciarFancy();
					}
				});
			});
			break;
		}
		case 'SLIDE': {
			$("#"+nCapa).slideUp("slow",function(){
				$.ajax({
					url: "aux/_" + nPagi + ".html",
					success: function(data){
						$("#"+nCapa).html(data);
						$("#"+nCapa).slideDown("slow");
						iniciarFancy();
					}
				});
			});
			break;
		}
		case 'SHOW': {
			$("#"+nCapa).hide("slow",function(){
				$.ajax({
					url: "aux/_" + nPagi + ".html",
					success: function(data){
						$("#"+nCapa).html(data);
						$("#"+nCapa).show("slow");
						iniciarFancy();
					}
				});
			});
			break;
		}
	}
	
	return false;
}
function iniciarFancy() {
	$(".single_image").fancybox();
    $("a#inline").fancybox({"hideOnContentClick":true});
    $("a.group").fancybox({"zoomSpeedIn":300,"zoomSpeedOut":300,"overlayShow":true});
}

