//Tracking
if(window.location.hash) window.location.hash=window.location.hash.replace(/;/g,"&");

if (Drupal.jsEnabled) {
  $(document).ready(function() {
    
    pop_handle();
    
    //Footer
    var first = "customer-support";
    var end = "simplisafe";
    var total = first + "&#64;" + end + ".com";
    var action = "&#109;&#97;&#105;&#108;" + "&#116;&#111;&#58;";
    $("#contact-holder").html("<a href=" + action + total + ">" + total + "</a>" + " | ");
    
})
}

function pop_handle(){
  $(".pop").attr("href", function() {
    if (this.href.search(/\?/) == -1) {
      return this.href + "?pop=true&height=500&width=800";
    }
    else {
      return this.href + "&pop=true&height=500&width=800";
    }
  });
}

