// JavaScript (jQuery) 'Selected' Document

function selectedItem() {
	// get url string
	var location = new String(window.location);
	
	$('.nav li a').each(function(){
		if(this.href == location){
			//alert(pageName);
			$(this).addClass('selected');	
		}
	});
}

$(document).ready(function() {
	selectedItem();
});
