/*window.onload=montre;*/
function checkresolution()
{      
    var correctwidth=1024;
    var correctheight=768;
    if ((screen.width==correctwidth) && (screen.height==correctheight))
        {
            document.getElementById("wrap").style.marginLeft = "33px";
            if (document.getElementById("contentpage") != null)
                document.getElementById("contentpage").style.marginLeft = "0px";
            if (document.getElementById("c") != null)                
                document.getElementById("c").style.marginLeft = "30px";
            if (document.getElementById("con") != null)
                document.getElementById("con").style.marginLeft = "30px";
            if (document.getElementById("content") != null)                
                document.getElementById("content").style.marginLeft = "30px";
        }
        
   if (screen.width!=correctwidth)
        {
            document.getElementById("wrap").style.marginLeft = "165px";
            if (document.getElementById("contentpage") != null)    
            document.getElementById("contentpage").style.marginLeft = "130px";
            if (document.getElementById("c") != null)    
            document.getElementById("c").style.marginLeft = "170px";
            if (document.getElementById("con") != null)    
            document.getElementById("con").style.marginLeft = "170px";
            if (document.getElementById("content") != null)    
            document.getElementById("content").style.marginLeft = "170px";
        }
    }

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_ansMenuId_tbMenuIdSelected.value;
   montre("");
        if(c == 'top_home')
        {
            document.getElementById('ctl00_ansMenuId_top_a_home').style.color='#f35118';
            montre("smenu1");
        }
            if(c == 'top_about_us')
        {
            document.getElementById('ctl00_ansMenuId_top_a_about_us').style.color='#f35118';
            montre("smenu2");
        }
        
        if(c == 'top_software')
        {
            document.getElementById('ctl00_ansMenuId_top_a_software').style.color='#f35118';
            montre("smenu3");
        }
         if(c == 'top_software_applicationsolution')
        {
            document.getElementById('ctl00_ansMenuId_top_a_software').style.color='#f35118';
            document.getElementById('ctl00_ansMenuId_top_a_software_applicationsolution').style.color='#f35118';
            montre("smenu3");
        }
          if(c == 'top_software_softwareforintegratorsanddevelopers')
        {
            document.getElementById('ctl00_ansMenuId_top_a_software').style.color='#f35118';
            document.getElementById('ctl00_ansMenuId_top_a_software_softwareforintegratorsanddevelopers').style.color='#f35118';
            montre("smenu3");
        }
          if(c == 'top_software_librarysystemamlib')
        {
            document.getElementById('ctl00_ansMenuId_top_a_software').style.color='#f35118';
            document.getElementById('ctl00_ansMenuId_top_a_software_librarysystemamlib').style.color='#f35118';
            montre("smenu3");
        }
          
        if(c == 'top_consultancy')
        {
            document.getElementById('ctl00_ansMenuId_top_a_consultancy').style.color='#f35118';
            montre("smenu4");
        }
        if(c == 'top_consultancy_managementconsultancy')
        {
            document.getElementById('ctl00_ansMenuId_top_a_consultancy').style.color='#f35118';
            document.getElementById('ctl00_ansMenuId_top_a_consultancy_managementconsultancy').style.color='#f35118';
            montre("smenu4");
        }
        if(c == 'top_consultancy_itconsultancyandapplicationdevelopment')
        {
              document.getElementById('ctl00_ansMenuId_top_a_consultancy').style.color='#f35118';
            document.getElementById('ctl00_ansMenuId_top_a_consultancy_itconsultancyandapplicationdevelopment').style.color='#f35118';
            montre("smenu4");
        }        

        if(c == 'top_training')
        {
            document.getElementById('ctl00_ansMenuId_top_a_training').style.color='#f35118';    
            montre("smenu5");
        }
        
        if(c == 'top_support')
        {
            document.getElementById('ctl00_ansMenuId_top_a_support').style.color='#f35118';
            montre("smenu6");
        }
          if(c == 'top_support_applicationsupport')
        {
            document.getElementById('ctl00_ansMenuId_top_a_support_applicationsupport').style.color='#f35118';
            document.getElementById('ctl00_ansMenuId_top_a_support').style.color='#f35118';
            montre("smenu6");
        }
          if(c == 'top_support_remoteadminsupport')
        {
            document.getElementById('ctl00_ansMenuId_top_a_support_remoteadminsupport').style.color='#f35118';
            document.getElementById('ctl00_ansMenuId_top_a_support').style.color='#f35118';
            montre("smenu6");
        }
          if(c == 'top_support_telephonesupport')
        {
            document.getElementById('ctl00_ansMenuId_top_a_support_telephonesupport').style.color='#f35118';
            document.getElementById('ctl00_ansMenuId_top_a_support').style.color='#f35118';
            montre("smenu6");
        }
          if(c == 'top_support_licencemanagement')
        {
            document.getElementById('ctl00_ansMenuId_top_a_support_licencemanagement').style.color='#f35118';
            document.getElementById('ctl00_ansMenuId_top_a_support').style.color='#f35118';
            montre("smenu6");
        }
         if(c == 'top_support_supportdownloads')
        {
            document.getElementById('ctl00_ansMenuId_top_a_support_supportdownloads').style.color='#f35118';
            document.getElementById('ctl00_ansMenuId_top_a_support').style.color='#f35118';
            montre("smenu6");
        }
          if(c == 'top_librarysysteamlib')
        {
            document.getElementById('ctl00_ansMenuId_top_a_librarysysteamlib').style.color='#f35118';
            montre("smenu7");
        }
        if(c == 'top_clientarea')
      {
            document.getElementById('ctl00_ansMenuId_top_a_clientarea').style.color='#f35118';
             document.getElementById('ctl00_ansMenuId_top_a_clientarea_login').style.color='#f35118';
            montre("smenu7");
        }
        if(c == 'top_clientarea_login')
        {
            document.getElementById('ctl00_ansMenuId_top_a_clientarea').style.color='#f35118';
             document.getElementById('ctl00_ansMenuId_top_a_clientarea_login').style.color='#f35118';
            montre("smenu7");
        }
        if(c == 'top_clientarea_register')
        {
            document.getElementById('ctl00_ansMenuId_top_a_clientarea').style.color='#f35118';
             document.getElementById('ctl00_ansMenuId_top_a_clientarea_register').style.color='#f35118';
            montre("smenu7");
        }
     
}

function keepId(listIdClicked){
  document.aspnetForm.ctl00_ansMenuId_tbMenuIdSelected.value = listIdClicked;
  /*document.getElementById('tbMenuIdSelected').value = listIdClicked;*/
}

/*window.onload=checkmenu*/
    

