function createFlashMarkup(width,height,uri,replaceid){

 var embed = document.createElement('embed');
 embed.setAttribute('width',width);
 embed.setAttribute('height',height);
 embed.setAttribute('src',uri);
 embed.setAttribute('menu','false');
 embed.setAttribute('quality','high');
 embed.setAttribute('scale','noscale');
 embed.setAttribute('salign','lt');
 embed.setAttribute('wmode','opaque');
 embed.setAttribute('bgcolor','#808e95');
 embed.setAttribute('id','test');
 
 var div = document.getElementById(replaceid);
 document.getElementsByTagName('body')[0].replaceChild(embed,div); 
}

window.onload = function(){
 if (window.innerHeight) var flash_height = window.innerHeight;
 else if (document.body && document.body.offsetHeight) var flash_height = document.body.offsetHeight-5;
 else return 0;
 createFlashMarkup('100%',flash_height,'_intro.swf','replaced-by-flash');
}

function mm_fla_resize(){
 if (window.innerHeight) document.getElementById('test').style.height = window.innerHeight;
 else if (document.body && document.body.offsetHeight) document.getElementById('test').style.height = document.body.offsetHeight-5;
 else return 0;
}

