﻿
$(function() {

    //    alert(localhost);
    //    //Include the omniture js files
    //    if (typeof (localhost) != 'undefined') {
    //        if (localhost == 'False')
    //            inc("s_code.js", "head");
    //        else
    //            inc("s_code_dev.js", "head");
    //    }
    //    else
    //        inc("s_code.js", "head");

    //Send the current page to Omniture
    //alert(currentPage);
    if (typeof (currentPage) != 'undefined') {
        if (currentPage != '')
            s.pageName = currentPage;
    }

    //alert(isMiniBTW);
    if (typeof (isMiniBTW) != 'undefined') {
        if (isMiniBTW == 'True') {  //Mini BTW
            if (typeof (uid) != 'undefined')
                s.events = "event41:" + uid;
        }
        else {  //BTW.com
            if (typeof (uid) != 'undefined') {
                //alert(uid);
                s.events = "event5:" + uid;
            }
        }
    }
    else {  //BTW.com
        if (typeof (uid) != 'undefined') {
            //alert(uid);
            s.events = "event5:" + uid;
        }
    }
    
    //Send events to Omniture
    var s_code = s.t();
    if (s_code)
        document.write(s_code);
});
