// IAAM Menu-Sponsor script

// Images in the content area of meetings template should be 
// less than 370px, including rotating images.  Banner ads
// should be no larger than 80px wide!

//------------------------------------------------------------
// rotate images note:
// images for rotation must be in a sub-folder named 'rotate'
// images must be named as follows photo1.jpg, photo2.jpg, etc.. (JPGs only)
// enter the total Number of photos in the sub-folder below
//------------------------------------------------------------

var filecount=6
var trans_width='250px' //slideshow width
var trans_height='188px' //slideshow height
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
var degree=10 //animation speed. Greater is faster.

// ------------------------------------------------------------
// 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/2010_EAC/"
var link = new Array()
link[10] = "Welcome|"+fpath+"http://www.sam.uk.com/2011/index.php"
//link[20] = "Hotel & Travel|"+fpath+"hotel.htm"
//link[40] = "Travel|"+fpath+"travel.htm"
//link[70] = "Program|"+fpath+"3 Stadia London 2010 Brochure.pdf"
//link[75] = "Obtain More Information|"+fpath+"London 2010 Fax Back HR.pdf"
//link[85] = "Sponsors|"+fpath+"sponsors.htm"
//link[90] = "Register|https://www.iaam.org/pathtosecure/register.htm"
link[95] = "back to IAVM Europe|http://www.iaam-europe.eu/"

// ------------------------------------------------------------
// sponsor variable format: var sponsor = new Array(number,number)
// example: var sponsor = new Array(36,42,1)
// sponsor images are stored in a folder under Sponsorships called 'meetings'
// sponsor items are displayed in the order listed, add ',number' as needed
//------------------------------------------------------------

var sponsor = new Array()


//------------------------------------------------------------
//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];
}

