var tmpStr = '';

var net6 = 0;

var appN = navigator.appName;
var appV = navigator.appVersion;
var majV = appV.substring(0,1);

NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;


if (appN == 'Netscape' && majV == 5)
{net6 = 1;} 
else 
{net6 = 0;}

ver4 = (NS4 || IE4 || net6) ? 1 : 0;


if (ver4)
{
	with (document)
	 {
		write("<STYLE TYPE='text/css'>");
		if (NS4)
		 {
			write(".parent {position:absolute; top: 145px; visibility:hidden}");
			write(".child {position:absolute; left:13px; visibility:hidden}");
			write(".regular {position:absolute; visibility:hidden}")
			write("A.nav {font-family:Arial; font-size:9pt; color:#FDD844; text-decoration:none}");
			write("A.subnav {font-family:Arial; font-size:8pt; color:#FDD844; text-decoration:none}");			
		 } 
		else 
		{	
			write(".child {position:relative; left:13px; display:none}");
			write("A.nav {font-family:arial; font-size:8pt; color:#FDD844; text-decoration:none}");
			write("A:Hover.nav {font-family:Arial; font-size:8pt; color:White; text-decoration:none}");
			write("A.subnav {font-family:Arial; font-size:7pt; color:#FDD844; text-decoration:none}");											
			write("A:Hover.subnav {font-family:Arial; font-size:7pt; color:White; text-decoration:none}");			
		}
		write("</STYLE>");
	}
}




function getIndex(el)
{
	ind = null;
	for (i=0; i<document.layers.length; i++)
	 {
		whichEl = document.layers[i];
		if (whichEl.id == el) 
		 {
			ind = i;
			break;
		 }
	 }
return ind;
}


function showAll() 
{
    for (i=firstInd; i<document.layers.length; i++) 
     {
        whichEl = document.layers[i];
        whichEl.visibility = "show";
     }
}


function arrange() 
{
	nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
	for (i=firstInd+1; i<document.layers.length; i++) 
	 {
		whichEl = document.layers[i];
		if (whichEl.visibility != "hide") 
		 {
			if (whichEl.name.indexOf('el') != -1)
			 {
				whichEl.pageY = nextY;
				nextY += whichEl.document.height;
			 }
		 }
	 }
}







function initIt()
{
	if (!ver4) return;
		if (NS4) 
		{
			for (i=0; i<document.layers.length; i++) 
			{
				whichEl = document.layers[i];
				if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
			}
				
		arrange();
		} 
		
		else if (net6) 
		{
			divColl = document.getElementsByTagName("DIV");
			for (i=0; i<divColl.length; i++) 
			{
				whichEl = divColl[i];
				if (whichEl.className == "child") whichEl.style.display = "none";
			}
		} 

		else 
		{
			divColl = document.all.tags("DIV");
			for (i=0; i<divColl.length; i++) 
			{
				whichEl = divColl(i);
				if (whichEl.className == "child") whichEl.style.display = "none";
			}
		}
}




function expandIt(el) 
{
	if (!ver4) return;
	//IE
	if (IE4) 
	{
		whichEl = eval(el + "Child");	
		whichIm = event.srcElement;
		if (whichEl.style.display == "none") 
		{
			whichEl.style.display = "block";
			whichIm.src = "http://www.pfa.org/graphics/minus.gif";   
		} 
		else 
		{
				whichEl.style.display = "none";
				whichIm.src = "http://www.pfa.org/graphics/plus.gif";
		}
	} 
	
	// Netscape 6
	else if (net6) 
	{
		var idStr = el + "Child";
		var getId = document.getElementById(idStr);
		whichIm = eval("document.images." + el);
		if (getId.style.display == "none") 
		{
			getId.style.display = "block";
			whichIm.src = "http://www.pfa.org/graphics/minus.gif";   
		} 
		else 
		{
			getId.style.display = "none";
			whichIm.src = "http://www.pfa.org/graphics/plus.gif";
		}
	} 

	// Netscape 4
	else {
		whichEl = eval("document." + el + "Child");	
		whichIm = eval("document." + el + "Parent.document.images[el]");
		if (whichEl.visibility == "hide") 
		{
			whichEl.visibility = "show";
			whichIm.src = "http://www.pfa.org/graphics/minus.gif";
		} 
		else 
		{
			whichEl.visibility = "hide";
			whichIm.src = "http://www.pfa.org/graphics/plus.gif";
		}

	arrange();
	}
}


