﻿function trackAction(actionKey){
    var actionString = "";
    switch (actionKey.toLowerCase()){
        case "flash_homebanner_viewfeatures":
            actionString = "/customevent/flash/home/bannerViewFeatures.ce";
            break;
            
        case "flash_homebanner_choosenumber":
            actionString = "/customevent/flash/home/bannerChooseNumber.ce";
            break;
        
        case "flash_homebanner_monitor":
            actionString = "/customevent/flash/home/bannerHowItWorks.ce";
            break;
            
        case "flash_howitworks_hostedlocal":
            actionString = "/customevent/flash/howItWorks/HostedLocalTollFreeVideo.ce";
            break;
            
        case "flash_howitworks_reporting":
            actionString = "/customevent/flash/howItWorks/ReportingAnalyticsVideo.ce";
            break;
            
        case "flash_howitworks_hostedvoicemail":
            actionString = "/customevent/flash/howItWorks/HostedVoicemailFaxVideo.ce";
            break;
    }
    
    if (actionString.length > 0){
        pageTracker._trackPageview(actionString);
    }
}