/*
*	FUNCTION: showhide
*/
function showhide(mode,divID) {
	if(mode == 'hide'){
		if(document.layers){
			document.layers[divID].visibility="hide";
		}else{
			document.getElementById(divID).style.visibility="hidden";
		}
	}else{
		if(document.layers){
			document.layers[divID].visibility="show";
		}else{
			document.getElementById(divID).style.visibility="visible";
		}
	}
}
/********************************************************************/
function getCookie(check508){
	if (document.cookie.length>0){ 
		c_start=document.cookie.indexOf(check508 + "=")
		if (c_start!=-1){ 
			c_start=c_start + check508.length+1 
			c_end=document.cookie.indexOf(";",c_start)
			if (c_end==-1) c_end=document.cookie.length
			return unescape(document.cookie.substring(c_start,c_end))
		} 
	}
	return ""
}

function setCookie(check508,value,expiredays){
	var exdate=new Date()
	exdate.setDate(exdate.getDate()+expiredays)
	document.cookie=check508+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+exdate.toGMTString())
}
function checkCookie(){
	version=getCookie('version')
	if (version!=null && version!=""){
		alert('508 Choice =  '+version+'!')
	} else {
  		version=prompt('Please enter your name:',"")
  		if (version!=null && version!=""){
    		setCookie('version',version,365)
    	}
  	}
}
/************************************************************************/
/*
*	FUNCTION: setVersion
*/
function setVersion(version){
	if(version == 1){
	//	LMSSetValue("cmi.suspend_data",1);
	}else if(version == 2){
	//	LMSSetValue("cmi.suspend_data",2);
	}
	setCookie('version',version,365);
	showhide('hide','choose508');
}

//var PrevPage = '';
//var CurrentPage = '';
//var NextPage = '';

//the following is for the progress bar

var ProgressTxt;
var ProgressImg;
var progPercent;
var progImage;
var currPage = ProgressPage - 0;
var totalPages = ProgressCount - 0;
	
progPercent = currPage / totalPages;
progPercent = progPercent * 100;
progPercent = Math.round(progPercent);
progPercent = progPercent + "";
progPercent = progPercent.substring(0,progPercent.length-1) + "0";

if (currPage > 1 & currPage < totalPages)
	{	progImage = "../images/percent" + progPercent + ".gif";	} 

if (currPage == totalPages)
	{	progImage = "../images/percent100.gif";	}

if (currPage == "1" | progPercent == "0")
	{	progImage = "../images/percent01.gif";
		progPercent = "1";
	}

//ProgressTxt = progPercent + '% Completed';
//ProgressImg = '<img src="' + progImage + '"ALT="' + ProgressTxt + '">'
ProgressImg = '<img src="' + progImage + '"ALT="Screen ' + currPage + '  of ' + totalPages + '">'

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

if (document.images) {
	imgs01 = newImage("../images/content_05.gif");
	imgs02 = newImage("../images/content_06.gif");
	imgs03 = newImage("../images/content_07.gif");
	imgs04 = newImage("../images/content_08.gif");
	imgs05 = newImage("../images/content_09.gif");
}

//end code for the progress bar


function SetBookmark(pgname){
	//Do nothing we are just avoiding an error
}

function ShowGlossary()
{
newWindow=window.open("../glossary.html","Glossary","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=780,height=500,left=0,top=0");
if (newWindow.opener == null) {newWindow.opener = window};
}

function ShowHelp()
{
newWindow=window.open("../help.html","Help","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=780,height=500,left=0,top=0");
if (newWindow.opener == null) {newWindow.opener = window};
}

function ShowResources()
{
newWindow=window.open("resources.htm","Resources","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=730,height=500,left=50,top=20");
if (newWindow.opener == null) {newWindow.opener = window};
}

function ShowAccessibility()
{
newWindow=window.open("http://training.fema.gov/508.html","Accessibility","toolbar=yes,location=yes,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=730,height=500,left=50,top=20");
if (newWindow.opener == null) {newWindow.opener = window};
}

function ShowCourseMap()
{
	ok = confirm('Going back to the Course Map closes this window and brings you back to the Course Map.\n\nIf you close this window now, you will not get credit for this lesson/topic. \n\nAre you sure you want to leave?')
	if(ok == true){
		window.close();
	}
}

function ShowCourseMapComplete()
{
	ok = confirm('Going back to the Course Map closes this window and brings you back to the Course Map.\n\nSince you have completed this lesson/topic, you\'ve already received credit. \n\nSelect OK to leave.')
	if(ok == true){
		window.close();
	}
}

