﻿jQuery.fn.addSeps = function (separator) {
    var eleLength = $(this).length - 1;
    var i = 0;
    $(this).each(function () {
        if (i == eleLength) {

        }
        else {
            $("<span/>").addClass("sep").html(separator).appendTo($(this));
        }
        i++;
    });
}

jQuery.fn.removeSeps = function () {
    var eleLength = $(this).length - 1;
    var i = 0;
    $(this).each(function () {
        if (i == eleLength) {
            
        }
        else {
            $(".sep").remove();
        }
        i++;
    });
}

$(document).ready(function () {
    $(".nav li").addSeps(" : ");
    $(".links li").addSeps(" | ");
    $(".drop li").removeSeps(" : ");
});
