//Variables to set
between=28 //The pixel between the menus and the submenus
mainheight=25 //The height of the mainmenus
subheight=22 //The height of the submenus
pxspeed=13 //The pixel speed of the animation
timspeed=15 //The timer speed of the animation
menuy=150 //The top placement of the menu.
menux=10 //The left placement of the menu
//Images - Play with these
level0_regular="level0_regular.gif"
level0_round="level0_round.gif"
level1_regular="level1_regular.gif"
level1_round="level1_round.gif"
level1_sub="level1_sub.gif"
level1_sub_round="level1_sub_round.gif"
level1_round2="level1_round2.gif"
level2_regular="level2_regular.gif"
level2_round="level2_round.gif"

//Leave this line
function preLoadBackgrounds() {
var d=document;
if(d.images){
if(!d.img) d.img=new Array();
var i,j=d.img.length,arg=preLoadBackgrounds.arguments;
for(i=0; i<arg.length; i++)
if (arg[i].indexOf("#")!=0){
d.img[j]=new Image; 
d.img[j++].src=arg[i];
}
}
}



//There are 3 different types of menus you can make
//top = Main menus
//sub = Sub menus
//sub2 = SubSub menus

//You control the look of the menus in the stylesheet

//makeMenu('TYPE','TEXT','LINK','TARGET', 'END (THE LAST MENU)')

//Menu 0 
makeMenu('top','Nieuws')
	makeMenu('sub','Top nieuws','neuekanulenl.htm','main')
	makeMenu('sub','Nieuws archief','archiefnl.htm','main')

//Menu 1
makeMenu('top','Félicienne')
	makeMenu('sub','Verleden','verleden.html','main')
	makeMenu('sub','Galerie','gallerynl1.htm','main')		
	makeMenu('sub','Multimedia','multimedianl.htm','main')

 

//Menu 2    
makeMenu('top','Luchtpijp')
  makeMenu('sub','Canule','canulenl.htm','main')
  makeMenu('sub','Tracheostoma','trach.htm','main')
  makeMenu('sub','Spreken','spreken.htm','main')
//Menu 3
makeMenu('top','Slokdarm')
  makeMenu('sub','Vernauwing','vernauwing.htm','main')
  makeMenu('sub','Oprekken','bougierennl.htm','main')
  makeMenu('sub','Eten & Drinken','eten.htm','main')
  
//Menu 4  
makeMenu('top','Links','links.htm','main')
  
//Menu 5
makeMenu('top','Familie')
  makeMenu('sub','Karsten')
  makeMenu('sub','Anne-Marie')
  makeMenu('sub','Noella')
    
//Menu 6
makeMenu('top','Gastenboek','http://members.gbserver.de/?u=iorr&id=1','_top')
  
//Menu 7  
makeMenu('top','Email','mailto:iorr@home.nl','End')

//Keep this menu just like it is in order to trick last menu into closing up
//you can replace the # sign with any text and it will be displayed at bottom of browser
makeMenu('top','seperator','#',"",1)
  

//Starting the menu
onload=SlideMenuInit;

if(bw.ns4 || bw.ns6)    
rescroll();  
else    document.body.onscroll=new Function("rescroll()");

function rescroll()    
{    //find how far the page has scrolled    
pgScroll = (bw.ns4 || bw.ns6) ? window.pageYOffset : document.body.scrollTop;    
//choose ONE of the following menu effects:    
//this line keeps the menu at the very top of the window when the page is scrolled down    
//newTop = Math.max(pgScroll,menuy);    
//this line keeps the menu at the the same amount down from the top all the time    
//newTop = pgScroll + menuy;    
//this line keeps the menu half the top margin size down from the top once you scroll    
newTop = (pgScroll < menuy/2) ? menuy : pgScroll+menuy/2;    
//get the current top of the menu    
menuDivStyle = bw.ns4 ? document.divSlideCont : document.getElementById('divSlideCont').style;    
menuDivTop = parseInt(menuDivStyle.top);    
moveAmt = newTop - menuDivTop;    
if( Math.abs(moveAmt) <= 5 )        
{        
//if we are within 5 pixels, just move to the final spot and stop        
menuDivStyle.top = newTop;        
//for Netscape compatibility: force it to come back because it doesn't support onscroll()        
if(bw.ns4 || bw.ns6)            
setTimeout("rescroll()", 500)        
}    
else        
{        
//move it closer and come back soon to move it again        
menuDivStyle.top = menuDivTop + moveAmt/4;        
setTimeout("rescroll()", 100);        
}    
}


