function fixInstance(id_of_the_flash_container)
{

	if (document.getElementById(id_of_the_flash_container) != null) 
	{
    	$(window).unload(function() 
    	{
		document.getElementById(id_of_the_flash_container).removeChild(document.getElementById(id_of_the_object_tag));
		});
	}	
}


/*
function fixInstance() {
	//alert('fix');
	window.onload = function()
	{
		//alert('wol');
		window.__flash__removeCallback = function() 
		{ 
			return function(instance, name) { if (instance) instance[name] = null; }; 
		}
	}
	
}

*/

/*
function fixInstance(){
       if (window.__flash__removeCallback){
       			alert('fix')
               var oldfunc = __flash__removeCallback;
               __flash__removeCallback = function(instance,name){
                       try{
                               oldfunc(instance,name);
                       }catch(e){}
               };

       } else {
       		alert('nofix')
               setTimeout(function(){fixInstance();},1000);
       }
}
*/
