<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
<!--[if lt IE 9]>
<script src="{$path}/_assets/global/plugins/respond.min.js"></script>
<script src="{$path}/_assets/global/plugins/excanvas.min.js"></script>
<![endif]-->
<script src="{$path}/_assets/global/plugins/jquery.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script>
<!-- IMPORTANT! Load jquery-ui-1.10.3.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
<script src="{$path}/_assets/global/plugins/jquery-ui/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js"
type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js"
type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script src="{$path}/_assets/global/plugins/dropzone/dropzone.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
<script type="text/javascript"
src="{$path}/_assets/global/plugins/jquery-validation/js/jquery.validate.min.js"></script>
<script type="text/javascript"
src="{$path}/_assets/global/plugins/jquery-validation/js/additional-methods.min.js"></script>
<script src="{$path}/_assets/global/plugins/jqvmap/jqvmap/jquery.vmap.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.russia.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.world.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.europe.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.germany.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jqvmap/jqvmap/maps/jquery.vmap.usa.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jqvmap/jqvmap/data/jquery.vmap.sampledata.js"
type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/flot/jquery.flot.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/flot/jquery.flot.resize.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/flot/jquery.flot.categories.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jquery.pulsate.min.js" type="text/javascript"></script>
<!--script src="{$path}/_assets/global/plugins/bootstrap-daterangepicker/moment.min.js" type="text/javascript"></script-->
<script src="{$path}/_assets/global/plugins/bootstrap-daterangepicker/daterangepicker.js"
type="text/javascript"></script>
<!-- IMPORTANT! fullcalendar depends on jquery-ui-1.10.3.custom.min.js for drag & drop support -->
<!--script src="{$path}/_assets/global/plugins/fullcalendar/fullcalendar.min.js" type="text/javascript"></script-->
<script src="{$path}/_assets/global/plugins/fullCalendar/main.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/fullCalendar/locales/ar.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/tooltip/popper.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/tooltip/tooltip.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jquery-easypiechart/jquery.easypiechart.min.js"
type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jquery.sparkline.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/jquery-validation/js/jquery.validate.min.js"
type="text/javascript"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/select2/select2.min.js"></script>
<script type="text/javascript"
src="{$path}/_assets/global/plugins/jquery-multi-select/js/jquery.multi-select.js"></script>
<script type="text/javascript"
src="{$path}/_assets/global/plugins/jquery-quicksearch/jquery.quicksearch.js"></script>


<script src="{$path}/_assets/global/plugins/jquery-nestable/jquery.nestable.js"></script>

<script type="text/javascript"
src="{$path}/_assets/global/plugins/datatables/media/js/jquery.dataTables.min.js"></script>

<script type="text/javascript"
src="{$path}/_assets/global/plugins/datatables/media/js/jquery.dataTables.js"></script>


<!--<script type="text/javascript" src="{$path}/_assets/global/plugins/datatables/extensions/TableTools/js/dataTables.tableTools.min.js"></script>-->
<script type="text/javascript"
src="{$path}/_assets/global/plugins/datatables/extensions/ColReorder/js/dataTables.colReorder.min.js"></script>
<script type="text/javascript"
src="{$path}/_assets/global/plugins/datatables/extensions/Scroller/js/dataTables.scroller.min.js"></script>
<script type="text/javascript"
src="{$path}/_assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js"></script>






<script src="{$path}/_assets/global/plugins/datatables/extensions/Buttons-1.6.2/js/dataTables.buttons.js"></script>
<script src="{$path}/_assets/global/plugins/datatables/extensions/Buttons-1.6.2/js/dataTables.buttons.min.js"></script>
<script src="{$path}/_assets/global/plugins/datatables/extensions/JSZip-2.5.0/jszip.js"></script>
<script src="{$path}/_assets/global/plugins/datatables/extensions/JSZip-2.5.0/jszip.min.js"></script>
<script src="{$path}/_assets/global/plugins/datatables/extensions/Buttons-1.6.2/js/buttons.colVis.min.js"></script>
<script src="{$path}/_assets/global/plugins/datatables/extensions/Buttons-1.6.2/js/buttons.colVis.min.js"></script>
<script src="{$path}/_assets/global/plugins/datatables/extensions/Buttons-1.6.2/js/buttons.print.min.js"></script>
<script src="{$path}/_assets/global/plugins/datatables/extensions/Buttons-1.6.2/js/buttons.html5.min.js"></script>


