function initSingleFlash(dir)
{
        if(typeof(single_flash) != 'undefined')
	{
                
                        for(i = 0; i < single_flash.length; i++)
                        {
                                 if((document.getElementById(single_flash[i].block).parentNode.style.width != '') && (parseInt(document.getElementById(single_flash[i].block).parentNode.style.width) < single_flash[i].w))
                                {
                                        single_flash[i].w = parseInt(document.getElementById(single_flash[i].block).parentNode.style.width);
                                }
                                if((document.getElementById(single_flash[i].block).parentNode.style.height != '') && (parseInt(document.getElementById(single_flash[i].block).parentNode.style.height) < single_flash[i].h))
                                {
                                        single_flash[i].h = parseInt(document.getElementById(single_flash[i].block).parentNode.style.height);
                                }
                                
                                var ft = new FlashTag(dir+single_flash[i].id+'/'+single_flash[i].file+single_flash[i].flash_params, single_flash[i].w, single_flash[i].h);
                                ft.setParentNode(single_flash[i].block);
                                ft.setVersion("9,0,0,0");
                                ft.write();
                        }
                
	}
}

