﻿/*window.onload=montre;*/
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=8; i++) {
		if (document.getElementById('smenu'+i))
		{
			document.getElementById('smenu'+i).style.display='none';
		   
		}
	}
	if (d) 
	{
		d.style.display='block';
		
	}
/*	if (id=="smenu1")
	{
	    keepId("top_home");
	}
	*/
	/*checkmenu();*/
	
}

function checkmenu(){
   var c = document.aspnetForm.ctl00_amlibMenuId_tbMenuIdSelected.value;
   montre("");
        if(c == 'top_home')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_home').style.color='#000000';
            montre("smenu1");
        }     
        if(c == 'top_aboutus')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_aboutus').style.color='#000000';
            montre("smenu2");
        }
         if(c == 'top_aboutus_allrelevantinfo')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_aboutus_allrelevantinfo').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_aboutus').style.color='#000000';
            montre("smenu2");
        }
         if(c == 'top_aboutus_partners')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_aboutus_partners').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_aboutus').style.color='#000000';
            montre("smenu2");
        }
         if(c == 'top_aboutus_links')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_aboutus_links').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_aboutus').style.color='#000000';
            montre("smenu2");
        }
         if(c == 'top_aboutus_staffinfo')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_aboutus_staffinfo').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_aboutus').style.color='#000000';
            montre("smenu2");
        }
        if(c == 'top_products')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            montre("smenu3");
        }
         if(c == 'top_products_school')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_school').style.color='#000000';
            montre("smenu3");
        }
        if(c == 'top_products_college')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_college').style.color='#000000';
            montre("smenu3");
        }
        if(c == 'top_products_university')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_university').style.color='#000000';
            montre("smenu3");
        }
        if(c == 'top_products_health')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_health').style.color='#000000';
            montre("smenu3");
        }
        if(c == 'top_products_law')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_law').style.color='#000000';
            montre("smenu3");
        }
        if(c == 'top_products_specials')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_specials').style.color='#000000';
            montre("smenu3");
        }
         if(c == 'top_products_prison')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_prison').style.color='#000000';
            montre("smenu3");
        } 
        if(c == 'top_products_business')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_business').style.color='#000000';
            montre("smenu3");
        } 
        if(c == 'top_products_government')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_government').style.color='#000000';
            montre("smenu3");
        }
        if(c == 'top_products_charity')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_charity').style.color='#000000';
            montre("smenu3");
        }
        if(c == 'top_products_artgallery')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_artgallery').style.color='#000000';
            montre("smenu3");
        }
        if(c == 'top_products_trackingsystem')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_products').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_products_trackingsystem').style.color='#000000';
            montre("smenu3");
        }
        if(c == 'top_services')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
        if(c == 'top_services_implementation')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_implementation').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
        if(c == 'top_services_implementation')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_implementation').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
          if(c == 'top_services_training')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_training').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
          if(c == 'top_services_helpdesk')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_helpdesk').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
          if(c == 'top_services_usergroup')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_usergroup').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
          if(c == 'top_services_consultancy')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_consultancy').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
          if(c == 'top_services_hosting')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_hosting').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
          if(c == 'top_services_z39')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_z39').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
          if(c == 'top_services_onlinesales')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_onlinesales').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
        if(c == 'top_services_convertyoursys')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_convertyoursys').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        } 
          if(c == 'top_services_netopac')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_netopac').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        } 
        if(c == 'top_services_amlibnet')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_amlibnet').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
         if(c == 'top_services_systemrequirements')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_systemrequirements').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        }
        
             if(c == 'top_services_rfid')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_services_rfid').style.color='#000000';
             document.getElementById('ctl00_amlibMenuId_top_a_services').style.color='#000000';
            montre("smenu4");
        } 
     
        if(c == 'top_clientArea')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_clientArea_login').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_clientArea').style.color='#000000';
            montre("smenu5");
        }
        if(c == 'top_clientArea_login')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_clientArea_login').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_clientArea').style.color='#000000';
            montre("smenu5");
        }
        
        if(c == 'top_clientArea_register')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_clientArea_register').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_clientArea').style.color='#000000';
            montre("smenu5");
        }
        
        if(c == 'top_contactus')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_contactus').style.color='#000000';
            montre("smenu6");
        }
        if(c == 'top_contactus_brochures')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_contactus_brochures').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_contactus').style.color='#000000';
            montre("smenu6");
        }
   
          if(c == 'top_careers')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_careers').style.color='#000000';
            montre("smenu7");
        }
         if(c == 'top_careers_listjob')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_careers_listjob').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_careers').style.color='#000000';
            montre("smenu7");
        }
         if(c == 'top_careers_vacancies')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_careers_vacancies').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_careers').style.color='#000000';
            montre("smenu7");
        }
         if(c == 'top_careers_email')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_careers_email').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_careers').style.color='#000000';
            montre("smenu7");
        }
         if(c == 'top_careers_cv')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_careers_cv').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_careers').style.color='#000000';
            montre("smenu7");
        }
          if(c == 'top_blog')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_blog').style.color='#000000';
            montre("smenu8");
        }
         if(c == 'top_blog_newsandevents')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_blog_newsandevents').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_blog').style.color='#000000';
            montre("smenu8");
        }
          if(c == 'top_blog_newsletter')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_blog_newsletter').style.color='#000000';
            document.getElementById('ctl00_amlibMenuId_top_a_blog').style.color='#000000';
            montre("smenu8");
        }
       
         if(c == 'top_sitemap')
        {
            document.getElementById('ctl00_amlibMenuId_top_a_sitemap').style.color='#000000';
            montre("smenu9");
        }
        if(c == 'top_clientarea')
        {
            document.getElementById('ctl00_amlibMenuId_top_clientarea').style.color='#183e8d';
        }
}
function keepId(listIdClicked){
  document.aspnetForm.ctl00_amlibMenuId_tbMenuIdSelected.value = listIdClicked;
  /*document.getElementById('tbMenuIdSelected').value = listIdClicked;*/
}

/*window.onload=checkmenu*/



