code: function  placementFunction(pop, dom_el) {
  		var range = 200;
  		var curPlacement = $(dom_el).attr("data-placement");
  		var scrolled = $(window).scrollTop();
  		var winWidth = $(window).width();
  		var winHeight = $(window).height();
  		var elWidth = $(dom_el).outerWidth();
  		var elHeight = $(dom_el).outerHeight();
  		var elTop = $(dom_el).offset().top;
  		var elLeft = $(dom_el).offset().left;
  		var curPosTop = elTop - scrolled;
  		var curPosLeft = elLeft;
  		var curPosRight = winWidth - curPosLeft - elWidth;
  		var curPosBottom = winHeight - curPosTop - elHeight;
  		if (curPlacement === "left" && curPosLeft <= range) {
  			return 'right';
  		}
  		else if (curPlacement === "right" && curPosRight <= range) {
  			return 'left';
  		}
  		else if (curPlacement === "top" && curPosTop <= range) {
  			return 'bottom';
  		}
  		if (curPlacement === "bottom" && curPosBottom <= range) {
  			return 'top';
  		} else {
  			return curPlacement;
  		}
  	}
docs: ------------------------------------------------------------------------
  Functions
  ------------------------------------------------------------------------