function WriteFlash(FlashName,FlashWidth,FlashHeight,FlashOptions){	return "<object ID=MyFlashObj " + FlashOptions + " style=\"Width:" + FlashWidth + ";Height:" + FlashHeight + ";\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\"><param name=\"movie\" value=\"" + FlashName + "\"><param name=\"quality\" value=\"high\"><embed " + FlashOptions + " src=\"" + FlashName + "\" style=\"Width:" + FlashWidth + ";Height:" + FlashHeight + ";\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"></embed></object>";}function getKey(e){	if (e == null) keycode = event.keyCode; else keycode = e.which;	key = String.fromCharCode(keycode).toLowerCase();	if(key == 'x' || keycode==0 ) closePopUp(); }function listenKey () {	document.onkeypress = getKey; }function ShowContent(){	cover.innerHTML="";	var dlg = document.getElementById("dialog");	dlg.style.display = "block";}function showPopUp(FlashName,FlashWidth,FlashHeight,FlashCaption) {	dialog.innerHTML="<table border=0 cellpadding=0 cellspacing=0 ><tr bgcolor=#eeeeee ><td height=1><table border=0 cellpadding=0 cellspacing=0 width=100% ><tr><td height=1>" + FlashCaption + "</td><td align=right ><a href=\"\" onclick=\"closePopUp();return false;\"><img src=\"Images/Close.gif\" border=0 ></a></td></tr></table></td></tr><tr><td>" + WriteFlash(FlashName,FlashWidth,FlashHeight,"") + "</td></tr></table>";	dialog.style.top=(BrowserHeight/2)-(FlashHeight/2)+getScrollXY()[1];	dialog.style.left=(BrowserWidth/2)-(FlashWidth/2)-12;	if(is_ie)		dialog.style.left=(BrowserWidth/2)-(FlashWidth/2)-3;	var cvr = document.getElementById("cover");	cvr.innerHTML     ="<table width=100% height=100%><tr><td align=center valign=middle><img src=\"Images/loading.gif\" border=0 ></td></tr></table>";	cvr.style.height  =PageHeight;	cvr.style.display = "block";	if (navigator.appName=="Microsoft Internet Explorer")		ShowContent();	//	var iv = setInterval(function () {if (document.all["MyFlashObj"].readyState == 4) {clearInterval(iv);ShowContent();} }, 3000);	else		ShowContent();	return;}function showHTMLPopUp(HTMLName,HTMLWidth,HTMLHeight,HTMLCaption) {	dialog.innerHTML="<table border=0 cellpadding=0 cellspacing=0 ><tr bgcolor=#eeeeee ><td height=1><table border=0 cellpadding=0 cellspacing=0 width=100% ><tr><td height=1>" + HTMLCaption + "</td><td align=right ><a href=\"\" onclick=\"closePopUp();return false;\"><img src=\"Images/Close.gif\" border=0 ></a></td></tr></table></td></tr><tr><td>" + "<iframe SCROLLING=NO frameborder=0 width=" + HTMLWidth + " height=" + HTMLHeight + " src=\"" + HTMLName + "\"></iframe>" + "</td></tr></table>";	dialog.style.top=(BrowserHeight/2)-(HTMLHeight/2)+getScrollXY()[1];	dialog.style.left=(BrowserWidth/2)-(HTMLWidth/2)-12;	if(is_ie)		dialog.style.left=(BrowserWidth/2)-(HTMLWidth/2)-3;	var cvr = document.getElementById("cover");	cvr.innerHTML     ="<table width=100% height=100%><tr><td align=center valign=middle><img src=\"Images/loading.gif\" border=0 ></td></tr></table>";	cvr.style.height  =PageHeight;	cvr.style.display = "block";	if (navigator.appName=="Microsoft Internet Explorer")		ShowContent();	//	var iv = setInterval(function () {if (document.all["MyFlashObj"].readyState == 4) {clearInterval(iv);ShowContent();} }, 3000);	else		ShowContent();	return;}function closePopUp() {	var cvr = document.getElementById("cover");	var dlg = document.getElementById("dialog");	dlg.innerHTML="";	cvr.style.display = "none";	dlg.style.display = "none";}