function enlarge(pic,txt) {
	document.getElementById('enlargepic2').src=pic;
	e1=document.getElementById('enlargepic');
	e2=document.getElementById('enlargepicbg');
	e1.style.display="";
	e1.style.top=document.body.scrollTop;
	e2.style.display="";
	e2.style.MozOpacity=0.9; e2.style.opacity=0.9; e2.style.filter='alpha(opacity=90)';
	e2.style.top=document.body.scrollTop;
	document.body.style.overflow='hidden';
	if (txt!='' && txt!=undefined)
		document.getElementById('enlargetxt').innerHTML='<br>'+txt;
}
function enlargeswf(url,w,h) {
	e1=document.getElementById('enlargeswf');
	e2=document.getElementById('enlargepicbg');
	e1.style.display="";
	e1.style.top=document.body.scrollTop;
	e2.style.display="";
	e2.style.MozOpacity=0.9; e2.style.opacity=0.9; e2.style.filter='alpha(opacity=90)';
	e2.style.top=document.body.scrollTop;
	document.body.style.overflow='hidden';
	i=document.getElementById('enlargeswf2');
	i.height=h;
	i.width=w;
	i.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+w+'" height="'+h+'"><param name="movie" value="'+url+'"><param name="quality" value="best"><embed src="'+url+'" quality="best" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed></object>';
}

function enlargeclose() {
	document.getElementById('enlargepic').style.display="none";
	document.getElementById('enlargeswf').style.display="none";
	document.getElementById('enlargepicbg').style.display="none";
	document.getElementById('enlargetxt').innerHTML="";
	document.getElementById('enlargepic2').src='';
	document.getElementById('enlargeswf2').innerHTML='';
	document.body.style.overflow='auto';
}
function enlargeInit(swf) {
	t='<div id="enlargepicbg" style="z-index: 100; position: absolute; top: 100px; left: 0px; display: none; width: 100%; height: 100%; background-color: #111" onClick="enlargeclose()"></div>';
	t1='<div id="enlargepic" style="z-index: 101; position: absolute; width: 100%; left: 0px; height: 100%; display: none"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" onClick="enlargeclose()"><tr><td align="center"><table cellpadding="0" cellpadding="0" border="0"><tr><td><div style="background-color:#FFF; text-align: center; font-size: 11px; border: 10px solid #FFF "><img id="enlargepic2" src="" alt="Loading..." style="cursor: pointer;" onClick="enlargeclose()"><div id="enlargetxt"></div></div></td></tr></table></td></tr></table></div>';
	t2='<div id="enlargeswf" style="z-index: 101; position: absolute; width: 100%; left: 0px; height: 100%; display:none"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" onClick="enlargeclose()"><tr><td align="center"><div id="enlargeswf2"></div></td></tr></table></div>';
	document.write(t+t1+t2);
}
