﻿$(document).ready(function() {
	// get a URI object
	var uri = new Object();
	getURL(uri);

	// make sure that we've got a value for url.file; if not, default to index.html
	var fileName = uri.file;
	if (fileName == "") fileName = "index.html";

	// get a reference to the element that contains the anchor tag
	$("#main_menu ul li a[href*='" + fileName + "']").addClass("selected");
	$("#sub_menu ul li a[href*='" + fileName + "']").addClass("selected");
});

