function setAttribute(object, attribute, value)
{
	return object[attribute] = value;
}

function resetAttribute(object, attribute)
{
	return setAttribute(object, attribute, object[attribute]);
}

function resetInnerHTML(object)
{
	return resetAttribute(object, "innerHTML");
}

// Re-assign all "embedded applications" to fix Eolas patent crap
function fixEolas(target)
{
	// Default target to current document
	if (!target) target = document;
	
	// Re-assign all embeds that were not processed yet
	var embeds = document.getElementsByTagName("embed");
	for (var embedIndex = 0; embedIndex < embeds.length; embedIndex++)
	{
		var embed = embeds[embedIndex];
		
		embed.outerHTML = embed.outerHTML;
	}
}

fixEolas();

