function showFlash(fileName, width, height, flashvars) {	
	var text;
	text = "";
	
	if ((null == flashvars)||(flashvars == "")) {
		paramflashvars = "";
		embedflashvars = "";
	} else {
		paramflashvars = "<param value=\"" + flashvars + "\" name=\"flashvars\" />";
		embedflashvars = " flashvars=\"" + flashvars + "\"";
	}
	 
	text +="<object id=\"main\" height=\"" + height + "\" width=\"" + width + "\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\">";
	text +="<param value=\"" + fileName + "\" name=\"movie\" />";
	text +="<param value=\"high\" name=\"quality\" />";
	text +="<param name=\"menu\" value=\"false\" />";
	text += paramflashvars;
	text += "<embed pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" name=\"main\" quality=\"high\" menu=\"false\" height=\"" + height + "\" width=\"" + width + "\" src=\"" + fileName + "\"" + embedflashvars + "></embed></object>";
	document.write(text);
}

 
function newWin(page,winName,w,h,scrollb,resize) {  
var win=null;  
centerWidth = (screen.width) ? (screen.width-w)/2 : 0;  
centerHeight = (screen.height) ? (screen.height-h)/2 : 0;  
config = 'height='+h+',width='+w+',top='+centerHeight+',left='+centerWidth+',scrollbars='+scrollb+',resizable='+resize+''; 
win = window.open(page,winName,config);  
}  
