var x = 0, y = 0;

$(document).ready(
        function () {

            // Telemecanique
            $("#descr_win_acti9").mouseover(function (event) {

                var x_winOpen = jQuery("#coord_descr_win_acti9").position(); // определить координату расположения элемента 

                $("#show_win_acti9").css({ left: x_winOpen.left, top: x_winOpen.top }),
                $("#show_win_acti9").show("fast");

            });

            $("#show_win_acti9").mouseleave
            (
                function () {
                    $("#show_win_acti9").hide("fast");
                }
            );
                //-------
                $("#descr_win_phaseo").mouseover(function (event) {

                    var x_winOpen = jQuery("#coord_descr_win_phaseo").position(); // определить координату расположения элемента 

                    $("#show_win_phaseo").css({ left: x_winOpen.left, top: x_winOpen.top }),
                $("#show_win_phaseo").show("fast");

                });

                $("#show_win_phaseo").mouseleave
                (
                    function () {
                    $("#show_win_phaseo").hide("fast");
                }
            );
                // Altivar-Altistart
                //-------

                $("#descr_win_ATS01").mouseover(function (event) {

                    var x_winOpen = jQuery("#coord_descr_win_ATS01").position(); // определить координату расположения элемента 

                    $("#show_win_ATS01").css({ left: x_winOpen.left, top: x_winOpen.top }),
                    $("#show_win_ATS01").show("fast");

                });

                $("#descr_win_ATS01").mouseleave
                (
                    function () {
                        $("#show_win_ATS01").hide("fast");
                    }
                );
                //-------
                    $("#descr_win_ATS22").mouseover(function (event) {

                        var x_winOpen = jQuery("#coord_descr_win_ATS22").position(); // определить координату расположения элемента 

                        $("#show_win_ATS22").css({ left: x_winOpen.left, top: x_winOpen.top }),
                        $("#show_win_ATS22").show("fast");

                    });

                    $("#descr_win_ATS22").mouseleave
                (
                    function () {
                        $("#show_win_ATS22").hide("fast");
                    }
            );
                    //-------
                $("#descr_win_ATS48").mouseover(function (event) {

                    var x_winOpen = jQuery("#coord_descr_win_ATS48").position(); // определить координату расположения элемента 

                    $("#show_win_ATS48").css({ left: x_winOpen.left, top: x_winOpen.top }),
                    $("#show_win_ATS48").show("fast");

                });

                $("#descr_win_ATS48").mouseleave
                (
                    function () {
                        $("#show_win_ATS48").hide("fast");
                    }
                );
                    //-------
                    $("#descr_win_ATV12").mouseover(function (event) {

                        var x_winOpen = jQuery("#coord_descr_win_ATV12").position(); // определить координату расположения элемента 

                        $("#show_win_ATV12").css({ left: x_winOpen.left, top: x_winOpen.top }),
                        $("#show_win_ATV12").show("fast");

                    });

                    $("#descr_win_ATV12").mouseleave
                (
                    function () {
                        $("#show_win_ATV12").hide("fast");
                    }
                );
                    //-------
                    $("#descr_win_ATV312").mouseover(function (event) {

                        var x_winOpen = jQuery("#coord_descr_win_ATV312").position(); // определить координату расположения элемента 

                        $("#show_win_ATV312").css({ left: x_winOpen.left, top: x_winOpen.top }),
                        $("#show_win_ATV312").show("fast");

                    });

                    $("#descr_win_ATV312").mouseleave
                    (
                    function () {
                        $("#show_win_ATV312").hide("fast");
                    }
                    );
                    //-------
                    $("#descr_win_ATV32").mouseover(function (event) {

                        var x_winOpen = jQuery("#coord_descr_win_ATV32").position(); // определить координату расположения элемента 

                        $("#show_win_ATV32").css({ left: x_winOpen.left, top: x_winOpen.top }),
                        $("#show_win_ATV32").show("fast");

                    });

                    $("#descr_win_ATV32").mouseleave
                    (
                    function () {
                        $("#show_win_ATV32").hide("fast");
                    }
                    );
                    //-------
                    $("#descr_win_ATV61").mouseover(function (event) {

                        var x_winOpen = jQuery("#coord_descr_win_ATV61").position(); // определить координату расположения элемента 

                        $("#show_win_ATV61").css({ left: x_winOpen.left, top: x_winOpen.top }),
                        $("#show_win_ATV61").show("fast");

                    });

                    $("#descr_win_ATV61").mouseleave
                    (
                    function () {
                        $("#show_win_ATV61").hide("fast");
                    }
                    );
                    //-------
                    $("#descr_win_ATV71").mouseover(function (event) {

                        var x_winOpen = jQuery("#coord_descr_win_ATV71").position(); // определить координату расположения элемента 

                        $("#show_win_ATV71").css({ left: x_winOpen.left, top: x_winOpen.top }),
                        $("#show_win_ATV71").show("fast");

                    });

                    $("#descr_win_ATV71").mouseleave
                    (
                    function () {
                        $("#show_win_ATV71").hide("fast");
                    }
                    );
					//-------
                    $("#descr_win_Tesys65").mouseover(function (event) {

						var x_winOpen = jQuery("#coord_descr_win_Tesys65").position(); // определить координату расположения элемента 

						$("#show_win_Tesys65").css({ left: x_winOpen.left, top: x_winOpen.top }),
						$("#show_win_Tesys65").show("fast");

                    });

                    $("#descr_win_Tesys65").mouseleave
                    (
						function () {
                    	$("#show_win_Tesys65").hide("fast");
                    }
                    );
                    //-------
                    $("#descr_win_magelisSTO_IP").mouseover(function (event) {

                    	var x_winOpen = jQuery("#coord_descr_win_magelisSTO_IP").position(); // определить координату расположения элемента 

                    	$("#show_win_magelisSTO_IP").css({ left: x_winOpen.left, top: x_winOpen.top }),
                        $("#show_win_magelisSTO_IP").show("fast");

                    });

                    $("#descr_win_magelisSTO_IP").mouseleave
                    (
                    function () {
                    	$("#show_win_magelisSTO_IP").hide("fast");
                    }
                    );
                    //-------
                    $("#descr_win_magelisSTU").mouseover(function (event) {

                    	var x_winOpen = jQuery("#coord_descr_win_magelisSTU").position(); // определить координату расположения элемента 

                    	$("#show_win_magelisSTU").css({ left: x_winOpen.left, top: x_winOpen.top }),
                        $("#show_win_magelisSTU").show("fast");

                    });

                    $("#descr_win_magelisSTU").mouseleave
                    (
                    function () {
                    	$("#show_win_magelisSTU").hide("fast");
                    }
                    );
                    //-------
                    $("#descr_win_ATV61Q_71Q").mouseover(function (event) {

                    	var x_winOpen = jQuery("#coord_descr_win_ATV61Q_71Q").position(); // определить координату расположения элемента 

                    	$("#show_win_ATV61Q_71Q").css({ left: x_winOpen.left, top: x_winOpen.top }),
                        $("#show_win_ATV61Q_71Q").show("fast");

                    });

                    $("#descr_win_ATV61Q_71Q").mouseleave
                    (
                    function () {
                    	$("#show_win_ATV61Q_71Q").hide("fast");
                    }
                    );

        });


        // Показывает всплывающее окно по указанным ID и убирает окно при убирании курсора из окна 

        // "#descr_win_ATS48"  "#coord_descr_win_ATS48"  "#show_win_ATS48"
        
/*
        function Show_Win_01( id1, id2, id3 ) {
            $(id1).mouseover(function (event) {

                var x_winOpen = jQuery(id2).position(); // определить координату расположения элемента 

                $(id3).css({ left: x_winOpen.left, top: x_winOpen.top }),
                    $(id3).show("fast");

            });

            $(id1).mouseleave
                (
                    function () {
                        $(id3).hide("fast");
                    }
                );

        }
*/
 