onload = initIt;
	 
if (IE4) 
{tmpStr += '<table cellspacing="0" cellpadding="0" border="0" width="95"><tr><td>';} 

else {tmpStr += '<img SRC="http://www.pfa.org/graphics/blank.gif" width="95" height = "1">';}

//FIRE SAFETY

tmpStr += '<DIV ID="elOneParent" CLASS="parent">';
tmpStr += '<A HREF="#" onClick="expandIt(\'elOne\'); return false"><IMG NAME="elOne" SRC="http://www.pfa.org/graphics/plus.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="Expand/Collapse Item"></A>';
tmpStr += ' <a href="http://www.pfa.org/jumpfire.html" class="nav"><b>Fire Safety</b></a></DIV>';
tmpStr += '';
tmpStr += '<DIV ID="elOneChild" CLASS="child">';
tmpStr += '<a href="http://www.pfa.org/firesafe.html" class="subnav">Fire Safety</a><br>';
tmpStr += '<a href="http://www.pfa.org/firesafe/index.html" class="subnav">Fire Safety Recognition</a><br>';
tmpStr += '<a href="http://www.pfa.org/slideshows/facts/slide1.html" class="subnav">Facts on Flammability</a><br></DIV>';
tmpStr += '';

//MEETINGS

tmpStr += '<DIV ID="elTwoParent" CLASS="parent">';
tmpStr += '<IMG NAME="elTwo" SRC="http://www.pfa.org/graphics/blank.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="">';
tmpStr += ' <a href="http://www.pfa.org/pfameet.html" class="nav"><b>Meetings</b></a></DIV>';
tmpStr += '';

//Literature

tmpStr += '<DIV ID="elThreeParent" CLASS="parent">';
tmpStr += '<A HREF="#" onClick="expandIt(\'elThree\'); return false"><IMG NAME="elThree" SRC="http://www.pfa.org/graphics/plus.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="Expand/Collapse Item"></A>';
tmpStr += ' <a href="http://www.pfa.org/jumpliterature.html" class="nav"><b>Literature</b></a></DIV>';
tmpStr += '';
tmpStr += '<DIV ID="elThreeChild" CLASS="child">';
tmpStr += '<a href="http://www.pfa.org/intouch/index.html" class="subnav">INTOUCH</a><br>';
tmpStr += '<a href="http://www.pfa.org/stone.txt" class="subnav">Fire Safety</a><br>';
tmpStr += '<a href="http://www.pfa.org/epa/epa.html" class="subnav">NESHAP</a><br>';
tmpStr += '<a href="http://www.pfa.org/glossary.html" class="subnav">Glossary</a><br>';
tmpStr += '<a href="http://www.pfa.org/jifsg/index.html" class="subnav">Joint Industry Standards</a><br>';
tmpStr += '<a href="http://www.pfa.org/abstracts/index.html" class="subnav">Abstracts</a><br></DIV>';
tmpStr += '';

//ISSUES

tmpStr += '<DIV ID="elFourParent" CLASS="parent">';
tmpStr += '<A HREF="#" onClick="expandIt(\'elFour\'); return false"><IMG NAME="elFour" SRC="http://www.pfa.org/graphics/plus.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="Expand/Collapse Item"></A>';
tmpStr += ' <a href="http://www.pfa.org/jumpissues.html" class="nav"><b>Issues</b></a></DIV>';
tmpStr += '';
tmpStr += '<DIV ID="elFourChild" CLASS="child">';
tmpStr += '<a href="http://www.pfa.org/opinions/index.html" class="subnav">Opinions</a><br>';
tmpStr += '<a href="http://www.pfa.org/opinions/tdifact.html" class="subnav">TDI</a><br>';
tmpStr += '<a href="http://www.pfa.org/slideshows/facts/slide1.html" class="subnav">Facts on Flammability</a><br></DIV>';
tmpStr += '';

//Slide Shows

