$(function(){function A(){var K={},N,J=/\+/g,L=/([^&=]+)=?([^&]*)/g,O=function(P){return decodeURIComponent(P.replace(J," "))},M=window.location.search.substring(1);while(N=L.exec(M)){K[O(N[1])]=O(N[2])}return K}function C(){var J=new Cookie({name:"dlmInstalled",path:"/",expires:0});J.remove("version")}function D(){var J=A().version,K=new Cookie({name:"dlmInstalled",path:"/",expires:3650}),L=new Cookie({name:"dlmCheckDialogStatusCookie",path:"/",expires:0});L.remove("status");J=J?J:5;K.set("version",J);$.get("/sessions/remote.html",{dlmChoice:"emx"})}function F(){if(window.location.href.indexOf("uninstall")!=-1){C()}else{D()}}function B(){var L=new Cookie({name:"albumPageDLMCookie",path:"/",expires:3650}),M=L.get("pathname"),K=L.get("album"),J=L.get("artist");if(M){E(M)}}function E(J){$("#return-to-album").attr("href",J)}function G(J,K,L){if(L==null){L=""}_gaq.push(["_trackEvent",J,K,L])}function I(){$("#free-track").live("click",function(){G("DLM5 Install Success Page","click","Free track")});$("#dlm-faq").live("click",function(){G("DLM5 Install Success Page","click","FAQ")});$("#back-to-album").live("click",function(){G("DLM5 Install Success Page","click","Link back to album page")})}function H(){F();B();I()}H()});