<script type="text/javascript"
src="{$path}/_assets/global/plugins/bootstrap-timepicker/js/moment.min.js"></script>


<script src="{$path}/_assets/global/plugins/bootstrap-toastr/toastr.min.js"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js"></script>
<!--<script type="text/javascript" src="{$path}/_assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>-->
<script type="text/javascript"
src="{$path}/_assets/global/plugins/bootstrap-daterangepicker/daterangepicker.js"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/printpart/jQuery.print.min.js"></script>
<script type="text/javascript"
src="{$path}/_assets/global/plugins/jquery-inputmask/jquery.inputmask.bundle.min.js"></script>

<!-- islamic -->
<link rel="stylesheet" href="{$path}/_assets/global/plugins/calislamic/redmond.calendars.picker.css">
<script type="text/javascript" src="{$path}/_assets/global/plugins/calislamic/jquery.plugin.js"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/calislamic/jquery.calendars.js"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/calislamic/jquery.calendars.picker.js"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/calislamic/jquery.calendars.plus.min.js"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/calislamic/jquery.calendars.islamic.js"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/calislamic/jquery.calendars-ar.js"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/calislamic/jquery.calendars.islamic-ar.js"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/ckeditor/ckeditor.js"></script>


<!--<script type="text/javascript" src="{$path}/_assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>-->
<script type="text/javascript"
src="{$path}/_assets/global/plugins/bootstrap-timepicker/js/bootstrap-timepicker.min.js"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/clockface/js/clockface.js"></script>
<script type="text/javascript"
src="{$path}/_assets/global/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js"></script>
<script type="text/javascript"
src="{$path}/_assets/global/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="{$path}/_assets/global/plugins/bootstrap-select/bootstrap-select.min.js"></script>





<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<!--<script src="{$path}/_assets/global/scripts/drug.js" type="text/javascript"></script>-->
<script src="{$path}/_assets/global/scripts/table-editable.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/scripts/metronic.js" type="text/javascript"></script>
<script src="{$path}/_assets/admin/layout/scripts/layout.js" type="text/javascript"></script>
<script src="{$path}/_assets/admin/layout/scripts/quick-sidebar.js" type="text/javascript"></script>
<script src="{$path}/_assets/admin/layout/scripts/demo.js" type="text/javascript"></script>
<script src="{$path}/_assets/admin/pages/scripts/index.js" type="text/javascript"></script>
<script src="{$path}/_assets/admin/pages/scripts/tasks.js" type="text/javascript"></script>
<script src="{$path}/_assets/admin/pages/scripts/login.js" type="text/javascript"></script>
<script src="{$path}/_assets/admin/pages/scripts/components-dropdowns.js"></script>
<script src="{$path}/_assets/admin/layout/scripts/custom.js"></script><!-- custom js at end of files -->

<script src="{$path}/_assets/custom/patientcustom.js" type="text/javascript" charset="utf-8"></script>
<script src="{$path}/_assets/custom/inputmask.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/table-editable.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/jquery.maskedinput-1.3.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/jquery.inputmask.bundle.min.js" type="text/javascript"></script>

<script src="{$path}/_assets/admin/pages/scripts/table-managed.js"></script>
<script src="{$path}/_assets/admin/pages/scripts/components-pickers.js"></script>


<script src="{$path}/_assets/custom/table-editable.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/antenatal_gyna.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/simple_view.js" type="text/javascript"></script>
<!-- END PAGE LEVEL SCRIPTS -->


