/*

http://drh.img.digitalriver.com/DRHM/Storefront/Site/ea/cm/multimedia/OT_files/ea_ProductDetailsPage_contentBody.js
http://a248.e.akamai.net/f/248/5462/2h/store.digitalriver.com/DRHM/Storefront/Site/ea/cm/multimedia/OT_files/ea_ProductDetailsPage_contentBody.js

*/

optrial.pageName='ProductDetailsPage';

//processing for the PD test

var PIDs = new Array(150391400, 108007000, 132722100, 132722000, 105153500, 131736400, 91619200, 162511300, 124172000, 95016400, 95015100, 95016500, 95016000, 95015900, 108009000, 108008900, 108008800, 95015800, 108005800, 138994900, 108006700, 108006600, 95015500, 131113200, 149851500, 169251600);

for(var i = 0; i<PIDs.length; i++){
  if (drso.url.indexOf(PIDs[i]) != -1){
    //so the URL contains one of the PIDs

    //figure out which product it is
    switch(PIDs[i]){
      case 150391400:
      case 108007000:
      case 132722100:
      case 132722000:
      case 169251600:
        optrial.gameTitle = 'Mass Effect 2';
        break;
      case 105153500:
      case 131736400:
        optrial.gameTitle = 'Sims 3';
        break;
      case 91619200:
      case 162511300:
        optrial.gameTitle = 'Spore';
        break;
      case 124172000:
      case 95016400:
      case 95015100:
      case 95016500:
      case 95016000:
      case 95015500:
      case 95015900:
        optrial.gameTitle = 'FIFA 10';
        break;
      case 108009000:
      case 108008900:
      case 108008800:
      case 95015800:
      case 108005800:
        optrial.gameTitle = 'Madden 10';
        break;
      case 138994900:
      case 108006700:
      case 108006600:
      case 131113200:
      case 149851500:
        optrial.gameTitle = 'Dragon Age';
        break;

    }

    /*
    Portfolio: Default
    Subject: EA_US_Store_Product_Detail_Page_2
    Trial: Trial 1
    Referenced context:
    - Query string: productID, test
    - Cookies: optest
    - JavaScript variables: optrial.gameTitle, optrial.sticky
    - JavaScript expressions: D_loc
    Note: This code should not be included in a secure (https) page.
    */


    (function(){var _o=ptomodule;_o.U="http://pto.digitalriver.com/trial/415/p/ea_us_store_product_detail_page_/96/content.js";
    _o.ST="script";_o.SA={"type":"text/javascript"};_o.B();_o.A["optest"]=_o.C["optest"];_o.A["optrial.gameTitle"]=
    (typeof optrial.gameTitle!="undefined")?optrial.gameTitle:null;_o.R(1000,null,null,null);})();






//break out of loop
    break;
  }
}




//the PC game test.  This subject used to target specific PIDs, but now runs on all PD pages, and personas are used to run tests on just select PIDs.


/*
Portfolio: Default
Subject: EA US Store PC Games
Trial: Trial 1
Referenced context:
- Query string: test
- Cookies: optest
- JavaScript variables: optrial.sticky
Note: This code should not be included in a secure (https) page.
*/


(function(){var _o=ptomodule;_o.U="http://pto.digitalriver.com/trial/415/p/eausstorepcgames.0fc/97/content.js";
_o.ST="script";_o.SA={"type":"text/javascript"};_o.B();_o.A["optest"]=_o.C["optest"];_o.R(1000,null,null,
null);})();