function GoNext()
{
if(NextPage == 'done' || NextPage == '')
	{
		//location.href="../index.htm";
	}
else
	{	//alert(NextPage);
		location.href=NextPage;}
}

function GoPrev()
{
if(PrevPage == 'done' || PrevPage == '')
	{
		//location.href="../index.htm";
	}
else
	{location.href=PrevPage;}
}

function OpenFlash(file)
{
vwidth = 358;
vheight = 318;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

newWindow=window.open(file,"Presentation","toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=20");
if (newWindow.opener == null) {newWindow.opener = window};
}


function OpenScript(file)
{
vwidth = 615;
vheight = 500;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

newWindow=window.open(file,"Transcript","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=20");
if (newWindow.opener == null) {newWindow.opener = window};
}


function fbXSpecial(URL, xSize, ySize) {
popupWin= window.open(URL,"Popup","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,left=50,top=100,width=" + xSize + ",height=" + ySize);
}
function fbXSpecialTranscript(URL, xSize, ySize) {
popupWin= window.open(URL,"Popup","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=yes,left=50,top=100,width=" + xSize + ",height=" + ySize);
}

function SendMe(url)
{
vwidth = 750;
vheight = 460;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

newSite=window.open("","ExternalSite","toolbar=yes,location=yes,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=0");
if (newSite != null)
	{
		if (newSite.opener == null) {FBwin.opener = window};
		newSite.document.write('<html><head><title>Resource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		newSite.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		newSite.document.write('<body bgcolor="white" onload="self.focus()" leftMargin=0 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0">');
		newSite.document.write('<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="images/SendMe_01.gif" WIDTH=612 HEIGHT=46 ALT=""></TD><TD><a href="javascript:self.close()" onMouseOver="document.content1.src=\'images/SendMeHi_02.gif\';" onMouseOut="document.content1.src=\'images/SendMe_02.gif\';"><IMG SRC="images/SendMe_02.gif" WIDTH="109" HEIGHT="46" ALT="Close" name="content1" border="0"></a></TD><TD background="images/SendMe_03.gif" WIDTH="100%" HEIGHT=46>&nbsp;</TD></TR></TABLE>');
		newSite.document.write('<p style="padding-left: 10px;"><b>You are now exiting the FEMA Web Site.</b>  <p style="padding-left: 10px;">You will now be entering the site: ' + url);  
		
		if(url.indexOf(".mil") == -1 && url.indexOf(".gov") == -1)
		{
		newSite.document.write('<p style="padding-left: 10px;">We have provided a link to this site because it has information that may be of interest to our viewers. <ul>	<li>FEMA does not necessarily endorse the views expressed or the facts presented on this site.  </li>	<li>FEMA does not endorse any commercial products that may be advertised or on this site. </li>	<li>The FEMA Privacy Notice Policy does not apply on this site. Please check the site for its Privacy Notice.  </li></ul>');
		}
		newSite.document.write('<p style="padding-left: 10px;">When you\'re done, close the window by clicking on the little X in the upper right-hand corner of the window.');
		newSite.document.write('<p style="padding-left: 10px;"><a href="');
		newSite.document.write(url);
		newSite.document.write('">Click on this link to view the requested Internet resource.</a><br>');
		newSite.document.write('</body></html>');
		newSite.document.close();
	}	
}



function SendMeFEMA(url)
{
vwidth = 750;
vheight = 460;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

newSite=window.open("","ExternalSite","toolbar=yes,location=yes,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=0");
if (newSite != null)
	{
		if (newSite.opener == null) {FBwin.opener = window};
		newSite.document.write('<html><head><title>Resource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		newSite.document.write('</head><link rel="stylesheet" href="../files/Feedback.css">');
		newSite.document.write('<body bgcolor="white" onload="self.focus()" leftMargin=0 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0">');
		newSite.document.write('<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="../images/SendMe_01.gif" WIDTH=612 HEIGHT=46 ALT=""></TD><TD><a href="javascript:self.close()" onMouseOver="document.content1.src=\'../images/SendMeHi_02.gif\';" onMouseOut="document.content1.src=\'../images/SendMe_02.gif\';"><IMG SRC="../images/SendMe_02.gif" ALT="Close" name="content1" border="0"></a></TD><TD background="../images/SendMe_03.gif" WIDTH="100%" HEIGHT=46>&nbsp;</TD></TR></TABLE>');
		newSite.document.write('<p style="padding-left: 10px;">We\'re opening a new browser window to view this FEMA resource in.  <p style="padding-left: 10px;">When you\'re done, close the window by clicking on the little X in the upper right-hand corner of the window.');
		newSite.document.write('<p style="padding-left: 10px;"><a href="');
		newSite.document.write(url);
		newSite.document.write('">Click on this link to view the requested FEMA resource.</a><br>');
		newSite.document.write('</body></html>');
		newSite.document.close();
	}	
}

function SendMeGov(url)
{
vwidth = 750;
vheight = 460;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

newSite=window.open("","ExternalSite","toolbar=yes,location=yes,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=0");
if (newSite != null)
	{
		if (newSite.opener == null) {FBwin.opener = window};
		newSite.document.write('<html><head><title>Resource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		newSite.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		newSite.document.write('<body bgcolor="white" onload="self.focus()" leftMargin=0 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0">');
		newSite.document.write('<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="images/SendMe_01.gif" WIDTH=612 HEIGHT=46 ALT=""></TD><TD><a href="javascript:self.close()" onMouseOver="document.content1.src=\'images/SendMeHi_02.gif\';" onMouseOut="document.content1.src=\'images/SendMe_02.gif\';"><IMG SRC="images/SendMe_02.gif" WIDTH="109" HEIGHT="46" ALT="Close" name="content1" border="0"></a></TD><TD background="images/SendMe_03.gif" WIDTH="100%" HEIGHT=46>&nbsp;</TD></TR></TABLE>');
		newSite.document.write('<p style="padding-left: 10px;">We\'re opening a new browser window to view this government resource in.  <p style="padding-left: 10px;">When you\'re done, close the window by clicking on the little X in the upper right-hand corner of the window.');
		newSite.document.write('<p style="padding-left: 10px;"><a href="');
		newSite.document.write(url);
		newSite.document.write('">Click on this link to view the requested government resource.</a><br>');
		newSite.document.write('</body></html>');
		newSite.document.close();
	}	
}


function SendMeLocal(file)
{
vwidth = 750;
vheight = 460;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

localSite=window.open("","LocalPage","toolbar=yes,location=no,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=0");
if (localSite != null)
	{
		if (localSite.opener == null) {FBwin.opener = window};
		localSite.document.write('<html><head><title>Resource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		localSite.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		localSite.document.write('<body bgcolor="white" onload="self.focus()" leftMargin=0 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0">');
		localSite.document.write('<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="../images/SendMe_01.gif" WIDTH=612 HEIGHT=46 ALT=""></TD><TD><a href="javascript:self.close()" onMouseOver="document.content1.src=\'../images/SendMeHi_02.gif\';" onMouseOut="document.content1.src=\'../images/SendMe_02.gif\';"><IMG SRC="../images/SendMe_02.gif" WIDTH="97" HEIGHT="46" ALT="Close" name="content1" border="0"></a></TD><TD background="../images/SendMe_03.gif" WIDTH="100%" HEIGHT=46>&nbsp;</TD></TR></TABLE>');
		localSite.document.write('<p style="padding-left: 10px;">We\'re opening a new browser window to view this resource in.  <p style="padding-left: 10px;">When you\'re done, close the window by clicking on the little X in the upper right-hand corner of the window.');
		localSite.document.write('<p style="padding-left: 10px;"><a href="');
		localSite.document.write(file);
		localSite.document.write('">Click on this link to view the requested local resource.</a><br>');
		localSite.document.write('</body></html>');
		localSite.document.close();
	}	
}

var popupWin = null;

function amOpen(){
	if (popupWin && popupWin.closed){
		popupWin.close();
		popupWin=null;
	}
}

function PopUpSize(howWide,howHigh,what)
{
	
vwidth = howWide;
vheight = howHigh;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Detailed Information &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('</head><link rel="stylesheet" href="../files/Feedback.css">');
		Hintwin.document.write('<body bgcolor="white" onload="self.focus()" onBlur="self.close()">');
		Hintwin.document.write('<div class="popup">' + what + '</div>');
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="../images/close.gif" BORDER=0 ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</body></html>');
		Hintwin.document.close();
	}	
}
function imagePopUp(howWide,howHigh,what,altText)
{
	
vwidth = howWide;
vheight = (75+howHigh);
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Image&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('<style type="text/css"><!--body{margin-left:0px;margin-top:0px;}--></style>');
		Hintwin.document.write('</head><link rel="stylesheet" href="../files/Feedback.css">');
		Hintwin.document.write('<body bgcolor="white" onload="self.focus()" onBlur="self.close()">');
		Hintwin.document.write('<div class="popup"><img src="' + what + '" alt="' + altText + '"></div>');
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="../images/close.gif" BORDER=0 ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</body></html>');
		Hintwin.document.close();
	}	
}
function showDefShort(vDef)
{
	
vwidth = 350;
vheight = 300;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Detailed Information &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		Hintwin.document.write('<body bgcolor="white" onload="self.focus()">');
		Hintwin.document.write(vDef);
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="images/close.gif" WIDTH=60 HEIGHT=29 BORDER=0 ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</body></html>');
		Hintwin.document.close();
	}	
}



function showDefLongOld(vDef)
{
	
vwidth = 600;
vheight = 400;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Detailed Information &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		Hintwin.document.write('<body bgcolor="white" onload="self.focus()">');
		Hintwin.document.write(vDef);
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="images/close.gif" WIDTH=60 HEIGHT=29 BORDER=0 ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</body></html>');
		Hintwin.document.close();
	}	
}


