﻿function OpenAndDownload(location, brandName) {
    try {
        ntptAddPair("dl", location);
        ntptEventTag("ev=download_" + brandName);
    } catch (err) { }
    //this to avoid javascript errors in SWOT pages
    try {
        setDownloadStatus();
    } catch (err) { }
    var sURLreg = "downloadclient.aspx?" + "dl=" + location + "&DownloadBrand=" + brandName;
    window.open(sURLreg, "popDown", "width=1,height=1,top=0,left=0");

    if (brandName == "poker")
        document.location.href = "http://www.pacificpoker.com/en/download_short.htm";
    //else if (brandName == "casinog2")
    //    document.location.href = "http://www.888.com/?page=download_short";

}

function setDownloadStatus() {
    setCookie("downloaded", "1", "/");
}


