// IE detect
var maxVersion=9;
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
if(isIE && isWin){
  document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  for(var i=2;i<=maxVersion;i++){
    eval("var flash" + i + "Installed=false;");
    document.write('flash'+i+'Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))) \n');
  }
  document.write('</SCR' + 'IPT\> \n');

  for (var i = 2; i <= maxVersion; i++) {
    if (eval("flash" + i + "Installed") == true) flashVersion = i;
  }
}
// Mozilla detect
if (navigator.plugins) {
  if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
     var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
     var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
     var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
  }
}

// Resolution & depth
var resolution=screen.width+"x"+screen.height+"@"+screen.colorDepth;
var screenResolution=resolution;

// Cookies
Set_Cookie('test_cookie','none','','/','','');
if (Get_Cookie('test_cookie'))
{
	var cookieEnabled = 1;
	Delete_Cookie('test_cookie', '/', '');
}
else
{
	var cookieEnabled = 0;
}
// ajax response
function processStat(){
	var myajax=ajaxpack.ajaxobj
	var myfiletype=ajaxpack.filetype
	if (myajax.readyState == 4){ //if request of file completed
			if (myajax.status==200 || window.location.href.indexOf("http")==-1){ //if request was successful or running script locally
				if (myfiletype=="txt"){
				}
			}
	}
}
