$(document).ready(function(){
    vervideo();
    funciones();
    clientes();
    logo();
    administraciondenegociosload();
    //saasload();
    $("#dreportebancos").html("<strong>Reporte de movimientos a cuenta bancaria:</strong><br/><br/><p align='justify'><img src='images/aguisa3/reportebancos.JPG' width=700></p>");
    $("#dregistrobancos").html("<strong>Registro de movimiento a cuenta bancaria:</strong> <br/><br/><p align='justify'><img src='images/aguisa3/registrobancos.JPG'></p>");
    $("#dasientobancos").html("<strong>Asiento de diario generado automáticamente:</strong> <br/><br/><p align='justify'><img src='images/aguisa3/asientoautomaticobancos.JPG'></p>");
    $("#dcontabilizacionbancos").html("<strong>Proceso de contabilización de movimientos bancarios:</strong> <br/><br/><p align='justify'><img src='images/aguisa3/contabilizarbancos.JPG'></p>");
    $("#sucsimg").html("<img src='images/puntodeventa.jpg' width=750 height=590>");
    $("#sucsimg2").html("<img src='images/sucursales.gif'>");
    $("#sucsimg3").html("<img src='images/puntodeventa2.jpg' width=250 height=500>");
    $("#sucsimg4").html("<img src='images/1_p4.jpg'>");    
    $("#sucsimg5").html("<img src='images/1_p1.jpg'>");        
    $("#sucsimg7").html("<img src='images/4_p5.jpg'>");
    $("#sucsimg9").html("<img src='images/2_p3.jpg'>");
    $("#sucsimg10").html("<img src='images/2_p1.jpg'>");    
    $("#foto1").html("<a href='#' onclick='registrobancos();return false;'><img src='images/aguisa3/registrobancos.JPG' border=0 title='Ejemplo de registro de movimiento en bancos' width=50 height=50></a>");
    $("#foto2").html("<a href='#' onclick='reportebancos();return false;'><img src='images/aguisa3/reportebancos.JPG' border=0 title='Ejemplo de reporte de movimientos bancarios' width=50 height=50></a>");
    $("#foto3").html("<a href='#' onclick='contabilizacionbancos();return false;'><img src='images/aguisa3/contabilizarbancos.JPG' border=0 title='Ejemplo de proceso de contabilización bancos' width=50 height=50></a>");     
    $("#foto4").html("<a href='#' onclick='asientobancos();return false;'><img src='images/aguisa3/asientoautomaticobancos.JPG' border=0 title='Ejemplo de asiento automático de movimiento en bancos' width=50 height=50></a>");
    $("#sucsimg11").html("<img src='images/businessmanagement.gif'>");     
    $("#sucsimg12").html("<img src='images/aguisa3/asientoautomaticobancos.JPG' height=500 width=500>");     
    $("#dadquirir").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "highlight",            
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");

                }
            }
        }); 
        
    $("#dasientobancos").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 550,
            width: 750,
            show: "highlight",            
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");

                }
            }
        }); 

    $("#financiamiento").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 500,
            width: 350,
            show: "highlight",            
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                }
            }
        }); 

        
    $("#dcontabilizacionbancos").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 550,
            width: 750,
            show: "highlight",            
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");

                }
            }
        }); 
        
    $("#dadministraciondenegocios").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "highlight",            
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");

                }
            }
        });    

    $("#dbusinessmanagement").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "highlight",            
            buttons: {
                "Close": function() { 
                    $(this).dialog("close");

                }
            }
        });    
    
    $("#dbusinessmanagementtools").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 550,
            width: 750,
            show: "highlight",            
            buttons: {
                "Close": function() { 
                    $(this).dialog("close");

                }
            }
        });    
        
        
        
    $("#dcontroldesupuntodeventa").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 550,
            width: 785,
            show: "highlight",
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });  

    
    $("#dcuentasporcobrar").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "explode",
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });  

    $("#dpointofsalecontrol").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "highlight",            
            buttons: {
                "Close": function() { 
                    $(this).dialog("close");

                }
            }
        });            

    $("#dpointofsaleintegration").dialog({
            modal:false,
            autoOpen: false,
            top: 1,
            height: 200,
            width: 600,
            show: "highlight",            
            buttons: {
                "Close": function() { 
                    $(this).dialog("close");

                }
            }
        });        

    $("#dpointofsalesoftware").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 550,
            width: 750,
            show: "explode",            
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");

                }
            }
        }); 
        

    $("#dregistrobancos").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 550,
            width: 750,
            show: "highlight",            
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");

                }
            }
        });           
         
    $("#dreportebancos").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height:550,
            width: 750,
            show: "highlight",            
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");

                }
            }
        }); 
            
    $("#dserviciodesoftware").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "blind",            
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");

                }
            }
        });    
    $("#dserviciosweb").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "clip",
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });    
    
    $("#dsistemasdeadministraciondenegocios").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "highlight",
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });    
    
    $("#dsistemaspuntodeventa").dialog({
            modal:false,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "highlight",
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });      
    
    
    $("#dsoftwarealamedida").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "drop",
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });  
          
    $("#ddesarrollodesoftware").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "fold",            
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });
        
    $("#ddesarrollosdesoftware").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "highlight",            
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });        
    $("#dsoftwareasaservice").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "puff", 
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });
    $("#dcloudcomputing").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            show: "slide", 
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });  

    $("#dsaas").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });  
    $("#dsaas2").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        }); 
    $("#dvideo").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 510,
            width: 700,
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });         

    $("#dfacturacion").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 470,
            width: 600,
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });         
    $("#dinventarios").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 430,
            width: 600,
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                    
                }
            }
        });  
        
        
    $("#dsoftwarecomoservicio").dialog({
            modal:true,
            autoOpen: false,
            top: 1,
            height: 350,
            width: 600,
            buttons: {
                "Cerrar": function() { 
                    $(this).dialog("close");
                }
            }
    });
    
    
});
function abrirvideo(){
    $("#dvideo").dialog("open");
    $("#dvideo").dialog("option","position", "center");
}
function administraciondenegocios(){
    $("#dadministraciondenegocios").dialog("open");
    $("#dadministraciondenegocios").dialog("option","position", "center");    
}
function administraciondenegociosload(){
    $("#dadministraciondenegocios").html("<img src=\"images/loader.gif\">");
    $.ajax({
        type: "GET",  //HTTP GET
        url: "ln_index.php",
        data: "funcion=9", //valor que le pasamos al URL
        dataType: "json", 
        success:
        function (json){
            $("#dadministraciondenegocios").html(json.retval);
            $("#sucsimg8").html("<img src='images/2_p2.jpg'>");
        }
    });
}
function adquirir(){
    $("#dadquirir").dialog("open");
    $("#dadquirir").dialog("option","position", "top");
    var a = "<img src='images/loader.gif'>";
    $("#dadquirir").html(a);
    $.ajax({
          type: "GET",  //HTTP GET
          url: "ln_index.php",
          data: "funcion=1", //valor que le pasamos al URL
          dataType: "json", 
          success:
          function(json) {
              if (json.nombre!=""){
                 $("#dadquirir").html(
                 json.retval
                 )

              }
          }
        });
}
function asientobancos(){
    $("#dasientobancos").dialog("open");
    $("#dasientobancos").dialog("option","position", "center");    
}
function contabilizacionbancos(){
    $("#dcontabilizacionbancos").dialog("open");
    $("#dcontabilizacionbancos").dialog("option","position", "center");    
}
function businessmanagement(){
    $("#dbusinessmanagement").dialog("open");
    $("#dbusinessmanagement").dialog("option","position", "center");    
}
function businessmanagementtools(){
    $("#dbusinessmanagementtools").dialog("open");
    $("#dbusinessmanagementtools").dialog("option","position", "center");    
}
function cerrarvideo(){
    $("#video").html("Haga click aquí para ver un video introductorio");
}
function clientes(){
    $("#clientes").html("<img src=\"images/loader.gif\">");
    $.ajax({
          type: "GET",  //HTTP GET
          url: "ln_index.php",
          data: "funcion=7", //valor que le pasamos al URL
          dataType: "json", 
          success:
          function(json) {
              $("#clientes").html(
                 json.retval
              )}
              
          });
}
function cloudcomputing(){
    $("#dcloudcomputing").dialog("open");
    $("#dcloudcomputing").dialog("option","position", "center");
}
function saasload(){
    $.ajax({
        type: "GET",  //HTTP GET
        url: "ln_index.php",
        data: "funcion=10", //valor que le pasamos al URL
        dataType: "json", 
        success:
        function (json){
            $("#dsaas").html(json.retval);
            $("#sucsimg6").html("<img src='images/3_p2.jpg'>");            
        }
    });
}
function cloudcomputingload(){
    $.ajax({
        type: "GET",  //HTTP GET
        url: "ln_index.php",
        data: "funcion=8", //valor que le pasamos al URL
        dataType: "json", 
        success:
        function (json){
            $("#dcloudcomputing").html(json.retval);
            $("#cloudimg").html("<img src='images/cloud.png'>");
        }
    });
}
function controldesupuntodeventa(){
    $("#dcontroldesupuntodeventa").dialog("open");
    $("#dcontroldesupuntodeventa").dialog("option","position", "center");
}
function cuentasporcobrar(){
    $("#dcuentasporcobrar").dialog("open");
    $("#dcuentasporcobrar").dialog("option","position", "center");
    $("#dcuentasporcobrar").html("<img src=\"images/loader.gif\">");
    $.ajax({
          type: "GET",
          url: "ln_index.php",
          data: "funcion=6",
          dataType: "json", 
          success:
          function(json) {
              if (json.nombre!=""){
                 $("#dcuentasporcobrar").html(json.retval)
              }
          }
        });
}
function desarrollodesoftware(){
    $("#ddesarrollodesoftware").dialog("open");
    $("#ddesarrollodesoftware").dialog("option","position", "center");
}
function desarrollosdesoftware(){
    $("#ddesarrollosdesoftware").dialog("open");
    $("#ddesarrollosdesoftware").dialog("option","position", "center");
}
function inventarios(){
    $("#dinventarios").dialog("open");
    $("#dinventarios").dialog("option","position", "center");
    $("#dinventarios").html("<img src=\"images/loader.gif\">");
    $.ajax({
          type: "GET",
          url: "ln_index.php",
          data: "funcion=5", //valor que le pasamos al URL
          dataType: "json", 
          success:
          function(json) {
              if (json.nombre!=""){
                 $("#dinventarios").html(json.retval)
              }
          }
        });
}
function facturacion(){
    $("#dfacturacion").dialog("open");
    $("#dfacturacion").dialog("option","position", "center");
    $("#dfacturacion").html("<img src=\"images/loader.gif\">");
    $.ajax({
          type: "GET",  //HTTP GET
          url: "ln_index.php",
          data: "funcion=3", //valor que le pasamos al URL
          dataType: "json", 
          success:
          function(json) {
              if (json.nombre!=""){
                 $("#dfacturacion").html(
                 json.retval
                 )
              }
          }
        });
}
function financiamiento(){
    $("#financiamiento").dialog("open");
    $("#financiamiento").dialog("option","position", "center");
    $("#financiamiento").html("<img src=\"images/loader.gif\">");
    $.ajax({
          type: "GET",  //HTTP GET
          url: "ln_index.php",
          data: "funcion=10", //valor que le pasamos al URL
          dataType: "json", 
          success:
          function(json) {
              if (json.nombre!=""){
                 $("#financiamiento").html(
                 json.retval
                 )
              }
          }
        });
}

