// JavaScript Document
var left = (screen.width/2) - width/2;
var top = (screen.height/2) - height/2;
var width = 420;
var height = 300;
var movien="password_gate_"; // specify the file name here.
var moviedir = "";  // specify the movie directory here.
var moviename = moviedir+movien+".swf";

//var comm = "function "+movien+"_DoFSCommand(command, args) {\nif (command == 'messagebox') {\nalert(args);\n}\n}\n";

var writeSwf = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='420' height='300' id='"+moviename+"'> <param name='movie' value='"+moviename+"'> <param name='quality' value='high'> <param name='menu' value='false'> <embed src='"+moviename+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='420' height='300' swLiveConnect=true ID='"+movien+"' NAME='"+movien+"'></embed></object>";

var popUpWin=0;
function popUpWindow(left, top, width, height,writeSwf)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) 
	popUpWin.close();
  }
  popUpWin = open("",'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
with(popUpWin.document)
	{
	write("<HTML><HEAD><TITLE> Password Gate </TITLE>");
	/*write("<script language='javascript'>"+comm+"</script>");
	write("<script language='javascript' event='FSCommand (command, args)' for= '"+moviename+"'></script>");*/
	write("</HEAD><BODY>");
	body.leftMargin=0;
	body.topMargin=0;
	write(writeSwf);
	write("</BODY></HTML>");
	close();
	}//end of with
}