//resxclsa.js v2.47 Copyright 2004-2006 Certona Corporation www.certona.com
var r1aj=false,r1bs=null,r1ar=null,r1ae=false,r1ai=false,r1ah=false,r1bi=2000,r1p=0,r1cw=location.protocol.toLowerCase()=="https:"?"https://":"http://",r1ce=r1cw+"www.res-x.com/",r1dh=r1ce+"ws/r2/Recorder.aspx?",r1bx=r1ce+"ws/r2/Recommendation.aspx?",r1a="undefined",r1bf="a2.47",r1d="RES_TRACKINGID",r1g="RES_SESSIONID",r1j="ResonanceSegment";

function r1k(){

    return resx.rrelem;


};

function r1bh(){

    return resx.rrctx;


};

function r1bn(){


    return resx.ctx;
    


}; 

function r1bg(){


    return resx.rrnum;


};

function r1bm(){


    return resx.lkmatch;

}

;function r1bl(){

return resx.ltmatch;
}

;function r1co(){

return resx.maxl;
}

;function r1by(){

return resx.rrmaxl;
}

;function r1dg(){
  return resx.rrmac;
}

;function r1f(r1cv){
  return parseInt(r1cv,10);
}
;function r1b(r1df){

    try{

      if(r1df!=null&&r1df!="null"&&r1df!="") {

          return true;
        
      }
      ;
      }
      catch(ex){

       }
     ;return false;
}
;function r1m(){
try{
var r1ag=document.getElementById(r1k());
  if(r1b(r1ag)){
     r1ag.style.visibility="visible";
   }
   ;
   }
   catch(ex){

   }
;
}
;function r1i(r1cu,r1v){
try{
if(!r1aj){
r1aj=true;r1bs=escape(r1cu+"|"+((typeof(r1v.number)!=r1a)?r1v.number:r1a)+"|"+((typeof(r1v.name)!=r1a)?r1v.name:r1a)+"|"+((typeof(r1v.description)!=r1a)?r1v.description:r1a));
}
;
}
catch(ex){

}
finally{
r1m();
}
;
}
;function r1e(r1w){
try{
  if(document.cookie.length>0){
var r1h=document.cookie.indexOf(r1w+"=");if(r1h!=-1){
r1h+=r1w.length+1;var r1af=document.cookie.indexOf(";",r1h);if(r1af==-1){
r1af=document.cookie.length;
}
;return unescape(document.cookie.substring(r1h,r1af));
}
;
}
;
}
catch(ex){
r1i("gc",ex);
}
;return null;
}
;function r1q(r1w,value,r1al,r1di,r1cn){
try{
var r1at=new Date();if(r1al!=null){
r1at.setTime(r1at.getTime()+(r1al*3600*1000));
}
;document.cookie=r1w+"="+escape(value)+((r1al==null)?"":"; expires="+r1at.toGMTString())+((r1di==null)?"; path=/":"; path="+r1di)+((r1cn==null)?"":"; domain="+r1cn);
}
catch(ex){

}
;
}
;function r1bk(){
return escape(location.href);
}
;function r1ao(){
var r1ab=document.referrer;try{
if(r1ab.indexOf(r1bx)>-1){
var r1h=r1ab.indexOf("&altcontext"),r1af=r1ab.indexOf("&lk",r1h);if(r1h>-1&&r1af>r1h){
r1ab=r1ab.substring(0,r1h)+r1ab.substring(r1af);
}
;
}
;
}
catch(ex){
r1i("gref",ex);
}
;return escape(r1ab);
}
;function r1an(r1dp,r1dn){
var r1cq=false;try{
if(typeof(r1dn)!=r1a&&r1dn!=null){
for(var r1dm=0;r1dm<r1dn.length;r1dm++){
if(r1dn[r1dm]==r1dp){
r1cq=true;break;
}
;
}
;
}
;
}
catch(ex){

}
;return r1cq;
}
;function r1bc(){
try{
var r1be=navigator.userAgent.toLowerCase();if(r1be.indexOf("mac")>0){
if(typeof(resx.rrmac)!=r1a&&r1dg()==false){
return false;
}
;
}
;return true;
}
catch(ex){

}
;return false;
}
;function r1cm(){
try{
var r1be=navigator.userAgent.toLowerCase(),r1db=((navigator.platform.toLowerCase().indexOf("win")!=-1)?true:false),r1dq=((r1be.indexOf("msie")!=-1&&r1be.indexOf("opera")==-1)?true:false);if(r1db&&r1dq){
return true;
}
;
}
catch(ex){

}
;return false;
}
;function r1z(){
try{
if(typeof(resx.rrec)!=r1a&&resx.rrec==true&&r1e(r1j)=="1"&&typeof(resx.rrelem)!=r1a&&r1b(document.getElementById(r1k()))&&r1bc()&&!r1aj){
return true;
}
;
}
catch(ex){

}
;return false;
}
;function r1de(r1cv){
var r1da="";try{
r1cv+="";for(var r1dm=r1cv.length-1;r1dm>=0;r1dm--){
r1da+=r1cv.charAt(r1dm);
}
;
}
catch(ex){

}
;return r1da;
}
;function r1o(){
var r1dl=null;try{
if(navigator.userAgent.toLowerCase().indexOf("mac")==-1){
r1dl=Math.floor(Math.random()*1000000000000000);r1dl+="";
}
else{
var r1bq=Math.floor(Math.random()*1000000),r1cz=new Date(),r1cc=r1cz.getTime();r1cc+="";var r1cj=r1de(r1cc);r1bq+="";r1dl=r1bq+r1cj.substring(0,11);
}
;
}
catch(ex){
r1i("guid",ex);
}
;return r1dl;
}
;function r1y(r1bb,r1cl,r1cd,r1ct,r1cs,r1dd){
var r1az="";try{
var r1bv="",r1bu="",r1bt="",r1bp="",r1ci=0,r1u,r1bo,r1ad,r1aa,r1ch="",r1cb="",r1cp="";if(typeof(r1bb)=="object"){
r1u=document.getElementsByTagName("a");
}
else{
r1bo=document.getElementById(r1bb);r1u=r1bo.getElementsByTagName("a");r1cp=r1bb;
}
;if(r1b(r1cl)){
r1ad=document.getElementById(r1cl);if(r1b(r1ad)){
r1ch=r1ad.getElementsByTagName("a");
}
;
}
;if(r1b(r1cd)){
r1aa=document.getElementById(r1cd);if(r1b(r1aa)){
r1cb=r1aa.getElementsByTagName("a");
}
;
}
;for(var r1dm=0;r1dm<r1u.length;r1dm++){
if(r1ci==r1dd){
break;
}
;if(r1u[r1dm]!=null){
r1bv=escape(r1u[r1dm]+"");r1bt=r1bv.match(r1ct);if(r1bt!=null){
if(!r1an(r1u[r1dm],r1ch)&&!r1an(r1u[r1dm],r1cb)){
r1bp=r1bv.match(r1cs);if(r1bp==null){
r1bp="";
}
;r1bu=r1bt+escape("|")+r1cp+escape("|")+r1bp+";";if(r1az.indexOf(r1bu)==-1){
r1az+=r1bu;r1ci++;
}
;
}
;
}
;
}
;
}
;
}
catch(ex){
r1i("gpl",ex);
}

;return r1az;

}
;function r1aw(){
try{
r1ai=true;var r1as="";if(typeof(resx.rrctx)!=r1a&&r1b(r1bh())&&r1b(document.getElementById(r1bh()))){
var r1au=(typeof(resx.rrmaxl)!=r1a&&!isNaN(r1by())?r1f(r1by()):20),r1r=((typeof(resx.lkmatch)!=r1a)?r1bm():""),r1ac=((typeof(resx.ltmatch)!=r1a)?r1bl():"");if(r1b(r1r)&&r1au>0){
r1as=r1y(r1bh(),null,null,r1r,r1ac,r1au);
}
;
}
;var r1cy=r1e(r1d),r1ca=r1e(r1g);if(r1b(r1cy)&&r1b(r1ca)&&typeof(resx.rrnum)!=r1a&&!isNaN(r1bg())&&r1bg()>0&&typeof(resx.rrw)!=r1a&&typeof(resx.rrh)!=r1a){
var r1cr="appid="+resx.appid+"&userid="+r1cy+"&catalog="+((typeof(resx.rrcat)!=r1a)?resx.rrcat:"")+"&number="+r1bg()+"&scheme="+r1k()+"&ss="+r1ca+"&pg="+r1ar+"&vr="+r1bf+((typeof(resx.rrqs)!=r1a)?resx.rrqs:"")+"&context="+r1bk()+"&altcontext="+r1ao()+"&lk="+(r1b(r1as)?r1as:""),r1ak="rrFrame",r1bj=r1bx+r1cr;r1bj=r1bj.substring(0,2000);var r1cg="";if(r1bx.indexOf("https")>-1&&r1cm()){
r1cg=" ";
}
;var r1ag=document.getElementById(r1k());r1ag.innerHTML="<iframe id='"+r1ak+"' name='"+r1ak+"' src='"+r1cg+"' frameborder='0' scrolling='no' allowtransparency='true' style='width:"+resx.rrw+";height:"+resx.rrh+"'></iframe>";if(window.frames[r1ak]){
window.frames[r1ak].location.replace(r1bj);
}
;
}
;
}
catch(ex){

}
finally{
r1m();
}
;
}
;function r1dc(){
try{
if(!r1ah){
if((r1p<r1bi)){
r1p=r1p+50;window.setTimeout("r1dc()",50);
}
else{
if(r1z()){
r1m();
}
;
}
;
}
else{
if(r1z()&&!r1ai){
r1aw();
}
;
}
;
}
catch(ex){

}
;
}
;function r1bw(){
var r1aq=location.hostname;try{
if(r1aq!=null){
var r1cx=r1aq.split(".");if(r1cx.length>1){
r1aq=r1cx[r1cx.length-2]+"."+r1cx[r1cx.length-1];
}
else{
r1aq=null;
}
;
}
;
}
catch(ex){
r1i("ghn",ex);
}
;return r1aq;
}
;function getResonanceSegment(){
try{
var r1cf=r1e(r1j);if(typeof(eval("resx.seg"+r1cf))!=r1a){
return eval("resx.seg"+r1cf);
}
;
}
catch(ex){

}
;return"";
}
;function getResonanceStore(){
try{
var r1cf=r1e(r1j);if(typeof(eval("resx.store"+r1cf))!=r1a){
return eval("resx.store"+r1cf);
}
;
}
catch(ex){

}
;return"";
}
;function r1av(r1ck){
try{
var r1ap=location.search,r1h=r1ap.indexOf("?"+r1ck+"=");if(r1h==-1){
r1h=r1ap.indexOf("&"+r1ck+"=");
}
;if(r1h>-1){
r1h=r1h+r1ck.length+2;var r1af=r1ap.indexOf("&",r1h);if(r1af==-1){
return r1ap.substring(r1h);
}
else{
return r1ap.substring(r1h,r1af);
}
;
}
;
}
catch(ex){

}
;return null;
}
;
function r1br(r1ba) {
   
   var r1bd=null;try{
   var r1am;
   if(r1ba=="1"){
      r1am=resx.top1;
   }
   else if(r1ba=="2") {
      if(r1f(resx.top1)>=99999){
         return null;
      }
      else{
         r1am=resx.top2;
      };
   }
   else if(r1ba=="3"){
       if(r1f(resx.top2)>=99999){
          return null;
        }
        else{
          r1am=99999;
        };
    }
    else{
       return null;
    };
    if(r1f(r1am)>99999){
      r1am=99999;
     };
     r1am+="";
     while(r1am.length<5){
        r1am="0"+r1am;
      };
      r1bd=r1o();
      if(r1b(r1bd)){
         r1bd=r1bd.substr(0,1)+r1am+r1bd.substr(1,11);
       };
    }
    catch(ex){

  };
  return r1bd;
};

