<footer>
<div class="foo-top">
<div class="container cf">
<section class="widget-4 widget-last widget-even col-6 fo-contact widget widget_text">
<h5 class="widget-title">ADDRESS :-</h5>
<div class="textwidget"><p>
137-1140 Burnhamthorpe Rd. W<br> 
Mississauga , ON L5C 0A3<br> 
Canada
</p>
<!--<p><a href="tel: 6472945240 "> <i class="fa fa-phone"></i> (647) 294-5240</a></p>-->
<p> <i class="fa fa-envelope-o"></i> <a href="mailto:info@metalstamping-dies.com">info@metalstamping-dies.com</a> </p>
</div>
</section>

<section class="widget-2 widget-even col-4 product-nav fo-nav widget widget_text">
<h5 class="widget-title">QUICK LINKS</h5>
<div class="textwidget">
<ul id="our-products" class="footer-nav">
<li><a href="/tool-and-die-toolmaker-near">Tool Manufacturing</a></li>
<li><a href="/custom-sheet-metal-stamping-dies">Stamping Dies</a></li>
<li><a href="/wire-drawing-extruder-die-design">Die Design</a></li>
<li><a href="/knowledge-base">Knowledge-base</a></li>
<li><a href="/contact-us">Contact Us</a></li>
</ul>
</div>
</section>

<div class="col-12">
<p class="copyright" style ="text-align: -webkit-center;">Copyright <?php echo date('Y'); ?> Metal Stamping Dies All right reserved.</p>

<div class="social-icons mhide">
<a href="https://www.facebook.com/metalstampingdie/" target="_blank"><i class="fa fa-facebook"></i></a>
<a href="https://twitter.com/stampingdies" target="_blank"><i class="fa fa-twitter"></i></a>
<!--<a href="#" target="_blank"><i class="fa fa-linkedin"></i></a>-->
<a href="https://www.instagram.com/metalstampingdies/" target="_blank"><i class="fa fa-instagram"></i></a>
<!--<a href="#" target="_blank"><i class="fa fa-youtube"></i></a>-->
<a href="https://in.pinterest.com/metalstampingdies/" target="_blank"><i class="fa fa-pinterest"></i></a>

</div>

</div>

</div>
</div>
</footer>
<!-- <script src="<?// echo SITE_WS_PATH; ?>/js/jquery-scrolltofixed.js"></script> -->

<script>
var acc = document.getElementsByClassName("accordion");
var i;

for (i = 0; i < acc.length; i++) {
  acc[i].addEventListener("click", function() {
    this.classList.toggle("active");
    var panel = this.nextElementSibling;
    if (panel.style.display === "block") {
      panel.style.display = "none";
    } else {
      panel.style.display = "block";
    }
  });
}
</script>

<!--<script>
var acc = document.getElementsByClassName("accordion");
var i;
var last;

for (i = 0; i < acc.length; i++) {
	acc[i].onclick = function()
	{
		if(last)
		{
			last.classList.toggle("active",false);
			last.nextElementSibling.classList.toggle("show",false);
		}
		this.classList.toggle("active");
		this.nextElementSibling.classList.toggle("show");
		last=this;
	}
}
/*var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
  acc[i].addEventListener("click", function() {
    this.classList.toggle("active");
    var panel = this.nextElementSibling;
    if (panel.style.display === "block") {
      panel.style.display = "none";
    } else {
      panel.style.display = "block";
    }
  });
}*/
</script>-->


<script>
 
    // Your jQuery code here
   // $('#header .navigation').scrollToFixed();
 
</script>
 <?php 
