var debug = 'false';

//testing for Virtual Campus
var isVC
var PageStr = window.document.location.href.toLowerCase();
if(PageStr.indexOf("lstrng3") != -1 || PageStr.indexOf("127") != -1 || PageStr.indexOf("localhost") != -1)
	{isVC = 1}
else	
	{isVC = 0}
//isVC = 0

//the following is for the progress bar
// 	DO NOT MODIFY
var ProgressTxt;
var ProgressImg;
var progPercent;
var progImage;
var currPage = parent.currentSCOPage;
var totalPages = parent.numberOfPages;
	
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 + '">'
//end code for the progress bar


// the following code is for handling the display and functionality of the Back and Next buttons
// 	DO NOT MODIFY
var BackEnabled = 1;
var NextEnabled = 1;

function handlePageLoading()
{
// this displays the debug info once the page and layer have loaded
	PageStr = window.document.location.href
	//get only the page name
	var intPos = PageStr.lastIndexOf("/");
	if (intPos == -1){
		strPageName = PageStr;
	}
	else{
		strPageName = PageStr.substring(intPos + 1, PageStr.length);
	}
if(debug == 'true')
	{
		debugStr = 'This is page: <strong>' + strPageName
		debugStr = debugStr + '</strong>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; debug links: '; 
		debugStr = debugStr + '<a href="javascript:parent.currentSCOPage = 1; parent.SCOContentFrame.location.href =  parent.scoPages[parent.currentSCOPage]";><img align="absmiddle" src="images/DebugRewind.jpg" alt="Rewind to the beginning of this SCO" border="0"></a>'; 
		debugStr = debugStr + '<a accesskey="b" href="javascript:parent.goToPreviousPage()";><img align="absmiddle" src="images/DebugBack.jpg" alt="Go back to the previous page" border="0"></a>'; 
		debugStr = debugStr + '<a accesskey="n" href="javascript:parent.goToNextPage()";><img align="absmiddle" src="images/DebugNext.jpg" alt="Go ahead to the next page" border="0"></a>'; 
		debugStr = debugStr + '<a href="javascript:parent.currentSCOPage = parent.numberOfPages; parent.SCOContentFrame.location.href =  parent.scoPages[parent.currentSCOPage]";><img align="absmiddle" src="images/DebugFFwd.jpg" alt="Fast Forward to the end of this SCO" border="0"></a>'; 
		
		document.getElementById('debug').style.display = "block"; document.getElementById('debug').innerHTML = debugStr}
else
	{debugStr = ''; }	
//end of debug stuff	
	
	
if(currPage == 1)
	{setBackDim()}
if(NextEnabled == 0)
	{setNextDim()}
if(currPage == totalPages)
	{setToLastPage(); parent.strLessonStatus = "completed";}
	
// the following turns on bookmarking for SCORM LMSs
if(isVC == 0)
	{parent.SetBookmark(window.document.location.href)}
	
// the following runs the LLS stuff on the last page	
if(isVC == 1 && currPage == totalPages)
	{MM_initInteractions(); MM_judgeInt('G01');}		
}


function setToLastPage()
{
BackEnabled = 0;
NextEnabled = 0;
document.back1.src='images/spacer.gif';
document.back1.alt='Back not available';
document.back2.src='images/mainBlank_16.gif';
document.back2.alt='Back not available';
document.next1.src='images/spacer.gif';
document.next1.alt='Next not available';
document.next2.src='images/mainBlank_17.gif';
document.next2.alt='Next not available';
}

function setBackDim()
{
BackEnabled = 0;
document.back1.src='images/mainDim_12.gif';
document.back1.alt='Back not available';
document.back2.src='images/mainDim_16.gif';
document.back2.alt='Back not available';
}

function setNextDim()
{
NextEnabled = 0;
document.next1.src='images/mainDim_13.gif';
document.next1.alt='Next not available';
document.next2.src='images/mainDim_17.gif';
document.next2.alt='Next not available';
}

function HandleMouseOverBack1()
{if(BackEnabled == 1)	{document.back1.src='images/mainHi_12.gif';}if(BackEnabled == 0)	{document.back1.style.cursor = 'default';}}
function HandleMouseOutBack1()
{if(BackEnabled == 1)	{document.back1.src='images/main_12.gif';}}
function HandleMouseOverNext1()
{if(NextEnabled == 1)	{document.next1.src='images/mainHi_13.gif';}if(NextEnabled == 0)	{document.next1.style.cursor = 'default';}}
function HandleMouseOutNext1()
{if(NextEnabled == 1)	{document.next1.src='images/main_13.gif';}}
function HandleMouseOverBack2()
{if(BackEnabled == 1)	{document.back2.src='images/mainHi_16.gif';}if(BackEnabled == 0)	{document.back2.style.cursor = 'default';}}
function HandleMouseOutBack2()
{if(BackEnabled == 1)	{document.back2.src='images/main_16.gif';}}
function HandleMouseOverNext2()
{if(NextEnabled == 1)	{document.next2.src='images/mainHi_17.gif';}if(NextEnabled == 0)	{document.next2.style.cursor = 'default';}}
function HandleMouseOutNext2()
{if(NextEnabled == 1)	{document.next2.src='images/main_17.gif';}}


