var h=location.href.substr(0,5).toLowerCase();
if (h!="https")
  h="http";
var _loc = encodeURIComponent(location.href);
var _rloc = encodeURIComponent(document.referrer);
var _sii="";
var _iid="";
var _pid="";
var _ti="";
var _sti="";
var _cat="";
var _sc=1;
var _p=0;
var _op=0;
var _iu="";
var _de="";
var _pu="";
var _ct="";
var _pcookie="u";
if (typeof(p_cookie)!="undefined"){_pcookie=escape(p_cookie);}
if (typeof(subItemIds)!="undefined"){_sii=escape(subItemIds);}
if (typeof(ItemID)!="undefined"){ _iid=escape(ItemID); }
if (typeof(pageId)!="undefined"){ _pid=escape(pageId); }
if (typeof(pageID)!="undefined"){ _pid=escape(pageID); }
if (typeof(Title)!="undefined"){ _ti=encodeURIComponent(Title); }
if (typeof(subTitle)!="undefined"){ _sti=encodeURIComponent(subTitle); }
if (typeof(cateIdList)!="undefined"){ _cat=escape(cateIdList); }
if (typeof(statusCode)!="undefined"){ _sc=escape(statusCode); }
if (typeof(Price)!="undefined"){ _p=escape(Price); }
if (typeof(OrgPrice)!="undefined"){ _op=escape(OrgPrice); }
if (typeof(ImageURL)!="undefined"){ _iu=escape(ImageURL); }
if (typeof(Description)!="undefined"){_de=encodeURIComponent(Description); }
if (typeof(pageUrl)!="undefined"){ _pu=escape(pageUrl); }
if (typeof(CartItems)!="undefined"){ _ct=escape(CartItems); }

var arr=new Array(0);
if (storeId==2)
{
var alist=document.getElementsByTagName("a");
var i=0;
var j=0;
for (i=0;i<alist.length;i++)
{
var url=alist[i].href;

if (url.indexOf("shop_product_detail.jsp") >=0)
{
  var idx = url.indexOf("product_id=");
  if (idx >=0)
  {
	var idx2 = url.indexOf("&", idx);
        if (idx2 >=0)
	{
	   var pid=url.substring(idx+11,idx2);
           var f=1;
	   for (j=arr.length-1;j>=0;j--)
           { if (arr[j]==pid) {f=0; break;} }
           if (f==1)
           { arr.push(pid); }
	}
  }
}
}
}
document.write('<scr' + 'ipt language="JavaScript" type="text/javascript" src="' + h + '://rec.scupio.com/RecWeb/RecData.aspx?g='+_pcookie+'&ItemID=' + _iid + '&storeId=' + escape(storeId) + '&pageId=' + _pid + '&Title=' + _ti + '&subTitle=' + _sti + '&cateIdList=' + _cat + '&statusCode=' + _sc + '&Price=' + _p + '&OP=' + _op + '&ImageURL=' + _iu + '&pageUrl=' + _pu + '&Description=' + _de + '&sii=' + _sii + '&ct=' + _ct + '&pits=' + arr.toString() +'&loc='+_loc+'&rloc='+_rloc+'"></scr' + 'ipt>');

