if (window != window.top) top.location.href = location.href + "?tk";

function menu_jump(path) {
	window.location.href = path.options[path.selectedIndex].value;
}

pos = 0;
dir = -1;
go = false;
oid = 'test';
function pxIntTop(id) {
	e = document.getElementById(id);
	if (e.style.top == '') {
		return 0;
	}
	return parseInt(e.style.top);
}
function scrolldown(id) {
	if (id != oid) {
		pos = pxIntTop(id);
	}
	oid = id;
	dir = -1;
	go = true;
	scroll(id);
}
function scrollup(id) {
	if (id != oid) {
		pos = pxIntTop(id);
	}
	oid = id;
	dir = 1;
	go = true;
	scroll(id);
}
function scroll(id) {
	e = document.getElementById(id);
	if (go && (pos > (e.offsetHeight - e.parentNode.offsetHeight) * -1 || dir == 1) && (pos < 0 || dir == -1)) {
		pos += (5 * dir);
		e.style.top = pos + 'px';
		window.setTimeout('scroll("' + id + '");', 50);
	}
}
function stop() {
	go = false;
}

