(function () { /*Using http://youmightnotneedjquery.com*/ var url = (window.location != window.parent.location) ? document.referrer : document.location.href; function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i