function slider(elm) {
	var count = $(elm+" > div").size();
	var height = $(elm).height();
	var itemHeight = height/count;
	var currentItem = -($(elm).css('top').replace("px","")/itemHeight);
	var nextPosition = (currentItem + 1) * itemHeight;
	var nextNav = currentItem + 1;
	if (currentItem >= count-1) {nextNav = 0;}
	if(nextPosition >= height) {nextPosition = 0;}
	$(elm).animate({top: -nextPosition},2000,function(){
		$(".sliderNav ul > li").removeClass('active');
		$("li.l"+nextNav).addClass('active');
	});
}
function sliderNav(elm,to) {
	var count = $(elm+" > div").size();
	var height = $(elm).height();
	var itemHeight = height/count;
	var nextPosition = to * itemHeight;
	$(elm).animate({top: -nextPosition}, 2000,function(){
		$(".sliderNav ul > li").removeClass('active');
		$("li.l"+to).addClass('active');
	});
}
