def getPathClass(browsedpath, currentpath):
    """
    if currentpath == browsedpath return ' currentitem'
    if currentpath is parent of browsedpath return ' currentnode'
    else return ''
    """
    if currentpath == browsedpath:
        return ' currentitem'
    else:
        browsedpathList = browsedpath.split('/')
        currentpathList = currentpath.split('/')
        if len(browsedpathList) > len(currentpathList):
            isCurrentNode = True
            for index, id in enumerate(currentpathList):
                if id != browsedpathList[index]:
                    isCurrentNode = False
                    break
            if isCurrentNode:
                return ' currentnode'
    return ''
