var scheduleArray = new Array();

checkBrowserWidth();

schedule("searchField", "document.getElementById(objectID).onfocus = clearSearchField\;");

window.onload = checkFeatureHeights;
window.onresize = checkFeatureHeights;

function clearSearchField()
{
	if (!this.clicked)
	{
		this.value = "";
		this.clicked = true;
	}
	
	return true;
}




function schedule(objectID, functionCall)
{
	if (document.getElementById(objectID))
	{
		eval(functionCall);
	}
	else
	{
		var arrayID = "" + objectID + functionCall;

		if (scheduleArray[arrayID])
		{
			if (scheduleArray[arrayID] < 1000)
			{
				scheduleArray[arrayID]++;
			}	
			else
			{
				return false;
			}
		}
		else
		{
			scheduleArray[arrayID] = 1;
		}

		setTimeout("schedule('" + objectID + "', '" + functionCall + "')", 10);
	}
	
	return true;
}
