if (typeof(sppc_cookie) == 'undefined') {
   var sppc_cookie = Math.round(Math.random() * 1000);
}
if (typeof(sppc_capping) == 'undefined') {
   var sppc_capping = 'old';
}
if (typeof(sppc_use_flash) == 'undefined') {
   var sppc_use_flash = 0;
   if (navigator.plugins && navigator.plugins.length) {
      if (navigator.plugins['Shockwave Flash'] || navigator.plugins['Shockwave Flash 2.0']) {
         sppc_use_flash = 1;
      }
   } else if (navigator.mimeTypes && navigator.mimeTypes.length) {
      x = navigator.mimeTypes['application/x-shockwave-flash'];
      if (x && x.enabledPlugin) {
         sppc_use_flash = 1;
      }
   } else if (navigator.userAgent && navigator.userAgent.indexOf('MSIE') >= 0 && (navigator.appVersion.indexOf('Win') != -1)) {
      // MSIE
      var flash_latest_version = 12;
      try {
         for (i = 3; i <= flash_latest_version; i++) {
            if (eval('new ActiveXObject("ShockwaveFlash.ShockwaveFlash.'+i+'")')) {
               sppc_use_flash = 1;
               break;
            }
         }
      } catch(e) {}
   } else {
      // Unknown
      sppc_use_flash = -1;
   }
}
var sppc_popup_last_show = 0;
if (document.cookie.length > 0) {
   c_name = "sppc_popup_last_show";
   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;
      }
      sppc_popup_last_show = unescape(document.cookie.substring(c_start, c_end));
   }
}
if (typeof(sppc_popup) == 'undefined') {
   var sppc_popup = 'down';
}
var first_url = escape('http://69.41.182.196/popup?id_site='+sppc_site+'&id_user='+sppc_user+'&ident='+Math.round(Math.random() * 10000)+'&ref='+escape(document.URL)+'&sr='+escape(document.referrer)+'&ck='+sppc_cookie+'&uf='+sppc_use_flash+'&cls='+sppc_popup_last_show)+'&ppt='+sppc_popup+'&width='+sppc_width+'&height='+sppc_height+'&capping='+sppc_capping;
document.write(unescape("%3Cscript src='" + first_url + "' type='text/javascript' charset='UTF-8'%3E%3C/script%3E"));

