var w,s;

function insertFlash (path,w,h,ext,wmode) 
{
	var r='<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width='+w+' height='+ext+'>';
	r += '<PARAM name=movie value="'+path+'?collapse=javascript:collapse('+w+','+h+')&expand=javascript:expand('+w+','+ext+')'+'"><PARAM name=quality value=high>';
	if(wmode)r+='<PARAM name=wmode value='+wmode+'>';
	r+='<EMBED src="'+path+'?collapse=javascript:collapse('+w+','+h+')&expand=javascript:expand('+w+','+ext+')'+'" width='+w+' height='+ext+' quality=high ';
	if(wmode)r+='wmode='+wmode;
	r+=' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></EMBED>';
	r+='</OBJECT>';
	document.write('<DIV align=center><DIV style="position:relative;width:'+w+';height:'+h+';z-index:4"><DIV id=flashDiv style="position:absolute;width:'+w+';height:'+h+';left:0;top:0;z-index:4;">'+r+'</DIV></DIV></DIV>');
	try {document.getElementById("flashDiv").style.clip='rect(0,'+w+','+h+',0)';} catch(e) {};
}

function collapse(w,s)
{ 
	try {document.getElementById('flashDiv').style.clip='rect(0,'+w+','+s+',0)'; 
} 
catch(e) {};}
function expand(w,s)
{
	try 
	{
		document.getElementById('flashDiv').style.clip='rect(0,'+w+','+s+',0)'
	} catch(e) {};
}