function funciones(){
    $("#funciones").dialog("open");
    $("#funciones").dialog("option","position", "center");
    $("#funciones").html("<img src=\"images/loader.gif\">");
    $.ajax({
          type: "GET",  //HTTP GET
          url: "ln_index.php",
          data: "funcion=4", //valor que le pasamos al URL
          dataType: "json", 
          success:
          function(json) {
              if (json.nombre!=""){
                 $("#funciones").html(
                 json.retval
                 )
              }
          }
        });
}
function ptoventa(){
    $("#ptovta").html("<img src=\'images/loader.gif\'>");
    $.ajax({
        type:"GET",
        url: "ln_index.php",
        data: "funcion=12",
        dataType: "json",
        success: function(json){
            $("#ptovta").html(json.retval);
        }
    });
    
}
function logo(){
    $("#logo").html("<img src=\"images/logo.png\">");
    ptoventa();
}
function pointofsalecontrol(){
    $("#dpointofsalecontrol").dialog("open");
    $("#dpointofsalecontrol").dialog("option","position", "center");
}
function pointofsaleintegration(){
    $("#dpointofsaleintegration").dialog("open");
    $("#dpointofsaleintegration").dialog("option","position", "center");
}
function pointofsalesoftware(){
    $("#dpointofsalesoftware").dialog("open");
    $("#dpointofsalesoftware").dialog("option","position", "center");
}
function registrobancos(){
    $("#dregistrobancos").dialog("open");
    $("#dregistrobancos").dialog("option","position", "center");
}
function reportebancos(){
    $("#dreportebancos").dialog("open");
    $("#dreportebancos").dialog("option","position", "center");
}
function serviciodesoftware(){
    $("#dserviciodesoftware").dialog("open");
    $("#dserviciodesoftware").dialog("option","position", "center");
}
function serviciosweb(){
    $("#dserviciosweb").dialog("open");
    $("#dserviciosweb").dialog("option","position", "center");
}
function sistemasdeadministraciondenegocios(){
    $("#dsistemasdeadministraciondenegocios").dialog("open");
    $("#dsistemasdeadministraciondenegocios").dialog("option","position", "center");
}
function sistemaspuntodeventa(){
    $("#dsistemaspuntodeventa").dialog("open");
    $("#dsistemaspuntodeventa").dialog("option","position", "center");
}
function softwarealamedida(){
    $("#dsoftwarealamedida").dialog("open");
    $("#dsoftwarealamedida").dialog("option","position", "center");
}
function softwareasaservice(){
    $("#dsoftwareasaservice").dialog("open");
    $("#dsoftwareasaservice").dialog("option","position", "center");
}
function saas(){
    $("#dsaas").dialog("open");
    $("#dsaas").dialog("option","position", "center");
}
function softwarecomoservicio(){
    $("#dsoftwarecomoservicio").dialog("open");
    $("#dsoftwarecomoservicio").dialog("option","position", "center");
}
function abrir_sistema(){
    var ah = screen.availHeight-25;
    var aw = screen.availWidth;
    var x = 0, y = 0;
    if (document.all)
    {
        x = window.screenTop;
        y = window.screenLeft;
    }
    else if (document.layers)
    {  
        x = window.screenX;
        y = window.screenY;
    }
    window.location = "ihs_login.php";      
}
function vervideo(){
    $("#dvideo").dialog("open");
    $("#dvideo").dialog("option","position", "center");
    $("#dvideo").html("<img src=\"images/loader.gif\">");
    $.ajax({
          type: "GET",
          url: "ln_index.php",
          data: "funcion=2",
          dataType: "json",
          success:
          function(json){
              $("#dvideo").html(
                 json.retval
              )}
          });    
}

