// $Id: browser_identificator.js,v 1.3.2.1 2007/03/12 12:00:45 twice Exp $
function createScriptNode()
	{
	var scriptNode = false;
	scriptNode = document.createElement("script");
	scriptNode.type = "text/javascript";
	if (scriptNode)
		{
		/*
		var plugins = '';
		var x;
		for(x = 0; x < navigator.plugins.length; x++)
		plugins += (plugins == ''?"":"|")+urlEncode(navigator.plugins[x].name);
		*/
		scriptNode.src = xcart_web_dir+"/adaptive.php?send_browser="+(localIsDOM?"Y":"N")+(localIsStrict?"Y":"N")+(localIsJava?"Y":"N")+"|"+localBrowser+"|"+localVersion+"|"+localPlatform+"|"+(localIsCookie?"Y":"N")+"|"+screen.width+"|"+screen.height+"|"+usertype;
		document.getElementsByTagName('head')[0].appendChild(scriptNode);
		}
	}
document.onload=createScriptNode();