function showDefLong(vDef)
{
	
vwidth = 600;
vheight = 400;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Detailed Information &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		Hintwin.document.write('<body bgcolor="white" onload="self.focus()" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>');
		Hintwin.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>	<td><img src="images/details_01.gif" width="350" height="46" alt="Details" border="0"></td>	<td><img src="images/resources_02.gif" width="27" height="46" alt="" border="0"></td>	<td><a href="javascript:self.print()" onMouseOver="document.r1.src=\'images/resourcesHi_03.gif\';" onMouseOut="document.r1.src=\'images/resources_03.gif\';"><img src="images/resources_03.gif" width="102" height="46" alt="Print" border="0" name="r1"></td>	<td><a href="javascript:self.close()" onMouseOver="document.r2.src=\'images/resourcesHi_04.gif\';" onMouseOut="document.r2.src=\'images/resources_04.gif\';"><img src="images/resources_04.gif" width="93" height="46" alt="Close" border="0" name="r2"></td>	<td width="100%" background="images/resources_02.gif">&nbsp;</td></tr></table>');
		Hintwin.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="12"><tr bgcolor="#FFFFFF">	<td><p>');
		Hintwin.document.write(vDef);
		Hintwin.document.write('</td></tr></table>');
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=1 BORDER=0 ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</body></html>');
		Hintwin.document.close();
	}	
}

