var menu1top=300; //how far the top of image is from top of page
var menu1left=25; //width of image and space to be hidden
var pace=0;  //how far and fast it moves
var step;
var direction;
var pause=5;
var thismenu;
var vorzeichen=1;
var vorzeimenu1=-1;
var menuismoving="no";
function inite() {
if (document.layers) {
document.menu1.left=menu1left;
document.menu1.top=menu1top;}
if (document.all) {
document.all.menu1.style.posLeft=menu1left;
document.all.menu1.style.posTop=menu1top;};}
function getmenuname(clickedmenu) {
if (menuismoving=="no") {
if (document.layers) {
thismenu=eval("document."+clickedmenu);}
if (document.all) {
thismenu=eval("document.all."+clickedmenu+".style");}
step=pace;
checkdirection();
if (clickedmenu=='menu1'){
movemenu();}
}}
function checkdirection() {
if (document.layers) { 
if (thismenu==document.menu1){vorzeimenu1=vorzeimenu1*-1;vorzeichen=vorzeimenu1;};}
if (document.all) {
if (thismenu==document.all.menu1.style){vorzeimenu1=vorzeimenu1*-1;vorzeichen=vorzeimenu1;};}
menuismoving="yes";}
// left
function movemenu() {
if (document.layers) {
if (step>=0) {
thismenu.left+=step*vorzeichen;
step--;
var movetimer=setTimeout("movemenu()",pause);}
else {
menuismoving="no";
clearTimeout(movetimer);}} 
if (document.all) {
if (step>=0) {
thismenu.posLeft+=step*vorzeichen;
step--;
movetimer=setTimeout("movemenu()",pause);}
else {menuismoving="no";
clearTimeout(movetimer);}}}