tmpStr += '<DIV ID="elFiveParent" CLASS="parent">';
tmpStr += '<A HREF="#" onClick="expandIt(\'elFive\'); return false"><IMG NAME="elFive" SRC="http://www.pfa.org/graphics/plus.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="Expand/Collapse Item"></A>';
tmpStr += ' <a href="http://www.pfa.org/jumpslide.html" class="nav"><b>Slide Shows</b></a></DIV>';
tmpStr += '';
tmpStr += '<DIV ID="elFiveChild" CLASS="child">';
tmpStr += '<a href="http://www.pfa.org/slideshows/facts/slide1.html" class="subnav">Facts on Flammability</a><br>';
tmpStr += '<a href="http://www.pfa.org/slideshows/fpf/slide1.html" class="subnav">FPF Background</a><br></DIV>';
tmpStr += '';

//SEARCH

tmpStr += '<DIV ID="elSixParent" CLASS="parent">';
tmpStr += '<IMG NAME="elSix" SRC="http://www.pfa.org/graphics/blank.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="">';
tmpStr += ' <a href="http://www.pfa.org/search/search.html" class="nav"><b>Search</b></a></DIV>';
tmpStr += '';

//GUESTBOOK

tmpStr += '<DIV ID="elSevenParent" CLASS="parent">';
tmpStr += '<IMG NAME="elSeven" SRC="http://www.pfa.org/graphics/blank.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="">';
tmpStr += ' <a href="http://www.pfa.org/guestbk.html" class="nav"><b>Ask PFA</b></a></DIV>';
tmpStr += '';

//FAQ

tmpStr += '<DIV ID="elEightParent" CLASS="parent">';
tmpStr += '<IMG NAME="elEight" SRC="http://www.pfa.org/graphics/blank.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="">';
tmpStr += ' <a href="http://www.pfa.org/faq.html" class="nav"><b>FAQ</b></a></DIV>';
tmpStr += '';

//LINKS
tmpStr += '<DIV ID="elNineParent" CLASS="parent">';
tmpStr += '<IMG NAME="elNine" SRC="http://www.pfa.org/graphics/blank.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="">';
tmpStr += ' <a href="http://www.pfa.org/links.html" class="nav"><b>Links</b></a></DIV>';
tmpStr += '';

//MAIN PAGE

tmpStr += '<DIV ID="elTenParent" CLASS="parent">';
tmpStr += '<IMG NAME="elTen" SRC="http://www.pfa.org/graphics/blank.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="">';
tmpStr += ' <a href="http://www.pfa.org/" class="nav"><b>Main Page</b></a></DIV>';
tmpStr += '';

//ABOUT PFA

tmpStr += '<DIV ID="elElevenParent" CLASS="parent">';
tmpStr += '<IMG NAME="elEleven" SRC="http://www.pfa.org/graphics/blank.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="">';
tmpStr += ' <a href="http://www.pfa.org/aboutpfa.html" class="nav"><b>About PFA</b></a></DIV>';
tmpStr += '';

//Teaching Aids
tmpStr += '<DIV ID="elThirteenParent" CLASS="parent">';
tmpStr += '<IMG NAME="elThirteen" SRC="http://www.pfa.org/graphics/blank.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="">';
tmpStr += ' <a href="http://www.pfa.org/ce/index.html" class="nav"><b>Teaching Aids</b></a></DIV>';
tmpStr += '';

//Legal
tmpStr += '<DIV ID="elFourteenParent" CLASS="parent">';
tmpStr += '<IMG NAME="elFourteen" SRC="http://www.pfa.org/graphics/blank.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="">';
tmpStr += ' <a href="http://www.pfa.org/legal.html" class="nav"><b>Legal</b></a></DIV>';
tmpStr += '';

//Hall of Fame
tmpStr += '<DIV ID="elTwelveParent" CLASS="parent">';
tmpStr += '<IMG NAME="elTwelve" SRC="http://www.pfa.org/graphics/blank.gif" WIDTH=9 HEIGHT=9 BORDER=0 ALT="">';
tmpStr += ' <a href="http://www.pfa.org/jumpfame.html" class="nav"><b>Hall of Fame</b></a></DIV>';
tmpStr += '';

tmpStr += '<p>';
tmpStr += '';
tmpStr += '<DIV ID="elBod" CLASS="regular">';
tmpStr += '</DIV>';
tmpStr += '';
tmpStr += '<DIV ID="elFooter" CLASS="regular">';

tmpStr += '</DIV>';




if (IE4) 
{
	tmpStr += '</td></tr></table>';
}




document.write(tmpStr);




if (document.layers) 
{
	firstEl = "elOneParent";
	firstInd = getIndex(firstEl);
	showAll();
        arrange();
}
