function popupPage(strUrl)
{
	var ww = ((screen.width) * .75);
	var wh = ((screen.height) * .75);
	var wl = 50;
	var wt = 50;
//	popup(strUrl,ww,wh);
	var wnd = window.open(strUrl,"popup","left=" + wl + ",top=" + wt + ",width=" + ww + ",height=" + wh + ",scrollbars=yes");
}

function popup(strUrl, width, height) {
	var sw = window.screen.width;
	var sh = window.screen.height;
	var ww = width + 4;
	var wh = height + 22;
	var wl = (sw - ww) / 2;
	var wt = (sh - wh) / 2;
	var wnd = window.open(strUrl,"popup","left="+wl+",top="+wt+",width="+ww+",height="+ wh +"");
	//var wnd = window.open(strUrl,"popup","left="+wl+",top="+wt+",width=275,height=174");
}

function popupHostedFlash(strUrl, iHeight, iWidth) {
	var sw = window.screen.width;
	var sh = window.screen.height;
	var ww = iWidth + 2;
	var wh = iHeight + 20;
	var wl = (sw - ww) / 2;
	var wt = (sh - wh) / 2;
	var wnd = window.open("","popup","left="+wl+",top="+wt+",width="+ww+",height="+ wh +"");

	wnd.document.open();
	wnd.document.writeln("<html><head><title>Video Player</title></head>");
	wnd.document.writeln("<body>");
	wnd.document.writeln("<div align=center>");
	wnd.document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	wnd.document.writeln('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
	wnd.document.writeln('  width="' + iWidth + '" height="' + iHeight + '">');
	wnd.document.writeln('  <param name="movie" value="' + strUrl + '">');
	wnd.document.writeln('  <param name="quality" value="high">');
	wnd.document.writeln('  <param name="wmode" value="opaque">');
	wnd.document.writeln('  <embed src="' + strUrl + '" quality="high"');
	wnd.document.writeln('    pluginspage="http://www.macromedia.com/go/getflashplayer"');
	wnd.document.writeln('    type="application/x-shockwave-flash" width="' + iWidth + '" height="' + iHeight + '"></embed>');
	wnd.document.writeln('</object>');
	wnd.document.writeln("<BR><a href='javascript:window.close()'><font face=Arial size=1 color=blue>Close Window</font></a>");
	wnd.document.writeln("</div>");
	wnd.document.writeln("</body>");
	wnd.document.writeln("</html>");
	wnd.document.close();

	wnd.document.body.style.margin="0px";
	wnd.focus();

}

function guidedTour(flashFile) {
	var sw = window.screen.width;
	var sh = window.screen.height;
	var ww = 600;
	var wh = 500;
	var wl = (sw - ww) / 2;
	var wt = (sh - wh) / 2;
	var wnd = window.open("","popup","left="+wl+",top="+wt+",width="+ww+",height="+ wh +"");

	wnd.document.open();
	wnd.document.writeln("<html><head><title>Video Player</title></head>");
	wnd.document.writeln("<body>");
	wnd.document.writeln("<div align=center>");	
	wnd.document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	wnd.document.writeln('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"');
	wnd.document.writeln('  width="600" height="500">');
	wnd.document.writeln('  <param name="movie" value="../ContentRoot/' + flashFile + '">');
	wnd.document.writeln('  <param name="quality" value="high">');
	wnd.document.writeln('  <param name="wmode" value="opaque">');
	wnd.document.writeln('  <embed src="../ContentRoot/' + flashFile + '" quality="high"');
	wnd.document.writeln('    pluginspage="http://www.macromedia.com/go/getflashplayer"');
	wnd.document.writeln('    type="application/x-shockwave-flash" width="600" height="500"></embed>');
	wnd.document.writeln('</object>');
	wnd.document.writeln("</div>");
	wnd.document.writeln("</body>");
	wnd.document.writeln("</html>");
	wnd.document.close();
	
	wnd.document.body.style.margin="0px";
	wnd.focus();
	
}
