var sagaGroupCSAGL = ((document.cookie.indexOf('sagaGroupCSASF=y') ==- 1) && (document.cookie.indexOf('sagaGroupCSAStopFlag=y') ==- 1) && ( - 2 != window.sagaGroupCSAsn));
/*@cc_on@if(@_jscript_version>=5.5)sagaGroupCSAGL=true;@end@*/
;
function sagaGroupCSASL() {
   if((sagaGroupCSAGL == true) && (window.sagaGroupCSAwindowID))return;
   var a = 'sagaGroupCSA';
   var b = 'windowID';
   var g = 'usy46gabsosd';
   var w = window;
   var d = document;
   var l = location;
   var ck = d.cookie;
   w[a + 'LF'] = true;
   w[a + 'gPr'] = function() {
      var bi = l.protocol;
      if(w[a + 'ForceSecure'] == true)bi = 'https:';
      if(bi == 'https:')return 'https://collection.acromas.com';
      else return 'http://collection.acromas.com';
      };
   if(!w.sagaGroupCSAGD) {
      w[a + 'GD'] = function(u, s, e) {
         u = l.hostname;
         s = u.indexOf('.');
         if(s < 0)return'';
         return ';domain=' + u.substring(s);
         };
      }
   w[a + 'SC'] = function(v, e, u, cT, cpt, ctr, dmn) {
      var d = document;
      var w = window;
      cT = v + '; path=/;';
      if(e)cT = cT + 'expires=' + e;
      d.cookie = cT + w[a + 'GD']();
      if(d.cookie.indexOf(v) >- 1)return;
      u = location.hostname;
      cpt = u.split('.');
      if(cpt.length >= 2) {
         ctr = cpt.length - 2;
         dmn = '.' + cpt[ctr + 1];
         while((d.cookie.indexOf(v) ==- 1) && (ctr >= 0)) {
            dmn = '.' + cpt[ctr] + dmn;
            d.cookie = cT + '; domain=' + dmn;
            ctr--;
            }
         }
      if(d.cookie.indexOf(v) == - 1) {
         if(!w.sagaGroupCSAPII) {
            sagaGroupCSAPII = w[a + 'gPr']() + '/WEOIWMPIJ/' + new Date().valueOf() + '/cImage.bmp';
            var weuc = window.encodeURIComponent;
            if(weuc) {
               sagaGroupCSAPII += '?c=' + weuc(d.referrer.substring(0, Math.min(d.referrer.length, 500))) + '&d=' + weuc(navigator.cookieEnabled);
               }
            new Image().src = sagaGroupCSAPII;
            }
         w[a + 'SF'] = 1;
         }
      };
   w[a + 'ae'] = function() {
      if(w[a + 'ln'])return;
      if((new Date().valueOf() - w[a + 'Tm']) > 30000) {
         if(w.frames.length == 0)d.cookie = a + 'SF=y;path=/' + w[a + 'GD']();
         return;
         }
      else w.setTimeout(a + 'ae();', 2000);
      };
   w[a + 'client_event'] = function(ap, al) {
      if(document.cookie.indexOf('sagaGroupCSASF=y') > - 1)return;
      var w = window;
      if(w[a + 'queueUserEvent'])w[a + 'queueUserEvent'](ap, al);
      else {
         var ar = a + 'client_event(\'' + ap + '\',\'' + al + '\');';
         w.setTimeout(ar, 500);
         }
      };
   w[a + 'GP'] = function(p) {
      return null;
      };
   w[a + 'GPWID'] = function(p) {
      return p.sagaGroupCSAwindowID;
      };
   w[a + 'LC'] = function(bb, scriptID, bd) {
      if(ck.indexOf(a + 'SF=y') >- 1)return;
      var ai = false;
      /*@cc_on@if(@_jscript_version>=5.5)ai=true;@end@*/
      ;
      if((ai) && (d.getElementById)) {
         var aw = d.getElementById(bd);
         var az = d.getElementsByTagName('HEAD').item(0);
         if(az) {
            var ak = d.createElement('SCRIPT');
            ak.src = bb;
            ak.type = 'text/javascript';
            ak.id = scriptID;
            az.appendChild(ak);
            }
         }
      else {
         if(d.body)d.write("<scrip" + "t type='text/javascript' src='" + bb + "'><\/script>");
         else(new Image()).src = bb;
         }
      };
   /*@cc_on@if(@_jscript_version>=5)w[a+'GP']=function(p){try{if(p===p.parent)return null;return p.parent;}catch(e){}return null;};@end@*/
   ;
   w[a + 'TWID'] = 'AUTOSET';
   w[a + b] = '_' + (new Date()).getTime() + Math.random() + '_';
   w[a + 'getSD'] = function(q, w, d, n) {
      var euc = w.encodeURIComponent;
      function je(av) {
         if(euc) {
            av = euc(av);
            av = av.replace(/'/g,'%27');
            av = av.replace(/~/g,'%7E');
            return av;
            }
         else return escape(av);
         };
      function as(ag, aj, at, ind2, bL, tl, ox, xs, ac, ab, aa, lb) {
         lb = '' + Math.floor((Math.random() * 9999) + 1);
         while(lb.length < 4)lb = '0' + lb;
         ag = window[a + 'gPr']();
         var fCK = d.cookie;
         aj = '';
         at = '';
         if(fCK.length > 1024)at = fCK.substring(0, 1024);
         else at = fCK;
         if(fCK.indexOf(g) == - 1) {
            w[a + 'SC'](g + '=' + a + w[a + b] + lb);
            aj = w[a + b] + lb;
            }
         else {
            var cKL, cLI, ind1;
            cKL = a + '__';
            cLI = fCK.indexOf(cKL);
            if(cLI >- 1) {
               ind2 = fCK.indexOf('::', cLI);
               if(ind2 < 0)ind2 = fCK.indexOf(';', cLI);
               if(ind2 < 0)ind2 = fCK.length;
               aj = 'x' + fCK.substring(cLI + cKL.length, ind2);
               var vx = aj.lastIndexOf('_');
               if(vx >- 1)lb = aj.substring(vx + 1);
               }
            else {
               cKL = a + '_';
               cLI = fCK.indexOf(cKL);
               if(cLI >- 1) {
                  cLI += cKL.length - 1;
                  var ind2 = fCK.indexOf('::', cLI);
                  if(ind2 < 0)ind2 = fCK.indexOf(';', cLI);
                  if(ind2 < 0)ind2 = fCK.length;
                  aj = fCK.substring(cLI, ind2);
                  var vx = aj.lastIndexOf('_');
                  if(vx >- 1)lb = aj.substring(vx + 1);
                  }
               else {
                  var ind1 = fCK.indexOf(g + '=');
                  var ind2 = fCK.indexOf(';', ind1);
                  if(ind2 < 0)ind2 = fCK.length;
                  aj = w[a + b] + lb;
                  w[a + 'SC'](fCK.substring(ind1, ind2) + '::' + a + w[a + b] + lb);
                  }
               }
            }
         function aLV(af, ah) {
            if((!ah) && (!(ah === 0)) & (!(ah === false)))return;
            ah = je(ah);
            if((bL.length + af.length + ah.length) <= 1950)bL = bL + af + ah;
            };
         function am(ms, dt, ay, ax, be, pd) {
            if((ms.length + ay.length + ax.length + be.length + dt.length + pd.length + 20) <= 1940)return true;
            return false;
            }
         function gDID() {
            var d = document;
            var vSI = d.cookie.indexOf('sagaGroupCSADBID=');
            if(vSI == - 1)return '';
            var vEI = d.cookie.indexOf(';', vSI);
            if(vEI == - 1)vEI = d.cookie.length;
            return d.cookie.substring(vSI + a.length + 4 + 1, vEI);
            }
         bL = '' + ag + '/' + lb + '/handler7/session.js?';
         aLV('se=', aj);
         aLV('&di=', gDID());
         aLV('&sj=', a);
         aLV('&aP=', w[a + b]);
         aLV('&bd=', n.cookieEnabled);
         aLV('&si=', n.javaEnabled());
         aLV('&aM=', GPWID(w));
         var iip = GIIP();
         if( - 2 < iip)aLV('&aO=', '' + iip);
         if(bL.length < 1950) {
            var trC = new Array();
            trC[0] = d.title;
            trC[1] = ck;
            trC[2] = d.referrer;
            trC[3] = l.href;
            trC[4] = w[a + 'PageID'];
            if(!(w[a + 'PageID']) && (!(w[a + 'PageID'] === 0)))trC[4] = '';
            var fT = trc = false;
            while((!am(bL, je(trC[0]), je(trC[1]), je(trC[2]), je(trC[3]), je(trC[4]))) && (!fT)) {
               var lI = 0;
               if(je(trC[1]).length > je(trC[lI]).length)lI = 1;
               if(je(trC[2]).length > je(trC[lI]).length)lI = 2;
               if(je(trC[3]).length > je(trC[lI]).length)lI = 3;
               if(je(trC[4]).length > je(trC[lI]).length)lI = 4;
               var trLn = Math.min((trC[lI].length / 2), bL.length + je(trC[0]).length + je(trC[1]).length + je(trC[2]).length + je(trC[3]).length + je(trC[4]).length + 20 - 1940);
               trC[lI] = trC[lI].substring(0, trC[lI].length - trLn);
               trc = true;
               fT = ((trC[0].length == 0) && (trC[1].length == 0) && (trC[2].length == 0) && (trC[3].length == 0) && (trC[4].length == 0));
               }
            aLV('&cf=', trC[0]);
            aLV('&az=', trC[1]);
            aLV('&ar=', trC[2]);
            aLV('&au=', trC[3]);
            aLV('&sg=', trC[4]);
            if(trc)aLV('&ic=', 'true');
            }
         if((!w[a + 'SF']) && (bL.length <= 1950)) {
            w[a + 'LC'](bL, a + 'loadPageId', a + 'LPDiv');
            w[a + 'LC']('' + ag + '/JavascriptInsert.js', a + 'csaId', a + 'csaDiv');
            }
         w[a + 'ae']();
         };
      function GIIP(p, q, r) {
         if(GP) {
            p = GP(w);
            if(!p ||!p.frames)return - 2;
            q = p.frames;
            for(r = 0; r < q.length; r++)if(q[r] == w)return r;
            }
         return - 1;
         }
      /*@cc_on@if(@_jscript_version>=5)w[a+'GPWID']=function(win,v){if(!GP)return 'not_available';v=GP(win);if(!v)v=win;try{return v.sagaGroupCSAwindowID;}catch(e){return 'not_available';}};@end@*/
      var GP = w[a + 'GP'];
      var GPWID = w[a + 'GPWID'];
      w[a + 'Tm'] = new Date().valueOf();
      as();
      };
   w[a + 'getSD'](d.body, w, d, navigator);
   }
if(window.sagaGroupCSASL)window.sagaGroupCSASL();
