﻿//$(document).ready(function() {

//    $('a').click(function(e) {
//        alert("Destination: " + e);
//    });


//});
function openZoom(element) {        
    hs.expand(element);
    return false;
}

function ShowDAW() {
    if ($("#stateList").val() != "--") {
        DAW($("#stateList").val());


        // Tracking
        var s = s_gi(s_account);
        s.linkTrackVars = 'prop19,eVar19,events';
        s.linkTrackEvents = 'event18';
        s.prop19 = $("#stateList").val();
        s.eVar19 = $("#stateList").val();
        s.events = 'event18';
        s.tl(this, 'o', 'Dispense As Written');

        // .Tracking
        
    }
}

function DAW(state) {
    if (state != "") {
        $(".DAW_Text").hide();
        $("#DAW_state").html(state);
        $("#DAW_" + state).show();
    }
}


function openSendFriend() {
    // use SSL on prod
    if (window.location.href.search("trilipixpro.com") != -1) {
        window.open('http://www.trilipixpro.com/SendToFriend?title=' + document.title + '&url=' + escape(window.location.href), null, 'scrollbars=no,resizable=yes,width=440,height=500');
    }
    else {
        window.open('/SendToFriend?title=' + document.title + '&url=' + escape(window.location.href), null, 'scrollbars=no,resizable=yes,width=440,height=500');
    }
    //window.open('/SendToFriend?url=' + '<%=Request.Url%>' + '&title=' + document.title, null, 'scrollbars=no,resizable=yes,width=440,height=500')
}

function MM_openBrWindow_(theURL, winName, features) {
    window.open(theURL, winName, features);
}

function openDisclaimer(url) {
    MM_openBrWindow_('/Exitsite?url=' + url, 'winDisclaimer', 'width=400,height=300');
}

function TrackPatientTool() {
    var s=s_gi(s_account);
    s.linkTrackVars='prop1,prop8,eVar1,eVar8,events';
    s.linkTrackEvents='event1';
    s.prop1='Patient Tool PDF Download'; 
    s.prop8='Patient Tool Callout'; 
    s.eVar1='Patient Tool PDF Download'; 
    s.eVar8='Patient Tool Callout';
    s.events='event1';
    s.tl(this,'d','Patient Tool PDF Download');
}
