function SDMenu(id) {
	if (!document.getElementById || !document.getElementsByTagName)
		return false;
	this.menu = document.getElementById(id);
	this.markCurrent = true;
}
SDMenu.prototype.init = function() {
	
	if (this.markCurrent) {
		var links = this.menu.getElementsByTagName("a");
		for (var i = 0; i < links.length; i++)			
			if (links[i].href == document.location.href) {
				if(this.menu.id == "links")
				{
					links[i].className = "current1";
				}
				else
				{
					links[i].className = "current";
				}
				break;
			}
	}
	
};