$ip =$_SERVER['REMOTE_ADDR'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://ip-api.com/json/$ip");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$json = curl_exec($ch);

// Decode JSON response
$json = json_decode($json, true);
$city = $json['city'] ?? '';
$region = $json['regionName'] ?? '';
$country = $json['country'] ?? '';
?> 
<!--<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">-->
<link href="https://www.metalstamping-dies.com/css/font-awesome.css" rel="stylesheet">
<!--<link rel="preload" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"></noscript>
-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="<?php echo SITE_WS_PATH; ?>/js/responsiveslides.js" defer ></script>
<script src="<?php echo SITE_WS_PATH; ?>/js/script.js" ></script>
<script src="<?php echo SITE_WS_PATH; ?>/js/script_popup.js"></script>
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">-->
<link rel="stylesheet" href="<?php echo SITE_WS_PATH;?>/css/bootstrap.css">
<!--<link rel="preload" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"></noscript>-->





<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

<script src="<?php echo SITE_WS_PATH; ?>/js/lazysizes.min.js" async></script>

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.defer=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-P6K7B4F');</script>
<!-- End Google Tag Manager -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!--<script src="<? //echo SITE_WS_PATH; ?>/js/jquery1.9.1.min.js" ></script>  -->
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> 
<div class="sliding_form slide_out" style="display:none;" id="wholes">
        <span class="close-button" onclick="closeForm()">&times;</span>
     <div class="sliding_form_inner">
      <p class="frm1 bordr">Free Product Analysis with our Expert!</p>
            <p class="frm2">Discuss your Requirements with our Product Expert!... Already served 870+ Clients</p>

		 <!--<script src="//sas.emuaj.in/form/generate.js?id=148"></script>-->
		 <?php include("getquote-form.php");?>
      
       <!--<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>-->
       <script src="https://apis.google.com/js/api.js"></script>
		   
</div>
</div>

<!-- whole Sale Script Start -->
<!--<div class="modal fade" id="wholeS" tabindex="-1" role="dialog" >
  <div class="modal-dialog" role="document" style="top: 75px;max-width: 400px;">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" style="top: 25px; position: absolute; z-index: 9999; right: 20px;font-size: 33px; opacity: .5; color: white;" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      </div>
      <div class="modal-body" style="padding: 0px 2px;">
         <div class="main-popup">
            <span class="contact-title" style="font-size: 22px;margin-top: -29px;border-radius: 3px;line-height: 1.4em;background: #f27800;text-transform: none;font-family: system-ui;" >Get Free Consultation + CAD Design worth <b class="blinking">$500</b></span>
            <div role="form" >
              <div class="screen-reader-response"></div>
             -->  
                <!--  <script  src="//sas.elehue.com/form/generate.js?id=104"></script>-->
			<!--	   <script type="text/javascript" src="https://sas.emuaj.in/form/generate.js?id=148"></script>
                </div>
         </div>
      </div>
     </div>
   </div>
</div>-->

<!--<script>
    var url = window.location.href; 
    $(document).ready(function(){
          $('#mauticform_input_msdws_lead_source').append("<option value='"+url+" + Whole Sale' selected> Whole Sale</option>")
    }); 
   
      $(document).ready(function(){
          $('#mauticform_input_msdws_submit').click(function(){
             wholeSale();
          });
      });  
</script>

<script>
function wholeSale()
    {
        var field1 = $("#mauticform_input_msdws_f_name").val();
        var field2 = $("#mauticform_input_msdws_phone").val();
        var field3 = $("#mauticform_input_msdws_email").val();
        var field4 = $("#mauticform_input_msdws_f_message").val();
        var field5 = $("#mauticform_input_msdws_lead_source").val();
        var field6 = '<?// echo $city. ", ".$region.", ".$country; ?>';
        var fieldcheck = $("#mauticform_input_msdws_captcha").val();
       
        if(field1==''){  return false; }
        if(field2==''){  return false; }
        if(field3==''){  return false; }
        if(fieldcheck !=''){  return false; }
       
        else{
               
          $.ajax({
          url: "https://docs.google.com/forms/u/0/d/e/1FAIpQLSdu8AC9tes9wArMWMk7z2obXBjBFirz3tEEjPYCpZ-0GPROFg/formResponse",
          data: { "entry.84183550": field1, "entry.1158977148": field2, "entry.2092375914": field3, "entry.299049856": field4, "entry.1038437950": field5, "entry.74558044": field6 },
          type: "POST",
          dataType: "xml",
          success: function(d) {},
          error: function(x, y, z) {
            $('#success-msg').show();
            $('#formfield').hide();
          }
        });


         $.ajax({
          url: "https://docs.google.com/forms/u/0/d/e/1FAIpQLScuE58eMwWb3FmpuHIyq6L4z17vB9ruJDq6ZPJEzf7B8HuOdw/formResponse",
          data: { "entry.84183550": field1, "entry.1158977148": field2, "entry.2092375914": field3, "entry.299049856": field4, "entry.1038437950": field5, "entry.48329758": field6},
          type: "POST",
          dataType: "xml",
          success: function(d) {},
          error: function(x, y, z) {
            $('#success-msg').show();
            $('#formfield').hide();
          }
        });

        }
    }

</script>-->


<script>
$(document).ready(function () {

  $('#mauticform_wholesaleformmetal').on('submit', function (e) {

    var url = window.location.href.split('#')[0];
    var field1 = $('#mauticform_input_wholesaleformmetal_f_name').val().trim();
    var field2 = $('#mauticform_input_wholesaleformmetal_phone').val().trim();
    var field3 = $('#mauticform_input_wholesaleformmetal_email').val().trim();
    var field4 = $('#mauticform_input_wholesaleformmetal_f_message').val().trim();
    var field5 = url + ' | Get Quote';

    // â›” STOP submit if required fields missing
    if (!field1 || !field2 || !field3 || !field4) {
      alert('All fields are required.');
      e.preventDefault();   // ðŸ”¥ THIS actually stops Mautic
      return false;
    }

    // âœ… Send to Google Form (fire & forget)
    $.ajax({
//   url: "https://docs.google.com/forms/d/e/1FAIpQLScDCOdedydrCv-09srV15lAqR1-InsY5Eaogz-Lt4yWqATrgQ/formResponse",
  url:"https://docs.google.com/forms/u/0/d/e/1FAIpQLSdP-DZd5DGZM38TZtUKrFRBuh5vDmVsXZAudx51wtLlNXI-5g/formResponse",
 //  data: { "entry.1902069042": field1,"entry.941969064": field2,"entry.1510698678": field3,"entry.751273144": field4,"entry.1588330093": field5 },
    data: { "entry.1251720729": field1,"entry.746654238": field2,"entry.574360142": field3,"entry.634609468": field4,"entry.1533748469": field5 },

      type: 'POST',
      dataType: 'xml'
    });

    // âœ” allow Mautic to submit normally
  });

});
</script>



<!-- whole Sale Script End -->


<!--<div class="head-rightres">
                <div class="contact-infores">
                    <div class="forresone">
                       <a href="tel:(647) 294-5240 " class="phone-text"> (647) 294-5240 </a>-->
                        <!--<a href="tel:1234567890" class="phone-text"> +1234567890</a>-->
                      <!-- <a href="mailto:info@metalstamping-dies.com" class="email-text">info@metalstamping-dies.com</a>
                    </div>
                    <div class="header_certifications new">
        <a title="Request For Quote" href="javascript:void(0)" class="query-btn-new"><img src="<?// echo SITE_WS_PATH; ?>/images/request.jpg" alt="Custom Rubber Silicone Molds" /></a>
   <a class="whatsapp-float query-btn-new"><img src="<? //echo SITE_WS_PATH; ?>/images/whatsapp.webp" alt="contact us whatsapp"></a>
    </div>
                </div>
            </div>-->

<!-- Whatsapp Pop Chat Start -->
<a class="whatsapp-float query-btn-new"><img src="<?php echo SITE_WS_PATH; ?>/images/whatsapp.webp" alt="contact us whatsapp"></a>
 <!--<script>
    var url = window.location.href; 
    $(document).ready(function(){
          $('#mauticform_input_msdwa_lead_source').append("<option value='"+url+" + whatsapp' selected> whatsapp</option>")
    }); 
   
      $(document).ready(function(){
          $('#mauticform_input_msdwa_submit').click(function(){
             whatsapp();
          });
      });  
</script>

<script>
function whatsapp()
    {
        var field1 = $("#mauticform_input_msdwa_f_name").val();
        var field2 = $("#mauticform_input_msdwa_phone").val();
        var field3 = $("#mauticform_input_msdwa_email").val();
        var field4 = $("#mauticform_input_msdwa_f_message").val();
        var field5 = $("#mauticform_input_msdwa_lead_source").val();
            var field6 = '<? //echo $city. ", ".$region.", ".$country; ?>';
        var fieldcheck = $("#mauticform_input_msdwa_captcha").val();
       
        if(field1==''){  return false; }
        if(field2==''){  return false; }
        if(field3==''){  return false; }
        if(fieldcheck !=''){  return false; }
       
        else{
               
          $.ajax({
          url: "https://docs.google.com/forms/u/0/d/e/1FAIpQLSdu8AC9tes9wArMWMk7z2obXBjBFirz3tEEjPYCpZ-0GPROFg/formResponse",
          data: { "entry.84183550": field1, "entry.1158977148": field2, "entry.2092375914": field3, "entry.299049856": field4, "entry.1038437950": field5, "entry.74558044": field6 },
          type: "POST",
          dataType: "xml",
          success: function(d) {},
          error: function(x, y, z) {
            $('#success-msg').show();
            $('#formfield').hide();
          }
        });


         $.ajax({
          url: "https://docs.google.com/forms/u/0/d/e/1FAIpQLScuE58eMwWb3FmpuHIyq6L4z17vB9ruJDq6ZPJEzf7B8HuOdw/formResponse",
          data: { "entry.84183550": field1, "entry.1158977148": field2, "entry.2092375914": field3, "entry.299049856": field4, "entry.1038437950": field5, "entry.48329758": field6},
          type: "POST",
          dataType: "xml",
          success: function(d) {},
          error: function(x, y, z) {
            $('#success-msg').show();
            $('#formfield').hide();
          }
        });
        }
    }

</script>-->


<script>
$(document).ready(function () {

  $('#mauticform_whatsappformmetal').on('submit', function (e) {

    var url = window.location.href.split('#')[0];
    var field1 = $('#mauticform_input_whatsappformmetal_f_name').val().trim();
    var field2 = $('#mauticform_input_whatsappformmetal_phone').val().trim();
    var field3 = $('#mauticform_input_whatsappformmetal_email').val().trim();
    var field4 = $('#mauticform_input_whatsappformmetal_f_message').val().trim();
    var field5 = url + ' | Whatsapp';

    // â›” STOP submit if required fields missing
    if (!field1 || !field2 || !field3 || !field4) {
      alert('All fields are required.');
      e.preventDefault();   // ðŸ”¥ THIS actually stops Mautic
      return false;
    }

    // âœ… Send to Google Form (fire & forget)
    $.ajax({
//  url: "https://docs.google.com/forms/d/e/1FAIpQLScDCOdedydrCv-09srV15lAqR1-InsY5Eaogz-Lt4yWqATrgQ/formResponse",
  url:"https://docs.google.com/forms/u/0/d/e/1FAIpQLSdP-DZd5DGZM38TZtUKrFRBuh5vDmVsXZAudx51wtLlNXI-5g/formResponse",
  //data: { "entry.1902069042": field1,"entry.941969064": field2,"entry.1510698678": field3,"entry.751273144": field4,"entry.1588330093": field5 },
   data: { "entry.1251720729": field1,"entry.746654238": field2,"entry.574360142": field3,"entry.634609468": field4,"entry.1533748469": field5 },

      type: 'POST',
      dataType: 'xml'
    });

    // âœ” allow Mautic to submit normally
  });

});
</script>


<!-- Whatsapp Pop Chat End -->




<!-- Chat System Script Start -->
<div class="modal fade" id="chat" tabindex="-1" role="dialog" >
  <div class="tesshv modal-dialog" role="document" style="max-width:400px;float: right; position: absolute; right: 7px;
    bottom: 17px;">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" style="    top: 19px;
    position: absolute;
    z-index: 9999;
    right: 20px;
    font-size: 33px; opacity: .5; color: white;" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      </div>
      <div class="modal-body" style="padding: 0px 2px;">
         <div class="main-popup">
            <span class="contact-title" style="font-size: 20px; margin-top: -29px; border-radius: 3px; line-height: 1.4em;background: #082a4c;text-transform: capitalize;" >We are currently <b>OFFLINE</b>!<br><span style="color:#ff4343;"> <b>Please share your REQUIREMENT below</b></span> and we'll get back to you!</span>
            <div role="form" >
              <div class="screen-reader-response"></div>
                <!-- <script  src="//sas.elehue.com/form/generate.js?id=105"></script>-->
				 <script src="https://sas.emuaj.in/form/generate.js?id=149"></script>
              </div>
         </div>
      </div>
     </div>
   </div>
</div>


<a class="chat" data-toggle="modal" data-target="#chat"><img src="<?php echo SITE_WS_PATH; ?>/images/ChatLive.webp" alt="Chat"></a>
<!--<script>
  var url = window.location.href; 
  $(document).ready(function(){
      $('#mauticform_input_msdchat_lead_source').append("<option value='"+url+" + chat' selected> Chat</option>");
  
        $('#mauticform_input_msdchat_submit').click(function(){
           chat();
        });
    });
</script>

<script>
function chat()
    {
        var field1 = $("#mauticform_input_msdchat_f_name").val();
        var field2 = $("#mauticform_input_msdchat_phone").val();
        var field3 = $("#mauticform_input_msdchat_email").val();
        var field4 = $("#mauticform_input_msdchat_f_message").val();
        var field5 = $("#mauticform_input_msdchat_lead_source").val();
            var field6 = '<? //echo $city. ", ".$region.", ".$country; ?>';
        var fieldcheck = $("#mauticform_input_msdchat_captcha").val();
       
        if(field1==''){  return false; }
        if(field2==''){  return false; }
        if(field3==''){  return false; }
        if(fieldcheck !=''){  return false; }
       
        else{
               
           $.ajax({
          url: "https://docs.google.com/forms/u/0/d/e/1FAIpQLSdu8AC9tes9wArMWMk7z2obXBjBFirz3tEEjPYCpZ-0GPROFg/formResponse",
          data: { "entry.84183550": field1, "entry.1158977148": field2, "entry.2092375914": field3, "entry.299049856": field4, "entry.1038437950": field5, "entry.74558044": field6 },
          type: "POST",
          dataType: "xml",
          success: function(d) {},
          error: function(x, y, z) {
            $('#success-msg').show();
            $('#formfield').hide();
          }
        });


         $.ajax({
          url: "https://docs.google.com/forms/u/0/d/e/1FAIpQLScuE58eMwWb3FmpuHIyq6L4z17vB9ruJDq6ZPJEzf7B8HuOdw/formResponse",
          data: { "entry.84183550": field1, "entry.1158977148": field2, "entry.2092375914": field3, "entry.299049856": field4, "entry.1038437950": field5, "entry.48329758": field6},
          type: "POST",
          dataType: "xml",
          success: function(d) {},
          error: function(x, y, z) {
            $('#success-msg').show();
            $('#formfield').hide();
          }
        });


        }
    }

</script>-->


<script>
$(document).ready(function () {

  $('#mauticform_chatformmetal').on('submit', function (e) {

    var url = window.location.href.split('#')[0];
    var field1 = $('#mauticform_input_chatformmetal_f_name').val().trim();
    var field2 = $('#mauticform_input_chatformmetal_phone').val().trim();
    var field3 = $('#mauticform_input_chatformmetal_email').val().trim();
    var field4 = $('#mauticform_input_chatformmetal_f_message').val().trim();
    var field5 = url + ' | Chat';

    // â›” STOP submit if required fields missing
    if (!field1 || !field2 || !field3 || !field4) {
      alert('All fields are required.');
      e.preventDefault();   // ðŸ”¥ THIS actually stops Mautic
      return false;
    }

    // âœ… Send to Google Form (fire & forget)
    $.ajax({
//  url: "https://docs.google.com/forms/d/e/1FAIpQLScDCOdedydrCv-09srV15lAqR1-InsY5Eaogz-Lt4yWqATrgQ/formResponse",
  url:"https://docs.google.com/forms/u/0/d/e/1FAIpQLSdP-DZd5DGZM38TZtUKrFRBuh5vDmVsXZAudx51wtLlNXI-5g/formResponse",
  //data: { "entry.1902069042": field1,"entry.941969064": field2,"entry.1510698678": field3,"entry.751273144": field4,"entry.1588330093": field5 },
  data: { "entry.1251720729": field1,"entry.746654238": field2,"entry.574360142": field3,"entry.634609468": field4,"entry.1533748469": field5 },

      type: 'POST',
      dataType: 'xml'
    });

    // âœ” allow Mautic to submit normally
  });

});
</script>


<!-- Chat System Script End -->



<!-- Exit Popup Start -->
<?// if(!isset($_COOKIE['design'])) { ?> 
<!--<link rel="stylesheet" href="<?// echo SITE_WS_PATH; ?>/ysExit.css" type="text/css">
<script src="<?// echo SITE_WS_PATH; ?>/ysExit.js"></script>
    <div class="ys-layer"></div>
  <div class="ys-container" id="ys-container">
      <div class="ys-box">
          <a class="ys-popup-close ys-exit" href="#">x</a>
          <div class="ys-popup-content">
            <div class="main-popup">
            <span class="contact-title" style="font-size: 22px;background: #b6762f;padding: 10px 10px 10px 10px;">Get Free Consultation + CAD Design worth <b class="blinking">$500</b></span></div>   
          
			<script src="https://sas.emuaj.in/form/generate.js?id=151"></script>
            
          </div>
      </div>
  </div>
  <script>
    var options = {
      debug: true,
    }
    ysExit(options);
  </script>-->

 <!-- <script  >
      var url = window.location.href; 
      $(document).ready(function(){
         $('#mauticform_input_msdep_lead_source').append("<option value='"+url+" + ExitPopUp' selected> Chat</option>");
          $('#mauticform_input_msdep_submit').click(function(){
             exitpop();
          });
      });
  </script>


  <script >
  function exitpop()
      {
          var field1 = $("#mauticform_input_msdep_f_name").val();
          var field2 = $("#mauticform_input_msdep_phone").val();
          var field3 = $("#mauticform_input_msdep_email").val();
          var field4 = $("#mauticform_input_msdep_f_message").val();
          var field5 = $("#mauticform_input_msdep_lead_source").val();
              var field6 = '<? //echo $city. ", ".$region.", ".$country; ?>';
          var fieldcheck = $("#mauticform_input_msdep_captcha").val();
         
          if(field1==''){  return false; }
          if(field2==''){  return false; }
          if(field3==''){  return false; }
          if(fieldcheck !=''){  return false; }
         
          else{
                 
            $.ajax({
          url: "https://docs.google.com/forms/u/0/d/e/1FAIpQLSdu8AC9tes9wArMWMk7z2obXBjBFirz3tEEjPYCpZ-0GPROFg/formResponse",
          data: { "entry.84183550": field1, "entry.1158977148": field2, "entry.2092375914": field3, "entry.299049856": field4, "entry.1038437950": field5, "entry.74558044": field6 },
          type: "POST",
          dataType: "xml",
          success: function(d) {},
          error: function(x, y, z) {
            $('#success-msg').show();
            $('#formfield').hide();
          }
        });


         $.ajax({
          url: "https://docs.google.com/forms/u/0/d/e/1FAIpQLScuE58eMwWb3FmpuHIyq6L4z17vB9ruJDq6ZPJEzf7B8HuOdw/formResponse",
          data: { "entry.84183550": field1, "entry.1158977148": field2, "entry.2092375914": field3, "entry.299049856": field4, "entry.1038437950": field5, "entry.48329758": field6},
          type: "POST",
          dataType: "xml",
          success: function(d) {},
          error: function(x, y, z) {
            $('#success-msg').show();
            $('#formfield').hide();
          }
        });

         
          }
      }
  </script>-->
    <?// }?>
<!-- Exit Popup End -->
  <script>
    var url = window.location.href; 
    /*$(document).ready(function(){
          $('#mauticform_input_rubberformws_lead_source').append("<option value='"+url+" + Whole Sale' selected> Whole Sale</option>");
    }); */
   
      $(document).ready(function(){
          $('#mauticform_input_getaquotemetal_yes_i_am_interested_to_di').click(function(){
             exitpop();
		
          });
      }); 
</script>

<script>
function exitpop()
    {
      //  var url = window.location.href.split('#')[0]; 
        var field1 = $("#mauticform_input_getaquotemetal_f_name").val();
        var field2 = $("#mauticform_input_getaquotemetal_phone1").val();
        var field3 = $("#mauticform_input_getaquotemetal_email").val();
        var field4 = $("#mauticform_input_getaquotemetal_f_message").val();
		var field5 = $("#mauticform_input_getaquotemetal_lead_source").val();
	//	var field5 =url + ' + Get Quote';
               
        $.ajax({
    url: "https://docs.google.com/forms/u/0/d/e/1FAIpQLSdP-DZd5DGZM38TZtUKrFRBuh5vDmVsXZAudx51wtLlNXI-5g/formResponse",
    data: {"entry.1251720729": field1, "entry.746654238": field2, "entry.574360142": field3, "entry.634609468": field4, "entry.1533748469": field5},
         
  //   url: "https://docs.google.com/forms/d/e/1FAIpQLScDCOdedydrCv-09srV15lAqR1-InsY5Eaogz-Lt4yWqATrgQ/formResponse",
  //   data: {"entry.1902069042": field1, "entry.941969064": field2, "entry.1510698678": field3, "entry.751273144": field4,"entry.1588330093": field5},
    

            type: "POST",
            dataType: "xml",
            success: function(d)
            {
            },
            error: function(x, y, z)
                {
                    $('#success-msg').show();
                    $('#formfield').hide();
                }
          });
        }

</script>

 <script>
    function redirectSearch() {
        // Get the value from the search input
        var searchTerm = document.getElementById('search').value.trim();

        // If the search term is not empty, redirect to search_bar.php
        if (searchTerm !== '') {
            window.location.href = 'search_bar.php?search=' + encodeURIComponent(searchTerm);
        }

        // Prevent the form from submitting through its default action
        return false;
    }
</script>
<script>
function getRelatedTerms() {
    // Get the value from the search input
    var searchTerm = document.getElementById('search').value.trim();
//alert(searchTerm);
    // Get the related search results container
    var relatedSearchResults = document.getElementById('related-search-results');
    
       if(relatedSearchResults){
       relatedSearchResults.style.display = 'block';
       }else{
          relatedSearchResults.style.display = 'none';
    }

    // If the search term is not empty, send an AJAX request to get related terms
    if (searchTerm !== '') {
        fetch('getRelatedSearch.php?search=' + encodeURIComponent(searchTerm))
            .then(response => {
                if (!response.ok) {
                    throw new Error('Failed to fetch related terms');
                }
                return response.json();
            })
            .then(data => {
                displayRelatedTerms(data.relatedTerms);
            })
            .catch(error => {
                console.error('Error fetching related terms:', error);
                // Clear the related terms display if there's an error
                clearRelatedTerms();
            });
    } else {
        // If the search term is empty, clear the related terms display
        clearRelatedTerms();
    }
}

function clearRelatedTerms() {
    // Get the related search results container
    var relatedSearchResults = document.getElementById('related-search-results');

    // Clear the content of the related search results container
    relatedSearchResults.innerHTML = '';
}
// Function to display related terms
function displayRelatedTerms(relatedTerms) {
    var relatedSearchResultsContainer = document.getElementById('related-search-results');
    relatedSearchResultsContainer.innerHTML = '';

    if (relatedTerms.length > 0) {
        // Create a div to display related terms
        var relatedTermsDiv = document.createElement('div');

        // Add each related term as a clickable link
        relatedTerms.forEach(term => {
            var termLink = document.createElement('a');
            termLink.textContent = term.name; // Use textContent to set text content
            termLink.href = term.url; // Set the URL directly

            relatedTermsDiv.appendChild(termLink);

            // Add line break
            relatedTermsDiv.appendChild(document.createElement('br'));
        });

        // Append the related terms div to the related search results container
        relatedSearchResultsContainer.appendChild(relatedTermsDiv);
    } else {
        relatedSearchResultsContainer.textContent = ' ';
    }
}
</script>

 <!-- <script>
       
window.onscroll = function() {myFunction()};

var header = document.getElementById("navbar-main");
var sticky = header.offsetTop;

function myFunction() {
  if (window.pageYOffset > sticky) {
    header.classList.add("sticky");
  } else {
    header.classList.remove("sticky");
  }
}
</script>-->






<script>

$(document).ready(function () {
    $("#form_trigger").on('click', function() {
        var formWidth = $('.sliding_form').outerWidth();
        $('.sliding_form').show();

        if ($('.sliding_form').hasClass('slide_out')) {
            $('.sliding_form').removeClass('slide_out').addClass('slide_in');
            $(".sliding_form").animate({ right: 0 });
        } else {
            $('.sliding_form').removeClass('slide_in').addClass('slide_out');
            $('.sliding_form').animate({ right: '-' + formWidth + 'px' }, function() {
                // Optional: hide the form after sliding out
                $('.sliding_form').hide();
            });
        }
    });
});

function closeForm() {
    var formWidth = $('.sliding_form').outerWidth();
    $('.sliding_form').removeClass('slide_in').addClass('slide_out');
    $('.sliding_form').animate({ right: '-' + formWidth + 'px' }, function() {
        $('.sliding_form').hide(); // Hide after animation completes
    });
}
    </script>
    <script>
/* When the user clicks on the button, 
toggle between hiding and showing the dropdown content */
function myFunction() {
  document.getElementById("myDropdown").classList.toggle("show");
}

// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
  if (!event.target.matches('.dropbtn')) {
    var dropdowns = document.getElementsByClassName("dropdown-content");
    var i;
    for (i = 0; i < dropdowns.length; i++) {
      var openDropdown = dropdowns[i];
      if (openDropdown.classList.contains('show')) {
        openDropdown.classList.remove('show');
      }
    }
  }
}
</script>


