
function HideObjects()
{
	if (document.styleSheets)
	{
		var SS = document.styleSheets[0];

		if (SS.rules)
		{
			SS.addRule('object','display: none;',0);	
		}
		else 
			return;
			
	}
}

HideObjects();

function ShowObjects()
{
	if (document.styleSheets){
		var SS = document.styleSheets[0];
		if (SS.rules)
		{				
			SS.removeRule(0);
		}
		else 
			return;
			
	}
}

function initialiseObjects()
{
	theObjects = document.getElementsByTagName("object");
	for (var i = 0; i < theObjects.length; i++) {
		if(document.styleSheets[0].rules)
		    theObjects[i].outerHTML = theObjects[i].outerHTML;
		
	}
	ShowObjects();
}

window.onload = initialiseObjects;
