$(function () {
$('[data-toggle="tooltip"]').tooltip({
delay: {"show": 700,"hide": 100}
});
});
$(".modal-open").each(function() {
$(this).modalForm({
formURL: $(this).data("url"),
next: $(this).data("next"),
redirect: $(this).data("redirect")
})
});
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
var source = getParameterByName('utm_source');
var medium = getParameterByName('utm_medium');
var campaign = getParameterByName('utm_campaign');
var content = getParameterByName('utm_content');
var term = getParameterByName('utm_term');
Cookies.set('utm_last_ref', document.referrer);
if(Cookies.get('utm_source') == null || Cookies.get('utm_source') == "") {
Cookies.set('utm_source', source);
}
if(Cookies.get('utm_medium') == null || Cookies.get('utm_medium') == "") {
Cookies.set('utm_medium', medium);
}
if(Cookies.get('utm_campaign') == null || Cookies.get('utm_campaign') == "") {
Cookies.set('utm_campaign', campaign);
}
if(Cookies.get('utm_content') == null || Cookies.get('utm_content') == "") {
Cookies.set('utm_content', content);
}
if(Cookies.get('utm_term') == null || Cookies.get('utm_term') == "") {
Cookies.set('utm_term', term);
}
if(Cookies.get('utm_first_ref') == null || Cookies.get('utm_first_ref') == "") {
Cookies.set('utm_first_ref', document.referrer);
}
if(Cookies.get('utm_entry_point') == null || Cookies.get('utm_entry_point') == "") {
Cookies.set('utm_entry_point', window.location.href);
}
-->