/* Last Modified: 2012-02-03 swright

http://drh.img.digitalriver.com/DRHM/Storefront/Site/msshuk/pb/multimedia/OT_files/msshuk_globalTrial.js
https://drh.img.digitalriver.com/DRHM/Storefront/Site/msshuk/pb/multimedia/OT_files/msshuk_globalTrial.js
http://a248.e.akamai.net/f/248/5462/2h/store.digitalriver.com/DRHM/Storefront/Site/msshuk/pb/multimedia/OT_files/msshuk_globalTrial.js
https://a248.e.akamai.net/f/248/5462/2h/store.digitalriver.com/DRHM/Storefront/Site/msshuk/pb/multimedia/OT_files/msshuk_globalTrial.js

*/

// The following cookie drop is for ... Dynamic PricingPromo
if(window.location.href.indexOf("Action=DisplayLoginPage") != -1){
    var cobj562579 = function(name) {
            var regexS = "[\\?&]"+name+"=([^&#]*)";
            var regex = new RegExp( regexS );
            var tmpURL = window.location.href;
            var results = regex.exec( tmpURL );

            if( results == null ){
                return "";
            }else{
                return results[1];
            }
        }
 
    ptomodule.SC('email', cobj562579('loginEmail'), 360000, ptomodule.SLD());
}

// Trial code for SH UK Language Pack ABC - On PD and SC pages
if(window.location.href.indexOf("Action=DisplayHomePage") != -1 || window.location.href.indexOf("id=ShoppingCartPage") != -1 || window.location.href.indexOf("Action=ContinueShopping") != -1) {

/*
    Portfolio: Student Hero
    Subject: Home_Page_UK
    Trial: Trial 1
    Referenced context:
    - Query string: test
    - Cookies: email, optest
    - JavaScript variables: optrial.sticky
    Note: This code should not be included in a secure (https) page.
*/
(function(){var _o=ptomodule;_o.U="https://ssl.pto.digitalriver.com/by/trial/390/p/langpack_ab_uk.600/154/content.js";
_o.ST="script";_o.SA={"type":"text/javascript"};_o.B();_o.A["email"]=_o.C["email"];_o.A["optest"]=_o.C["optest"];
_o.R(1000,null,null,null);})();

}
