// SEO CMS V2.0 (ifabriek.nl)
// Statistieken script
function _get_flash_version(){
  var flash = [0,0,0];
  if(navigator.plugins && navigator.mimeTypes.length){
    var x = navigator.plugins["Shockwave Flash"];
    if(x && x.description) {
      flash = x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split(".");
    }
  }else if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0){
    var axo = 1;
    var counter = 3;
    while(axo) {
      try {
        counter++;
        axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
        flash = [counter,0,0];
      } catch (e) {
        axo = null;
      }
    }
  } else {
    try{
      var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
    }catch(e){
      try {
        var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
        _flash_set([6,0,21]);
        axo.AllowScriptAccess = "always";
      } catch(e) {}
      try {
        axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
      } catch(e) {}
    }
    if (axo != null) {
      flash = axo.GetVariable("$version").split(" ")[1].split(",");
    }
  }
  return flash[0] != null ? parseInt(flash[0]) : 0;
}
var SEOCMS=new Object;
SEOCMS.time=new Date().getTime();
SEOCMS.save=function(){
  var url  ="http://cms.ifabriek.nl/stats/6/log.js";
  var res  ="0x0";
  var depth=0;
  if(window.screen){
    res=screen.width+"x"+screen.height;
    depth=screen.colorDepth;
  }
  var ref  =escape(document.referrer);
  var page =escape(document.location);
  var title=escape(document.title).substr(0,80);
  url+="?time="+this.time+"&res="+res+"&depth="+depth+"&flash="+_get_flash_version()+"&ref="+ref+"&page="+page+"&title="+title;
  this.ping(url);
};
SEOCMS.exit=function(href){
  var url   ="http://cms.ifabriek.nl/stats/6/exit.js";
  var filter=new Array("wiki.getseoshop.com","support.getseoshop.com");
  var errors=0;
  var host  =href.split("//")[1];
  host=host.split("/")[0];
  host=host.replace(/www./,"");
  for(i=0;i< filter.length;i++){
    if(host==filter[i]){
      errors++;
    }
  }
  if(errors==0){
    url+="?time="+this.time+"&page="+escape(href);
    this.ping(url);
  }
};

SEOCMS.ping=function(url){
  var ie=0;
  if(!ie&&document.getElementsByTagName&&(document.createElementNS||document.createElement)){
    var tag=(document.createElementNS)?document.createElementNS("http://www.w3.org/1999/xhtml","script"):document.createElement("script");
    tag.type="text/javascript";
    tag.src=url;document.getElementsByTagName("head")[0].appendChild(tag);
  } else if(document.write){
    document.write('<'+'script type="text/javascript" src="'+url+'"><'+'/script>');
  }
};
SEOCMS.save();

