// JavaScript Document
// JavaScript Document
function negrita(x)
    {
        var explorer=(document.all) ? true:false //comprobar navegador
        if(explorer)
        {
            document.all[x].style.background="background-image: url(../IMAGES/menu/"+x+"B.gif)"
        }
        else
        {
            //alert("firefox")
            document.getElementById(x).style.background="background-image: url(../IMAGES/menu/"+x+"B.gif)"
        }
    }
    
    
function light(x)
    {
        var explorer=(document.all) ? true:false //comprobar navegador
        if(explorer)
        {
            document.all[x].style.background="background-image: url(../IMAGES/menu/"+x+"L.gif)"
        }
        else
        {
            //alert("firefox")
            document.getElementById(x).style.background="background-image: url(../IMAGES/menu/"+x+"L.gif)"
        }
    }





function popupDirectivos()
    {
        window.open ("http://www.e-directivos.com","","");
    }
function popupWKE()
    {
        window.open ("http://www.wolterskluwer.es","","");
    }


function popupAviso()
    {
        window.open ("popup/aviso.htm","","width=517,height=420,top=70,left=90,scrollbars=yes");
    }


function popupProteccion()
    {
        window.open ("popup/proteccion.htm","","width=517,height=420,top=70,left=90,scrollbars=yes");
    }
    
function popupCAenor()
    {
        window.open ("popup/certificadoAenor.htm","","width=517,height=420,top=70,left=90,scrollbars=yes");
    }
    
    
////////////////////////////////////////////////////////////////////////////////    
///////////////////// FUNCIONES DE LA INTRO DE FLASH ///////////////////////////
////////////////////////////////////////////////////////////////////////////////

function abrirHome()
    {
        window.open ("home.asp","_parent","");
    }
    
function abrirManualMarketing()
    {
        window.open ("http://www.consultormk.com/index.htm","_parent","");
    }
    
function abrirManualDirectivos()
    {
        window.open ("http://www.consultordireccion.com/index.htm","_parent","");
    }
    
function abrirManualGestion()
    {
        window.open ("http://www.agroconsultor.com/index.htm","_parent","");
    }   


//imprimir según número de frames
function miImpresion()
		{
			//alert(window.parent.frames(1).frames.length  );
			//alert(top.frames.length );
			if (top.frames.length == 4)
			{
				top.frames[2].focus();
				top.frames[2].print();
				return;
				
			}
			parent.frames[1].focus();
			parent.frames[1].print();
			//alert(window.parent.frames(1).frames.length  );
			
		}
		
//para el menú AYUDAS		
function cambiaDiv(i)
        {
			if (i==1) 
			{
			 	document.getElementById('l1').style.color ='#E9A901';
			 	document.getElementById('l2').style.color ='black';
			 	document.getElementById('l3').style.color ='black';
			}
			else
			{
				if (i==2) 
				{
			 		document.getElementById('l1').style.color ='black';
			 	document.getElementById('l2').style.color ='#E9A901';
			 	document.getElementById('l3').style.color ='black';
				}
				else
				{
					if (i==3) 
					{
			 			document.getElementById('l1').style.color ='black';
			 	document.getElementById('l2').style.color ='black';
			 	document.getElementById('l3').style.color ='#E9A901';
					}
					else
					{
						document.getElementById('l1').style.color ='black';
			 			document.getElementById('l2').style.color ='black';
			 			document.getElementById('l3').style.color ='black';
					}
				}
			}
			//alert( document.getElementById('l1').style.fontWeight);
        
        }
			
