// JScript File

var debugMode = 0;

function runTrackingScript(i)
{

    dAlert("Run Track Fired " + i)
    switch (i)
    {
    // StartOfProcess
    case 0:
        StartOfProcess();
        break;
    // FirstResultsPage
    case 1:
        FirstResultsPage();
        break;
    // OtherResultsPages
    case 2:
        OtherResultsPages();
        break;
    }
    
}

function StartOfProcess()
{
    dAlert("Start of process")
    s.pageName="Van:CompareVansApplication:Start"; 
    s.server="mercedes-benz.motortrak.com";
    s.charSet="UTF-8";
    s.channel="van"; 
    s.pageType="";
    s.prop1="Vans:CompareVansApplication:StartPage";
    s.prop11="mpc";
    s.prop12="sagittarius_app";
    s.prop13="mb.uk";
    s.prop14="en";
    s.prop21="vans_compare_vans_application";
    s.prop22="vans_compare_vans_application_start";
    /* Conversion Variables */ 
    s.eVar21="vans_compare_vans_application";
    s.eVar22="vans_compare_vans_application_start";
    /* Hierarchy Variables */
    s.hier1=s.pageName;
    /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
    var s_code=s.t();
    if(s_code)document.write(s_code);
}

function FirstResultsPage()
{
    dAlert("FirstResultsPage")
    s.pageName="Van:CompareVansApplication:Results"; 
    s.server="mercedes-benz.motortrak.com";
    s.charSet="UTF-8";
    s.channel="van"; 
    s.pageType="";
    s.prop1="Vans:CompareVansApplication:ResultsPage";
    s.prop11="mpc";
    s.prop12="sagittarius_app";
    s.prop13="mb.uk";
    s.prop14="en";
    s.prop21="vans_compare_vans_application";
    s.prop22="vans_compare_vans_application_results";
    /* Conversion Variables */ 
    s.eVar21="vans_compare_vans_application";
    s.eVar22="vans_compare_vans_application_results";
    /* Hierarchy Variables */
    s.hier1=s.pageName;
    /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
    var s_code=s.t();
    if(s_code)document.write(s_code) 
}

function OtherResultsPages()
{
    dAlert("OtherResultsPages")
    s.pageName="Van:CompareVansApplication:FurtherResults"; 
    s.server="mercedes-benz.motortrak.com";
    s.charSet="UTF-8";
    s.channel="van"; 
    s.pageType="";
    s.prop1="Vans:CompareVansApplication:FurtherResultsPage";
    s.prop11="mpc";
    s.prop12="sagittarius_app";
    s.prop13="mb.uk";
    s.prop14="en";
    s.prop21="vans_compare_vans_application";
    s.prop22="vans_compare_vans_application_further_results";
    /* Conversion Variables */ 
    s.eVar21="vans_compare_vans_application";
    s.eVar22="vans_compare_vans_application_further_results";
    /* Hierarchy Variables */
    s.hier1=s.pageName;
    /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
    var s_code=s.t();
    if(s_code)document.write(s_code)//-->
}

function dAlert(s)
{
    if (debugMode == 1) {alert(s);}
}
