/*

Portfolio: Student Hero
Subject: msshus_cobranding
Note: This code should not be included in a secure (https) page.

http://drh.img.digitalriver.com/DRHM/Storefront/Site/msshus/cm/multimedia/OT_files/msshus_globalTrial.js
http://a248.e.akamai.net/f/248/5462/2h/store.digitalriver.com/DRHM/Storefront/Site/msshus/cm/multimedia/OT_files/msshus_globalTrial.js
https://drh.img.digitalriver.com/DRHM/Storefront/Site/msshus/cm/multimedia/OT_files/msshus_globalTrial.js
https://a248.e.akamai.net/f/248/5462/2h/store.digitalriver.com/DRHM/Storefront/Site/msshus/cm/multimedia/OT_files/msshus_globalTrial.js

*/


var url = document.location.href;
if( (url.indexOf("Action=DisplayHomePage") != -1) || (url.indexOf("Action=DisplayStudentHeroRegistrationPage") != -1) ){

	(function(){var _o=ptomodule;_o.U="http://pto.digitalriver.com/trial/390/p/msshus_cobranding.ba4/320/content.js";
	_o.ST="script";_o.SA={"type":"text/javascript"};_o.B();_o.R(1000,null,null,null);})();

}






if(document.location.href.indexOf("StudentHeroRegistrationPage") != -1){

cookievalue = window.name;

var expires = new Date();
expires.setDate(expires.getDate() + 7);

document.cookie = 'buylinktrack='+cookievalue+';expires=' + expires.toGMTString()+';domain=.digitalriver.com;path=/;'

}



if(document.location.href.indexOf("ThankYouPage") != -1){

function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}


var yn=getCookie('buylinktrack');

if (yn == 'defaultbuynowlink') {

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/390/-/144/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["ot_Day"]=
(typeof ot_Day!="undefined")?ot_Day:null;_o["ot_Month"]=(typeof ot_Month!="undefined")?ot_Month:
null;_o["ot_OrderID"]=(typeof ot_OrderID!="undefined")?ot_OrderID:null;_o["ot_orderTotal"]=(typeof 
ot_orderTotal!="undefined")?ot_orderTotal:null;_o.D.write('<'+'script type="text/javascript" src="'+
_oS()+'"><\/script>');

}

if (yn == 'rueligiblebuynowlink') {

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/390/-/145/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["ot_Day"]=
(typeof ot_Day!="undefined")?ot_Day:null;_o["ot_Month"]=(typeof ot_Month!="undefined")?ot_Month:
null;_o["ot_OrderID"]=(typeof ot_OrderID!="undefined")?ot_OrderID:null;_o["ot_orderTotal"]=(typeof 
ot_orderTotal!="undefined")?ot_orderTotal:null;_o.D.write('<'+'script type="text/javascript" src="'+
_oS()+'"><\/script>');

}


}



