/*

http://drh.img.digitalriver.com/DRHM/Storefront/Site/C5_470/cm/multimedia/OT_Files/c5_470_promotioncontactlogon_contentBody.js
http://a248.e.akamai.net/f/248/5462/2h/store.digitalriver.com/DRHM/Storefront/Site/C5_470/cm/multimedia/OT_Files/c5_470_promotioncontactlogon_contentBody.js

*/

if (typeof(optrial) === 'undefined') {
    var optrial = {};
}

if (drso.getURLparam('opresponse') === 'taf') {
    optrial.responseType = 'Tell A Friend';
    drso.setCookie('op_response', 'taf', drso.getDomain(), null);
} else if (drso.getURLparam('opresponse') === 'tacw') {
    optrial.responseType = 'Tell A Co-worker';
    drso.setCookie('op_response', 'tacw', drso.getDomain(), null);
} else if (drso.getCookie('op_response')) {
    optrial.responseType = drso.getCookie('op_response');
}




function gup( name ){  var regexS = "[\\?&]"+name+"=([^&#]*)";  var regex = new RegExp( regexS );  var tmpURL = self.location.href;  var results = regex.exec( tmpURL );  
if( results == null )    return "";  else    return results[1];}

var locationvar = gup( 'ftt' );

optrial.ftt = locationvar;

// Portfolio: c5_470 (eHUP US)
// Subject: eHUP_Landing_Page
(function(){var _o=ptomodule;_o.U="http://pto.digitalriver.com/trial/390/p/ehup_landing_page.b55/231/content.js";
_o.ST="script";_o.SA={"type":"text/javascript"};_o.B();_o.A["optrial.ftt"]=(typeof optrial.ftt!="undefined")
?optrial.ftt:null;_o.A["optrial.responseType"]=(typeof optrial.responseType!="undefined")?optrial.responseType:
null;_o.R(1000,null,null,null);})();

if ( drso.getURLparam('resp_c') ) {
	
	// Counter: c5_470 resp_c
	// Referenced context:
	// - Query string: resp_c
	// Modified: The counter was last modified 2011-08-24 20:38 GMT.
	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="http://pto.digitalriver.com/counter/390/-/324/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["resp_c"]=
	_o.Q["resp_c"];_o.D.write('<'+'script type="text/javascript" src="'+_oS()+'"><\/script>');
}
