
function imagePopup(url){
	if(typeof(url)!="object"){
		window._w = window.open("","","width=30,height=30,scrollbars=no,resizable=yes");
		window._w.document.open();
		window._w.document.write('<html><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 bglocor="#ffffff"><center><table height="100%"><tr><td align=center valign=middle><a href="javascript:window.close();"><img alt="Click here to close" border="0" src="'+url+'" onLoad="opener.imagePopup(this);"></a><br><a href="javascript:window.close();"><font face="Verdana" size=2><b>Click here to close</font></b></a></td></tr></table></center></body></html>');
		window._w.document.close();
	} else {
		if(document.layers)
		 window._w.resizeTo(url.width,url.height);
		 else window._w.resizeTo(url.width+25,url.height+60);
	}
}

function showFlash(strPath, width1, height1) {
	var top=0, left=0;
	if(width1 > screen.width-10 || height1 > screen.height-28)
		scroll = 'yes';
	if(height1 < screen.height-28)
		top = Math.floor((screen.height - height1)/2-14);
	if(width1 < screen.width-10)
		left = Math.floor((screen.width - width1)/2);
	width = Math.min(width1, screen.width-10);
	height = Math.min(height1, screen.height-28);
	window.open('flash-show.html?url='+strPath+'&width='+width1+'&height='+height1,'','scrollbars=no,resizable=yes, width='+width+',height='+height+',left='+left+',top='+top);
}
