// This function allows us to use Google Analytics to track the site.
// It's important to note that G.A. does not really handle "rollup"
// in their reports.  So, we are going to fake it.  It is expected that
// the caller of this function will pass in a string that is pipe "|"
// delimited, where each element is a name given by the product manager
// for that particular page or part of the site
//
// This function will split up the string and call the urchinTracker method
// for each of the levels, giving each call a growing string of the levels.
// So googleTrack("aaaa|bbbb|cccc|dddd") will call urchingTracker() five
// times: once with now args to mark the page itself, then once for "aaaa",
// once for "aaaa/bbbb", etc.
//
// Also note that we will precede each string with "___" for the sole reason
// of being able to filter all these out in the future and only leave
// true pages (the null argument call to urchinTracker()
//
function googleTrack(str) {

    // the following is the tag assigned to this entire site; make sure
    // it is updated before launch
    //
    _uacct = "UA-1028981-1";    // change ALL of these in this file

    // a single no-arg call just to track this page
    //
    urchinTracker();

    // split up the passed-in arg to an array
    //
    var levels = str.split("|");

    // use this string to denote tha these are all non-actual-page tags and
    // are our constructed tags that assist in rollup; hopefully, we can
    // filter these out later if we have to
    //
    var tag = "___";

    // now, build up the growing string and pass it for each level
    //
    for (var item = 0; item < levels.length; item++) {
        tag += "/" + levels[item];
        urchinTracker(tag);
    }
    // alert(tag);
}

function googleTrackImpression(str) {

    // the following is the tag assigned to this entire site; make sure
    // it is updated before launch
    //
    _uacct = "UA-1028981-1";

    // use this string to denote tha these are all non-actual-page tags and
    // are our constructed tags that assist in rollup; hopefully, we can
    // filter these out later if we have to
    //
    var tag = "___/";

    // replace '|' with '/' chars
    //
    tag += str.replace(/\|/g, "/");

    urchinTracker(tag);
    // alert(tag);
}
