function changeClassByHref(link, className) {
	/* Get all links on the page */
	var links = document.getElementsByTagName("a");
	
	var parts = location.href.split("/");
	link = parts[parts.length - 1];

	/* In Firefox, href returns a relative path without a leading slash,
	 * while IE returns an absolute path. In order to make our search
	 * work, cut off the leading /, if it exists.
	 */
	if (link.charAt(0) == "/") {
		link = link.substring(1, link.length);
	}
	
	
	for (var i = 0; i < links.length; i++) {
		/* The position the link should begin if it's there
		 * (should be at the end of the string */
				 
		if (!links[i].getAttribute('href')) continue;
		var linkShouldBe = links[i].getAttribute('href').length - link.length;

		/* Is link found in the href attribute? */
		var linkIs = links[i].getAttribute('href').indexOf(link);

		if (linkIs >= 0 //Link is found
			&& linkShouldBe == linkIs) { //It Is where it ShouldBe
			
			links[i].parentNode.className = "selected";
		}
	}
	var imageElements = ['webinar1', 'webinar2', 'webinar3'];
	for (itemNum in imageElements) {
		var itemName = imageElements[itemNum];
		if (link == (itemName + '.html')) {
			var imgElement = document.getElementById(itemName);
			if (imgElement) {
				imgElement.src = "images/" + itemName + "_current.gif";
				imgElement.parentNode.onmouseover = function() {};
				imgElement.parentNode.style.cursor = "default";
			}
		}
	}
	
}