/* AUTHOR: Daan van der Sanden */
/* CREATION DATE: 27-3-99 */


document.write('<div id="slidemenubar" onMouseover="pull()" onMouseout="draw()">')

var sitems=new Array()
var sitemlinks=new Array()
var menu=new Array()
var hint=new Array()

document.write('<table width=100% noborder>')
//extend or shorten this list
sitems[0]="Home"
sitems[1]="Tutorial"
sitems[2]="Help index"
sitems[3]="Maps/Variants"
sitems[4]="Extra"
sitems[5]="Guestbook"
sitems[6]="Links"

//These are the links pertaining to the above text.
sitemlinks[0]="index.html"
sitemlinks[1]="Tutorial.html"
sitemlinks[2]="Template.html"
sitemlinks[3]="Template.html"
sitemlinks[5]="Guestbook.html"
sitemlinks[4]="Template.html"
sitemlinks[6]="Links.html"

menu[0]="M"
menu[1]="E"
menu[2]="N"
menu[3]="U"
menu[4]=" "
menu[5]="!"
menu[6]=" "

hint[0]="Diplomacy Homepage"
hint[1]="Learn everything about Diplomacy"
hint[2]="Help on Diplomacy"
hint[3]="Information about variants including maps"
hint[4]="Here you can find tips and tactics"
hint[5]="Sign my guestbook"
hint[6]="Links to other Diplomacy pages"

for (i=0;i<=sitems.length-1;i++){
document.write('<tr><td width=148><a href='+sitemlinks[i]+' title="'+hint[i]+'">'+sitems[i]+'</a></td><td>'+menu[i]+'</td></tr>')
document.write('<tr><td height=15></td></tr>')}
document.write('</table>')

document.write('</div>')
themenu=document.all.slidemenubar.style
rightboundary=10
leftboundary=-150

function pull(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengine()",50)
}
function draw(){
clearInterval(pullit)
drawit=setInterval("drawengine()",50)
}
function pullengine(){
if (themenu.pixelLeft<rightboundary)
themenu.pixelLeft+=5
else if (window.pullit)
clearInterval(pullit)
}
function drawengine(){
if (themenu.pixelLeft>leftboundary)
themenu.pixelLeft-=5
else if (window.drawit)
clearInterval(drawit)
}

function init(){
themenu.pixelLeft=-150;
}
