// Omniture Product Specific File
// Desc: Used to track 404 pages with proper dead link url
// Product: 404 
///////////////////////////////////////////////////////////////////////////////

// Product  Specific Variables
s.pageType		= "errorPage";
mistats.channel         = "404";
mistats.taxonomy      	= "Online|SystemResponse|Error||";

// Facebook Fix

// Local Vars
var mi_wls = window.location.search, mi_dr = document.referrer, mi_dc = document.cookie;

// Read Previous Page Cookie
mistats.ppu = mi_dc.match ( '(^|;) ?' + 'mi_ppu' + '=([^;]*)(;|$)' );

// FBC Referrer Check
if(mi_dr.match('facebook.com') && mistats.ppu !== 'null') {

        // Get previous page url
        var mi_rr = unescape(mistats.ppu);
        mi_rr = mi_rr.split('=');
        mi_rr = mi_rr[1].split(',');
        mi_rr = mi_rr[0].split(';');

        // Set s.prop10 (mistats.popstoryurl)
        mistats.popstoryurl = 'Facebook_rec_widget';

        // Get API Key if available
        if(mi_wls.match(/api_key/ig)) {
              mistats.popstoryurl = mistats.popstoryurl + ': api_key';
        }

        // Override Referrer
        s.referrer = mi_rr[0];

        // Make sure we send data
        var mitagsent;

}

// Check for FB caused pageview
if(mi_wls.match(/fb_xd_fragment/ig) || mi_wls.match(/fbc_channel/ig)) {
        var mitagsent = true;
}



