$(document).ready(function() {
	$('#menuPrimary ul.menu_v li.top_level').each(function(index, value) {
		//console.log('this: ' + $(this) + ' index: ' + index + ' value: ' + value.textContent);
		//console.log(value);
		$(this).addClass('top_level' + (index+1));
	});
	$('li.top_level').removeAttr('style');
	
	$('#menuPrimary ul.submenu li:last-child').addClass('lastItem');
	
	$('#menuPrimary').css('display', 'block');
	
	//Adds functionality for the backToTop element to scroll the window to the top of the frame.
	$('#backToTop').click(function() {
		$('html, body').animate({
			scrollTop: 0
		}, 500);
		//console.log("Click Fired");
	});
});