<!-- Multi upload section -->
<!--script src="{$path}/_assets/global/plugins/multiupload/js/angular.min.js"></script-->
<!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
<script src="{$path}/_assets/global/plugins/multiupload/js/vendor/jquery.ui.widget.js"></script>
<!-- The Load Image plugin is included for the preview images and image resizing functionality -->
<script src="{$path}/_assets/global/plugins/multiupload/js/load-image.all.min.js"></script>
<!-- The Canvas to Blob plugin is included for image resizing functionality -->
<script src="{$path}/_assets/global/plugins/multiupload/js/canvas-to-blob.min.js"></script>
<!-- Bootstrap JS is not required, but included for the responsive demo navigation -->
<!-- blueimp Gallery script -->
<script src="{$path}/_assets/global/plugins/multiupload/js/jquery.blueimp-gallery.min.js"></script>
<!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
<script src="{$path}/_assets/global/plugins/multiupload/js/jquery.iframe-transport.js"></script>
<!-- The basic File Upload plugin -->
<script src="{$path}/_assets/global/plugins/multiupload/js/jquery.fileupload.js"></script>
<!-- The File Upload processing plugin -->
<script src="{$path}/_assets/global/plugins/multiupload/js/jquery.fileupload-process.js"></script>
<!-- The File Upload image preview & resize plugin -->
<script src="{$path}/_assets/global/plugins/multiupload/js/jquery.fileupload-image.js"></script>
<!-- The File Upload audio preview plugin -->
<script src="{$path}/_assets/global/plugins/multiupload/js/jquery.fileupload-audio.js"></script>
<!-- The File Upload video preview plugin -->
<script src="{$path}/_assets/global/plugins/multiupload/js/jquery.fileupload-video.js"></script>
<!-- The File Upload validation plugin -->
<script src="{$path}/_assets/global/plugins/multiupload/js/jquery.fileupload-validate.js"></script>
<!-- The File Upload Angular JS module -->
<!--script src="{$path}/_assets/global/plugins/multiupload/js/jquery.fileupload-angular.js"></script-->
<!-- The main application script -->
<!--script src="{$path}/_assets/global/plugins/multiupload/js/app.js"></script-->
<!-- end Multi upload section -->

<script src="{$path}/_assets/global/plugins/icheck/icheck.min.js" ></script>
<script src="{$path}/_assets/global/scripts/form-icheck.min.js" ></script>
<script src="{$path}/_assets/global/plugins/bootstrap-sweetalert/sweetalert.min.js" type="text/javascript"></script>
<script src="{$path}/_assets/global/plugins/recorder/js/recorder.js" type="text/javascript"></script>


<!----------------------------------- EXPORT PDF ------------------------------------------------->
<!--script src="{$path}/_assets/global/plugins/jsPDF/js/jspdf.js"></script>
<script src="{$path}/_assets/global/plugins/jsPDF/js/jspdf.min.js"></script>
<script src="{$path}/_assets/global/plugins/jsPDF/js/from_html.js"></script>
<script src="{$path}/_assets/global/plugins/jsPDF/js/split_text_to_size.js"></script>
<script src="{$path}/_assets/global/plugins/jsPDF/js/standard_fonts_metrics.js"></script-->

<!-- DEVELOPERS SCRIPTS -->
<script src="{$path}/_assets/custom/record.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/gyna.js"></script><!-- custom js at end of files -->
<script src="{$path}/_assets/custom/antenalvisit.js"></script><!-- custom js at end of files -->
<script src="{$path}/_assets/custom/investigation.js"></script><!-- investigation js -->
<script src="{$path}/_assets/custom/report.js"></script><!-- report js -->
<script src="{$path}/_assets/custom/ultrasound.js"></script>
<script src="{$path}/_assets/custom/ultrasoundobst.js"></script><!-- ultrasoundobst js -->
<script src="{$path}/_assets/custom/ultrasoundgyna.js"></script><!-- ultrasoundgyna js -->

<script src="{$path}/_assets/custom/sonar.js"></script>
<script src="{$path}/_assets/custom/operativedetails.js"></script>

<script src="{$path}/_assets/custom/operations_calendar.js"></script>
<script src="{$path}/beauty/js/beauty_calendar.js"></script>

<!--Soaad-->
<script src="{$path}/_assets/custom/spermfreezing.js"></script>
<script src="{$path}/_assets/custom/embryoslab.js"></script>

