function show(n) {
	if (document.images["m"+n]){
		if (lastOver!=0) hide(lastOver)
		if (imo[n-1].complete) document.images["m"+n].src = imo[n-1].src
		lastOver = n
	}
}
function hide(n) {
	document.images["m"+n].src = im[n-1].src
	lastOver=0
}
var preloadFlag = false, lastOver = 0
var im = new Array(), imo = new Array()
if (document.images) {
	var aimgs = new Array("contacts")
	for( var i=0; i<aimgs.length; i++) {
		im[i] = new Image()
		im[i].src = "http://testing.robonews.info/skins/robonews/images/" + aimgs[i] + "01.gif"
		imo[i] = new Image()
		imo[i].src = "http://testing.robonews.info/skins/robonews/images/" + aimgs[i] + "02.gif"
	}
    preloadFlag = true
}
// Set the starting position of the categories of your menu
var menu1top=5
var menu2top=10
//var menu3top=15
var menuleft=153

// This number configures the length and the speed of the menu-movement. 
// Play aroun with it until you are satisfied.
var pace=14

// Don't change the variables below.
var step
var direction
var pause=30

var thismenu
var vorzeichen=1
var vorzeimenu1=1
var vorzeimenu2=1
//var vorzeimenu3=1
var menuismoving="no"


function inite() {
	if (document.layers) {
        document.menu1.left=menuleft
        document.menu2.left=menuleft
//        document.menu3.left=menuleft 
        document.menu1.top=menu1top
        document.menu2.top=menu2top
//        document.menu3.top=menu3top
	}	
	if (document.all) {
        document.all.menu1.style.posLeft=menuleft
        document.all.menu2.style.posLeft=menuleft
//        document.all.menu3.style.posLeft=menuleft
        document.all.menu1.style.posTop=menu1top
        document.all.menu2.style.posTop=menu2top
//        document.all.menu3.style.posTop=menu3top
	}
}

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()
	    movemenu()
    }
}

function checkdirection() {
	if (document.layers) {    
        if (thismenu==document.menu1){vorzeimenu1=vorzeimenu1*-1;vorzeichen=vorzeimenu1}
        if (thismenu==document.menu2){vorzeimenu2=vorzeimenu2*-1;vorzeichen=vorzeimenu2}
//        if (thismenu==document.menu3){vorzeimenu3=vorzeimenu3*-1;vorzeichen=vorzeimenu3}     
	}	
	if (document.all) {
        if (thismenu==document.all.menu1.style){vorzeimenu1=vorzeimenu1*-1;vorzeichen=vorzeimenu1}
        if (thismenu==document.all.menu2.style){vorzeimenu2=vorzeimenu2*-1;vorzeichen=vorzeimenu2}
//        if (thismenu==document.all.menu3.style){vorzeimenu3=vorzeimenu3*-1;vorzeichen=vorzeimenu3}   
	}
    menuismoving="yes"
}

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--
            var movetimer=setTimeout("movemenu()",pause)  
	    }
        else {
            menuismoving="no"
            clearTimeout(movetimer)
        }
    }
}



function mouse_over(elem) {
document.all[elem].style.textDecoration="underline";
} 
function mouse_out(elem) {
document.all[elem].style.textDecoration="none";
} 