﻿var gaTest = false;

function ga_whistleblowing() {
//    if (typeof (Page_ClientValidate) == 'function') {
//        Page_ClientValidate();
//    }
//    if (Page_IsValid) {
        if (gaTest) alert('ga_whistleblowing()');
        _gaq.push(['_trackPageview', document.location.pathname + document.location.search + (document.location.search.length > 0 ? "&" : "?") + "goal=submit"]);
    //}
};

function ga_applyNow() {
    if (gaTest) alert('ga_applyNow()');
    _gaq.push(['_trackPageview', document.location.pathname + document.location.search + (document.location.search.length > 0 ? "&" : "?") + "goal=apply-now"]); 
};

function ga_facebookLike(url) {
    if (gaTest) alert(_gaq);
    _gaq.push(['_trackEvent', 'FB Like', 'FB Like:' + url]); 
};

function ga_createProfile() {
    if (gaTest) alert('ga_createProfile()');
    _gaq.push(['_trackPageview', document.location.pathname + document.location.search + (document.location.search.length > 0 ? "&" : "?") + "goal=create-profile"]); 
};


function ga_socialResponsabilityRequest() {
    if (gaTest) alert('ga_socialResponsabilityRequest()');
    _gaq.push(['_trackPageview', document.location.pathname + document.location.search + (document.location.search.length > 0 ? "&" : "?") + "goal=submit"]);
};

function ga_joinUs() {
    if (gaTest) alert('ga_joinUs()');
    _gaq.push(['_trackPageview', document.location.pathname + document.location.search + (document.location.search.length > 0 ? "&" : "?") + "goal=submit"]);
};


function ga_banner(bannerName) {
    if (gaTest) alert('ga_banner()');
    _gaq.push(['_trackEvent', 'banner', 'banner:switch', 'banner:switch:'+bannerName]);
};

function ga_print(url) {
    if (gaTest) alert('ga_print()');
    _gaq.push(['_trackEvent', 'print', 'print:click', url]);
};