<style>
a.snkborder {
    position: absolute;
    font-size: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    overflow: hidden;
    padding: 4px 20px;
    background: black;
    color: #fff;
    border-radius: 4px;
    margin-top: -126px;
    margin-left: 235px;
    font-weight: 800;
}
   
.snkborder:hover{
  transition:background-image 3s ease-in-out;
/*background-image: linear-gradient(90deg, #000000 0%, #ffffff 50%, #4169e1 100%);*/
color: black;
    background: #9ebbe8;

}
.custom-model-main {
  text-align: center;
  overflow: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; /* z-index: 1050; */
  -webkit-overflow-scrolling: touch;
  outline: 0;
  opacity: 0;
  -webkit-transition: opacity 0.15s linear, z-index 0.15;
  -o-transition: opacity 0.15s linear, z-index 0.15;
  transition: opacity 0.15s linear, z-index 0.15;
  z-index: -1;
  overflow-x: hidden;
  overflow-y: auto;
}

.model-open {
  z-index: 99999;
  opacity: 1;
  overflow: hidden;
}
.custom-model-inner {
  -webkit-transform: translate(0, -25%);
  -ms-transform: translate(0, -25%);
  transform: translate(0, -25%);
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -o-transition: -o-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  -o-transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
  display: inline-block;
  vertical-align: middle;
  width: 710px;
  margin: 30px auto;
  max-width: 97%;
  border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
     -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}
