/*
Flash Code Examples
    
    //Using the JS API
    on (release) {
      getURL("javascript:gaTrack(1);");
    }
    
    //Using Native GA Code
    
    on (release) {
    // Track with no action
    getURL("javascript:pageTracker._trackPageview('/folder/file.html');");
    }

    on (release) {
    //Track with action
    getURL("javascript:pageTracker._trackPageview('/folder/file.html');");
    _root.gotoAndPlay(3);
    myVar = "Flash Track Test";
    }

    onClipEvent (enterFrame) {
    getURL("javascript:pageTracker._trackPageview('/folder/file.html');");
    }
*/

//Note the initial slash is very important
//Also, don't use document extensions
var GATRACKS = new Array();
GATRACKS[1] = "/Homepage";


function gaTrack( id ) {var url = GATRACKS[id];if(url!=null && url!=undefined){pageTracker._trackPageview(url);}}
function wtvrTrack( id ) {var url = GATRACKS[id]; if(url!=null && url!=undefined) {hitURL('/services/track/metric'+url);} }
function Track( id ) { if (pageTracker) {gaTrack(id);} wtvrTrack(id);}

//This function tracks URL's passed as arguments
//Include an initial slash
//And don't use document extensions
//ex: argTrack('/products/foo/bar/15/edit');
function argTrack( arg ) { hitURL('/services/track/metric'+arg); }