function HandleBackClicked()
{if(BackEnabled == 1)	{parent.goToPreviousPage()}}
function HandleNextClicked()
{if(NextEnabled == 1)	{parent.goToNextPage()}}

// end of Back and Next button functions




function ShowGlossary()
{
newWindow=window.open("ICSResCntr_Glossary.htm","Glossary","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=720,height=500,left=0,top=0");
if (newWindow.opener == null) {newWindow.opener = window};
}

function ShowHelp()
{
newWindow=window.open("Help.htm","Help","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=720,height=500,left=0,top=0");
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()
{
	if(currPage != totalPages)
		{ok = confirm('Going back to the Course Map closes this window and brings you back to the Course List.\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)
				{
					if(isVC == 1)
						{top.close();top.opener.focus()}
					else
						{parent.doQuit(parent.strLessonStatus)}				
				}
		}			

	else
		{ok = confirm('Going back to the Course Map closes this window and brings you back to the Course List.\n\nSince you have completed this lesson/topic, it\'s OK, you\'ve already received credit. \n\nAre you sure you want to leave?')
				{
					if(isVC == 1)
						{top.close();top.opener.focus()}
					else
						{parent.doQuit(parent.strLessonStatus)}				
				}
		}
}


function OpenFlash(thisMovieFile)
{
vwidth = 368;
vheight = 318;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

movieWindow=window.open("","Presentation","toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=20");
if (movieWindow.opener == null) {movieWindow.opener = window};

MovieText = ''
MovieText = MovieText + '<HTML><HEAD><TITLE>Presentation</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><scri';
MovieText = MovieText + 'pt language="JavaScript" src="scripts/PlayMovie.js" type="text/javascript"></scri';
MovieText = MovieText + 'pt></HEAD>';
MovieText = MovieText + '<BODY onload="self.focus()" BGCOLOR=#4066BF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 style="overflow:hidden">';
MovieText = MovieText + '<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>';
MovieText = MovieText + '<TR><TD COLSPAN=6 bgcolor="FFFFFF"><IMG SRC="images/vidWindow_01.gif" WIDTH=359 HEIGHT=31 ALT=""></TD>		<td width="100%" rowspan="3" background="images/vidWindow_02.gif"><IMG SRC="images/vidWindow_02.gif" WIDTH="35" HEIGHT="317" ALT="" border="0"></td>	</TR>';
MovieText = MovieText + '<TR><TD bgcolor="FFFFFF"><IMG SRC="images/vidWindow_03.gif" WIDTH=26 HEIGHT=240 ALT=""></TD>		<TD COLSPAN=4 WIDTH=320 HEIGHT=240 align="center" bgcolor="FFFFFF">';
MovieText = MovieText + '<OBJECT	CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 	WIDTH="320" 	HEIGHT="240" 	CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" 	ID=audioMovie>	';
MovieText = MovieText + '<PARAM NAME="MOVIE" VALUE="';
MovieText = MovieText + thisMovieFile
MovieText = MovieText + '">	<PARAM NAME="PLAY" VALUE="false">	<PARAM NAME="LOOP" VALUE="false">		<PARAM NAME="QUALITY" VALUE="high">	<PARAM NAME="SCALE" VALUE="SHOWALL">';
MovieText = MovieText + '<EMBED NAME="audioMovie" SRC="';
MovieText = MovieText + thisMovieFile
MovieText = MovieText + '" WIDTH="320" HEIGHT="240" PLAY="false" LOOP="false" QUALITY="high" SCALE="SHOWALL" swLiveConnect="true" PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/"></EMBED>';
MovieText = MovieText + '</OBJECT>';
MovieText = MovieText + '</TD><TD bgcolor="FFFFFF"><IMG SRC="images/vidWindow_05.gif" WIDTH="13" HEIGHT="240" ALT=" " border="0"></TD></TR>';
MovieText = MovieText + '<TR><TD COLSPAN=2><a href="JavaScript:playmovie()" onMouseOver="document.vid1.src=\'images/vidWindowHi_06.gif\';" onMouseOut="document.vid1.src=\'images/vidWindow_06.gif\';"><IMG SRC="images/vidWindow_06.gif" WIDTH=113 HEIGHT=46 ALT="Play" border="0" name="vid1" /></a></TD>		<TD><a href="JavaScript:stopmovie()" onMouseOver="document.vid2.src=\'images/vidWindowHi_07.gif\';" onMouseOut="document.vid2.src=\'images/vidWindow_07.gif\';"><IMG SRC="images/vidWindow_07.gif" WIDTH=93 HEIGHT=46 ALT="Stop" border="0" name="vid2" /></a></TD>		<TD bgcolor="FFFFFF"><IMG SRC="images/vidWindow_08.gif" WIDTH=44 HEIGHT=46 ALT=""></TD>		<TD COLSPAN=2><a href="javascript:self.close()" onMouseOver="document.vid3.src=\'images/vidWindowHi_09.gif\';" onMouseOut="document.vid3.src=\'images/vidWindow_09.gif\';"><IMG SRC="images/vidWindow_09.gif" WIDTH=109 HEIGHT=46 ALT="Close Window" border="0" name="vid3"></a></TD></TR>';
MovieText = MovieText + '<TR><TD><IMG SRC="images/spacer.gif" WIDTH=26 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=87 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=93 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=44 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=96 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=13 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=35 HEIGHT=1 ALT=""></TD>	</TR>';
MovieText = MovieText + '</TABLE></BODY></HTML>';

movieWindow.document.write(MovieText);
movieWindow.document.close();
}

function OpenFlashBig(thisMovieFile)
{
vwidth = 511;
vheight = 338;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

movieWindow=window.open("","Presentation","toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=20");
if (movieWindow.opener == null) {movieWindow.opener = window};

MovieText = ''
MovieText = MovieText + '<HTML><HEAD><TITLE>Presentation</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><scri';
MovieText = MovieText + 'pt language="JavaScript" src="scripts/PlayMovie.js" type="text/javascript"></scri';
MovieText = MovieText + 'pt></HEAD>';
MovieText = MovieText + '<BODY onload="self.focus()" BGCOLOR=#4066BF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 style="overflow:hidden">';
MovieText = MovieText + '<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>';
MovieText = MovieText + '<TR><TD COLSPAN=6 bgcolor="FFFFFF"><IMG SRC="images/vidWindowBig_01.gif" WIDTH="501" HEIGHT="31" ALT="" border="0"></TD>		<td width="100%" rowspan="3" background="images/vidWindowBig_02.gif"><IMG SRC="images/vidWindowBig_02.gif" WIDTH="11" HEIGHT="338" ALT="" border="0"></td>	</TR>';
MovieText = MovieText + '<TR><TD bgcolor="FFFFFF"><IMG SRC="images/vidWindowBig_03.gif" WIDTH=26 HEIGHT=260 ALT=""></TD>		<TD COLSPAN=4 WIDTH=460 HEIGHT=260 align="center" bgcolor="FFFFFF">';
MovieText = MovieText + '<OBJECT	CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 	WIDTH="460" 	HEIGHT="260" 	CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" 	ID=audioMovie>	';
MovieText = MovieText + '<PARAM NAME="MOVIE" VALUE="';
MovieText = MovieText + thisMovieFile
MovieText = MovieText + '">	<PARAM NAME="PLAY" VALUE="false">	<PARAM NAME="LOOP" VALUE="false">		<PARAM NAME="QUALITY" VALUE="high">	<PARAM NAME="SCALE" VALUE="SHOWALL">';
MovieText = MovieText + '<EMBED NAME="audioMovie" SRC="';
MovieText = MovieText + thisMovieFile
MovieText = MovieText + '" WIDTH="460" HEIGHT="260" PLAY="false" LOOP="false" QUALITY="high" SCALE="SHOWALL" swLiveConnect="true" PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/"></EMBED>';
MovieText = MovieText + '</OBJECT>';
MovieText = MovieText + '</TD><TD bgcolor="FFFFFF"><IMG SRC="images/vidWindowBig_05.gif" WIDTH="15" HEIGHT="260" ALT=" " border="0"></TD></TR>';
MovieText = MovieText + '<TR><TD COLSPAN=2><a href="JavaScript:window.document.audioMovie.Play()" onMouseOver="document.vid1.src=\'images/vidWindowBigHi_06.gif\';" onMouseOut="document.vid1.src=\'images/vidWindowBig_06.gif\';"><IMG SRC="images/vidWindowBig_06.gif" WIDTH="166" HEIGHT="47" ALT="Play" border="0" name="vid1"></a></TD><TD><a href="JavaScript:window.document.audioMovie.Stop()" onMouseOver="document.vid2.src=\'images/vidWindowBigHi_07.gif\';" onMouseOut="document.vid2.src=\'images/vidWindowBig_07.gif\';"><IMG SRC="images/vidWindowBig_07.gif" WIDTH="95" HEIGHT="47" ALT="Stop" border="0" name="vid2"></a></TD><TD><IMG SRC="images/vidWindowBig_08.gif" WIDTH="46" HEIGHT="47" ALT="" border="0"></TD><TD COLSPAN=2><a href="javascript:self.close()" onMouseOver="document.vid3.src=\'images/vidWindowBigHi_09.gif\';" onMouseOut="document.vid3.src=\'images/vidWindowBig_09.gif\';"><IMG SRC="images/vidWindowBig_09.gif" WIDTH="194" HEIGHT="47" ALT="Close Window" border="0" name="vid3"></a></TD></TR>';
MovieText = MovieText + '<TR><TD><IMG SRC="images/spacer.gif" WIDTH=26 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=140 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=95 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=46 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=179 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=15 HEIGHT=1 ALT=""></TD>		<TD><IMG SRC="images/spacer.gif" WIDTH=11 HEIGHT=1 ALT=""></TD>	</TR>';
MovieText = MovieText + '</TABLE></BODY></HTML>';

movieWindow.document.write(MovieText);
movieWindow.document.close();
}


function OpenScript(file)
{
vwidth = 717;
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 SendMeExternalURL(url)
{
vwidth = 750;
vheight = 460;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

if(url.indexOf("http") == -1)
	{url = 'http://' + url}

if(url.indexOf(".mil") != -1 || url.indexOf(".gov") != -1)
	{
		newSite=window.open(url,"ExternalSite","toolbar=yes,location=yes,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=0");
	}
else
	{
		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('<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><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="styles/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;"><strong>You are now exiting the FEMA Web Site.</strong>  <p style="padding-left: 10px;">You will now be entering the site: ' + url);  
				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('"><img src="images/ViewResource.gif" alt="Click on this button to view the requested Internet Resource" border="0"></a><br>');
				newSite.document.write('</body></html>');
				newSite.document.close();
			}	
	}
}





function SendMeLocalFile(file)
{
vwidth = 750;
vheight = 460;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

localSite=window.open(file,"LocalPage","toolbar=yes,location=no,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=0");
}


function SendMeSummary(file)
{
vwidth = 720;
vheight = 560;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

localSite=window.open(file,"Summary","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=0");
}



function showDefLong(vDef)
{
	
vwidth = 647;
vheight = 435;
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};
		
		FeedBackText = ''
		FeedBackText = FeedBackText + '<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">';
		FeedBackText = FeedBackText + '<head><title>Details</title><link href="styles/newFeedback.css" rel="stylesheet" type="text/css" media="screen"/><link href="styles/newFeedbackPrint.css" rel="stylesheet" type="text/css" media="print"/></head><body onload="self.focus()">';
		FeedBackText = FeedBackText + '<div id="newFeedback2-01"><img src="images/Details_01.gif" width=423 height=46 alt="Details"/></div><div id="headerForPrint">Details:</div><div id="newFeedback2-02"><a href="javascript:self.print()" onmouseover="document.Printme1.src=\'images/DetailsHi_02.gif\';" onmouseout="document.Printme1.src=\'images/Details_02.gif\';"><img src="images/Details_02.gif" width=102 height=46 alt="Print" name="Printme1" border="0"/></a></div><div id="newFeedback2-03"><a href="javascript:self.close()" onmouseover="document.Closeme1.src=\'images/DetailsHi_03.gif\';" onmouseout="document.Closeme1.src=\'images/Details_03.gif\';"><img src="images/Details_03.gif" width=97 height=46 alt="Continue" name="Closeme1" border="0"/></a></div>';
		FeedBackText = FeedBackText + '<div id="newFeedback2-04"></div><div id="mainContent">';
		FeedBackText = FeedBackText + '<img class="vertSpacer" src="../images/spacer.gif" width="1" height="320" border="0" align="right" alt=""/><p>';
		FeedBackText = FeedBackText + vDef;
		FeedBackText = FeedBackText + '</p><div id="footer"><div id="newFeedback2-06"></div>		<div id="newFeedback2-07"><a href="javascript:self.print()" onmouseover="document.Printme2.src=\'images/DetailsHi_07.gif\';" onmouseout="document.Printme2.src=\'images/Details_07.gif\';"><img src="images/Details_07.gif" width=102 height=46 alt="Print" name="Printme2" border="0"/></a></div>		<div id="newFeedback2-08"><a href="javascript:self.close()" onmouseover="document.Closeme2.src=\'images/DetailsHi_08.gif\';" onmouseout="document.Closeme2.src=\'images/Details_08.gif\';"><img src="images/Details_08.gif" width=97 height=46 alt="Continue" name="Closeme2" border="0"/></a></div>		<div id="newFeedback2-09"></div>  </div></div></body></html>';
	
		Hintwin.document.write(FeedBackText);
		Hintwin.document.close();
	}	
}


//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'
			); 
}
