    function showsubmenu() {
        posx=parseInt(document.getElementById('submenu').style.left);
        if (posx < 5) {
            document.getElementById('submenu').style.left = posx+5 + 'px';
            document.getElementById('submenu').style.clip = 'rect(0px 220px 425px ' + (-1)*(posx-5) + 'px)';
        }
        if (posx > -1) {
        	document.getElementById('submenu').style.left=5 + 'px';
            document.getElementById('submenu').style.clip = 'rect(0px 220px 425px 0px)';
            clearInterval(einblenden);
        }
    }
    function hidesubmenu() {
    	posx=parseInt(document.getElementById('submenu').style.left);
        if (posx > -140) {
        	document.getElementById('submenu').style.left = posx-5 + 'px';
            document.getElementById('submenu').style.clip = 'rect(0px 220px 425px ' + (-1)*(posx-10) + 'px)';
        }
        if (posx < -133) {
        	document.getElementById('submenu').style.left = -140 + 'px';
            document.getElementById('submenu').style.clip = 'rect(0px 220px 425px 145px)';
            clearInterval(ausblenden);
        }
    }
    function showmenu() {
            if (window.ausblenden) clearInterval(ausblenden);
	        if (window.einblenden) clearInterval(einblenden);
            einblenden=setInterval("showsubmenu()",10);
    }
    function hidemenu() {
        if (window.einblenden) clearInterval(einblenden);
        if (window.ausblenden) clearInterval(ausblenden);
        ausblenden=setInterval("hidesubmenu()",10);
    }

    function movegalleryleft() {
    	posx=parseInt(document.getElementById('gallery').style.left);
        gallerywidth=parseInt(document.getElementById('gallery').offsetWidth);
        if (posx > 880-gallerywidth) {
			document.getElementById('gallery').style.left = posx-5 + 'px';
        }
        if (posx < 876-gallerywidth) {
        	document.getElementById('gallery').style.left = -875-gallerywidth + 'px';
            clearInterval(galleryleft);
        }
    }
    function movegalleryright() {
    	posx=parseInt(document.getElementById('gallery').style.left);
        if (posx < 0) {
			document.getElementById('gallery').style.left = posx+5 + 'px';
        }
        if (posx > -5) {
        	document.getElementById('gallery').style.left = '0px';
            clearInterval(galleryright);
        }
    }
    function moveleft() {
    	if (window.galleryright) clearInterval(galleryright);
        if (window.galleryleft) clearInterval(galleryleft);
        galleryleft=setInterval("movegalleryleft()",10);
    }
	function moveright() {
    	if (window.galleryright) clearInterval(galleryright);
        if (window.galleryleft) clearInterval(galleryleft);
        galleryright=setInterval("movegalleryright()",10);
    }
    function movestop() {
    	if (window.galleryright) clearInterval(galleryright);
        if (window.galleryleft) clearInterval(galleryleft);
    }
