function $(name)
	{
	return document.getElementById(name);
	}
	
function disableSelection(element)
	{
	document.onselectstart = function()
		{
		return false;
		};
	document.unselectable = "on";
	}
	

function loadScript(fileName, initFunction)
	{
	var scriptFile = document.createElement("script");
	scriptFile.src = fileName+"?disablecache="+Math.round(Math.random()*9999);
	scriptFile.type = "text/javascript";
	document.body.appendChild(scriptFile);
	if(initFunction) setTimeout(initFunction,10);
	}


Array.prototype.sortNumber = function(a,b)
	{
	return a - b;
	}

Array.prototype.remove=function(s)
	{
	for(i=0;i<this .length;i++)
		{
		if(s==this[i]) this.splice(i, 1);
		}
	}

onload = function()
	{
	fixedPointUiControl.init();
	fixedPointWindowControl.init();
	disableSelection(document.window);
	}