//alert('Start here');
try{
   var r1c,r1t,r1l,r1s,r1x="",r1n=r1bw();if(location.search.indexOf("resxseg=")>0){
   r1c=r1br(r1av("resxseg"));
}
;if(location.search.indexOf("resxtrack=")>0){
r1c=r1av("resxtrack");
}
;if(r1b(r1c)&&!isNaN(r1f(r1c))){
r1q(r1d,r1c,87648,null,r1n);if(!r1b(r1e(r1d))){
r1q(r1d,r1c,null,null,r1n);
}
;
}
else{
r1c=r1e(r1d);if(!r1b(r1c)){
r1c=r1o();r1q(r1d,r1c,87648,null,r1n);if(!r1b(r1e(r1d))){
r1q(r1d,r1c,null,null,r1n);
}
;
}
;
}
;r1l=r1e(r1g);if(!r1b(r1l)){
r1l=r1o();
}
;r1q(r1g,r1l,.5,null,r1n);if(!r1b(r1e(r1g))){
r1q(r1g,r1l,null,null,r1n);
}
;r1t=r1c;r1t=r1t.substring(1,6);r1t=r1f(r1t);var r1dk=r1f(resx.top1),r1dj=r1f(resx.top2);if(isNaN(r1dk)||isNaN(r1dj)||isNaN(r1t)){
r1s="";
}
else if(r1t<=r1dk){
r1s="1";
}
else if(r1t<=r1dj){
r1s="2";
}
else{
r1s="3";
}
;r1q(r1j,r1s,null,null,r1n);r1ar=r1o();if(!r1b(r1ar)||(typeof(resx.rrelem)!=r1a&&!r1z())){
r1m();
}
;r1c=r1e(r1d);r1l=r1e(r1g);r1s=r1e(r1j);var r1ay=(typeof(resx.maxl)!=r1a&&!isNaN(r1co())?r1f(r1co()):20),r1r=((typeof(resx.lkmatch)!=r1a)?r1bm():""),r1ac=((typeof(resx.ltmatch)!=r1a)?r1bl():"");if(r1b(r1r)){
if(typeof(resx.rrelem)!=r1a&&r1b(r1k())&&r1b(document.getElementById(r1k()))){
r1x=r1y(r1k(),null,null,r1r,r1ac,100);
}
;if(typeof(resx.ctx)!=r1a&&r1b(r1bn())&&r1b(document.getElementById(r1bn()))){
r1x+=r1y(r1bn(),null,null,r1r,r1ac,100);
}
;if(r1ay>0){
r1x+=r1y(document,((typeof(resx.rrelem)!=r1a)?r1k():""),((typeof(resx.ctx)!=r1a)?r1bn():""),r1r,r1ac,r1ay);
}
;
}
;
}
catch(ex){
r1i("load",ex);
}
;
try{
  if(r1s!="3"&&!r1ae){
     r1ae=true;
     var r1ax="ap="+((typeof(resx.appid)!=r1a)?resx.appid:"")+"&tk="+(r1b(r1c)?r1c:"")+"&ts="+(r1b(r1t)?r1t:"")+"&ss="+(r1b(r1l)?r1l:"")+"&sg="+(r1b(r1s)?r1s:"")+"&pg="+(r1b(r1ar)?r1ar:"")+"&ur="+r1bk()+"&rf="+r1ao()+"&bx="+r1z()+"&vr="+r1bf+((typeof(resx.event)!=r1a)?"&ev="+resx.event:"")+((typeof(resx.itemid)!=r1a)?"&ei="+resx.itemid:"")+((typeof(resx.qty)!=r1a)?"&qt="+resx.qty:"")+((typeof(resx.price)!=r1a)?"&pr="+resx.price:"")+((typeof(resx.shipping)!=r1a)?"&sh="+resx.shipping:"")+((typeof(resx.total)!=r1a)?"&tt="+resx.total:"")+((typeof(resx.customerid)!=r1a)?"&cu="+resx.customerid:"")+((typeof(resx.transactionid)!=r1a)?"&tr="+resx.transactionid:"")+((r1aj==true)?"&er="+r1aj+"&em="+r1bs:"")+"&lk="+(r1b(r1x)?r1x:"");
     r1ax=r1ax.substring(0,2000);
     var r1bz=new Image(1,1);
     r1bz.onload=function(){
        //alert('load');
        r1ah=true;
      };
     r1bz.src=r1dh+r1ax;

    //alert(r1bz);
    window.setTimeout("r1dc()",50);
   };
}
catch(ex){
  r1i("",ex);
};

