// Javascript/jQuery Current Page

$(document).ready(function() {
    // Get the current path
    var path = window.location.pathname;
	
	// Pull out the file name from the path
	var fileName = path.substr(path.lastIndexOf("/") + 1);
	
	// If there is
	if(!fileName)
		fileName = 'index.html';
		
	$('.navbar li').each(function(){
		// Store the value of the link
		var href = $(this).find('a').attr('href');
		
		// If the link value equals the current value
		if ( (href == fileName) || (href == '') )
			$(this).addClass('active');
		else
			$(this).removeClass('active');
	});
});

