function MM_openBrWindow(theURL,winName,features){
//****************************************************************************
//	Function: MM_openBrWindow(theURL,winName,features)
//		theURL = URL to open
//		winName = title of new window
//		features = sting of window features to set on open
//
//	This function opens a new window with passed parameters. 
//
//****************************************************************************
   
//	var newPage ="<form name=\"variables\"><input type=\"hidden\" name=\"video\" value=\"";
//	newPage +=video;
//	newPage +="\"></form>";
//
//	document.write(newPage);
//	document.close();
	

  	window.open(theURL, winName, features);

//	End Function: MM_openBrWindow(theURL,winName,features)
}

function openNewWindow(URLtoOpen, windowName, windowFeatures) {
              newWindow=window.open(URLtoOpen, windowName, windowFeatures); }

function writeStyleHeader(){
//****************************************************************************
//	Function: writeStyleHeader()
//
//	This function defines the CSS for the page in the new window. 
//
//****************************************************************************	

	var newPage ="<head>\n";
	newPage +="<style type=\"text/css\">\n";
	newPage +="\n";
	newPage +=".header {  font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; color: #CC0000}\n";
	newPage +="a:link {  font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold; color: #000099; text-decoration: none}\n";
	newPage +="a:hover { font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold; color: #CC0000; text-decoration: none}\n";
	newPage +="a:visited { font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold; color: #666666; text-decoration: none }\n";
	newPage +=".tease {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000}\n";
	newPage +=".subhead { font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold; color: #ff0000; text-decoration: none }\n";
	newPage +=".help, .help:visited, .help:link, .help:active, .help:hover {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000}\n";
	newPage +="a.visited.help {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #999999}\n";
	newPage +=".headline {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #CC0000}\n";
	newPage +="\n";
	newPage +="</style>\n";
	newPage +="</head>\n";
	return newPage;

//	End Function: writeStyleHeader()
}

function writeWindowsMediaPlayer(svideo) {
//****************************************************************************
//	Function: writeWindowsMediaPlayer(svideo)
//		video = path to the wmv file
//
//	This function re-writes the page in the new window to display
//	the WMV files defined in the previous page in the Windows Media 
//	Player.
//****************************************************************************	

	var path="";
	
	path = svideo;
	width = "352";
	height = "240";

	var newPage = writeStyleHeader();
	newPage +="<body bgcolor=\"#ffffff\" text=\"#000000\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";
	newPage += "<OBJECT ID=MediaPlayer WIDTH="+width+" HEIGHT="+height+" CLASSID=CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95 CODEBASE=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112\" standby=\"Loading Microsoft Media Player components...\" type=\"application/x-oleobject\">\n";
	newPage += "<PARAM NAME=AutoStart VALUE=TRUE>\n";
	newPage += "<PARAM NAME=FileName VALUE=\"" + path + "\">\n";
	newPage += "<PARAM NAME=ControlType VALUE=1>\n";
    	newPage += "<PARAM NAME=ShowControls VALUE=1>\n";
    	newPage += "<PARAM NAME=ShowDisplay VALUE=0>\n";
    	newPage += "<PARAM NAME=ShowStatusBar VALUE=0>\n";
    	newPage += "<PARAM NAME=AutoSize VALUE=1>\n";
	newPage += "<EMBED Type=application/x-mplayer2 pluginspage=\"http://www.microsoft.com/windows/mediaplayer/download/default.asp\" filename=\"" + path + "\" src=\"" + path + "\" name=\"MediaPlayer\" AutoStart=1 ShowControls=1 ShowDisplay=0 ShowStatusBar=0 width="+width+" height="+height+">\n";
	newPage += "</embed>\n";
	newPage += "</OBJECT>\n";


	document.write(newPage);
	document.close();

//	End Function: writeWindowsMediaPlayer(svideo)
}