Array.prototype.indexOf = function (o) { 
	for (var i = 0; i < this.length; ++i) { 
		if (this[i] == o) { 
			return i; 
		} 
	} 
	return -1; 
};

function disableSelect()
{
	if(document.all) {
		document.onselectstart = function () { return false; } // ie
	} 
	else 
	{
		document.onmousedown = function () { return false; } // mozilla
	}
}

function enableSelect()
{
	if(document.all) {
		document.onselectstart = null;  // ie
	} 
	else 
	{
		document.onmousedown = null;  // mozilla
	}
}
