$(document).ready(function () {
$('.nav-tabs > li a[title]').tooltip();
var numberOfRoundTabs = $('.round-tab').length
if (numberOfRoundTabs > 0)
{
var x = 100 / numberOfRoundTabs;
$(".fg-round-tab .nav-tabs > li").css({"width": x+'%'});
if (numberOfRoundTabs < 9)
$(".connecting-line").css({"width": '85%'});
else
$(".connecting-line").css({"width": '90%'});
if (numberOfRoundTabs === 5){
$(".fg-round-tab li:after").css({"left": '46%'});
$(".fg-round-tab li.active:after").css({"left": '46%'});
}
else if (numberOfRoundTabs === 6){
$(".fg-round-tab li:after").css({"left": '45%'});
$(".fg-round-tab li.active:after").css({"left": '45%'});
}
else if (numberOfRoundTabs === 15){
$(".fg-round-tab li:after").css({"left": '39%'});
$(".fg-round-tab li.active:after").css({"left": '39%'});
}
}
});