<!-- END DEVELOPERS SCRIPTS -->
<script src="{$path}/_assets/custom/core_cu.js" type="text/javascript"></script>

<!--- nora ---->


<script src="{$path}/_assets/custom/py_modified.js" type="text/javascript"></script>

<script src="{$path}/_assets/custom/patienthistory.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/examination.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/patienthistoryData.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/patientdecleration.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/decleration.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/embryofreezing.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/ovumpickupembryotrans.js" type="text/javascript"></script>


<script src="{$path}/_assets/custom/invests.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/oscopic.js" type="text/javascript"></script>
<script src="{$path}/_assets/custom/voting.js" type="text/javascript"></script>

<script src="{$path}/colonoscopy/js/colonoscopy.js" type="text/javascript"></script>
<script src="{$path}/endoscopy/js/endoscopy.js" type="text/javascript"></script>






<!--
<link  href="{$path}/aw/theme-default.min.css" rel="stylesheet" type="text/css"/>
<script src="{$path}/aw/jquery.form-validator.min.js"></script>-->

<script src="{$path}/aw/jquery-validation/js/jquery.validate.min.js"></script>
<script src="{$path}/aw/jquery-validation/js/additional-methods.min.js"></script>


<!--             * Amr *               -->
<script src="{$path}/_assets/custom/custom.js" type="text/javascript"></script> <!--Amr in 16-11-2015 -->


<script>

    jQuery(document).ready(function () {

        Metronic.init(); // init metronic core componets
        Layout.init(); // init layout
        QuickSidebar.init(); // init quick sidebar
        Demo.init(); // init demo features
        Index.init();
        TableManaged.init();
        gyna.init();
        antenalvisit.init();
        Login.init();
        //TableEditableH.init();

        //ComponentsDropdowns.init();

        ant_gyna.init();
        simple_view.init();
        invests.init();


        awcustomjs.init();//at the end of all files


        ogy_drugs.init();
        patientcustom.init();

        core_cu.init(); // Amr   #added   25-10-2015
        patienthistory.init();
        examination.init();

        operativedetails.init();

        patienthistoryData.init();

        spermfreezing.init();
        embryoslabfuncion.init();

    });
    //$('.mask_date_new').inputmask('y-m-d');


</script>
<script>
    $(function () {
        $("#sortable").sortable({
            items: "li:not(.unsortable)",
            //$("#sortable").sortable("destroy");
        });


        $("#sortable").disableSelection();
    });


    $(document).ready(function () {


        //  var oldurl = $("#oldurl").val();
        var currenturl = window.location.href;
        var tabpatientid = $('#patientid').val();

        var send = currenturl.indexOf("#t");

        function rememberTabSelection(tabPaneSelector, useHash, tabpatientid) {
            var key = 'selectedTabFor' + tabPaneSelector + tabpatientid;

            if (get(key)) {
                $(tabPaneSelector).find('a[href=' + get(key) + ']').tab('show');
                ''
            }

            $(tabPaneSelector).on("click", 'a[data-toggle]', function (event) {
                set(key, this.getAttribute('href'));

            });

            function get(key) {
                return useHash ? location.hash : localStorage.getItem(key);

            }

            function set(key, value) {
                if (useHash)
                    location.hash = value;
                else
                    localStorage.setItem(key, value);
            }
        }

        if (send.toString() == "-1") {


            rememberTabSelection('#rowTab', !localStorage, tabpatientid);
            rememberTabSelection('#rowTab2', !localStorage, tabpatientid);
        }

        // Do Work...
    });

    window.onload = function () {
        $('#loaderbefore').hide();
    }

    if ($('#ifsend').length > 0) {
        $chedit = $('#ifsend').val();
        $hosturl = $('#hosturl').val();
        if ($chedit == 0) {
            $.post($hosturl + "/controllers/index.php?ac=sendmail", function () {
                console.log(5555555555555555);
            });
        }
    }

    $(function () {
        $.uniform.restore(".aspect-input");
        $('.aspect-input').hide();
    });


</script>


<!-- END JAVASCRIPTS -->
</body>

<!-- END BODY -->

</html>
