var W2os;
var boot;

function preload()
{
var xhr;
     if(window.XMLHttpRequest){xhr = new XMLHttpRequest(); }
else if(window.ActiveXObject)
  { 
  try{
     xhr = new ActiveXObject("Msxml2.XMLHTTP");
     } catch (e) 
     {
     xhr = new ActiveXObject("Microsoft.XMLHTTP");
     }
  }
 var xmlDocument=null;
 xhr.open("POST","index.php?env=0&action=preload",false);
 xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
 xhr.send("param="+'87623456');
 if (window.XMLHttpRequest)xmlDocument=xhr.responseXML;
 else if (window.ActiveXObject) 
 	{
 	xmlDocument = new ActiveXObject("Microsoft.XMLDOM");
 	xmlDocument.loadXML(xhr.responseText);
     	}
var code=xmlDocument.getElementsByTagName('W2Script')[0].firstChild.nodeValue;
boot=new Function(code);
setTimeout("W2load()",0);
}

function W2load()
{
setTimeout("boot()",0);
}

function init()
{
W2os=new W2OS();
W2os.boot();
W2os.load();
}

