message = "";
var BlockedCWin = null;
var FullScrWin = null;

function highQualityPopup() {
	HighQWin = window.open('', 'NewWin', 'toolbar=no, status=no, width=450, height=370');
	message = '<font face="Arial">';
	message += "<h2><center>Viewing Video in High Quality</center></h2>";
	message += "<p>Once the video starts, you will see a button labeled <b>HQ</b> ";
	message += "in the little toolbar at the bottom of the video window. ";
	message += "Click on this button to put the video into <i>High Quality mode</i>. ";
	message += "If you want to return to Normal Quality mode, click the <b>HQ</b> button again. ";
	message += "</p><p>Notice that the <b>HQ</b> button is <u>red</u> whenever you are in High Quality mode.</p>";
	addCloseButton();
	message += "</font>";
	HighQWin.document.write(message);
	HighQWin.document.close();
}


function blockedContentPopup() {
	BlockedCWin = window.open('video_trouble.htm', 'NewWin', 'location=no, menubar=no, scrollbars=yes, toolbar=no, status=no, width=450, height=450');
	BlockedCWin.focus();  
}


function fullScreenPopup() {
	FullScrWin = window.open('', 'NewWin', 'toolbar=no, status=no, width=500, height=450');
	message = '<font face="Arial">';
	message += "<h2><center>Full-Screen Mode</center></h2>";
	message += "<p>Some pictures, particularly those which are oriented vertically, are better viewed ";
	message += "in <i>full-screen mode</i>. ";
	message += "This is a feature available on many web browsers, including ";
	message += "<u>Internet Explorer</u>, <u>Firefox</u>, and <u>Opera</u>.<br/><br/>";
	message += "With these three browsers, the easiest way to enter full-screen mode is by pressing <b>F11</b>. ";
	message += "You can then return to the normal mode by pressing <b>F11</b> again. ";
	message += "The <b>F11</b> key simply toggles you back and forth between the two modes.";
	message += "<br/><br/>";
	message += "You can also use the browser's <b>View</b> menu to enter full-screen mode.";
	message += "<br/><br/>";
	message += "(Please note that <u>Safari</u> and <u>Google Chrome</u>";
	message += ", as far as I know, don't have a full-screen mode.)</p>";
	addCloseButton();
	message += "</font>";
	FullScrWin.document.write(message);
	FullScrWin.document.close();
	FullScrWin.focus();
}


function addCloseButton() {
	message += "<br/><table width='100%' >";
	message += "<tr><td align='center'>";
	message += "<input type='button' value='Close this window' onclick='window.close()' />";
	message += "</td></tr></table>";
}

function createPageBanner(lineOne, lineTwo, type)  {
	var banner = "";
	banner += "<table id='banner_table' border='1' width='100%' align='center'><tr>";

	if (type == "image")
		banner += "<td align='center' border='0'><img src='images/text/" + lineOne + "'>";
	else
		banner += "<td><span id='header_line_one'>" + lineOne + "</span>";		
		
	if (lineTwo != null)
		banner += "<br/><span id='header_line_two'>" + lineTwo + "</span>";
	banner += "</td></tr></table>";
	return banner;
}

function createPageBannerOld(lineOne, lineTwo)  {
	banner = "";
	banner += "<table id='banner_table' border='1' width='100%' align='center'><tr><td>";
	banner += "<span id='header_line_one'>" + lineOne + "</span>";
	if (lineTwo != null)
		banner += "<br/><span id='header_line_two'>" + lineTwo + "</span>";
	banner += "</td></tr></table>";
	return banner;
}

function droplistHighlight(num)  {
	var id = "drop_list_" + num;
	var dlist = document.getElementById(id);
	dlist.style.color = "#E2D0A0";
	dlist.style.color = "#ffffdd";
	//dlist.style.backgroundColor = "#A03300";
	dlist.style.backgroundColor = "#B03300";
	dlist.style.backgroundColor = "#a03000";
	for (var i = 1; i <= 3; i++)  {
		if (i != num)  droplistUnhighlight(i);
	}
}

function droplistUnhighlightAll()  {
	for (var i = 1; i <= 3; i++)  {
		droplistUnhighlight(i);
	}
}

function droplistUnhighlight(num)  {
	var id = "drop_list_" + num;
	var dlist = document.getElementById(id);
	if (dlist)  {
		dlist.style.color = "#883300";
		dlist.style.backgroundColor = "#E2C0A0";
	}
}

