var links_eng = new Array ("index_eng", "agenda", "program_board", "speakers", "patronage", "sponsorship", "registration", "for_authors_of_papers", "lider_its", "faq", "contact", "2010index_eng","2011index_eng", "2009index_eng", "2008index_eng");
var links_eng_text = new Array (">> Home", ">> Agenda", ">> Programme Council", ">> Speakers", ">> Patronage, Partners", ">> Sponsorship", ">> Registration", ">> For authors of papers", ">> LIDER ITS", ">> FAQ", ">> Contact Us", ">> ITSPC 2011", ">> ITSPC 2010", ">> ITSPC 2009", ">> ITSPC 2008");
var links_eng_url = new Array ("index_eng.php", "agenda.php", "program_board.php", "speakers.php", "patronage.php", "sponsorship.php", "registration.php", "for_authors_of_papers.php", "http://www.itspolska.pl/?page=197", "faq.php", "contact.php", "2011index_eng.php", "2010index_eng.php", "2009index_eng.php", "2008index_eng.php");
var links_eng_alt =  new Array ("Home", "Agenda", "Programme Council", "Speakers", "Patronage, Partners", "Sponsorship", "Registration", "For authors of papers", "LIDER ITS", "FAQ", "Contact Us", "ITSPC 2011", "ITSPC 2010", "ITSPC 2009", "ITSPC 2008");
var links_eng_title =  new Array ("ITS Polish Congress 2010 Home Page", "ITS Polish Congress 2010 Agenda", "ITS Polish Congress 2010 Programme Council", "ITS Polish Congress 2010 Speakers", "ITS Polish Congress 2010 Patronage and Partners", "ITS Polish Congress 2010 Sponsorship", "ITS Polish Congress 2010 Registration", "ITS Polish Congress 2010 Materials for Authors of Papers", "LIDER ITS", "ITS Polish Congress 2010 FAQ", "ITS Polish Congres Organisers Contact", "ITS Polish Congres 2011 Edition", "ITS Polish Congres 2010 Edition", "ITS Polish Congres 2009 Edition", "ITS Polish Congres 2008 Edition");

/* Resolve the location */
var loc=String(this.location);
loc=loc.split("/");
loc=loc[loc.length-1].split(".");
loc=loc[loc.length-4];

/* Menu generating function */
function dyn_menu_gen_eng()
{ 
    for(var i=0; i<links_eng.length - 4; i++)
    {
        if(loc==links_eng[i] || loc=='')
        { 
            document.write('<tr><a class="strong" style="padding-top:10px; padding-left:10px" href="' + links_eng_url[i] + '" alt="' + links_eng_alt[i] + '" title="' + links_eng_title[i] +'"><strong>' + links_eng_text[i] + '</strong></a></tr>');
        } 
        else
        {
            document.write('<tr><a class="links" style="padding-top:10px; padding-left:10px" href="' + links_eng_url[i] + '" alt="' + links_eng_alt[i] + '" title="' + links_eng_title[i] +'"><strong>' + links_eng_text[i] + '</strong></a></tr>');
        }
    }
	document.write('<tr><a class="old" style="padding-top:10px; padding-left:10px" href="' + links_eng_url[links_eng.length - 4] + '" alt="' + links_eng_alt[i] + '" title="' + links_eng_title[i] + '"><strong>' + links_eng_text[links_eng.length - 4] + '</strong></a></tr>');
	
	document.write('<tr><a class="old" style="padding-top:10px; padding-left:10px" href="' + links_eng_url[links_eng.length - 3] + '" alt="' + links_eng_alt[i] + '" title="' + links_eng_title[i] + '"><strong>' + links_eng_text[links_eng.length - 3] + '</strong></a></tr>');
	
	document.write('<tr><a class="old" style="padding-top:10px; padding-left:10px" href="' + links_eng_url[links_eng.length - 2] + '" alt="' + links_eng_alt[i] + '" title="' + links_eng_title[i] + '"><strong>' + links_eng_text[links_eng.length - 2] + '</strong></a></tr>');
	
	document.write('<tr><a class="old" style="padding-top:10px; padding-left:10px" href="' + links_eng_url[links_eng.length - 1] + '" alt="' + links_eng_alt[i] + '" title="' + links_eng_title[i] + '"><strong>' + links_eng_text[links_eng.length - 1] + '</strong></a></tr>');
} 

/* Generate the menu */
dyn_menu_gen_eng(); 
