function setActive(id) {
	items=document.getElementsByTagName('tr');
	for (var i=0; i < items.length; i++) {
		if (items[i].id.indexOf('cont')==-1) {
			continue;
		}
		if (items[i].id=='cont' + id) {
			items[i].className = 'show';
		} else {
			items[i].className = 'noshow';
		}
	}
	window.scrollTo(0,0);
}

/*
function setActive(id) {
	items=document.getElementsByTagName('tr');
//	var MYin=-1;
//	var MYout=-1;
	for (var i=0; i < items.length; i++) {
		if (items[i].id.indexOf('cont')==-1) {
			continue;
		}
		if (items[i].id=='cont' + id) {
			MYin = i;
			//items[i].className = 'show';
		} else {
			if (items[i].className == 'show') {
				MYout = i;
			};
	//			Effect.SlideUp(items[i].id);
		}
	}
	Effect.SlideUp(items[MYout].id);
	items[MYout].className = 'noshowII';
	Effect.SlideDown(items[MYin].id);
	items[MYin].className = 'show';
	window.scrollTo(0,0);
}
*/
function _mkLink(title, href, onclick, target) {
	//str='<li><a onclick="javascript:' + onclick + '" href="' + href + '">' + title + '</a></li>';
	str='<a';
	if (href.length != 0 && href.indexOf('#') != 0) {
		str = str + ' href="' + href + '"';
		if (onclick.length != 0) {
			str = str + ' onclick="' + onclick + '"';
		}
	} else {
		if (onclick.length != 0) {
			str = str + ' href="javascript:' + onclick + '"';
		}
	}
	if (target != null)  {
		str = str + 'target="' + target + '"';
	}
	str = str + '>';
	if (title.length != 0) {
		str = str + title;
	}
	str = str + '</a>';
	return(str);
}

function mkLink(title, href, onclick, target) {
	str=_mkLink(title, href, onclick, target)
	document.writeln(str);
}

function menuEntry(title, href, onclick, target) {
	str=_mkLink(title, href, onclick, target)
	str='<li>' + str + '</li>';
	document.writeln(str);
}


//Include more java script
//document.writeln('<script src="js/prototype.js" type="text/javascript"></script>');
//document.writeln('<script src="js/scriptaculous.js" type="text/javascript"></script>');
//Let the style sheets be included
document.write('<link href="style.css" rel="stylesheet" type="text/css">');
