//last updated Jan 25, 2011
//set the entry page cookie if it's not already set
if (!drso.getCookie('op_entryPage')){
    drso.setCookie('op_entryPage','shoppingCartPage', drso.getDomain(), null);
    optrial.entryPage = 'shoppingCartPage';
} else {
    optrial.entryPage = 'otherPages';
}

//look up the cookie set in the interstitial page to see which business type the targeted PID for TAV interstitial + candyrack test is.  See tmamer_productUpSellPage_contentBody.js for details

if (drso.getCookie('op-tiavType')) {
  optrial.tiavType = drso.getCookie('op-tiavType');
}

/*
Portfolio: store.trendmicro.com (GC-hosted)
Subject: tmamer_ShoppingCartPage
Trial: Trial 1
Referenced context:
- Query string: test
- Cookies: op-intTestCreative, optest
- JavaScript variables: optrial.entryPage, optrial.tiavType, optrial.sticky
Note: This code should be included in a secure (https) page.
 */

(function(){var _o=ptomodule;_o.U="https://ssl.pto.digitalriver.com/by/trial/398/p/shoppingcart.1d2/77/content.js";
_o.ST="script";_o.SA={"type":"text/javascript"};_o.B();_o.A["op-intTestCreative"]=_o.C["op-intTestCreative"];
_o.A["optest"]=_o.C["optest"];_o.A["optrial.entryPage"]=(typeof optrial.entryPage!="undefined")?optrial.entryPage:
null;_o.A["optrial.tiavType"]=(typeof optrial.tiavType!="undefined")?optrial.tiavType:null;_o.R(1000,
null,null,null);})();


/*
Portfolio: store.trendmicro.com (GC-hosted)
Subject: tmamer_GlobalShoppingCart_MVT
Trial: Global Shopping Cart AB

- tmamer_ShoppingCartPage_contentBody.js
- tmamer_CheckoutPaymentAnonymousPage_contentBody.js
- tmamer_ThankYouPage_contentBody.js
*/

(function(){var _o=ptomodule;_o.U="https://ssl.pto.digitalriver.com/by/trial/398/p/tmamer_globalshoppingcart_mvt.95/108/content.js";_o.ST="script";_o.SA={"type":"text/javascript"};_o.B();_o.A["optest"]=_o.C["optest"];_o.R(1000,null,null,null);})();

//hide the discount amount for the TiIS/TiMAX pricing test
if (drso.getCookie('op-pricing-test')){
  document.write('<style type="text/css">#dr_cartTbl {display: none;}</style>');
  $(function(){
    $('input[value="'+drso.getCookie('op-pricing-test')+'"]').parents('tr:first').find('.discountText').hide();
    $('#dr_cartTbl').show();
  })
}

/*
 Counter: tmamer_ShoppingCartPage
Referenced context:
- Cookies: op398shoppingcartliid, op398tamer_productdetailspageliid, op398tmamer_homepageliid
Modified: The counter was last modified 2010-12-20 18:16 GMT.
Note: This script should be included in a secure (https) page.
*/
var _o=(typeof opcounter=="object")?opcounter:new Object;_o.D=document;_o.L=_o.D.location;_o.T=
new Date;_o.Q=new Object;_o.C=new Object;_o.U="https://ssl.pto.digitalriver.com/by/counter/398/-/61/event.js";
_o.D_ts=Math.round(_o.T.getTime()/1000);_o.D_tzo=_o.T.getTimezoneOffset();_o.D_loc=_o.L.protocol+
"//"+_o.L.hostname+_o.L.pathname;_o.D_ckl=_o.D.cookie.length;_o.D_ref=_o.D.referrer;function 
_oI(){var s=_o.L.search;var c=_o.D.cookie;if(s.length>3){for(var a=s.substring(1).split("&")
,i=0,l=a.length;i<l;i++){var p=a[i].indexOf("=");if(p>0)_o.Q[a[i].substring(0,p)]=unescape(a[i].substring(
p+1));}}if(c.length>3){for(var a=c.split(";"),i=0,b=a.length;i<b;i++){var v=a[i].split("=");
while(v[0].substring(0,1)==" ")v[0]=v[0].substring(1,v[0].length);if(v.length==2)_o.C[v[0]]=
unescape(v[1]);}}}function _oS(){var o=new Object;for(var n in _o)o[n]=_o[n];o.D=o.L=o.T=o.Q=o.C=
o.U=null;var q='';for(var n in o)if(o[n]!=null && o[n]!="")q+=(q.length>0?"&":(_o.U.indexOf(
"?")>0?"&":"?"))+n+"="+escape(o[n]);return _o.U+q;}_oI();for(var n in _o.Q)if(n.substring(
0,2)=="op")_o[n]=_o.Q[n];for(var n in _o.C)if(n.substring(0,2)=="op")_o[n]=_o.C[n];_o.D.write(
'<'+'script type="text/javascript" src="'+_oS()+'"><\/script>');