function showDetailSizable(width,height,vDef)
{
	
vwidth = width;
vheight = height;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Detailed Information &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		Hintwin.document.write('<body bgcolor="white" onload="self.focus()" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>');
		Hintwin.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>	<td><img src="images/details_01.gif" width="350" height="46" alt="Details" border="0"></td>	<td><img src="images/resources_02.gif" width="27" height="46" alt="" border="0"></td>	<td><a href="javascript:self.print()" onMouseOver="document.r1.src=\'images/resourcesHi_03.gif\';" onMouseOut="document.r1.src=\'images/resources_03.gif\';"><img src="images/resources_03.gif" width="102" height="46" alt="Print" border="0" name="r1"></td>	<td><a href="javascript:self.close()" onMouseOver="document.r2.src=\'images/resourcesHi_04.gif\';" onMouseOut="document.r2.src=\'images/resources_04.gif\';"><img src="images/resources_04.gif" width="93" height="46" alt="Close" border="0" name="r2"></td>	<td width="100%" background="images/resources_02.gif">&nbsp;</td></tr></table>');
		Hintwin.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="12"><tr bgcolor="#FFFFFF">	<td><p>');
		Hintwin.document.write(vDef);
		Hintwin.document.write('</td></tr></table>');
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=1 BORDER=0 ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</body></html>');
		Hintwin.document.close();
	}	
}



function showTrans(vNar)
{
vwidth = 500;
vheight = 420;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Text Version of Transcript &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('</head>');
		Hintwin.document.write('<body bgcolor="white">');
		Hintwin.document.write('<font face="arial" size="-1">');		
		Hintwin.document.write(vNar);
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="images/close.gif" WIDTH="60" HEIGHT="29" BORDER="0" ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</font></body></html>');
		Hintwin.document.close();
	}	
}

