function insertFlash()
{	
	//document.write(screen.height, "<BR>", screen.width);
	//document.write("<BR>",screen.availHeight, "<BR>", screen.availWidth);
	//document.write("<BR>",window.innerHeight, "<BR>", window.innerWidth);
	


	document.write('<body bgcolor="#f0f0f0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
	document.write('<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle">');

if (window.innerWidth <= 1280)
		{
		
	document.write('<object type="application/x-shockwave-flash" ');
	document.write('data="vignettes.swf" ');
	document.write('width="100%" height="100%" align="middle" valign="middle">');
	document.write('<param name="movie" value="vignettes.swf" />');
	//document.write('<param name="bgcolor" value="#f0f0f0" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<img src="noflash.gif" width="200" height="100" alt="Texte alternatif" />');
	document.write('</object>');
		
		
		}else if (window.innerHeight <= 680){
	document.write('<object type="application/x-shockwave-flash" ');
	document.write('data="vignettes.swf" ');
	document.write('width="100%" height="100%" align="middle" valign="middle">');
	document.write('<param name="movie" value="vignettes.swf" />');
	//document.write('<param name="bgcolor" value="#f0f0f0" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<img src="noflash.gif" width="200" height="100" alt="Texte alternatif" />');
	document.write('</object>');	
				
		
		}else {
			
	
	document.write('<object type="application/x-shockwave-flash" ');
	document.write('data="vignettes.swf" ');
	document.write('width="1280" height="680" align="middle" valign="middle">');
	document.write('<param name="movie" value="vignettes.swf" />');
	//document.write('<param name="bgcolor" value="#f0f0f0" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<img src="noflash.gif" width="200" height="100" alt="Texte alternatif" />');
	document.write('</object>');
   }
   document.write('</td></tr </table>');
   document.write('</body>');
   
	

}

function insertRescale()
{

var origWidth, origHeight;

if (document.layers) 
{
  origWidth = window.innerWidth;
  origHeight = window.innerHeight;
  
  window.location.onload = function()
	{
	insertFlash()
	window.location.reload();
	}
  
  onresize = function() 
	{ 
		if((innerWidth != origWidth) || (innerHeight != origHeight)) 
		{
		insertFlash()
		location.reload(false);
		}
	}
}

else if (document.all) onresize = function() 
	{ 
		insertFlash()
		window.location.reload(false); 
	}



}