document.write('<ul><li style="margin-left:330px;">&nbsp;</li><li><a id="neighbourhood" href="neighbourhood.php">NEIGHBOURHOOD</a></li><li><a id="park_place" href="park_place.php">PARK PLACE</a><ul><li><a href="floorplans.php"><span>Floor Plans</span></a></li><li><a href="finishes.php"><span>Finishes</span></a></li><li><a href="amenities.php"><span>Amenities</span></a></li></ul></li><li><a id="developer" href="developer.php">DEVELOPER</a></li><li><a href="http://www.parkplaceatcentral.com/pplace_register.html" target="reg">REGISTRATION</a></li><li><a href="contact.php" id="contact">CONTACT</a></li></ul>');

/*
var file = $.url.attr("file");
var fileNoExt = file.replace(/\.(html|htm)$/, "");
*/

/*
var path = window.location;
var file = path.replace(/^.*\/(\w{2})\.html$/i, "$1");
alert("test"  + file);
*/

_url = getFileName();
_url = _url.replace('.html', '');
_dom = "#" + _url;
$(_dom).addClass("set");


if (_url == 'floorplans' || _url == 'finishes' || _url == 'amenities' ) {
	$("#park_place").addClass("set");
}

//To get url filename
function getFileName() {
	//this gets the full url
	var url = document.location.href;
	//this removes the anchor at the end, if there is one
	url = url.substring(0, (url.indexOf("#") == -1) ? url.length : url.indexOf("#"));
	//this removes the query after the file name, if there is one
	url = url.substring(0, (url.indexOf("?") == -1) ? url.length : url.indexOf("?"));
	//this removes everything before the last slash in the path
	url = url.substring(url.lastIndexOf("/") + 1, url.length);
	//return
	return url;
}