function doLong(extFile)
{
alert('The link you clicked will open a new browser window.  When you are done viewing the information in that new window, close the window to return to the lesson page.');
	
vwidth = 430;
vheight = 300;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	descWin=window.open(extFile,"detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
}

function doSupp(extFile)
{
alert('The link you clicked will open a new browser window.  When you are done viewing the information in that new window, close the window to return to the lesson page.');
	
vwidth = 600;
vheight = 400;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	suppWin=window.open(extFile,"supp","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
}

function doFull(extFile)
{
alert('The link you clicked will open a new browser window.  When you are done viewing the information in that new window, close the window to return to the lesson page.');

	fullWin=window.open(extFile,"full","toolbar=yes,location=yes,directories=no,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=50,top=50");
}


//this is for sound only flash files
function LoadSoundFile(vSound,vID) 
{
		document.write(
		'<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ' + '\n' +
			'codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" ' + '\n' +
			'width=\"1\" ' + '\n' +
			'height=\"1\"' + '\n' +
			'ID=\"' + vID + '\" ' + '\n' +
			'NAME=\"audioMovie\">' + '\n' +
		    '<PARAM NAME=\"FrameNum\" VALUE=\"1\">' + '\n' +
		    '<PARAM NAME=\"quality\" VALUE=\"high\">' + '\n' +
			'<PARAM NAME=\"playing\" VALUE=\"false\">' + '\n' +
		    '<PARAM NAME=\"LOOP\" VALUE=\"false\">' + '\n' +
		    '<PARAM NAME=\"movie\" VALUE=\"' + vSound + '\">' + '\n' +
		    '<embed src=\"' + vSound + '\" ' + '\n' +
			'quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" ' + '\n' +
			'type=\"application/x-shockwave-flash\" ' + '\n' +
			'width=\"1\" ' + '\n' +
			'height=\"1\" ' + '\n' +
			'PLAY=\"false\" ' + '\n' +
			'name=\"' + vID + '\" ' + '\n' +
			'loop=\"false\" ' + '\n' +
			'swliveconnect=\"true\">' + '\n' +
		    '</embed> ' + '\n' +
		  '</object>' + '\n'
				); 
}


function PopupFeedback(title, what){
		vwidth = 450;
		vheight = 350;
		sWidth = screen.width;
		tWidth = (sWidth/2);
		hWidth = (vwidth/2);
		uWidth = (tWidth-hWidth);
		
FBwin=window.open("","Popup_Feedback","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (FBwin != null)
	{
	if (FBwin.opener == null) {FBwin.opener = window};
		FeedBackText = ''
		
		if(title == ""){
			FeedBackText = FeedBackText + '<html><head><title>Detailed Information &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>';
		}else{
			FeedBackText = FeedBackText + '<html><head><title>' + title + '&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>';
		}
		FeedBackText = FeedBackText + '</head><link rel="stylesheet" href="../files/Feedback.css">';
		FeedBackText = FeedBackText + '<body bgcolor="white" onload="self.focus()" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td>';
		FeedBackText = FeedBackText + '<TABLE  width="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>	<TR><TD><IMG SRC="../images/comment_01.gif" ALT="Feedback"></TD><TD><a href="javascript:self.print()" onMouseOver="document.printme1.src=\'../images/feedbackHi_03.gif\';" onMouseOut="document.printme1.src=\'../images/feedbackCompare_03.gif\';"><IMG SRC="../images/feedbackCompare_03.gif" ALT="Print" border="0" name="printme1"></a><a href="javascript:self.close()" onMouseOver="document.closeme.src=\'../images/commentHi_02.gif\';" onMouseOut="document.closeme.src=\'../images/comment_02.gif\';"><IMG SRC="../images/comment_02.gif" ALT="Close" border="0" name="closeme"></a></TD><td width="100%" background="../images/feedback_03.gif"><IMG SRC="../images/feedback_03.gif" ALT=""></td>	</TR></TABLE></td></tr><tr><td height="100%" valign="top">';
		FeedBackText = FeedBackText + '<table width="100%" border="0" cellspacing="0" cellpadding="12"><tr bgcolor="#FFFFFF">	<td><p>';
		FeedBackText = FeedBackText + '<p>';
		FeedBackText = FeedBackText + what;
		FeedBackText = FeedBackText + '</td></tr></table></td></tr><tr><td><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="../images/commentBtm_01.gif" ALT="Feedback"><a href="javascript:self.print()" onMouseOver="document.printme2.src=\'../images/feedbackCompareBtm_02_Over.gif\';" onMouseOut="document.printme2.src=\'../images/feedbackCompareBtm_02.gif\';"><IMG SRC="../images/feedbackCompareBtm_02.gif" ALT="Print" border="0" name="printme2"></a><a href="javascript:self.close()" onMouseOver="document.closeme2.src=\'../images/commentBtmHi_02.gif\';" onMouseOut="document.closeme2.src=\'../images/commentBtm_02.gif\';"><IMG SRC="../images/commentBtm_02.gif" ALT="Close" border="0" name="closeme2"></a></td><td width="100%" background="../images/feedbackBtm_03.gif"><IMG SRC="../images/feedbackBtm_03.gif" ALT=""></td></TR></TABLE></td></tr></table></body></html>';
	
		FBwin.document.write(FeedBackText);
		FBwin.document.close();
	}	
}
