// IAAM Menu script


// ------------------------------------------------------------
// menu variable format: link[any number] = "page title|page url" 
// example: link[10] = "Welcome|http://www.iaam.org/meetings/index.htm"
// menu items are displayed in numeric order, add lines as needed, or remark '//' lines not needed
//------------------------------------------------------------

fpath="http://www.iaam-europe.eu/"
var link = new Array()
//link[10] = "Welcome|"+fpath+"index.htm"
//link[20] = "Hotel|"+fpath+"hotel.htm"
//link[40] = "Travel|"+fpath+"travel.htm"
//link[70] = "Program|"+fpath+"program.htm"
//link[85] = "Sponsors|"+fpath+"sponsors.htm"
link[95] = "back to<br>IAVM-Europe|http://www.iaam-europe.eu/"


//------------------------------------------------------------
//DO NOT CHANGE ANYTHING BELOW
//------------------------------------------------------------

function menu(){
  for (x=0;x<100;x++){
    desc = explode(link[x],0,'|');
    url = explode(link[x],1,'|');
    if (url && desc) {
      document.write('<a href="'+url+'">'+desc+'</a><br><img src="../../Design/1PIXEL.GIF" width="143" height="7" border="0"><img src="../../Design/Gray-Navigation-Bar.gif" width="143" height="1" border="0"><br><img src="../../Design/1PIXEL.GIF" width="143" height="7" border="0"><br>');
    }
  }
}

function explode(string,item,delimiter) {
 tempArray=new Array(1);
 var Count=0;
 var tempString=new String(string);
 while (tempString.indexOf(delimiter)>0) {
  tempArray[Count]=tempString.substr(0,tempString.indexOf(delimiter));
  tempString=tempString.substr(tempString.indexOf(delimiter)+1,tempString.length-tempString.indexOf(delimiter)+1);
  Count=Count+1
 }
 tempArray[Count]=tempString;
 return tempArray[item];
}

