//Function to calculate the position the tab indicator should be in
function getIndicatorPos($el) {
  if($el != null) {
    var curPos = $el.position(),
        curWidth = $el.width();

    return (Math.round((curWidth/2) + curPos.left));
  }
}
