function playSlideshow() {
    gotoSlide(next, limit);
}
function setTimer() {
    stopSlideshow();
    timer = setInterval('playSlideshow()', interval);
}
function goToSlideSlow(i) {
    gotoSlide(i, limit);
    stopSlideshow();
}
function stopSlideshow() {
    clearInterval(timer);
}
//+++++++++++++++++++++++++++++++++++++++++++++++++
function gotoSlide(gotoslide, limit) {
    for (var i = 0; i < limit; i++) {
        if (gotoslide == i) {
			document.getElementById('menuitem'+i).setAttribute("class","menulinkhover");
			document.getElementById('menuitem' + i).setAttribute("className", "menulinkhover"); //IE
			document.getElementById('menudetailitem' + i).style.display = 'block';
        } else {
			document.getElementById('menuitem'+i).setAttribute("class","menulink");
			document.getElementById('menuitem'+i).setAttribute("className","menulink"); //IE
			document.getElementById('menudetailitem' + i).style.display = 'none';
        }
	}
	current = gotoslide;
	next = ((gotoslide + 1) >= limit) ? 0 : (gotoslide + 1);
}

function slideshow_init() {
    var m = document.getElementById('menu');
    var arrA = m.getElementsByTagName('a');
    for (i = 0; i < limit; i++) {
        var h = arrA[i];
        h.onmouseover = new Function("myTimer = setTimeout('goToSlideSlow(" + i + ");',100);");
        h.onmouseout = new Function("clearTimeout(myTimer);");
    }
}
