// JavaScript Document
//many thanks to fpproductions at the macromedia forums for the code
//When the page loads:
//window.onload = function()
//{	
	if (document.getElementsByTagName) {
		var objs = document.getElementsByTagName("object"); //Get all the tags of type object in the page.
		for (i=0; i<objs.length; i++)
		{
			objs[i].outerHTML = objs[i].outerHTML; //Get the HTML content of each object tag and replace it with itself.
		}
	}
//}
//When the page unloads:
window.onunload = function()
{
	if (document.getElementsByTagName) {
		var objs = document.getElementsByTagName("object"); //Get all the tags of type object in the page.
		for (i=0; i<objs.length; i++)
		{
			objs[i].outerHTML = ""; //Clear out the HTML content of each object tag to prevent an IE memory leak issue.
		}
	}
}