.custom-model-wrap {
  display: block;
  width: 100%;
  position: relative;
  background-color: #003073;
   background-clip: padding-box;
  outline: 0;
  text-align: left;
  padding: 10px 42px 30px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  max-height: calc(100vh - 70px);
	overflow-y: auto;
}
.model-open .custom-model-inner {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
  position: relative;
  z-index: 999;
}
.model-open .bg-overlay {
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
}
.bg-overlay {
  background: rgba(0, 0, 0, 0);
  height: 100vh;
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  -webkit-transition: background 0.15s linear;
  -o-transition: background 0.15s linear;
  transition: background 0.15s linear;
}
.close-btn {
  position: absolute;
  right: 10px;
  top: 2px;
  cursor: pointer;
  z-index: 99;

 font-size: 25px;
    color: #fff;
    font-weight: 700;
}
img.kxmm {
    width: 25%;
    float: right;
    margin-right: 31px;
}
.modal-footer {
    display: flex
;
background-color: #fff !important;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: .3rem;
    border-bottom-left-radius: .3rem;
}
.texnj {
    height: 35px;
    background-color: black;
}
</style>

	         <div class="custom-model-main">
    <div class="custom-model-inner">
        <div class="sejwc"> 
    <div class="texnj"></div>
    <div class="close-btn">×</div>
        <div class="custom-model-wrap">
            <div class="pop-up-content-wrap">
              
                 <?php //include("form-booking.php");?>
                  <?php include("book20min.php");?>
            </div>
            </div>
        </div>
          <div class="modal-footer">
            <img src="<?php echo SITE_WS_PATH; ?>/images/logo.webp" alt="logo" style="background-color:#f5f6f7 !important;" class="kxmm img-responsive" >
            </div>
    </div> 
  
            
    <div class="bg-overlay"></div>
</div> 
  
	<script>
$(".snkborder").on('click', function() {
  $(".custom-model-main").addClass('model-open');
}); 
$(".close-btn, .bg-overlay").click(function(){
  $(".custom-model-main").removeClass('model-open');
});
</script>
 
    <script>
<script>
(function($){
		$('.dropdown-menu a.dropdown-toggle').on('click', function(e) {
		  if (!$(this).next().hasClass('show')) {
			$(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
		  }
		  var $subMenu = $(this).next(".dropdown-menu");
		  $subMenu.toggleClass('show');

		  $(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function(e) {
			$('.dropdown-submenu .show').removeClass("show");
		  });

		  return false;
		});
	})(jQuery)
</script>
</body>
</html>