function resellerLoad() {
	//if($(".elencoRivenditori").find('li').length<=20) {
		$(".mknext").hide();
		$(".mkprev").hide();
	//}
	/*
	$(".elencoRivenditori").jCarouselLite({
		vertical: true,
		mouseWheel: true,
		visible: 20,
		circular: false,
		btnNext: ".mknext",
    btnPrev: ".mkprev"
	});
	*/
}

function moveElement(io,n2) {
	n3=n2.split('|');
	n=n3[0];

	$(".elencoRivenditori a").removeClass("resellerEvidenziaLista");
	$(io).addClass("resellerEvidenziaLista");
	obj_pd3=$(".myframe").eq(0).contents().find('#pd3');
	
	/* zoom del frame */
	
	$(".myframe").css("border","#DADADA solid 1px");
	
	mioframe=$(".myframe").eq(0).contents();
	t1=$(mioframe).find("#myAnchor").innerHeight();
	t2=$(mioframe).find("#myAnchor").innerWidth();
	$(mioframe).find("#pd3").height(t1);
	$(mioframe).find("#pd3").width(t2);
	$(mioframe).find("#pd3").css("background","#ffffff url(catalogo/mappe/" + $("#img_in_uso").html() + ".big.png) top left no-repeat");
	
	
	/* SPOSTIAMO LA MAPPA! */
	
	ya=t1 - (t1 * 2) + Math.abs($(mioframe).find("#pd1").innerHeight());
	xa=t2 - (t2 * 2) + Math.abs($(mioframe).find("#pd1").innerWidth());
	
	
	$(obj_pd3).find('.moveElement').hide();
	
	for(c=0;c<n3.length;c++) {
		$(obj_pd3).find("#melem_" + n3[c]).show().css("background-image","url(catalogo/mappe/stella.png)"); //.css("border","#000000").css("background","#ff0000");
	}
	
	hmax=460; //520; //$(obj_pd3).height();
	wmax=520; //460; //$(obj_pd3).width();
	
	obj_frame=$(".myframe").eq(0);
	hvis=$(obj_frame).height();
	wvis=$(obj_frame).width();
	
	posizione_oggetto=$(obj_pd3).find("#melem_" + n).position();
	posizione_oggetto[0]=Math.abs(posizione_oggetto.top);
	posizione_oggetto[1]=Math.abs(posizione_oggetto.left);
	
	ctop=(-1 * posizione_oggetto[0]) + (hvis/2);
	cleft=(-1 * posizione_oggetto[1]) + (wvis / 2);
	
	hmax_min=(-1 * hmax);
	wmax_min=(-1 * wmax);
	
	if(ctop>0) {
		//console.log("ctop: " + ctop + " -> 0");
		ctop=0;
	}
	
	if(cleft>0) {
		//console.log("cleft: " + cleft + " -> 0");
		cleft=0;
	}
	
	if(ctop<hmax_min) {
		//console.log("ctop: " + ctop + " -> " + hmax_min);
		ctop=hmax_min;
	}
	
	if(cleft<wmax_min) {
		//console.log("cleft: " + cleft + " -> " + wmax_min);
		cleft=wmax_min;
	}
	
	//console.log("hello world")
	
	//debug("ctop: " + ctop + " | cleft: " + cleft);
	//console.log("ctop: " + ctop + " | cleft: " + cleft);
	
	$(obj_pd3).css("position","absolute").css("left",cleft).css("top",ctop);
	
	return false;
}
